text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
List the employees who have not showed up in any circulation history of documents. List the employee's name.
### INPUT
CREATE TABLE Circulation_History (employee_name VARCHAR); CREATE TABLE Employees (employee_name VARCHAR)
### OUTPUT
SELECT employee_name FROM Employees EXCEPT SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id | {
"input": "CREATE TABLE Circulation_History (employee_name VARCHAR); CREATE TABLE Employees (employee_name VARCHAR)",
"instruction": "List the employees who have not showed up in any circulation history of documents. List the employee's name.",
"output": "SELECT employee_name FROM Employees EXCEPT SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id"
} |
### INSTRUCTION
Who was the opponent in the game played after Week 4 on October 15, 2000?
### INPUT
CREATE TABLE table_name_37 (opponent VARCHAR, week VARCHAR, date VARCHAR)
### OUTPUT
SELECT opponent FROM table_name_37 WHERE week > 4 AND date = "october 15, 2000" | {
"input": "CREATE TABLE table_name_37 (opponent VARCHAR, week VARCHAR, date VARCHAR)",
"instruction": "Who was the opponent in the game played after Week 4 on October 15, 2000?",
"output": "SELECT opponent FROM table_name_37 WHERE week > 4 AND date = \"october 15, 2000\""
} |
### INSTRUCTION
What is the number of clubs when Dalian Shide won and Sichuan Quanxing won 4th?
### INPUT
CREATE TABLE table_name_35 (number_of_clubs INTEGER, winners VARCHAR, fourth_placed VARCHAR)
### OUTPUT
SELECT AVG(number_of_clubs) FROM table_name_35 WHERE winners = "dalian shide" AND fourth_placed = "sichuan quanxing" | {
"input": "CREATE TABLE table_name_35 (number_of_clubs INTEGER, winners VARCHAR, fourth_placed VARCHAR)",
"instruction": "What is the number of clubs when Dalian Shide won and Sichuan Quanxing won 4th?",
"output": "SELECT AVG(number_of_clubs) FROM table_name_35 WHERE winners = \"dalian shide\" AND fourth_placed = \"sichuan quanxing\""
} |
### INSTRUCTION
Which Part number(s) has a L3 cache of 8 mb and a sSpec number of sr0pl(e1)?
### INPUT
CREATE TABLE table_name_71 (part_number_s_ VARCHAR, l3_cache VARCHAR, sspec_number VARCHAR)
### OUTPUT
SELECT part_number_s_ FROM table_name_71 WHERE l3_cache = "8 mb" AND sspec_number = "sr0pl(e1)" | {
"input": "CREATE TABLE table_name_71 (part_number_s_ VARCHAR, l3_cache VARCHAR, sspec_number VARCHAR)",
"instruction": "Which Part number(s) has a L3 cache of 8 mb and a sSpec number of sr0pl(e1)?",
"output": "SELECT part_number_s_ FROM table_name_71 WHERE l3_cache = \"8 mb\" AND sspec_number = \"sr0pl(e1)\""
} |
### INSTRUCTION
Show the fleet series of the aircrafts flied by pilots younger than 34
### INPUT
CREATE TABLE pilot_record (Aircraft_ID VARCHAR, Pilot_ID VARCHAR); CREATE TABLE pilot (Pilot_ID VARCHAR, Age INTEGER); CREATE TABLE aircraft (Fleet_Series VARCHAR, Aircraft_ID VARCHAR)
### OUTPUT
SELECT T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID = T3.Pilot_ID WHERE T3.Age < 34 | {
"input": "CREATE TABLE pilot_record (Aircraft_ID VARCHAR, Pilot_ID VARCHAR); CREATE TABLE pilot (Pilot_ID VARCHAR, Age INTEGER); CREATE TABLE aircraft (Fleet_Series VARCHAR, Aircraft_ID VARCHAR)",
"instruction": "Show the fleet series of the aircrafts flied by pilots younger than 34",
"output": "SELECT T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID = T3.Pilot_ID WHERE T3.Age < 34"
} |
### INSTRUCTION
How many resorts have 118 runs?
### INPUT
CREATE TABLE table_25762852_1 (name VARCHAR, runs VARCHAR)
### OUTPUT
SELECT COUNT(name) FROM table_25762852_1 WHERE runs = "118" | {
"input": "CREATE TABLE table_25762852_1 (name VARCHAR, runs VARCHAR)",
"instruction": "How many resorts have 118 runs?",
"output": "SELECT COUNT(name) FROM table_25762852_1 WHERE runs = \"118\""
} |
### INSTRUCTION
Which episode was directed by Bob Anderson with a production code of KABF16 and a season before than 25?
### INPUT
CREATE TABLE table_name_16 (episode VARCHAR, production_code VARCHAR, season VARCHAR, directed_by VARCHAR)
### OUTPUT
SELECT episode FROM table_name_16 WHERE season < 25 AND directed_by = "bob anderson" AND production_code = "kabf16" | {
"input": "CREATE TABLE table_name_16 (episode VARCHAR, production_code VARCHAR, season VARCHAR, directed_by VARCHAR)",
"instruction": "Which episode was directed by Bob Anderson with a production code of KABF16 and a season before than 25?",
"output": "SELECT episode FROM table_name_16 WHERE season < 25 AND directed_by = \"bob anderson\" AND production_code = \"kabf16\""
} |
### INSTRUCTION
Which Team has a Winner of craig lowndes, and a Circuit of phillip island grand prix circuit?
### INPUT
CREATE TABLE table_name_69 (team VARCHAR, winner VARCHAR, circuit VARCHAR)
### OUTPUT
SELECT team FROM table_name_69 WHERE winner = "craig lowndes" AND circuit = "phillip island grand prix circuit" | {
"input": "CREATE TABLE table_name_69 (team VARCHAR, winner VARCHAR, circuit VARCHAR)",
"instruction": "Which Team has a Winner of craig lowndes, and a Circuit of phillip island grand prix circuit?",
"output": "SELECT team FROM table_name_69 WHERE winner = \"craig lowndes\" AND circuit = \"phillip island grand prix circuit\""
} |
### INSTRUCTION
What is the average number of votes of representatives from party "Republican"?
### INPUT
CREATE TABLE election (Votes INTEGER, Representative_ID VARCHAR); CREATE TABLE representative (Representative_ID VARCHAR, Party VARCHAR)
### OUTPUT
SELECT AVG(T1.Votes) FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID WHERE T2.Party = "Republican" | {
"input": "CREATE TABLE election (Votes INTEGER, Representative_ID VARCHAR); CREATE TABLE representative (Representative_ID VARCHAR, Party VARCHAR)",
"instruction": "What is the average number of votes of representatives from party \"Republican\"?",
"output": "SELECT AVG(T1.Votes) FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID WHERE T2.Party = \"Republican\""
} |
### INSTRUCTION
What race did the team Mi-Jack Conquest racing win with a pole position of andreas wirth?
### INPUT
CREATE TABLE table_name_16 (race_name VARCHAR, winning_team VARCHAR, pole_position VARCHAR)
### OUTPUT
SELECT race_name FROM table_name_16 WHERE winning_team = "mi-jack conquest racing" AND pole_position = "andreas wirth" | {
"input": "CREATE TABLE table_name_16 (race_name VARCHAR, winning_team VARCHAR, pole_position VARCHAR)",
"instruction": "What race did the team Mi-Jack Conquest racing win with a pole position of andreas wirth?",
"output": "SELECT race_name FROM table_name_16 WHERE winning_team = \"mi-jack conquest racing\" AND pole_position = \"andreas wirth\""
} |
### INSTRUCTION
What year has Stacy as the category and award of Best Reality Star in Social Media?
### INPUT
CREATE TABLE table_name_10 (year INTEGER, category VARCHAR, awards VARCHAR)
### OUTPUT
SELECT MIN(year) FROM table_name_10 WHERE category = "stacy" AND awards = "best reality star in social media" | {
"input": "CREATE TABLE table_name_10 (year INTEGER, category VARCHAR, awards VARCHAR)",
"instruction": "What year has Stacy as the category and award of Best Reality Star in Social Media?",
"output": "SELECT MIN(year) FROM table_name_10 WHERE category = \"stacy\" AND awards = \"best reality star in social media\""
} |
### INSTRUCTION
Which venue does Fitzroy play as an away team?
### INPUT
CREATE TABLE table_name_57 (venue VARCHAR, away_team VARCHAR)
### OUTPUT
SELECT venue FROM table_name_57 WHERE away_team = "fitzroy" | {
"input": "CREATE TABLE table_name_57 (venue VARCHAR, away_team VARCHAR)",
"instruction": "Which venue does Fitzroy play as an away team?",
"output": "SELECT venue FROM table_name_57 WHERE away_team = \"fitzroy\""
} |
### INSTRUCTION
Which Winner has a Score of 1 – 0, and a Season of 2011–12?
### INPUT
CREATE TABLE table_name_30 (winner VARCHAR, score VARCHAR, season VARCHAR)
### OUTPUT
SELECT winner FROM table_name_30 WHERE score = "1 – 0" AND season = "2011–12" | {
"input": "CREATE TABLE table_name_30 (winner VARCHAR, score VARCHAR, season VARCHAR)",
"instruction": "Which Winner has a Score of 1 – 0, and a Season of 2011–12?",
"output": "SELECT winner FROM table_name_30 WHERE score = \"1 – 0\" AND season = \"2011–12\""
} |
### INSTRUCTION
Find the names of artists that do not have any albums.
### INPUT
CREATE TABLE ARTIST (Name VARCHAR); CREATE TABLE ALBUM (ArtistId VARCHAR); CREATE TABLE ARTIST (Name VARCHAR, ArtistId VARCHAR)
### OUTPUT
SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId | {
"input": "CREATE TABLE ARTIST (Name VARCHAR); CREATE TABLE ALBUM (ArtistId VARCHAR); CREATE TABLE ARTIST (Name VARCHAR, ArtistId VARCHAR)",
"instruction": "Find the names of artists that do not have any albums.",
"output": "SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId"
} |
### INSTRUCTION
What was the school type for Los Angeles, California?
### INPUT
CREATE TABLE table_name_51 (type VARCHAR, location VARCHAR)
### OUTPUT
SELECT type FROM table_name_51 WHERE location = "los angeles, california" | {
"input": "CREATE TABLE table_name_51 (type VARCHAR, location VARCHAR)",
"instruction": "What was the school type for Los Angeles, California?",
"output": "SELECT type FROM table_name_51 WHERE location = \"los angeles, california\""
} |
### INSTRUCTION
Name the averae top 25 with events less than 0
### INPUT
CREATE TABLE table_name_31 (top_25 INTEGER, events INTEGER)
### OUTPUT
SELECT AVG(top_25) FROM table_name_31 WHERE events < 0 | {
"input": "CREATE TABLE table_name_31 (top_25 INTEGER, events INTEGER)",
"instruction": "Name the averae top 25 with events less than 0",
"output": "SELECT AVG(top_25) FROM table_name_31 WHERE events < 0"
} |
### INSTRUCTION
What is American, when British is "ɪ, ə", and when Initial-Syllable Open/Semi-Open Unstressed Vowels is "æ /ɨ/"?
### INPUT
CREATE TABLE table_name_23 (american VARCHAR, british VARCHAR, initial_syllable_open_semi_open_unstressed_vowels VARCHAR)
### OUTPUT
SELECT american FROM table_name_23 WHERE british = "ɪ, ə" AND initial_syllable_open_semi_open_unstressed_vowels = "æ /ɨ/" | {
"input": "CREATE TABLE table_name_23 (american VARCHAR, british VARCHAR, initial_syllable_open_semi_open_unstressed_vowels VARCHAR)",
"instruction": "What is American, when British is \"ɪ, ə\", and when Initial-Syllable Open/Semi-Open Unstressed Vowels is \"æ /ɨ/\"?",
"output": "SELECT american FROM table_name_23 WHERE british = \"ɪ, ə\" AND initial_syllable_open_semi_open_unstressed_vowels = \"æ /ɨ/\""
} |
### INSTRUCTION
What was the score of the 2014 World Cup Qualification?
### INPUT
CREATE TABLE table_name_91 (score VARCHAR, competition VARCHAR)
### OUTPUT
SELECT score FROM table_name_91 WHERE competition = "2014 world cup qualification" | {
"input": "CREATE TABLE table_name_91 (score VARCHAR, competition VARCHAR)",
"instruction": "What was the score of the 2014 World Cup Qualification?",
"output": "SELECT score FROM table_name_91 WHERE competition = \"2014 world cup qualification\""
} |
### INSTRUCTION
What is the total Tonnage GRT with a Type of cargo ship, and a Nationality of norway?
### INPUT
CREATE TABLE table_name_23 (tonnage_grt INTEGER, type VARCHAR, nationality VARCHAR)
### OUTPUT
SELECT SUM(tonnage_grt) FROM table_name_23 WHERE type = "cargo ship" AND nationality = "norway" | {
"input": "CREATE TABLE table_name_23 (tonnage_grt INTEGER, type VARCHAR, nationality VARCHAR)",
"instruction": "What is the total Tonnage GRT with a Type of cargo ship, and a Nationality of norway?",
"output": "SELECT SUM(tonnage_grt) FROM table_name_23 WHERE type = \"cargo ship\" AND nationality = \"norway\""
} |
### INSTRUCTION
What is the Placement when the Votes are fewer than 208, and when the Candidate is Jordan Turner?
### INPUT
CREATE TABLE table_name_58 (placement VARCHAR, votes VARCHAR, candidate VARCHAR)
### OUTPUT
SELECT placement FROM table_name_58 WHERE votes < 208 AND candidate = "jordan turner" | {
"input": "CREATE TABLE table_name_58 (placement VARCHAR, votes VARCHAR, candidate VARCHAR)",
"instruction": "What is the Placement when the Votes are fewer than 208, and when the Candidate is Jordan Turner?",
"output": "SELECT placement FROM table_name_58 WHERE votes < 208 AND candidate = \"jordan turner\""
} |
### INSTRUCTION
Name the standard yarn weight system for 9 wpi
### INPUT
CREATE TABLE table_20297668_1 (standard_yarn_weight_system VARCHAR, wraps_per_inch__wpi_ VARCHAR)
### OUTPUT
SELECT standard_yarn_weight_system FROM table_20297668_1 WHERE wraps_per_inch__wpi_ = "9 wpi" | {
"input": "CREATE TABLE table_20297668_1 (standard_yarn_weight_system VARCHAR, wraps_per_inch__wpi_ VARCHAR)",
"instruction": "Name the standard yarn weight system for 9 wpi",
"output": "SELECT standard_yarn_weight_system FROM table_20297668_1 WHERE wraps_per_inch__wpi_ = \"9 wpi\""
} |
### INSTRUCTION
Which junctions have "replaced by bsi-35" listed in their remarks section?
### INPUT
CREATE TABLE table_11336756_6 (junctions VARCHAR, remarks VARCHAR)
### OUTPUT
SELECT junctions FROM table_11336756_6 WHERE remarks = "Replaced by BSI-35" | {
"input": "CREATE TABLE table_11336756_6 (junctions VARCHAR, remarks VARCHAR)",
"instruction": "Which junctions have \"replaced by bsi-35\" listed in their remarks section?",
"output": "SELECT junctions FROM table_11336756_6 WHERE remarks = \"Replaced by BSI-35\""
} |
### INSTRUCTION
What is the id of the instructor who advises of all students from History department?
### INPUT
CREATE TABLE advisor (s_id VARCHAR); CREATE TABLE student (id VARCHAR, dept_name VARCHAR)
### OUTPUT
SELECT i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id = T2.id WHERE T2.dept_name = 'History' | {
"input": "CREATE TABLE advisor (s_id VARCHAR); CREATE TABLE student (id VARCHAR, dept_name VARCHAR)",
"instruction": "What is the id of the instructor who advises of all students from History department?",
"output": "SELECT i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id = T2.id WHERE T2.dept_name = 'History'"
} |
### INSTRUCTION
Name the reidsville for enrollment
### INPUT
CREATE TABLE table_25330991_3 (reidsville VARCHAR, information VARCHAR)
### OUTPUT
SELECT reidsville FROM table_25330991_3 WHERE information = "Enrollment" | {
"input": "CREATE TABLE table_25330991_3 (reidsville VARCHAR, information VARCHAR)",
"instruction": "Name the reidsville for enrollment",
"output": "SELECT reidsville FROM table_25330991_3 WHERE information = \"Enrollment\""
} |
### INSTRUCTION
When has a Note of 45/48 renumbered 15/16; two sold to sl&ncr?
### INPUT
CREATE TABLE table_name_46 (date_made VARCHAR, notes VARCHAR)
### OUTPUT
SELECT date_made FROM table_name_46 WHERE notes = "45/48 renumbered 15/16; two sold to sl&ncr" | {
"input": "CREATE TABLE table_name_46 (date_made VARCHAR, notes VARCHAR)",
"instruction": "When has a Note of 45/48 renumbered 15/16; two sold to sl&ncr?",
"output": "SELECT date_made FROM table_name_46 WHERE notes = \"45/48 renumbered 15/16; two sold to sl&ncr\""
} |
### INSTRUCTION
How many accelerators are not compatible with the browsers listed ?
### INPUT
CREATE TABLE accelerator_compatible_browser (id VARCHAR, accelerator_id VARCHAR); CREATE TABLE web_client_accelerator (id VARCHAR, accelerator_id VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM web_client_accelerator WHERE NOT id IN (SELECT accelerator_id FROM accelerator_compatible_browser) | {
"input": "CREATE TABLE accelerator_compatible_browser (id VARCHAR, accelerator_id VARCHAR); CREATE TABLE web_client_accelerator (id VARCHAR, accelerator_id VARCHAR)",
"instruction": "How many accelerators are not compatible with the browsers listed ?",
"output": "SELECT COUNT(*) FROM web_client_accelerator WHERE NOT id IN (SELECT accelerator_id FROM accelerator_compatible_browser)"
} |
### INSTRUCTION
How many ties did the Montreal Victorias have with a GA of less than 24?
### INPUT
CREATE TABLE table_name_57 (ties INTEGER, team VARCHAR, goals_against VARCHAR)
### OUTPUT
SELECT MAX(ties) FROM table_name_57 WHERE team = "montreal victorias" AND goals_against < 24 | {
"input": "CREATE TABLE table_name_57 (ties INTEGER, team VARCHAR, goals_against VARCHAR)",
"instruction": "How many ties did the Montreal Victorias have with a GA of less than 24?",
"output": "SELECT MAX(ties) FROM table_name_57 WHERE team = \"montreal victorias\" AND goals_against < 24"
} |
### INSTRUCTION
Who lost at schaefer stadium when the Winner was new england patriots, and a Date of october 18?
### INPUT
CREATE TABLE table_name_89 (loser VARCHAR, date VARCHAR, location VARCHAR, winner VARCHAR)
### OUTPUT
SELECT loser FROM table_name_89 WHERE location = "schaefer stadium" AND winner = "new england patriots" AND date = "october 18" | {
"input": "CREATE TABLE table_name_89 (loser VARCHAR, date VARCHAR, location VARCHAR, winner VARCHAR)",
"instruction": "Who lost at schaefer stadium when the Winner was new england patriots, and a Date of october 18?",
"output": "SELECT loser FROM table_name_89 WHERE location = \"schaefer stadium\" AND winner = \"new england patriots\" AND date = \"october 18\""
} |
### INSTRUCTION
On what Surface was the game with Partner David Martin played Scoring 4–6, 6–7 (4-7)?
### INPUT
CREATE TABLE table_name_24 (surface VARCHAR, partner VARCHAR, score VARCHAR)
### OUTPUT
SELECT surface FROM table_name_24 WHERE partner = "david martin" AND score = "4–6, 6–7 (4-7)" | {
"input": "CREATE TABLE table_name_24 (surface VARCHAR, partner VARCHAR, score VARCHAR)",
"instruction": "On what Surface was the game with Partner David Martin played Scoring 4–6, 6–7 (4-7)?",
"output": "SELECT surface FROM table_name_24 WHERE partner = \"david martin\" AND score = \"4–6, 6–7 (4-7)\""
} |
### INSTRUCTION
What is the number of Ashmolean with 14s Harrison, and image less than 542?
### INPUT
CREATE TABLE table_name_40 (ashmolean VARCHAR, harrison VARCHAR, image VARCHAR)
### OUTPUT
SELECT COUNT(ashmolean) FROM table_name_40 WHERE harrison = "14s" AND image < 542 | {
"input": "CREATE TABLE table_name_40 (ashmolean VARCHAR, harrison VARCHAR, image VARCHAR)",
"instruction": "What is the number of Ashmolean with 14s Harrison, and image less than 542?",
"output": "SELECT COUNT(ashmolean) FROM table_name_40 WHERE harrison = \"14s\" AND image < 542"
} |
### INSTRUCTION
What is the date of birth of the player that has 11 caps and plays the prop position?
### INPUT
CREATE TABLE table_name_41 (date_of_birth__age_ VARCHAR, caps VARCHAR, position VARCHAR)
### OUTPUT
SELECT date_of_birth__age_ FROM table_name_41 WHERE caps = 11 AND position = "prop" | {
"input": "CREATE TABLE table_name_41 (date_of_birth__age_ VARCHAR, caps VARCHAR, position VARCHAR)",
"instruction": "What is the date of birth of the player that has 11 caps and plays the prop position?",
"output": "SELECT date_of_birth__age_ FROM table_name_41 WHERE caps = 11 AND position = \"prop\""
} |
### INSTRUCTION
Name the Nationality / Opponent of rosario?
### INPUT
CREATE TABLE table_name_64 (competition VARCHAR, nationality___opponent VARCHAR)
### OUTPUT
SELECT competition FROM table_name_64 WHERE nationality___opponent = "rosario" | {
"input": "CREATE TABLE table_name_64 (competition VARCHAR, nationality___opponent VARCHAR)",
"instruction": "Name the Nationality / Opponent of rosario?",
"output": "SELECT competition FROM table_name_64 WHERE nationality___opponent = \"rosario\""
} |
### INSTRUCTION
Which Record has the Res of win with the Event of extreme fighting 1?
### INPUT
CREATE TABLE table_name_30 (record VARCHAR, res VARCHAR, event VARCHAR)
### OUTPUT
SELECT record FROM table_name_30 WHERE res = "win" AND event = "extreme fighting 1" | {
"input": "CREATE TABLE table_name_30 (record VARCHAR, res VARCHAR, event VARCHAR)",
"instruction": "Which Record has the Res of win with the Event of extreme fighting 1?",
"output": "SELECT record FROM table_name_30 WHERE res = \"win\" AND event = \"extreme fighting 1\""
} |
### INSTRUCTION
How many mystic arte have hisui (jadeite) hearts 1 as the character?
### INPUT
CREATE TABLE table_28178595_2 (mystic_arte VARCHAR, character VARCHAR)
### OUTPUT
SELECT COUNT(mystic_arte) FROM table_28178595_2 WHERE character = "Hisui (Jadeite) Hearts 1" | {
"input": "CREATE TABLE table_28178595_2 (mystic_arte VARCHAR, character VARCHAR)",
"instruction": "How many mystic arte have hisui (jadeite) hearts 1 as the character?",
"output": "SELECT COUNT(mystic_arte) FROM table_28178595_2 WHERE character = \"Hisui (Jadeite) Hearts 1\""
} |
### INSTRUCTION
What year did Elf Team Tyrrell have 39 points and a Tyrrell 007 Chassis?
### INPUT
CREATE TABLE table_name_75 (year INTEGER, chassis VARCHAR, entrant VARCHAR, points VARCHAR)
### OUTPUT
SELECT SUM(year) FROM table_name_75 WHERE entrant = "elf team tyrrell" AND points = "39" AND chassis = "tyrrell 007" | {
"input": "CREATE TABLE table_name_75 (year INTEGER, chassis VARCHAR, entrant VARCHAR, points VARCHAR)",
"instruction": "What year did Elf Team Tyrrell have 39 points and a Tyrrell 007 Chassis?",
"output": "SELECT SUM(year) FROM table_name_75 WHERE entrant = \"elf team tyrrell\" AND points = \"39\" AND chassis = \"tyrrell 007\""
} |
### INSTRUCTION
What are the create dates, states, and phone numbers of the votes that were for the contestant named 'Tabatha Gehling'?
### INPUT
CREATE TABLE contestants (contestant_number VARCHAR, contestant_name VARCHAR); CREATE TABLE votes (created VARCHAR, state VARCHAR, phone_number VARCHAR, contestant_number VARCHAR)
### OUTPUT
SELECT T2.created, T2.state, T2.phone_number FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number WHERE T1.contestant_name = 'Tabatha Gehling' | {
"input": "CREATE TABLE contestants (contestant_number VARCHAR, contestant_name VARCHAR); CREATE TABLE votes (created VARCHAR, state VARCHAR, phone_number VARCHAR, contestant_number VARCHAR)",
"instruction": "What are the create dates, states, and phone numbers of the votes that were for the contestant named 'Tabatha Gehling'?",
"output": "SELECT T2.created, T2.state, T2.phone_number FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number WHERE T1.contestant_name = 'Tabatha Gehling'"
} |
### INSTRUCTION
what score has the opponent of tigers and a record of 78-64?
### INPUT
CREATE TABLE table_name_75 (score VARCHAR, opponent VARCHAR, record VARCHAR)
### OUTPUT
SELECT score FROM table_name_75 WHERE opponent = "tigers" AND record = "78-64" | {
"input": "CREATE TABLE table_name_75 (score VARCHAR, opponent VARCHAR, record VARCHAR)",
"instruction": "what score has the opponent of tigers and a record of 78-64?",
"output": "SELECT score FROM table_name_75 WHERE opponent = \"tigers\" AND record = \"78-64\""
} |
### INSTRUCTION
What was the last year MCA had a Release?
### INPUT
CREATE TABLE table_name_40 (year_of_release INTEGER, label VARCHAR)
### OUTPUT
SELECT MAX(year_of_release) FROM table_name_40 WHERE label = "mca" | {
"input": "CREATE TABLE table_name_40 (year_of_release INTEGER, label VARCHAR)",
"instruction": "What was the last year MCA had a Release?",
"output": "SELECT MAX(year_of_release) FROM table_name_40 WHERE label = \"mca\""
} |
### INSTRUCTION
Show the account name, id and the number of transactions for each account.
### INPUT
CREATE TABLE Financial_transactions (account_id VARCHAR); CREATE TABLE Accounts (account_name VARCHAR, account_id VARCHAR)
### OUTPUT
SELECT T2.account_name, T1.account_id, COUNT(*) FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id GROUP BY T1.account_id | {
"input": "CREATE TABLE Financial_transactions (account_id VARCHAR); CREATE TABLE Accounts (account_name VARCHAR, account_id VARCHAR)",
"instruction": "Show the account name, id and the number of transactions for each account.",
"output": "SELECT T2.account_name, T1.account_id, COUNT(*) FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id GROUP BY T1.account_id"
} |
### INSTRUCTION
What's the margin of victory during the Pocono Northeast Classic?
### INPUT
CREATE TABLE table_name_55 (margin_of_victory VARCHAR, tournament VARCHAR)
### OUTPUT
SELECT margin_of_victory FROM table_name_55 WHERE tournament = "pocono northeast classic" | {
"input": "CREATE TABLE table_name_55 (margin_of_victory VARCHAR, tournament VARCHAR)",
"instruction": "What's the margin of victory during the Pocono Northeast Classic?",
"output": "SELECT margin_of_victory FROM table_name_55 WHERE tournament = \"pocono northeast classic\""
} |
### INSTRUCTION
How many games for keith j. miller, who debuted after 1974 with less than 1 goal?
### INPUT
CREATE TABLE table_name_28 (games INTEGER, debut_year VARCHAR, goals VARCHAR, player VARCHAR)
### OUTPUT
SELECT AVG(games) FROM table_name_28 WHERE goals < 1 AND player = "keith j. miller" AND debut_year > 1974 | {
"input": "CREATE TABLE table_name_28 (games INTEGER, debut_year VARCHAR, goals VARCHAR, player VARCHAR)",
"instruction": "How many games for keith j. miller, who debuted after 1974 with less than 1 goal?",
"output": "SELECT AVG(games) FROM table_name_28 WHERE goals < 1 AND player = \"keith j. miller\" AND debut_year > 1974"
} |
### INSTRUCTION
What is the lowest interview for a contestant from North Carolina with a swimsuit larger than 9.021, an average smaller than 9.513, and an evening gown larger than 9.5?
### INPUT
CREATE TABLE table_name_60 (interview INTEGER, evening_gown VARCHAR, state VARCHAR, swimsuit VARCHAR, average VARCHAR)
### OUTPUT
SELECT MIN(interview) FROM table_name_60 WHERE swimsuit > 9.021 AND average < 9.513 AND state = "north carolina" AND evening_gown > 9.5 | {
"input": "CREATE TABLE table_name_60 (interview INTEGER, evening_gown VARCHAR, state VARCHAR, swimsuit VARCHAR, average VARCHAR)",
"instruction": "What is the lowest interview for a contestant from North Carolina with a swimsuit larger than 9.021, an average smaller than 9.513, and an evening gown larger than 9.5?",
"output": "SELECT MIN(interview) FROM table_name_60 WHERE swimsuit > 9.021 AND average < 9.513 AND state = \"north carolina\" AND evening_gown > 9.5"
} |
### INSTRUCTION
What is the smallest frequency (kHz) that is in the location of Longview?
### INPUT
CREATE TABLE table_name_61 (frequency__khz_ INTEGER, licensed_location VARCHAR)
### OUTPUT
SELECT MIN(frequency__khz_) FROM table_name_61 WHERE licensed_location = "longview" | {
"input": "CREATE TABLE table_name_61 (frequency__khz_ INTEGER, licensed_location VARCHAR)",
"instruction": "What is the smallest frequency (kHz) that is in the location of Longview?",
"output": "SELECT MIN(frequency__khz_) FROM table_name_61 WHERE licensed_location = \"longview\""
} |
### INSTRUCTION
Which park had most attendances in 2008?
### INPUT
CREATE TABLE park (park_name VARCHAR, park_id VARCHAR); CREATE TABLE home_game (park_id VARCHAR, year VARCHAR, attendance VARCHAR)
### OUTPUT
SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1 | {
"input": "CREATE TABLE park (park_name VARCHAR, park_id VARCHAR); CREATE TABLE home_game (park_id VARCHAR, year VARCHAR, attendance VARCHAR)",
"instruction": "Which park had most attendances in 2008?",
"output": "SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1"
} |
### INSTRUCTION
Find the average age of students who are living in the dorm with the largest capacity.
### INPUT
CREATE TABLE dorm (student_capacity INTEGER); CREATE TABLE student (age INTEGER, stuid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE dorm (dormid VARCHAR, student_capacity INTEGER)
### OUTPUT
SELECT AVG(T1.age) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.student_capacity = (SELECT MAX(student_capacity) FROM dorm) | {
"input": "CREATE TABLE dorm (student_capacity INTEGER); CREATE TABLE student (age INTEGER, stuid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE dorm (dormid VARCHAR, student_capacity INTEGER)",
"instruction": "Find the average age of students who are living in the dorm with the largest capacity.",
"output": "SELECT AVG(T1.age) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.student_capacity = (SELECT MAX(student_capacity) FROM dorm)"
} |
### INSTRUCTION
What score has Leicestershire as the opponent after 1906?
### INPUT
CREATE TABLE table_name_58 (score VARCHAR, opposition VARCHAR, year VARCHAR)
### OUTPUT
SELECT score FROM table_name_58 WHERE opposition = "leicestershire" AND year > 1906 | {
"input": "CREATE TABLE table_name_58 (score VARCHAR, opposition VARCHAR, year VARCHAR)",
"instruction": "What score has Leicestershire as the opponent after 1906?",
"output": "SELECT score FROM table_name_58 WHERE opposition = \"leicestershire\" AND year > 1906"
} |
### INSTRUCTION
What is the sum of the round of Fred Smoot, who has a pick number greater than 14?
### INPUT
CREATE TABLE table_name_39 (round INTEGER, name VARCHAR, pick VARCHAR)
### OUTPUT
SELECT SUM(round) FROM table_name_39 WHERE name = "fred smoot" AND pick > 14 | {
"input": "CREATE TABLE table_name_39 (round INTEGER, name VARCHAR, pick VARCHAR)",
"instruction": "What is the sum of the round of Fred Smoot, who has a pick number greater than 14?",
"output": "SELECT SUM(round) FROM table_name_39 WHERE name = \"fred smoot\" AND pick > 14"
} |
### INSTRUCTION
what is the location when the circuit is lowood circuit and the race is lowood trophy?
### INPUT
CREATE TABLE table_name_47 (location VARCHAR, circuit VARCHAR, race VARCHAR)
### OUTPUT
SELECT location FROM table_name_47 WHERE circuit = "lowood circuit" AND race = "lowood trophy" | {
"input": "CREATE TABLE table_name_47 (location VARCHAR, circuit VARCHAR, race VARCHAR)",
"instruction": "what is the location when the circuit is lowood circuit and the race is lowood trophy?",
"output": "SELECT location FROM table_name_47 WHERE circuit = \"lowood circuit\" AND race = \"lowood trophy\""
} |
### INSTRUCTION
What is the Film title used in nomination of Mig Og Charly?
### INPUT
CREATE TABLE table_name_10 (film_title_used_in_nomination VARCHAR, original_name VARCHAR)
### OUTPUT
SELECT film_title_used_in_nomination FROM table_name_10 WHERE original_name = "mig og charly" | {
"input": "CREATE TABLE table_name_10 (film_title_used_in_nomination VARCHAR, original_name VARCHAR)",
"instruction": "What is the Film title used in nomination of Mig Og Charly?",
"output": "SELECT film_title_used_in_nomination FROM table_name_10 WHERE original_name = \"mig og charly\""
} |
### INSTRUCTION
what name has an appointed year of 2009 and years until mandatory retirement of 13 years?
### INPUT
CREATE TABLE table_name_40 (name VARCHAR, year_appointed VARCHAR, years_until_mandatory_retirement VARCHAR)
### OUTPUT
SELECT name FROM table_name_40 WHERE year_appointed = 2009 AND years_until_mandatory_retirement = "13 years" | {
"input": "CREATE TABLE table_name_40 (name VARCHAR, year_appointed VARCHAR, years_until_mandatory_retirement VARCHAR)",
"instruction": "what name has an appointed year of 2009 and years until mandatory retirement of 13 years?",
"output": "SELECT name FROM table_name_40 WHERE year_appointed = 2009 AND years_until_mandatory_retirement = \"13 years\""
} |
### INSTRUCTION
What's the address of the union bank of California tower?
### INPUT
CREATE TABLE table_name_27 (street_address VARCHAR, name VARCHAR)
### OUTPUT
SELECT street_address FROM table_name_27 WHERE name = "union bank of california tower" | {
"input": "CREATE TABLE table_name_27 (street_address VARCHAR, name VARCHAR)",
"instruction": "What's the address of the union bank of California tower?",
"output": "SELECT street_address FROM table_name_27 WHERE name = \"union bank of california tower\""
} |
### INSTRUCTION
Which Scottish Cup has a League smaller than 561, Years of 1989–1995 1997–2001, and Europe smaller than 11?
### INPUT
CREATE TABLE table_name_22 (scottish_cup VARCHAR, europe VARCHAR, league VARCHAR, years VARCHAR)
### OUTPUT
SELECT COUNT(scottish_cup) FROM table_name_22 WHERE league < 561 AND years = "1989–1995 1997–2001" AND europe < 11 | {
"input": "CREATE TABLE table_name_22 (scottish_cup VARCHAR, europe VARCHAR, league VARCHAR, years VARCHAR)",
"instruction": "Which Scottish Cup has a League smaller than 561, Years of 1989–1995 1997–2001, and Europe smaller than 11?",
"output": "SELECT COUNT(scottish_cup) FROM table_name_22 WHERE league < 561 AND years = \"1989–1995 1997–2001\" AND europe < 11"
} |
### INSTRUCTION
Which Home has a Visitor of ny rangers, and a Series of flyers win 4–3?
### INPUT
CREATE TABLE table_name_42 (home VARCHAR, visitor VARCHAR, series VARCHAR)
### OUTPUT
SELECT home FROM table_name_42 WHERE visitor = "ny rangers" AND series = "flyers win 4–3" | {
"input": "CREATE TABLE table_name_42 (home VARCHAR, visitor VARCHAR, series VARCHAR)",
"instruction": "Which Home has a Visitor of ny rangers, and a Series of flyers win 4–3?",
"output": "SELECT home FROM table_name_42 WHERE visitor = \"ny rangers\" AND series = \"flyers win 4–3\""
} |
### INSTRUCTION
What females have males of 1 234?
### INPUT
CREATE TABLE table_name_21 (females VARCHAR, males VARCHAR)
### OUTPUT
SELECT females FROM table_name_21 WHERE males = "1 234" | {
"input": "CREATE TABLE table_name_21 (females VARCHAR, males VARCHAR)",
"instruction": "What females have males of 1 234?",
"output": "SELECT females FROM table_name_21 WHERE males = \"1 234\""
} |
### INSTRUCTION
Which attendance number was taken in a week less than 16 when the Washington Redskins were the opponents?
### INPUT
CREATE TABLE table_name_39 (attendance VARCHAR, week VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT attendance FROM table_name_39 WHERE week < 16 AND opponent = "washington redskins" | {
"input": "CREATE TABLE table_name_39 (attendance VARCHAR, week VARCHAR, opponent VARCHAR)",
"instruction": "Which attendance number was taken in a week less than 16 when the Washington Redskins were the opponents?",
"output": "SELECT attendance FROM table_name_39 WHERE week < 16 AND opponent = \"washington redskins\""
} |
### INSTRUCTION
Who was the republican candidate in 2013 when Staten Island was 451?
### INPUT
CREATE TABLE table_1108394_6 (staten_island VARCHAR)
### OUTPUT
SELECT 2013 AS _republican_primary FROM table_1108394_6 WHERE staten_island = "451" | {
"input": "CREATE TABLE table_1108394_6 (staten_island VARCHAR)",
"instruction": "Who was the republican candidate in 2013 when Staten Island was 451?",
"output": "SELECT 2013 AS _republican_primary FROM table_1108394_6 WHERE staten_island = \"451\""
} |
### INSTRUCTION
what game had a score of 86-71
### INPUT
CREATE TABLE table_name_8 (attendance VARCHAR, record VARCHAR)
### OUTPUT
SELECT attendance FROM table_name_8 WHERE record = "86-71" | {
"input": "CREATE TABLE table_name_8 (attendance VARCHAR, record VARCHAR)",
"instruction": "what game had a score of 86-71",
"output": "SELECT attendance FROM table_name_8 WHERE record = \"86-71\""
} |
### INSTRUCTION
What was the women's singles were men's doubles were steen fladberg jens peter nierhoff?
### INPUT
CREATE TABLE table_12186309_1 (womens_singles VARCHAR, mens_doubles VARCHAR)
### OUTPUT
SELECT womens_singles FROM table_12186309_1 WHERE mens_doubles = "Steen Fladberg Jens Peter Nierhoff" | {
"input": "CREATE TABLE table_12186309_1 (womens_singles VARCHAR, mens_doubles VARCHAR)",
"instruction": "What was the women's singles were men's doubles were steen fladberg jens peter nierhoff?",
"output": "SELECT womens_singles FROM table_12186309_1 WHERE mens_doubles = \"Steen Fladberg Jens Peter Nierhoff\""
} |
### INSTRUCTION
Where is the Eastern Creek Raceway located?
### INPUT
CREATE TABLE table_name_19 (location___state VARCHAR, circuit VARCHAR)
### OUTPUT
SELECT location___state FROM table_name_19 WHERE circuit = "eastern creek raceway" | {
"input": "CREATE TABLE table_name_19 (location___state VARCHAR, circuit VARCHAR)",
"instruction": "Where is the Eastern Creek Raceway located?",
"output": "SELECT location___state FROM table_name_19 WHERE circuit = \"eastern creek raceway\""
} |
### INSTRUCTION
Who was the winning driver when pole position was jenson button, the fastest lap was michael schumacher and the car was ferrari?
### INPUT
CREATE TABLE table_name_13 (winning_driver VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR, constructor VARCHAR)
### OUTPUT
SELECT winning_driver FROM table_name_13 WHERE fastest_lap = "michael schumacher" AND constructor = "ferrari" AND pole_position = "jenson button" | {
"input": "CREATE TABLE table_name_13 (winning_driver VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR, constructor VARCHAR)",
"instruction": "Who was the winning driver when pole position was jenson button, the fastest lap was michael schumacher and the car was ferrari?",
"output": "SELECT winning_driver FROM table_name_13 WHERE fastest_lap = \"michael schumacher\" AND constructor = \"ferrari\" AND pole_position = \"jenson button\""
} |
### INSTRUCTION
What is the mean huc example code when the example name's lower snake, there are 6 digits, and less than 3 levels?
### INPUT
CREATE TABLE table_name_35 (example_code__huc_ INTEGER, level VARCHAR, example_name VARCHAR, digits VARCHAR)
### OUTPUT
SELECT AVG(example_code__huc_) FROM table_name_35 WHERE example_name = "lower snake" AND digits = 6 AND level < 3 | {
"input": "CREATE TABLE table_name_35 (example_code__huc_ INTEGER, level VARCHAR, example_name VARCHAR, digits VARCHAR)",
"instruction": "What is the mean huc example code when the example name's lower snake, there are 6 digits, and less than 3 levels?",
"output": "SELECT AVG(example_code__huc_) FROM table_name_35 WHERE example_name = \"lower snake\" AND digits = 6 AND level < 3"
} |
### INSTRUCTION
What is the lowest figure for her age when the year of marriage is before 1853, the number of children is less than 8, and the bride was Eliza Maria Partridge?
### INPUT
CREATE TABLE table_name_60 (her_age INTEGER, name VARCHAR, year_of_marriage VARCHAR, _number_of_children VARCHAR)
### OUTPUT
SELECT MIN(her_age) FROM table_name_60 WHERE year_of_marriage < 1853 AND _number_of_children < 8 AND name = "eliza maria partridge" | {
"input": "CREATE TABLE table_name_60 (her_age INTEGER, name VARCHAR, year_of_marriage VARCHAR, _number_of_children VARCHAR)",
"instruction": "What is the lowest figure for her age when the year of marriage is before 1853, the number of children is less than 8, and the bride was Eliza Maria Partridge?",
"output": "SELECT MIN(her_age) FROM table_name_60 WHERE year_of_marriage < 1853 AND _number_of_children < 8 AND name = \"eliza maria partridge\""
} |
### INSTRUCTION
What is the Termination of Mission with a Title of Ambassador Extraordinary and Plenipotentiary with a Representative of Reynold E. Carlson?
### INPUT
CREATE TABLE table_name_37 (termination_of_mission VARCHAR, title VARCHAR, representative VARCHAR)
### OUTPUT
SELECT termination_of_mission FROM table_name_37 WHERE title = "ambassador extraordinary and plenipotentiary" AND representative = "reynold e. carlson" | {
"input": "CREATE TABLE table_name_37 (termination_of_mission VARCHAR, title VARCHAR, representative VARCHAR)",
"instruction": "What is the Termination of Mission with a Title of Ambassador Extraordinary and Plenipotentiary with a Representative of Reynold E. Carlson?",
"output": "SELECT termination_of_mission FROM table_name_37 WHERE title = \"ambassador extraordinary and plenipotentiary\" AND representative = \"reynold e. carlson\""
} |
### INSTRUCTION
What was the result of the election with incumbent john lewis?
### INPUT
CREATE TABLE table_27487712_1 (result VARCHAR, incumbent VARCHAR)
### OUTPUT
SELECT result FROM table_27487712_1 WHERE incumbent = "John Lewis" | {
"input": "CREATE TABLE table_27487712_1 (result VARCHAR, incumbent VARCHAR)",
"instruction": "What was the result of the election with incumbent john lewis?",
"output": "SELECT result FROM table_27487712_1 WHERE incumbent = \"John Lewis\""
} |
### INSTRUCTION
What was the original title of the Bruno Barreto film in 1989
### INPUT
CREATE TABLE table_15277629_1 (original_title VARCHAR, director VARCHAR, year__ceremony_ VARCHAR)
### OUTPUT
SELECT original_title FROM table_15277629_1 WHERE director = "Bruno Barreto" AND year__ceremony_ = 1989 | {
"input": "CREATE TABLE table_15277629_1 (original_title VARCHAR, director VARCHAR, year__ceremony_ VARCHAR)",
"instruction": "What was the original title of the Bruno Barreto film in 1989",
"output": "SELECT original_title FROM table_15277629_1 WHERE director = \"Bruno Barreto\" AND year__ceremony_ = 1989"
} |
### INSTRUCTION
What score in the final has hard as the surface, and june 13, 2011 as the date?
### INPUT
CREATE TABLE table_name_57 (score_in_the_final VARCHAR, surface VARCHAR, date VARCHAR)
### OUTPUT
SELECT score_in_the_final FROM table_name_57 WHERE surface = "hard" AND date = "june 13, 2011" | {
"input": "CREATE TABLE table_name_57 (score_in_the_final VARCHAR, surface VARCHAR, date VARCHAR)",
"instruction": "What score in the final has hard as the surface, and june 13, 2011 as the date?",
"output": "SELECT score_in_the_final FROM table_name_57 WHERE surface = \"hard\" AND date = \"june 13, 2011\""
} |
### INSTRUCTION
Show the id and details for the investors who have the top 3 number of transactions.
### INPUT
CREATE TABLE TRANSACTIONS (investor_id VARCHAR); CREATE TABLE INVESTORS (Investor_details VARCHAR, investor_id VARCHAR)
### OUTPUT
SELECT T2.investor_id, T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 3 | {
"input": "CREATE TABLE TRANSACTIONS (investor_id VARCHAR); CREATE TABLE INVESTORS (Investor_details VARCHAR, investor_id VARCHAR)",
"instruction": "Show the id and details for the investors who have the top 3 number of transactions.",
"output": "SELECT T2.investor_id, T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 3"
} |
### INSTRUCTION
What was the first season for Syrianska FC
### INPUT
CREATE TABLE table_1560673_1 (first_season VARCHAR, club VARCHAR)
### OUTPUT
SELECT first_season FROM table_1560673_1 WHERE club = "Syrianska FC" | {
"input": "CREATE TABLE table_1560673_1 (first_season VARCHAR, club VARCHAR)",
"instruction": "What was the first season for Syrianska FC",
"output": "SELECT first_season FROM table_1560673_1 WHERE club = \"Syrianska FC\""
} |
### INSTRUCTION
What is Package/Option, when Language is Italian, and when Television Service is Sky Radio?
### INPUT
CREATE TABLE table_name_51 (package_option VARCHAR, language VARCHAR, television_service VARCHAR)
### OUTPUT
SELECT package_option FROM table_name_51 WHERE language = "italian" AND television_service = "sky radio" | {
"input": "CREATE TABLE table_name_51 (package_option VARCHAR, language VARCHAR, television_service VARCHAR)",
"instruction": "What is Package/Option, when Language is Italian, and when Television Service is Sky Radio?",
"output": "SELECT package_option FROM table_name_51 WHERE language = \"italian\" AND television_service = \"sky radio\""
} |
### INSTRUCTION
what is the total number of constancy where purity is falling
### INPUT
CREATE TABLE table_11609814_1 (constancy VARCHAR, purity VARCHAR)
### OUTPUT
SELECT COUNT(constancy) FROM table_11609814_1 WHERE purity = "falling" | {
"input": "CREATE TABLE table_11609814_1 (constancy VARCHAR, purity VARCHAR)",
"instruction": "what is the total number of constancy where purity is falling",
"output": "SELECT COUNT(constancy) FROM table_11609814_1 WHERE purity = \"falling\""
} |
### INSTRUCTION
What is the Other b when the FA Cup shows 3 (17)?
### INPUT
CREATE TABLE table_name_96 (other_b VARCHAR, fa_cup VARCHAR)
### OUTPUT
SELECT other_b FROM table_name_96 WHERE fa_cup = "3 (17)" | {
"input": "CREATE TABLE table_name_96 (other_b VARCHAR, fa_cup VARCHAR)",
"instruction": "What is the Other b when the FA Cup shows 3 (17)?",
"output": "SELECT other_b FROM table_name_96 WHERE fa_cup = \"3 (17)\""
} |
### INSTRUCTION
What is the gross in the United Kingdom?
### INPUT
CREATE TABLE table_name_33 (gross VARCHAR, territory VARCHAR)
### OUTPUT
SELECT gross FROM table_name_33 WHERE territory = "united kingdom" | {
"input": "CREATE TABLE table_name_33 (gross VARCHAR, territory VARCHAR)",
"instruction": "What is the gross in the United Kingdom?",
"output": "SELECT gross FROM table_name_33 WHERE territory = \"united kingdom\""
} |
### INSTRUCTION
What are the booking start and end dates of the apartments with type code "Duplex"?
### INPUT
CREATE TABLE Apartments (apt_id VARCHAR, apt_type_code VARCHAR); CREATE TABLE Apartment_Bookings (booking_start_date VARCHAR, apt_id VARCHAR)
### OUTPUT
SELECT T1.booking_start_date, T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_type_code = "Duplex" | {
"input": "CREATE TABLE Apartments (apt_id VARCHAR, apt_type_code VARCHAR); CREATE TABLE Apartment_Bookings (booking_start_date VARCHAR, apt_id VARCHAR)",
"instruction": "What are the booking start and end dates of the apartments with type code \"Duplex\"?",
"output": "SELECT T1.booking_start_date, T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_type_code = \"Duplex\""
} |
### INSTRUCTION
Name the average bronze with silver more than 0, total of 6 and gold more than 0
### INPUT
CREATE TABLE table_name_27 (bronze INTEGER, gold VARCHAR, silver VARCHAR, total VARCHAR)
### OUTPUT
SELECT AVG(bronze) FROM table_name_27 WHERE silver > 0 AND total = 6 AND gold > 0 | {
"input": "CREATE TABLE table_name_27 (bronze INTEGER, gold VARCHAR, silver VARCHAR, total VARCHAR)",
"instruction": "Name the average bronze with silver more than 0, total of 6 and gold more than 0",
"output": "SELECT AVG(bronze) FROM table_name_27 WHERE silver > 0 AND total = 6 AND gold > 0"
} |
### INSTRUCTION
How many people directed episode 3 in the season?
### INPUT
CREATE TABLE table_25277262_2 (directed_by VARCHAR, no_in_season VARCHAR)
### OUTPUT
SELECT COUNT(directed_by) FROM table_25277262_2 WHERE no_in_season = 3 | {
"input": "CREATE TABLE table_25277262_2 (directed_by VARCHAR, no_in_season VARCHAR)",
"instruction": "How many people directed episode 3 in the season?",
"output": "SELECT COUNT(directed_by) FROM table_25277262_2 WHERE no_in_season = 3"
} |
### INSTRUCTION
What position has ongoing first-team appearances, Graham Burke for a player, and whose club is Aston Villa?
### INPUT
CREATE TABLE table_name_47 (position VARCHAR, player VARCHAR, first_team_appearances VARCHAR, current_club VARCHAR)
### OUTPUT
SELECT position FROM table_name_47 WHERE first_team_appearances = "ongoing" AND current_club = "aston villa" AND player = "graham burke" | {
"input": "CREATE TABLE table_name_47 (position VARCHAR, player VARCHAR, first_team_appearances VARCHAR, current_club VARCHAR)",
"instruction": "What position has ongoing first-team appearances, Graham Burke for a player, and whose club is Aston Villa?",
"output": "SELECT position FROM table_name_47 WHERE first_team_appearances = \"ongoing\" AND current_club = \"aston villa\" AND player = \"graham burke\""
} |
### INSTRUCTION
What Vehicle Flight # has Pilot Peterson and Velocity (km/h) of 649?
### INPUT
CREATE TABLE table_name_31 (vehicle_flight__number VARCHAR, pilot VARCHAR, velocity__km_h_ VARCHAR)
### OUTPUT
SELECT vehicle_flight__number FROM table_name_31 WHERE pilot = "peterson" AND velocity__km_h_ = 649 | {
"input": "CREATE TABLE table_name_31 (vehicle_flight__number VARCHAR, pilot VARCHAR, velocity__km_h_ VARCHAR)",
"instruction": "What Vehicle Flight # has Pilot Peterson and Velocity (km/h) of 649?",
"output": "SELECT vehicle_flight__number FROM table_name_31 WHERE pilot = \"peterson\" AND velocity__km_h_ = 649"
} |
### INSTRUCTION
who directed the episode that elaine ko wrote?
### INPUT
CREATE TABLE table_27332038_1 (directed_by VARCHAR, written_by VARCHAR)
### OUTPUT
SELECT directed_by FROM table_27332038_1 WHERE written_by = "Elaine Ko" | {
"input": "CREATE TABLE table_27332038_1 (directed_by VARCHAR, written_by VARCHAR)",
"instruction": "who directed the episode that elaine ko wrote?",
"output": "SELECT directed_by FROM table_27332038_1 WHERE written_by = \"Elaine Ko\""
} |
### INSTRUCTION
What nation scored 7 in shooting in 1920?
### INPUT
CREATE TABLE table_name_39 (nation VARCHAR, years VARCHAR, sport VARCHAR, total VARCHAR)
### OUTPUT
SELECT nation FROM table_name_39 WHERE sport = "shooting" AND total = 7 AND years = "1920" | {
"input": "CREATE TABLE table_name_39 (nation VARCHAR, years VARCHAR, sport VARCHAR, total VARCHAR)",
"instruction": "What nation scored 7 in shooting in 1920?",
"output": "SELECT nation FROM table_name_39 WHERE sport = \"shooting\" AND total = 7 AND years = \"1920\""
} |
### INSTRUCTION
How many attempts did Charley Johnson have?
### INPUT
CREATE TABLE table_20906175_3 (attempts VARCHAR, name VARCHAR)
### OUTPUT
SELECT COUNT(attempts) FROM table_20906175_3 WHERE name = "Charley Johnson" | {
"input": "CREATE TABLE table_20906175_3 (attempts VARCHAR, name VARCHAR)",
"instruction": "How many attempts did Charley Johnson have?",
"output": "SELECT COUNT(attempts) FROM table_20906175_3 WHERE name = \"Charley Johnson\""
} |
### INSTRUCTION
What is the number of ends lost when there are 15 blank ends, less than 14 stolen ends?
### INPUT
CREATE TABLE table_name_67 (ends_lost VARCHAR, blank_ends VARCHAR, stolen_ends VARCHAR)
### OUTPUT
SELECT COUNT(ends_lost) FROM table_name_67 WHERE blank_ends = 15 AND stolen_ends < 14 | {
"input": "CREATE TABLE table_name_67 (ends_lost VARCHAR, blank_ends VARCHAR, stolen_ends VARCHAR)",
"instruction": "What is the number of ends lost when there are 15 blank ends, less than 14 stolen ends?",
"output": "SELECT COUNT(ends_lost) FROM table_name_67 WHERE blank_ends = 15 AND stolen_ends < 14"
} |
### INSTRUCTION
With an overall record of MU, 15-8 what is the at neutral site?
### INPUT
CREATE TABLE table_name_87 (at_neutral_site VARCHAR, overall_record VARCHAR)
### OUTPUT
SELECT at_neutral_site FROM table_name_87 WHERE overall_record = "mu, 15-8" | {
"input": "CREATE TABLE table_name_87 (at_neutral_site VARCHAR, overall_record VARCHAR)",
"instruction": "With an overall record of MU, 15-8 what is the at neutral site?",
"output": "SELECT at_neutral_site FROM table_name_87 WHERE overall_record = \"mu, 15-8\""
} |
### INSTRUCTION
What place is United States player Corey Pavin in?
### INPUT
CREATE TABLE table_name_25 (place VARCHAR, country VARCHAR, player VARCHAR)
### OUTPUT
SELECT place FROM table_name_25 WHERE country = "united states" AND player = "corey pavin" | {
"input": "CREATE TABLE table_name_25 (place VARCHAR, country VARCHAR, player VARCHAR)",
"instruction": "What place is United States player Corey Pavin in?",
"output": "SELECT place FROM table_name_25 WHERE country = \"united states\" AND player = \"corey pavin\""
} |
### INSTRUCTION
What is the gross capacity where the reactor is ABWR type?
### INPUT
CREATE TABLE table_name_54 (gross_capacity VARCHAR, reactor_type VARCHAR)
### OUTPUT
SELECT gross_capacity FROM table_name_54 WHERE reactor_type = "abwr" | {
"input": "CREATE TABLE table_name_54 (gross_capacity VARCHAR, reactor_type VARCHAR)",
"instruction": "What is the gross capacity where the reactor is ABWR type?",
"output": "SELECT gross_capacity FROM table_name_54 WHERE reactor_type = \"abwr\""
} |
### INSTRUCTION
what is the position for the united states u-20 affiliation
### INPUT
CREATE TABLE table_29626583_1 (position VARCHAR, affiliation VARCHAR)
### OUTPUT
SELECT position FROM table_29626583_1 WHERE affiliation = "United States U-20" | {
"input": "CREATE TABLE table_29626583_1 (position VARCHAR, affiliation VARCHAR)",
"instruction": "what is the position for the united states u-20 affiliation ",
"output": "SELECT position FROM table_29626583_1 WHERE affiliation = \"United States U-20\""
} |
### INSTRUCTION
What the highest Year with a Remixed by Laurent Boutonnat?
### INPUT
CREATE TABLE table_name_38 (year INTEGER, remixed_by VARCHAR)
### OUTPUT
SELECT MAX(year) FROM table_name_38 WHERE remixed_by = "laurent boutonnat" | {
"input": "CREATE TABLE table_name_38 (year INTEGER, remixed_by VARCHAR)",
"instruction": "What the highest Year with a Remixed by Laurent Boutonnat?",
"output": "SELECT MAX(year) FROM table_name_38 WHERE remixed_by = \"laurent boutonnat\""
} |
### INSTRUCTION
Name the episode for year more than 1999
### INPUT
CREATE TABLE table_name_30 (episode VARCHAR, year INTEGER)
### OUTPUT
SELECT episode FROM table_name_30 WHERE year > 1999 | {
"input": "CREATE TABLE table_name_30 (episode VARCHAR, year INTEGER)",
"instruction": "Name the episode for year more than 1999",
"output": "SELECT episode FROM table_name_30 WHERE year > 1999"
} |
### INSTRUCTION
Find the name of product that is produced by both companies Creative Labs and Sony.
### INPUT
CREATE TABLE manufacturers (code VARCHAR, name VARCHAR); CREATE TABLE products (name VARCHAR, Manufacturer VARCHAR)
### OUTPUT
SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Creative Labs' INTERSECT SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony' | {
"input": "CREATE TABLE manufacturers (code VARCHAR, name VARCHAR); CREATE TABLE products (name VARCHAR, Manufacturer VARCHAR)",
"instruction": "Find the name of product that is produced by both companies Creative Labs and Sony.",
"output": "SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Creative Labs' INTERSECT SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony'"
} |
### INSTRUCTION
WHAT SCHOOL DID THE PLAYER FROM SOUTH CAROLINA ATTEND?
### INPUT
CREATE TABLE table_11677691_2 (school VARCHAR, college VARCHAR)
### OUTPUT
SELECT school FROM table_11677691_2 WHERE college = "South Carolina" | {
"input": "CREATE TABLE table_11677691_2 (school VARCHAR, college VARCHAR)",
"instruction": "WHAT SCHOOL DID THE PLAYER FROM SOUTH CAROLINA ATTEND?",
"output": "SELECT school FROM table_11677691_2 WHERE college = \"South Carolina\""
} |
### INSTRUCTION
Award of troisième prix, and a Year smaller than 2010, and a Director of jan komasa is what film?
### INPUT
CREATE TABLE table_name_10 (film VARCHAR, director VARCHAR, award VARCHAR, year VARCHAR)
### OUTPUT
SELECT film FROM table_name_10 WHERE award = "troisième prix" AND year < 2010 AND director = "jan komasa" | {
"input": "CREATE TABLE table_name_10 (film VARCHAR, director VARCHAR, award VARCHAR, year VARCHAR)",
"instruction": "Award of troisième prix, and a Year smaller than 2010, and a Director of jan komasa is what film?",
"output": "SELECT film FROM table_name_10 WHERE award = \"troisième prix\" AND year < 2010 AND director = \"jan komasa\""
} |
### INSTRUCTION
Which tournament was held on 9 Jun 2002?
### INPUT
CREATE TABLE table_name_57 (tournament VARCHAR, date VARCHAR)
### OUTPUT
SELECT tournament FROM table_name_57 WHERE date = "9 jun 2002" | {
"input": "CREATE TABLE table_name_57 (tournament VARCHAR, date VARCHAR)",
"instruction": "Which tournament was held on 9 Jun 2002?",
"output": "SELECT tournament FROM table_name_57 WHERE date = \"9 jun 2002\""
} |
### INSTRUCTION
When the population change 2002-2012 (%) is 35.5 what is the rank in nyagatare sectors?
### INPUT
CREATE TABLE table_12496904_1 (_2012 VARCHAR, rank_in_nyagatare_sectors INTEGER, population_change_2002_2012___percentage_ VARCHAR)
### OUTPUT
SELECT MAX(rank_in_nyagatare_sectors), _2012 FROM table_12496904_1 WHERE population_change_2002_2012___percentage_ = "35.5" | {
"input": "CREATE TABLE table_12496904_1 (_2012 VARCHAR, rank_in_nyagatare_sectors INTEGER, population_change_2002_2012___percentage_ VARCHAR)",
"instruction": "When the population change 2002-2012 (%) is 35.5 what is the rank in nyagatare sectors?",
"output": "SELECT MAX(rank_in_nyagatare_sectors), _2012 FROM table_12496904_1 WHERE population_change_2002_2012___percentage_ = \"35.5\""
} |
### INSTRUCTION
What is the name of the Count Palatine of the Rhine with a Interregnum began of 2 april 1657 death of ferdinand iii?
### INPUT
CREATE TABLE table_name_65 (count_palatine_of_the_rhine VARCHAR, interregnum_began VARCHAR)
### OUTPUT
SELECT count_palatine_of_the_rhine FROM table_name_65 WHERE interregnum_began = "2 april 1657 death of ferdinand iii" | {
"input": "CREATE TABLE table_name_65 (count_palatine_of_the_rhine VARCHAR, interregnum_began VARCHAR)",
"instruction": "What is the name of the Count Palatine of the Rhine with a Interregnum began of 2 april 1657 death of ferdinand iii?",
"output": "SELECT count_palatine_of_the_rhine FROM table_name_65 WHERE interregnum_began = \"2 april 1657 death of ferdinand iii\""
} |
### INSTRUCTION
What's the service number of the Pune Duronto train that departures at 21:35?
### INPUT
CREATE TABLE table_23477312_1 (service VARCHAR, train_name VARCHAR, departure VARCHAR)
### OUTPUT
SELECT service FROM table_23477312_1 WHERE train_name = "Pune Duronto" AND departure = "21:35" | {
"input": "CREATE TABLE table_23477312_1 (service VARCHAR, train_name VARCHAR, departure VARCHAR)",
"instruction": "What's the service number of the Pune Duronto train that departures at 21:35?",
"output": "SELECT service FROM table_23477312_1 WHERE train_name = \"Pune Duronto\" AND departure = \"21:35\""
} |
### INSTRUCTION
How manu aircraft landings when the cargo tonnes are 18 344?
### INPUT
CREATE TABLE table_name_27 (aircraft_landings VARCHAR, cargo__tonnes_ VARCHAR)
### OUTPUT
SELECT aircraft_landings FROM table_name_27 WHERE cargo__tonnes_ = "18 344" | {
"input": "CREATE TABLE table_name_27 (aircraft_landings VARCHAR, cargo__tonnes_ VARCHAR)",
"instruction": "How manu aircraft landings when the cargo tonnes are 18 344?",
"output": "SELECT aircraft_landings FROM table_name_27 WHERE cargo__tonnes_ = \"18 344\""
} |
### INSTRUCTION
Which Adelaide has Sydney yes, Melbourne yes, and Perth no?
### INPUT
CREATE TABLE table_name_31 (adelaide VARCHAR, perth VARCHAR, sydney VARCHAR, melbourne VARCHAR)
### OUTPUT
SELECT adelaide FROM table_name_31 WHERE sydney = "yes" AND melbourne = "yes" AND perth = "no" | {
"input": "CREATE TABLE table_name_31 (adelaide VARCHAR, perth VARCHAR, sydney VARCHAR, melbourne VARCHAR)",
"instruction": "Which Adelaide has Sydney yes, Melbourne yes, and Perth no?",
"output": "SELECT adelaide FROM table_name_31 WHERE sydney = \"yes\" AND melbourne = \"yes\" AND perth = \"no\""
} |
### INSTRUCTION
What is the start of the Team of Andretti Green Racing with a finish higher than 3 in a year before 2007?
### INPUT
CREATE TABLE table_name_33 (start INTEGER, year VARCHAR, team VARCHAR, finish VARCHAR)
### OUTPUT
SELECT AVG(start) FROM table_name_33 WHERE team = "andretti green racing" AND finish > 3 AND year < 2007 | {
"input": "CREATE TABLE table_name_33 (start INTEGER, year VARCHAR, team VARCHAR, finish VARCHAR)",
"instruction": "What is the start of the Team of Andretti Green Racing with a finish higher than 3 in a year before 2007?",
"output": "SELECT AVG(start) FROM table_name_33 WHERE team = \"andretti green racing\" AND finish > 3 AND year < 2007"
} |
### INSTRUCTION
What's the total number of FA Cup with a Play-offs of 3, and the Name of Mitch Cook Category:Articles with hCards and has a Total thats less than 11?
### INPUT
CREATE TABLE table_name_64 (fa_cup VARCHAR, total VARCHAR, play_offs VARCHAR, name VARCHAR)
### OUTPUT
SELECT COUNT(fa_cup) FROM table_name_64 WHERE play_offs = 3 AND name = "mitch cook category:articles with hcards" AND total < 11 | {
"input": "CREATE TABLE table_name_64 (fa_cup VARCHAR, total VARCHAR, play_offs VARCHAR, name VARCHAR)",
"instruction": "What's the total number of FA Cup with a Play-offs of 3, and the Name of Mitch Cook Category:Articles with hCards and has a Total thats less than 11?",
"output": "SELECT COUNT(fa_cup) FROM table_name_64 WHERE play_offs = 3 AND name = \"mitch cook category:articles with hcards\" AND total < 11"
} |
### INSTRUCTION
List the names of representatives that have not participated in elections listed here.
### INPUT
CREATE TABLE election (Name VARCHAR, Representative_ID VARCHAR); CREATE TABLE representative (Name VARCHAR, Representative_ID VARCHAR)
### OUTPUT
SELECT Name FROM representative WHERE NOT Representative_ID IN (SELECT Representative_ID FROM election) | {
"input": "CREATE TABLE election (Name VARCHAR, Representative_ID VARCHAR); CREATE TABLE representative (Name VARCHAR, Representative_ID VARCHAR)",
"instruction": "List the names of representatives that have not participated in elections listed here.",
"output": "SELECT Name FROM representative WHERE NOT Representative_ID IN (SELECT Representative_ID FROM election)"
} |
### INSTRUCTION
when was the next coach appointed after niger tornadoes fired their coach?
### INPUT
CREATE TABLE table_28164986_4 (date_of_appointment VARCHAR, manner_of_departure VARCHAR, team VARCHAR)
### OUTPUT
SELECT date_of_appointment FROM table_28164986_4 WHERE manner_of_departure = "fired" AND team = "Niger Tornadoes" | {
"input": "CREATE TABLE table_28164986_4 (date_of_appointment VARCHAR, manner_of_departure VARCHAR, team VARCHAR)",
"instruction": "when was the next coach appointed after niger tornadoes fired their coach?",
"output": "SELECT date_of_appointment FROM table_28164986_4 WHERE manner_of_departure = \"fired\" AND team = \"Niger Tornadoes\""
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.