text
stringlengths
147
1.06k
source
dict
### INSTRUCTION Which Reservoir capacity has an Impounded body of water of tumut two pondage? ### INPUT CREATE TABLE table_name_41 (reservoir_capacity VARCHAR, impounded_body_of_water VARCHAR) ### OUTPUT SELECT reservoir_capacity FROM table_name_41 WHERE impounded_body_of_water = "tumut two pondage"
{ "input": "CREATE TABLE table_name_41 (reservoir_capacity VARCHAR, impounded_body_of_water VARCHAR)", "instruction": "Which Reservoir capacity has an Impounded body of water of tumut two pondage?", "output": "SELECT reservoir_capacity FROM table_name_41 WHERE impounded_body_of_water = \"tumut two pondage\"" }
### INSTRUCTION What previous club was born on October 22, 1993? ### INPUT CREATE TABLE table_name_48 (previous_club VARCHAR, date_of_birth VARCHAR) ### OUTPUT SELECT previous_club FROM table_name_48 WHERE date_of_birth = "october 22, 1993"
{ "input": "CREATE TABLE table_name_48 (previous_club VARCHAR, date_of_birth VARCHAR)", "instruction": "What previous club was born on October 22, 1993?", "output": "SELECT previous_club FROM table_name_48 WHERE date_of_birth = \"october 22, 1993\"" }
### INSTRUCTION Who is the second of the North America team from Edmonton, Canada? ### INPUT CREATE TABLE table_name_58 (second VARCHAR, home VARCHAR, team VARCHAR, country VARCHAR) ### OUTPUT SELECT second FROM table_name_58 WHERE team = "north america" AND country = "canada" AND home = "edmonton"
{ "input": "CREATE TABLE table_name_58 (second VARCHAR, home VARCHAR, team VARCHAR, country VARCHAR)", "instruction": "Who is the second of the North America team from Edmonton, Canada?", "output": "SELECT second FROM table_name_58 WHERE team = \"north america\" AND country = \"canada\" AND home = \"edmonton\"" }
### INSTRUCTION what is the special edition where the english version is nick stewart? ### INPUT CREATE TABLE table_25173505_13 (special_edition VARCHAR, english_version VARCHAR) ### OUTPUT SELECT special_edition FROM table_25173505_13 WHERE english_version = "Nick Stewart"
{ "input": "CREATE TABLE table_25173505_13 (special_edition VARCHAR, english_version VARCHAR)", "instruction": "what is the special edition where the english version is nick stewart?", "output": "SELECT special_edition FROM table_25173505_13 WHERE english_version = \"Nick Stewart\"" }
### INSTRUCTION What is the H.S. Asst. principal with a Glendale principal Joyce Brace during 2002-2003? ### INPUT CREATE TABLE table_name_47 (h_s_asst_principal VARCHAR, glendale_principal VARCHAR, year VARCHAR) ### OUTPUT SELECT h_s_asst_principal FROM table_name_47 WHERE glendale_principal = "joyce brace" AND year = "2002-2003"
{ "input": "CREATE TABLE table_name_47 (h_s_asst_principal VARCHAR, glendale_principal VARCHAR, year VARCHAR)", "instruction": "What is the H.S. Asst. principal with a Glendale principal Joyce Brace during 2002-2003?", "output": "SELECT h_s_asst_principal FROM table_name_47 WHERE glendale_principal = \"joyce brace\" AND year = \"2002-2003\"" }
### INSTRUCTION What is the score of the away team when the home team is Essendon? ### INPUT CREATE TABLE table_name_12 (away_team VARCHAR, home_team VARCHAR) ### OUTPUT SELECT away_team AS score FROM table_name_12 WHERE home_team = "essendon"
{ "input": "CREATE TABLE table_name_12 (away_team VARCHAR, home_team VARCHAR)", "instruction": "What is the score of the away team when the home team is Essendon?", "output": "SELECT away_team AS score FROM table_name_12 WHERE home_team = \"essendon\"" }
### INSTRUCTION In which movie is Selva Nambi a co-singer? ### INPUT CREATE TABLE table_name_20 (movie VARCHAR, co_singers VARCHAR) ### OUTPUT SELECT movie FROM table_name_20 WHERE co_singers = "selva nambi"
{ "input": "CREATE TABLE table_name_20 (movie VARCHAR, co_singers VARCHAR)", "instruction": "In which movie is Selva Nambi a co-singer?", "output": "SELECT movie FROM table_name_20 WHERE co_singers = \"selva nambi\"" }
### INSTRUCTION List the date, theme and sales of the journal which did not have any of the listed editors serving on committee. ### INPUT CREATE TABLE journal_committee (journal_ID VARCHAR); CREATE TABLE journal (date VARCHAR, theme VARCHAR, sales VARCHAR); CREATE TABLE journal (date VARCHAR, theme VARCHAR, sales VARCHAR, journal_ID VARCHAR) ### OUTPUT SELECT date, theme, sales FROM journal EXCEPT SELECT T1.date, T1.theme, T1.sales FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID = T2.journal_ID
{ "input": "CREATE TABLE journal_committee (journal_ID VARCHAR); CREATE TABLE journal (date VARCHAR, theme VARCHAR, sales VARCHAR); CREATE TABLE journal (date VARCHAR, theme VARCHAR, sales VARCHAR, journal_ID VARCHAR)", "instruction": "List the date, theme and sales of the journal which did not have any of the listed editors serving on committee.", "output": "SELECT date, theme, sales FROM journal EXCEPT SELECT T1.date, T1.theme, T1.sales FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID = T2.journal_ID" }
### INSTRUCTION What is the enrollment amount where Hispanic (%) is 3.6? ### INPUT CREATE TABLE table_14754471_1 (enrollment VARCHAR, hispanic___percentage_ VARCHAR) ### OUTPUT SELECT enrollment FROM table_14754471_1 WHERE hispanic___percentage_ = "3.6"
{ "input": "CREATE TABLE table_14754471_1 (enrollment VARCHAR, hispanic___percentage_ VARCHAR)", "instruction": "What is the enrollment amount where Hispanic (%) is 3.6?", "output": "SELECT enrollment FROM table_14754471_1 WHERE hispanic___percentage_ = \"3.6\"" }
### INSTRUCTION What is the sum of the points of club nevėžis-2 kėdainiai, which has more than 35 goals conceded? ### INPUT CREATE TABLE table_name_39 (points INTEGER, club VARCHAR, goals_conceded VARCHAR) ### OUTPUT SELECT SUM(points) FROM table_name_39 WHERE club = "nevėžis-2 kėdainiai" AND goals_conceded > 35
{ "input": "CREATE TABLE table_name_39 (points INTEGER, club VARCHAR, goals_conceded VARCHAR)", "instruction": "What is the sum of the points of club nevėžis-2 kėdainiai, which has more than 35 goals conceded?", "output": "SELECT SUM(points) FROM table_name_39 WHERE club = \"nevėžis-2 kėdainiai\" AND goals_conceded > 35" }
### INSTRUCTION Which Team classification has a Combination classification of egoi martínez, and a Winner of tom boonen? ### INPUT CREATE TABLE table_name_28 (team_classification VARCHAR, combination_classification VARCHAR, winner VARCHAR) ### OUTPUT SELECT team_classification FROM table_name_28 WHERE combination_classification = "egoi martínez" AND winner = "tom boonen"
{ "input": "CREATE TABLE table_name_28 (team_classification VARCHAR, combination_classification VARCHAR, winner VARCHAR)", "instruction": "Which Team classification has a Combination classification of egoi martínez, and a Winner of tom boonen?", "output": "SELECT team_classification FROM table_name_28 WHERE combination_classification = \"egoi martínez\" AND winner = \"tom boonen\"" }
### INSTRUCTION Show the name of the party that has the most delegates. ### INPUT CREATE TABLE election (Party VARCHAR); CREATE TABLE party (Party VARCHAR, Party_ID VARCHAR) ### OUTPUT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE election (Party VARCHAR); CREATE TABLE party (Party VARCHAR, Party_ID VARCHAR)", "instruction": "Show the name of the party that has the most delegates.", "output": "SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What was the score for the December 11 game against the Ottawa Senators? ### INPUT CREATE TABLE table_name_52 (score VARCHAR, visitor VARCHAR, date VARCHAR) ### OUTPUT SELECT score FROM table_name_52 WHERE visitor = "ottawa senators" AND date = "december 11"
{ "input": "CREATE TABLE table_name_52 (score VARCHAR, visitor VARCHAR, date VARCHAR)", "instruction": "What was the score for the December 11 game against the Ottawa Senators?", "output": "SELECT score FROM table_name_52 WHERE visitor = \"ottawa senators\" AND date = \"december 11\"" }
### INSTRUCTION What is the amoun of marginal ordinary income tax rate where married filing jointly or qualified widow is $208,851–$372,950? ### INPUT CREATE TABLE table_11647327_2 (marginal_ordinary_income_tax_rate VARCHAR, married_filing_jointly_or_qualified_widow_er_ VARCHAR) ### OUTPUT SELECT COUNT(marginal_ordinary_income_tax_rate) FROM table_11647327_2 WHERE married_filing_jointly_or_qualified_widow_er_ = "$208,851–$372,950"
{ "input": "CREATE TABLE table_11647327_2 (marginal_ordinary_income_tax_rate VARCHAR, married_filing_jointly_or_qualified_widow_er_ VARCHAR)", "instruction": "What is the amoun of marginal ordinary income tax rate where married filing jointly or qualified widow is $208,851–$372,950?", "output": "SELECT COUNT(marginal_ordinary_income_tax_rate) FROM table_11647327_2 WHERE married_filing_jointly_or_qualified_widow_er_ = \"$208,851–$372,950\"" }
### INSTRUCTION Which name was in a position less than 4 with 2 losses? ### INPUT CREATE TABLE table_name_78 (name VARCHAR, position VARCHAR, lost VARCHAR) ### OUTPUT SELECT name FROM table_name_78 WHERE position < 4 AND lost = 2
{ "input": "CREATE TABLE table_name_78 (name VARCHAR, position VARCHAR, lost VARCHAR)", "instruction": "Which name was in a position less than 4 with 2 losses?", "output": "SELECT name FROM table_name_78 WHERE position < 4 AND lost = 2" }
### INSTRUCTION What FA cup apps has a total larger than 12 and league apps larger than 38, and FA Cup goals larger than 1? ### INPUT CREATE TABLE table_name_50 (fa_cup_apps VARCHAR, fa_cup_goals VARCHAR, total_apps VARCHAR, league_apps VARCHAR) ### OUTPUT SELECT COUNT(fa_cup_apps) FROM table_name_50 WHERE total_apps > 12 AND league_apps > 38 AND fa_cup_goals > 1
{ "input": "CREATE TABLE table_name_50 (fa_cup_apps VARCHAR, fa_cup_goals VARCHAR, total_apps VARCHAR, league_apps VARCHAR)", "instruction": "What FA cup apps has a total larger than 12 and league apps larger than 38, and FA Cup goals larger than 1?", "output": "SELECT COUNT(fa_cup_apps) FROM table_name_50 WHERE total_apps > 12 AND league_apps > 38 AND fa_cup_goals > 1" }
### INSTRUCTION How many languages is refractaire as the film title used in nomination? ### INPUT CREATE TABLE table_22073745_1 (languages VARCHAR, film_title_used_in_nomination VARCHAR) ### OUTPUT SELECT COUNT(languages) FROM table_22073745_1 WHERE film_title_used_in_nomination = "Refractaire"
{ "input": "CREATE TABLE table_22073745_1 (languages VARCHAR, film_title_used_in_nomination VARCHAR)", "instruction": "How many languages is refractaire as the film title used in nomination?", "output": "SELECT COUNT(languages) FROM table_22073745_1 WHERE film_title_used_in_nomination = \"Refractaire\"" }
### INSTRUCTION Which Losses have a Season larger than 1941, and a Team of hamilton wildcats, and Ties of 0? ### INPUT CREATE TABLE table_name_95 (losses VARCHAR, ties VARCHAR, season VARCHAR, team VARCHAR) ### OUTPUT SELECT losses FROM table_name_95 WHERE season > 1941 AND team = "hamilton wildcats" AND ties = 0
{ "input": "CREATE TABLE table_name_95 (losses VARCHAR, ties VARCHAR, season VARCHAR, team VARCHAR)", "instruction": "Which Losses have a Season larger than 1941, and a Team of hamilton wildcats, and Ties of 0?", "output": "SELECT losses FROM table_name_95 WHERE season > 1941 AND team = \"hamilton wildcats\" AND ties = 0" }
### INSTRUCTION What is the frequency of 101.5 News FM? ### INPUT CREATE TABLE table_19215259_1 (frequency VARCHAR, branding VARCHAR) ### OUTPUT SELECT frequency FROM table_19215259_1 WHERE branding = "101.5 News FM"
{ "input": "CREATE TABLE table_19215259_1 (frequency VARCHAR, branding VARCHAR)", "instruction": "What is the frequency of 101.5 News FM?", "output": "SELECT frequency FROM table_19215259_1 WHERE branding = \"101.5 News FM\"" }
### INSTRUCTION What is the highest w plyf with a first yr before 1960, a G plyf greater than 0, a G > .500 less than 43, and a w-l% less than 0.578? ### INPUT CREATE TABLE table_name_99 (w_plyf INTEGER, w_l_percentage VARCHAR, first_yr VARCHAR, g_plyf VARCHAR, g_ VARCHAR, _500 VARCHAR) ### OUTPUT SELECT MAX(w_plyf) FROM table_name_99 WHERE first_yr < 1960 AND g_plyf > 0 AND g_ > _500 < 43 AND w_l_percentage < 0.578
{ "input": "CREATE TABLE table_name_99 (w_plyf INTEGER, w_l_percentage VARCHAR, first_yr VARCHAR, g_plyf VARCHAR, g_ VARCHAR, _500 VARCHAR)", "instruction": "What is the highest w plyf with a first yr before 1960, a G plyf greater than 0, a G > .500 less than 43, and a w-l% less than 0.578?", "output": "SELECT MAX(w_plyf) FROM table_name_99 WHERE first_yr < 1960 AND g_plyf > 0 AND g_ > _500 < 43 AND w_l_percentage < 0.578" }
### INSTRUCTION What is the sum of Points, when Equipment was "Zabel-BSU", and when Position was 42? ### INPUT CREATE TABLE table_name_39 (points INTEGER, equipment VARCHAR, position VARCHAR) ### OUTPUT SELECT SUM(points) FROM table_name_39 WHERE equipment = "zabel-bsu" AND position = 42
{ "input": "CREATE TABLE table_name_39 (points INTEGER, equipment VARCHAR, position VARCHAR)", "instruction": "What is the sum of Points, when Equipment was \"Zabel-BSU\", and when Position was 42?", "output": "SELECT SUM(points) FROM table_name_39 WHERE equipment = \"zabel-bsu\" AND position = 42" }
### INSTRUCTION Jud Larson who which race after 1956? ### INPUT CREATE TABLE table_name_70 (race_name VARCHAR, year VARCHAR, winner VARCHAR) ### OUTPUT SELECT race_name FROM table_name_70 WHERE year > 1956 AND winner = "jud larson"
{ "input": "CREATE TABLE table_name_70 (race_name VARCHAR, year VARCHAR, winner VARCHAR)", "instruction": "Jud Larson who which race after 1956?", "output": "SELECT race_name FROM table_name_70 WHERE year > 1956 AND winner = \"jud larson\"" }
### INSTRUCTION How many assists were in the k-league competition, which has more than 20 total Gs, the pohang steelers team, and chunnam dragons as the opponent? ### INPUT CREATE TABLE table_name_90 (assists VARCHAR, opponent VARCHAR, team VARCHAR, competition VARCHAR, total_gs VARCHAR) ### OUTPUT SELECT assists FROM table_name_90 WHERE competition = "k-league" AND total_gs > 20 AND team = "pohang steelers" AND opponent = "chunnam dragons"
{ "input": "CREATE TABLE table_name_90 (assists VARCHAR, opponent VARCHAR, team VARCHAR, competition VARCHAR, total_gs VARCHAR)", "instruction": "How many assists were in the k-league competition, which has more than 20 total Gs, the pohang steelers team, and chunnam dragons as the opponent?", "output": "SELECT assists FROM table_name_90 WHERE competition = \"k-league\" AND total_gs > 20 AND team = \"pohang steelers\" AND opponent = \"chunnam dragons\"" }
### INSTRUCTION Who did the high rebounds in the game with a 19-6 record? ### INPUT CREATE TABLE table_18894744_6 (high_rebounds VARCHAR, record VARCHAR) ### OUTPUT SELECT high_rebounds FROM table_18894744_6 WHERE record = "19-6"
{ "input": "CREATE TABLE table_18894744_6 (high_rebounds VARCHAR, record VARCHAR)", "instruction": "Who did the high rebounds in the game with a 19-6 record?", "output": "SELECT high_rebounds FROM table_18894744_6 WHERE record = \"19-6\"" }
### INSTRUCTION What series had a high points of Prince (23)? ### INPUT CREATE TABLE table_name_32 (series VARCHAR, high_points VARCHAR) ### OUTPUT SELECT series FROM table_name_32 WHERE high_points = "prince (23)"
{ "input": "CREATE TABLE table_name_32 (series VARCHAR, high_points VARCHAR)", "instruction": "What series had a high points of Prince (23)?", "output": "SELECT series FROM table_name_32 WHERE high_points = \"prince (23)\"" }
### INSTRUCTION I want the total number of points for against of 753 and points diff more than -114 ### INPUT CREATE TABLE table_name_75 (points VARCHAR, against VARCHAR, points_diff VARCHAR) ### OUTPUT SELECT COUNT(points) FROM table_name_75 WHERE against = 753 AND points_diff > -114
{ "input": "CREATE TABLE table_name_75 (points VARCHAR, against VARCHAR, points_diff VARCHAR)", "instruction": "I want the total number of points for against of 753 and points diff more than -114", "output": "SELECT COUNT(points) FROM table_name_75 WHERE against = 753 AND points_diff > -114" }
### INSTRUCTION When was the institution of Kansas city Kansas community college founded? ### INPUT CREATE TABLE table_12434380_1 (founded VARCHAR, institution VARCHAR) ### OUTPUT SELECT COUNT(founded) FROM table_12434380_1 WHERE institution = "Kansas City Kansas Community College"
{ "input": "CREATE TABLE table_12434380_1 (founded VARCHAR, institution VARCHAR)", "instruction": "When was the institution of Kansas city Kansas community college founded?", "output": "SELECT COUNT(founded) FROM table_12434380_1 WHERE institution = \"Kansas City Kansas Community College\"" }
### INSTRUCTION What is the digital reaction for week of top 5 for Taylor Hicks? ### INPUT CREATE TABLE table_name_20 (hot_digital_songs_reaction VARCHAR, week VARCHAR, performer_s_ VARCHAR) ### OUTPUT SELECT hot_digital_songs_reaction FROM table_name_20 WHERE week = "top 5" AND performer_s_ = "taylor hicks"
{ "input": "CREATE TABLE table_name_20 (hot_digital_songs_reaction VARCHAR, week VARCHAR, performer_s_ VARCHAR)", "instruction": "What is the digital reaction for week of top 5 for Taylor Hicks?", "output": "SELECT hot_digital_songs_reaction FROM table_name_20 WHERE week = \"top 5\" AND performer_s_ = \"taylor hicks\"" }
### INSTRUCTION What was the total fertility rate that had a death rate larger than 7.8? ### INPUT CREATE TABLE table_name_60 (total_fertility_rate VARCHAR, deaths INTEGER) ### OUTPUT SELECT total_fertility_rate FROM table_name_60 WHERE deaths > 7.8
{ "input": "CREATE TABLE table_name_60 (total_fertility_rate VARCHAR, deaths INTEGER)", "instruction": "What was the total fertility rate that had a death rate larger than 7.8?", "output": "SELECT total_fertility_rate FROM table_name_60 WHERE deaths > 7.8" }
### INSTRUCTION List the name of the pilots who have flied for both a company that mainly provide 'Cargo' services and a company that runs 'Catering services' activities. ### INPUT CREATE TABLE operate_company (id VARCHAR, principal_activities VARCHAR); CREATE TABLE flight (Id VARCHAR) ### OUTPUT SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T1.principal_activities = 'Cargo' INTERSECT SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T1.principal_activities = 'Catering services'
{ "input": "CREATE TABLE operate_company (id VARCHAR, principal_activities VARCHAR); CREATE TABLE flight (Id VARCHAR)", "instruction": "List the name of the pilots who have flied for both a company that mainly provide 'Cargo' services and a company that runs 'Catering services' activities.", "output": "SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T1.principal_activities = 'Cargo' INTERSECT SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T1.principal_activities = 'Catering services'" }
### INSTRUCTION What is the transfer window for Christian Nerlinger? ### INPUT CREATE TABLE table_name_23 (transfer_window VARCHAR, name VARCHAR) ### OUTPUT SELECT transfer_window FROM table_name_23 WHERE name = "christian nerlinger"
{ "input": "CREATE TABLE table_name_23 (transfer_window VARCHAR, name VARCHAR)", "instruction": "What is the transfer window for Christian Nerlinger?", "output": "SELECT transfer_window FROM table_name_23 WHERE name = \"christian nerlinger\"" }
### INSTRUCTION when notes are prima italica:raised for aborted caucasus war, when was that founded? ### INPUT CREATE TABLE table_242785_1 (date_founded__founder VARCHAR, notes VARCHAR) ### OUTPUT SELECT date_founded__founder FROM table_242785_1 WHERE notes = "prima Italica:raised for aborted Caucasus war"
{ "input": "CREATE TABLE table_242785_1 (date_founded__founder VARCHAR, notes VARCHAR)", "instruction": "when notes are prima italica:raised for aborted caucasus war, when was that founded?", "output": "SELECT date_founded__founder FROM table_242785_1 WHERE notes = \"prima Italica:raised for aborted Caucasus war\"" }
### INSTRUCTION What is the largest area in Alaska with a population of 39 and rank over 19? ### INPUT CREATE TABLE table_name_41 (area__km_2__ INTEGER, rank VARCHAR, location VARCHAR, population__2000_ VARCHAR) ### OUTPUT SELECT MAX(area__km_2__) FROM table_name_41 WHERE location = "alaska" AND population__2000_ = "39" AND rank > 19
{ "input": "CREATE TABLE table_name_41 (area__km_2__ INTEGER, rank VARCHAR, location VARCHAR, population__2000_ VARCHAR)", "instruction": "What is the largest area in Alaska with a population of 39 and rank over 19?", "output": "SELECT MAX(area__km_2__) FROM table_name_41 WHERE location = \"alaska\" AND population__2000_ = \"39\" AND rank > 19" }
### INSTRUCTION What is the cost of 972 Min Press caused 52 death? ### INPUT CREATE TABLE table_name_36 (damage__millions_usd__ VARCHAR, min_press___mbar__ VARCHAR, deaths VARCHAR) ### OUTPUT SELECT damage__millions_usd__ FROM table_name_36 WHERE min_press___mbar__ = "972" AND deaths = "52"
{ "input": "CREATE TABLE table_name_36 (damage__millions_usd__ VARCHAR, min_press___mbar__ VARCHAR, deaths VARCHAR)", "instruction": "What is the cost of 972 Min Press caused 52 death?", "output": "SELECT damage__millions_usd__ FROM table_name_36 WHERE min_press___mbar__ = \"972\" AND deaths = \"52\"" }
### INSTRUCTION What is Surface, when Tournament is "Saint Joseph , United States"? ### INPUT CREATE TABLE table_name_87 (surface VARCHAR, tournament VARCHAR) ### OUTPUT SELECT surface FROM table_name_87 WHERE tournament = "saint joseph , united states"
{ "input": "CREATE TABLE table_name_87 (surface VARCHAR, tournament VARCHAR)", "instruction": "What is Surface, when Tournament is \"Saint Joseph , United States\"?", "output": "SELECT surface FROM table_name_87 WHERE tournament = \"saint joseph , united states\"" }
### INSTRUCTION What is the HDTV that has television service of tv 8 mont blanc and content is general television? ### INPUT CREATE TABLE table_name_26 (hdtv VARCHAR, content VARCHAR, television_service VARCHAR) ### OUTPUT SELECT hdtv FROM table_name_26 WHERE content = "general television" AND television_service = "tv 8 mont blanc"
{ "input": "CREATE TABLE table_name_26 (hdtv VARCHAR, content VARCHAR, television_service VARCHAR)", "instruction": "What is the HDTV that has television service of tv 8 mont blanc and content is general television?", "output": "SELECT hdtv FROM table_name_26 WHERE content = \"general television\" AND television_service = \"tv 8 mont blanc\"" }
### INSTRUCTION what is the score when the opponent is fernando vicente? ### INPUT CREATE TABLE table_name_9 (score VARCHAR, opponent VARCHAR) ### OUTPUT SELECT score FROM table_name_9 WHERE opponent = "fernando vicente"
{ "input": "CREATE TABLE table_name_9 (score VARCHAR, opponent VARCHAR)", "instruction": "what is the score when the opponent is fernando vicente?", "output": "SELECT score FROM table_name_9 WHERE opponent = \"fernando vicente\"" }
### INSTRUCTION When charles bateman michael lyons is the gt3 winner and donington park is the circuit who is the gt4 winner? ### INPUT CREATE TABLE table_30062172_3 (gt4_winner VARCHAR, circuit VARCHAR, gt3_winner VARCHAR) ### OUTPUT SELECT gt4_winner FROM table_30062172_3 WHERE circuit = "Donington Park" AND gt3_winner = "Charles Bateman Michael Lyons"
{ "input": "CREATE TABLE table_30062172_3 (gt4_winner VARCHAR, circuit VARCHAR, gt3_winner VARCHAR)", "instruction": "When charles bateman michael lyons is the gt3 winner and donington park is the circuit who is the gt4 winner?", "output": "SELECT gt4_winner FROM table_30062172_3 WHERE circuit = \"Donington Park\" AND gt3_winner = \"Charles Bateman Michael Lyons\"" }
### INSTRUCTION What is Team, when Replaced By is "Jesús Ramírez"? ### INPUT CREATE TABLE table_name_92 (team VARCHAR, replaced_by VARCHAR) ### OUTPUT SELECT team FROM table_name_92 WHERE replaced_by = "jesús ramírez"
{ "input": "CREATE TABLE table_name_92 (team VARCHAR, replaced_by VARCHAR)", "instruction": "What is Team, when Replaced By is \"Jesús Ramírez\"?", "output": "SELECT team FROM table_name_92 WHERE replaced_by = \"jesús ramírez\"" }
### INSTRUCTION Name the lelast decile for roll of 428 ### INPUT CREATE TABLE table_name_63 (decile INTEGER, roll VARCHAR) ### OUTPUT SELECT MIN(decile) FROM table_name_63 WHERE roll = 428
{ "input": "CREATE TABLE table_name_63 (decile INTEGER, roll VARCHAR)", "instruction": "Name the lelast decile for roll of 428", "output": "SELECT MIN(decile) FROM table_name_63 WHERE roll = 428" }
### INSTRUCTION If the engine make/capacity is MWM 6.10 TCA-EURO III (Turbo Intercooler) and GVM (kg) Technical Capacity is 23000, what is the Torque Nm@rpm? ### INPUT CREATE TABLE table_11497980_1 (torque_nm VARCHAR, gcm__kg__technical_capacity VARCHAR, engine_make_capacity VARCHAR) ### OUTPUT SELECT torque_nm AS @rpm FROM table_11497980_1 WHERE gcm__kg__technical_capacity = "23000" AND engine_make_capacity = "MWM 6.10 TCA-EURO III (Turbo Intercooler)"
{ "input": "CREATE TABLE table_11497980_1 (torque_nm VARCHAR, gcm__kg__technical_capacity VARCHAR, engine_make_capacity VARCHAR)", "instruction": "If the engine make/capacity is MWM 6.10 TCA-EURO III (Turbo Intercooler) and GVM (kg) Technical Capacity is 23000, what is the Torque Nm@rpm?", "output": "SELECT torque_nm AS @rpm FROM table_11497980_1 WHERE gcm__kg__technical_capacity = \"23000\" AND engine_make_capacity = \"MWM 6.10 TCA-EURO III (Turbo Intercooler)\"" }
### INSTRUCTION Which Site that has a Sex and other data of old male? ### INPUT CREATE TABLE table_name_42 (site INTEGER, sex_and_other_data VARCHAR) ### OUTPUT SELECT MAX(site) FROM table_name_42 WHERE sex_and_other_data = "old male"
{ "input": "CREATE TABLE table_name_42 (site INTEGER, sex_and_other_data VARCHAR)", "instruction": "Which Site that has a Sex and other data of old male?", "output": "SELECT MAX(site) FROM table_name_42 WHERE sex_and_other_data = \"old male\"" }
### INSTRUCTION What player scored 71-69-71=211? ### INPUT CREATE TABLE table_name_68 (player VARCHAR, score VARCHAR) ### OUTPUT SELECT player FROM table_name_68 WHERE score = 71 - 69 - 71 = 211
{ "input": "CREATE TABLE table_name_68 (player VARCHAR, score VARCHAR)", "instruction": "What player scored 71-69-71=211?", "output": "SELECT player FROM table_name_68 WHERE score = 71 - 69 - 71 = 211" }
### INSTRUCTION Which manufacturer has a year made of 4-6-0 — ooooo — ten-wheeler? ### INPUT CREATE TABLE table_name_22 (manufacturer VARCHAR, year_made VARCHAR) ### OUTPUT SELECT manufacturer FROM table_name_22 WHERE year_made = "4-6-0 — ooooo — ten-wheeler"
{ "input": "CREATE TABLE table_name_22 (manufacturer VARCHAR, year_made VARCHAR)", "instruction": "Which manufacturer has a year made of 4-6-0 — ooooo — ten-wheeler?", "output": "SELECT manufacturer FROM table_name_22 WHERE year_made = \"4-6-0 — ooooo — ten-wheeler\"" }
### INSTRUCTION how many video out connections does the sounddock portable have? ### INPUT CREATE TABLE table_24384861_1 (video_out VARCHAR, version VARCHAR) ### OUTPUT SELECT COUNT(video_out) FROM table_24384861_1 WHERE version = "SoundDock Portable"
{ "input": "CREATE TABLE table_24384861_1 (video_out VARCHAR, version VARCHAR)", "instruction": "how many video out connections does the sounddock portable have?", "output": "SELECT COUNT(video_out) FROM table_24384861_1 WHERE version = \"SoundDock Portable\"" }
### INSTRUCTION What amount of points for were there when there was 52 points? ### INPUT CREATE TABLE table_13399573_3 (points_for VARCHAR, points VARCHAR) ### OUTPUT SELECT points_for FROM table_13399573_3 WHERE points = "52"
{ "input": "CREATE TABLE table_13399573_3 (points_for VARCHAR, points VARCHAR)", "instruction": "What amount of points for were there when there was 52 points?", "output": "SELECT points_for FROM table_13399573_3 WHERE points = \"52\"" }
### INSTRUCTION Show the title and publication dates of books. ### INPUT CREATE TABLE book (Title VARCHAR, Book_ID VARCHAR); CREATE TABLE publication (Publication_Date VARCHAR, Book_ID VARCHAR) ### OUTPUT SELECT T1.Title, T2.Publication_Date FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID
{ "input": "CREATE TABLE book (Title VARCHAR, Book_ID VARCHAR); CREATE TABLE publication (Publication_Date VARCHAR, Book_ID VARCHAR)", "instruction": "Show the title and publication dates of books.", "output": "SELECT T1.Title, T2.Publication_Date FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID" }
### INSTRUCTION Find the emails of parties with the most popular party form. ### INPUT CREATE TABLE party_forms (form_id VARCHAR); CREATE TABLE parties (party_email VARCHAR, party_id VARCHAR); CREATE TABLE party_forms (party_id VARCHAR, form_id VARCHAR) ### OUTPUT SELECT t1.party_email FROM parties AS t1 JOIN party_forms AS t2 ON t1.party_id = t2.party_id WHERE t2.form_id = (SELECT form_id FROM party_forms GROUP BY form_id ORDER BY COUNT(*) DESC LIMIT 1)
{ "input": "CREATE TABLE party_forms (form_id VARCHAR); CREATE TABLE parties (party_email VARCHAR, party_id VARCHAR); CREATE TABLE party_forms (party_id VARCHAR, form_id VARCHAR)", "instruction": "Find the emails of parties with the most popular party form.", "output": "SELECT t1.party_email FROM parties AS t1 JOIN party_forms AS t2 ON t1.party_id = t2.party_id WHERE t2.form_id = (SELECT form_id FROM party_forms GROUP BY form_id ORDER BY COUNT(*) DESC LIMIT 1)" }
### INSTRUCTION How many authors or editors are there for the book title elf child? ### INPUT CREATE TABLE table_20193855_2 (author_s__or_editor_s_ VARCHAR, book_title VARCHAR) ### OUTPUT SELECT COUNT(author_s__or_editor_s_) FROM table_20193855_2 WHERE book_title = "Elf Child"
{ "input": "CREATE TABLE table_20193855_2 (author_s__or_editor_s_ VARCHAR, book_title VARCHAR)", "instruction": "How many authors or editors are there for the book title elf child?", "output": "SELECT COUNT(author_s__or_editor_s_) FROM table_20193855_2 WHERE book_title = \"Elf Child\"" }
### INSTRUCTION Find the first and last names of all the female (sex is F) students who have president votes. ### INPUT CREATE TABLE STUDENT (Fname VARCHAR, LName VARCHAR, StuID VARCHAR, sex VARCHAR); CREATE TABLE VOTING_RECORD (President_VOTE VARCHAR) ### OUTPUT SELECT DISTINCT T1.Fname, T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.President_VOTE WHERE T1.sex = "F"
{ "input": "CREATE TABLE STUDENT (Fname VARCHAR, LName VARCHAR, StuID VARCHAR, sex VARCHAR); CREATE TABLE VOTING_RECORD (President_VOTE VARCHAR)", "instruction": "Find the first and last names of all the female (sex is F) students who have president votes.", "output": "SELECT DISTINCT T1.Fname, T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.President_VOTE WHERE T1.sex = \"F\"" }
### INSTRUCTION What is the total of Poland, which has an E score greater than 7.725? ### INPUT CREATE TABLE table_name_97 (total VARCHAR, nation VARCHAR, e_score VARCHAR) ### OUTPUT SELECT COUNT(total) FROM table_name_97 WHERE nation = "poland" AND e_score > 7.725
{ "input": "CREATE TABLE table_name_97 (total VARCHAR, nation VARCHAR, e_score VARCHAR)", "instruction": "What is the total of Poland, which has an E score greater than 7.725?", "output": "SELECT COUNT(total) FROM table_name_97 WHERE nation = \"poland\" AND e_score > 7.725" }
### INSTRUCTION When the position in 2012-23 is 4th, second division what is the club? ### INPUT CREATE TABLE table_name_27 (club VARCHAR, position_in_2012_13 VARCHAR) ### OUTPUT SELECT club FROM table_name_27 WHERE position_in_2012_13 = "4th, second division"
{ "input": "CREATE TABLE table_name_27 (club VARCHAR, position_in_2012_13 VARCHAR)", "instruction": "When the position in 2012-23 is 4th, second division what is the club?", "output": "SELECT club FROM table_name_27 WHERE position_in_2012_13 = \"4th, second division\"" }
### INSTRUCTION display the employee ID and job name for all those jobs in department 80. ### INPUT CREATE TABLE jobs (job_title VARCHAR, job_id VARCHAR); CREATE TABLE employees (employee_id VARCHAR, job_id VARCHAR, department_id VARCHAR) ### OUTPUT SELECT T1.employee_id, T2.job_title FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T1.department_id = 80
{ "input": "CREATE TABLE jobs (job_title VARCHAR, job_id VARCHAR); CREATE TABLE employees (employee_id VARCHAR, job_id VARCHAR, department_id VARCHAR)", "instruction": "display the employee ID and job name for all those jobs in department 80.", "output": "SELECT T1.employee_id, T2.job_title FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T1.department_id = 80" }
### INSTRUCTION List the date the claim was made, the date it was settled and the amount settled for all the claims which had exactly one settlement. ### INPUT CREATE TABLE Claims (claim_id VARCHAR, date_claim_made VARCHAR, Date_Claim_Settled VARCHAR, Claim_id VARCHAR); CREATE TABLE Settlements (Claim_id VARCHAR) ### OUTPUT SELECT T1.claim_id, T1.date_claim_made, T1.Date_Claim_Settled FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id GROUP BY T1.claim_id HAVING COUNT(*) = 1
{ "input": "CREATE TABLE Claims (claim_id VARCHAR, date_claim_made VARCHAR, Date_Claim_Settled VARCHAR, Claim_id VARCHAR); CREATE TABLE Settlements (Claim_id VARCHAR)", "instruction": "List the date the claim was made, the date it was settled and the amount settled for all the claims which had exactly one settlement.", "output": "SELECT T1.claim_id, T1.date_claim_made, T1.Date_Claim_Settled FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id GROUP BY T1.claim_id HAVING COUNT(*) = 1" }
### INSTRUCTION I want the driver for grid of 9 ### INPUT CREATE TABLE table_name_59 (driver VARCHAR, grid VARCHAR) ### OUTPUT SELECT driver FROM table_name_59 WHERE grid = 9
{ "input": "CREATE TABLE table_name_59 (driver VARCHAR, grid VARCHAR)", "instruction": "I want the driver for grid of 9", "output": "SELECT driver FROM table_name_59 WHERE grid = 9" }
### INSTRUCTION What is the name of the Malta vessel built after 2010 that is a GL class Panamax vessel? ### INPUT CREATE TABLE table_name_56 (vessel_name VARCHAR, built VARCHAR, class VARCHAR, flag VARCHAR, type VARCHAR) ### OUTPUT SELECT vessel_name FROM table_name_56 WHERE flag = "malta" AND type = "panamax" AND class = "gl" AND built > 2010
{ "input": "CREATE TABLE table_name_56 (vessel_name VARCHAR, built VARCHAR, class VARCHAR, flag VARCHAR, type VARCHAR)", "instruction": "What is the name of the Malta vessel built after 2010 that is a GL class Panamax vessel?", "output": "SELECT vessel_name FROM table_name_56 WHERE flag = \"malta\" AND type = \"panamax\" AND class = \"gl\" AND built > 2010" }
### INSTRUCTION How many TV Channel using language English? ### INPUT CREATE TABLE TV_Channel (LANGUAGE VARCHAR) ### OUTPUT SELECT COUNT(*) FROM TV_Channel WHERE LANGUAGE = "English"
{ "input": "CREATE TABLE TV_Channel (LANGUAGE VARCHAR)", "instruction": "How many TV Channel using language English?", "output": "SELECT COUNT(*) FROM TV_Channel WHERE LANGUAGE = \"English\"" }
### INSTRUCTION When 21' 18.87 106.209mph is Tuesday August 24th what is Monday August 23rd? ### INPUT CREATE TABLE table_26986076_5 (mon_23_aug VARCHAR, tues_24_aug VARCHAR) ### OUTPUT SELECT mon_23_aug FROM table_26986076_5 WHERE tues_24_aug = "21' 18.87 106.209mph"
{ "input": "CREATE TABLE table_26986076_5 (mon_23_aug VARCHAR, tues_24_aug VARCHAR)", "instruction": "When 21' 18.87 106.209mph is Tuesday August 24th what is Monday August 23rd?", "output": "SELECT mon_23_aug FROM table_26986076_5 WHERE tues_24_aug = \"21' 18.87 106.209mph\"" }
### INSTRUCTION What is the lowest week that has September 19, 1965 as the date, with an attendance less than 46,941? ### INPUT CREATE TABLE table_name_70 (week INTEGER, date VARCHAR, attendance VARCHAR) ### OUTPUT SELECT MIN(week) FROM table_name_70 WHERE date = "september 19, 1965" AND attendance < 46 OFFSET 941
{ "input": "CREATE TABLE table_name_70 (week INTEGER, date VARCHAR, attendance VARCHAR)", "instruction": "What is the lowest week that has September 19, 1965 as the date, with an attendance less than 46,941?", "output": "SELECT MIN(week) FROM table_name_70 WHERE date = \"september 19, 1965\" AND attendance < 46 OFFSET 941" }
### INSTRUCTION What are the points against for 2001, and games won of 5 (3)? ### INPUT CREATE TABLE table_name_16 (points_against___tests__ VARCHAR, year_s_ VARCHAR, games_won___tests__ VARCHAR) ### OUTPUT SELECT points_against___tests__ FROM table_name_16 WHERE year_s_ = 2001 AND games_won___tests__ = "5 (3)"
{ "input": "CREATE TABLE table_name_16 (points_against___tests__ VARCHAR, year_s_ VARCHAR, games_won___tests__ VARCHAR)", "instruction": "What are the points against for 2001, and games won of 5 (3)?", "output": "SELECT points_against___tests__ FROM table_name_16 WHERE year_s_ = 2001 AND games_won___tests__ = \"5 (3)\"" }
### INSTRUCTION What is Astrid Gruber's email and phone number? ### INPUT CREATE TABLE customers (email VARCHAR, phone VARCHAR, first_name VARCHAR, last_name VARCHAR) ### OUTPUT SELECT email, phone FROM customers WHERE first_name = "Astrid" AND last_name = "Gruber"
{ "input": "CREATE TABLE customers (email VARCHAR, phone VARCHAR, first_name VARCHAR, last_name VARCHAR)", "instruction": "What is Astrid Gruber's email and phone number?", "output": "SELECT email, phone FROM customers WHERE first_name = \"Astrid\" AND last_name = \"Gruber\"" }
### INSTRUCTION Name the winning party 2007 for result of labour hold and swing to gain less than 7.11 for wrexham ### INPUT CREATE TABLE table_name_60 (winning_party_2007 VARCHAR, constituency VARCHAR, result VARCHAR, swing_to_gain VARCHAR) ### OUTPUT SELECT winning_party_2007 FROM table_name_60 WHERE result = "labour hold" AND swing_to_gain < 7.11 AND constituency = "wrexham"
{ "input": "CREATE TABLE table_name_60 (winning_party_2007 VARCHAR, constituency VARCHAR, result VARCHAR, swing_to_gain VARCHAR)", "instruction": "Name the winning party 2007 for result of labour hold and swing to gain less than 7.11 for wrexham", "output": "SELECT winning_party_2007 FROM table_name_60 WHERE result = \"labour hold\" AND swing_to_gain < 7.11 AND constituency = \"wrexham\"" }
### INSTRUCTION What is the platform of the game from 2007? ### INPUT CREATE TABLE table_name_95 (platform_s_ VARCHAR, year VARCHAR) ### OUTPUT SELECT platform_s_ FROM table_name_95 WHERE year = 2007
{ "input": "CREATE TABLE table_name_95 (platform_s_ VARCHAR, year VARCHAR)", "instruction": "What is the platform of the game from 2007?", "output": "SELECT platform_s_ FROM table_name_95 WHERE year = 2007" }
### INSTRUCTION What is the total revenue of all companies whose main office is at Tokyo or Taiwan? ### INPUT CREATE TABLE manufacturers (revenue INTEGER, Headquarter VARCHAR) ### OUTPUT SELECT SUM(revenue) FROM manufacturers WHERE Headquarter = 'Tokyo' OR Headquarter = 'Taiwan'
{ "input": "CREATE TABLE manufacturers (revenue INTEGER, Headquarter VARCHAR)", "instruction": "What is the total revenue of all companies whose main office is at Tokyo or Taiwan?", "output": "SELECT SUM(revenue) FROM manufacturers WHERE Headquarter = 'Tokyo' OR Headquarter = 'Taiwan'" }
### INSTRUCTION What Congress had less than 23 cosponsors and had June 30, 2005 as the date of introduction of the bill? ### INPUT CREATE TABLE table_name_92 (congress VARCHAR, _number_of_cosponsors VARCHAR, date_introduced VARCHAR) ### OUTPUT SELECT congress FROM table_name_92 WHERE _number_of_cosponsors < 23 AND date_introduced = "june 30, 2005"
{ "input": "CREATE TABLE table_name_92 (congress VARCHAR, _number_of_cosponsors VARCHAR, date_introduced VARCHAR)", "instruction": "What Congress had less than 23 cosponsors and had June 30, 2005 as the date of introduction of the bill?", "output": "SELECT congress FROM table_name_92 WHERE _number_of_cosponsors < 23 AND date_introduced = \"june 30, 2005\"" }
### INSTRUCTION What was the latest year that the Atlanta Braves won and the St. Louis Cardinals lost? ### INPUT CREATE TABLE table_name_70 (year INTEGER, winning_team VARCHAR, losing_team VARCHAR) ### OUTPUT SELECT MAX(year) FROM table_name_70 WHERE winning_team = "atlanta braves" AND losing_team = "st. louis cardinals"
{ "input": "CREATE TABLE table_name_70 (year INTEGER, winning_team VARCHAR, losing_team VARCHAR)", "instruction": "What was the latest year that the Atlanta Braves won and the St. Louis Cardinals lost?", "output": "SELECT MAX(year) FROM table_name_70 WHERE winning_team = \"atlanta braves\" AND losing_team = \"st. louis cardinals\"" }
### INSTRUCTION Which school/club has a pick smaller than 196, a round higher than 5 and has Blake Miller? ### INPUT CREATE TABLE table_name_25 (school_club_team VARCHAR, player VARCHAR, pick VARCHAR, round VARCHAR) ### OUTPUT SELECT school_club_team FROM table_name_25 WHERE pick < 196 AND round > 5 AND player = "blake miller"
{ "input": "CREATE TABLE table_name_25 (school_club_team VARCHAR, player VARCHAR, pick VARCHAR, round VARCHAR)", "instruction": "Which school/club has a pick smaller than 196, a round higher than 5 and has Blake Miller?", "output": "SELECT school_club_team FROM table_name_25 WHERE pick < 196 AND round > 5 AND player = \"blake miller\"" }
### INSTRUCTION What was the event when suárez ( tri ) w 16–6 was round of 32? ### INPUT CREATE TABLE table_27294107_11 (event VARCHAR, round_of_32 VARCHAR) ### OUTPUT SELECT event FROM table_27294107_11 WHERE round_of_32 = "Suárez ( TRI ) W 16–6"
{ "input": "CREATE TABLE table_27294107_11 (event VARCHAR, round_of_32 VARCHAR)", "instruction": "What was the event when suárez ( tri ) w 16–6 was round of 32?", "output": "SELECT event FROM table_27294107_11 WHERE round_of_32 = \"Suárez ( TRI ) W 16–6\"" }
### INSTRUCTION What is the playoffs result in years where Open Canada Cup was "N/A" and regular season result was "2nd, New England"? ### INPUT CREATE TABLE table_1999350_1 (playoffs VARCHAR, open_canada_cup VARCHAR, regular_season VARCHAR) ### OUTPUT SELECT playoffs FROM table_1999350_1 WHERE open_canada_cup = "N/A" AND regular_season = "2nd, New England"
{ "input": "CREATE TABLE table_1999350_1 (playoffs VARCHAR, open_canada_cup VARCHAR, regular_season VARCHAR)", "instruction": "What is the playoffs result in years where Open Canada Cup was \"N/A\" and regular season result was \"2nd, New England\"?", "output": "SELECT playoffs FROM table_1999350_1 WHERE open_canada_cup = \"N/A\" AND regular_season = \"2nd, New England\"" }
### INSTRUCTION Which home team score occurred at Victoria Park? ### INPUT CREATE TABLE table_name_42 (home_team VARCHAR, venue VARCHAR) ### OUTPUT SELECT home_team AS score FROM table_name_42 WHERE venue = "victoria park"
{ "input": "CREATE TABLE table_name_42 (home_team VARCHAR, venue VARCHAR)", "instruction": "Which home team score occurred at Victoria Park?", "output": "SELECT home_team AS score FROM table_name_42 WHERE venue = \"victoria park\"" }
### INSTRUCTION What is the Elevator of the Elected Elevated on September 21, 1179? ### INPUT CREATE TABLE table_name_50 (elevator VARCHAR, elevated VARCHAR) ### OUTPUT SELECT elevator FROM table_name_50 WHERE elevated = "september 21, 1179"
{ "input": "CREATE TABLE table_name_50 (elevator VARCHAR, elevated VARCHAR)", "instruction": "What is the Elevator of the Elected Elevated on September 21, 1179?", "output": "SELECT elevator FROM table_name_50 WHERE elevated = \"september 21, 1179\"" }
### INSTRUCTION When the frequency is 103.7 MHz and the ERP W is more than 10, what is the call sign? ### INPUT CREATE TABLE table_name_77 (call_sign VARCHAR, erp_w VARCHAR, frequency_mhz VARCHAR) ### OUTPUT SELECT call_sign FROM table_name_77 WHERE erp_w > 10 AND frequency_mhz = 103.7
{ "input": "CREATE TABLE table_name_77 (call_sign VARCHAR, erp_w VARCHAR, frequency_mhz VARCHAR)", "instruction": "When the frequency is 103.7 MHz and the ERP W is more than 10, what is the call sign?", "output": "SELECT call_sign FROM table_name_77 WHERE erp_w > 10 AND frequency_mhz = 103.7" }
### INSTRUCTION When Alberto Contador Kanstantsin Sivtsov was the general classification and Alessandro Petacchi was the points classification at the same time while Mark Cavendish is the winner, who was the mountain classification? ### INPUT CREATE TABLE table_28538368_2 (mountains_classification VARCHAR, winner VARCHAR, general_classification VARCHAR, points_classification VARCHAR) ### OUTPUT SELECT mountains_classification FROM table_28538368_2 WHERE general_classification = "Alberto Contador Kanstantsin Sivtsov" AND points_classification = "Alessandro Petacchi" AND winner = "Mark Cavendish"
{ "input": "CREATE TABLE table_28538368_2 (mountains_classification VARCHAR, winner VARCHAR, general_classification VARCHAR, points_classification VARCHAR)", "instruction": "When Alberto Contador Kanstantsin Sivtsov was the general classification and Alessandro Petacchi was the points classification at the same time while Mark Cavendish is the winner, who was the mountain classification?", "output": "SELECT mountains_classification FROM table_28538368_2 WHERE general_classification = \"Alberto Contador Kanstantsin Sivtsov\" AND points_classification = \"Alessandro Petacchi\" AND winner = \"Mark Cavendish\"" }
### INSTRUCTION List all the international lacrosse league competitions for Toronto Rock. ### INPUT CREATE TABLE table_18042409_1 (international_competition VARCHAR, national_lacrosse_league VARCHAR) ### OUTPUT SELECT international_competition FROM table_18042409_1 WHERE national_lacrosse_league = "Toronto Rock"
{ "input": "CREATE TABLE table_18042409_1 (international_competition VARCHAR, national_lacrosse_league VARCHAR)", "instruction": "List all the international lacrosse league competitions for Toronto Rock.", "output": "SELECT international_competition FROM table_18042409_1 WHERE national_lacrosse_league = \"Toronto Rock\"" }
### INSTRUCTION What's the total of Goals Scored with Points that's smaller than 27, and a Team of C.D. Atlético Balboa? ### INPUT CREATE TABLE table_name_40 (goals_scored INTEGER, points VARCHAR, team VARCHAR) ### OUTPUT SELECT SUM(goals_scored) FROM table_name_40 WHERE points < 27 AND team = "c.d. atlético balboa"
{ "input": "CREATE TABLE table_name_40 (goals_scored INTEGER, points VARCHAR, team VARCHAR)", "instruction": "What's the total of Goals Scored with Points that's smaller than 27, and a Team of C.D. Atlético Balboa?", "output": "SELECT SUM(goals_scored) FROM table_name_40 WHERE points < 27 AND team = \"c.d. atlético balboa\"" }
### INSTRUCTION Name the least place for draw more than 3 and points of 8 ### INPUT CREATE TABLE table_name_47 (place INTEGER, draw VARCHAR, points VARCHAR) ### OUTPUT SELECT MIN(place) FROM table_name_47 WHERE draw > 3 AND points = 8
{ "input": "CREATE TABLE table_name_47 (place INTEGER, draw VARCHAR, points VARCHAR)", "instruction": "Name the least place for draw more than 3 and points of 8", "output": "SELECT MIN(place) FROM table_name_47 WHERE draw > 3 AND points = 8" }
### INSTRUCTION What is the method of the match with 1 round and a time of 1:58? ### INPUT CREATE TABLE table_name_60 (method VARCHAR, round VARCHAR, time VARCHAR) ### OUTPUT SELECT method FROM table_name_60 WHERE round = 1 AND time = "1:58"
{ "input": "CREATE TABLE table_name_60 (method VARCHAR, round VARCHAR, time VARCHAR)", "instruction": "What is the method of the match with 1 round and a time of 1:58?", "output": "SELECT method FROM table_name_60 WHERE round = 1 AND time = \"1:58\"" }
### INSTRUCTION When Cincinnati is the tournament winner how many regular season winners are there? ### INPUT CREATE TABLE table_24160890_3 (regular_season_winner VARCHAR, tournament_winner VARCHAR) ### OUTPUT SELECT COUNT(regular_season_winner) FROM table_24160890_3 WHERE tournament_winner = "Cincinnati"
{ "input": "CREATE TABLE table_24160890_3 (regular_season_winner VARCHAR, tournament_winner VARCHAR)", "instruction": "When Cincinnati is the tournament winner how many regular season winners are there?", "output": "SELECT COUNT(regular_season_winner) FROM table_24160890_3 WHERE tournament_winner = \"Cincinnati\"" }
### INSTRUCTION What is the method of resolution for the fight that had a time of 5:00 and a record of 5-0? ### INPUT CREATE TABLE table_name_57 (method VARCHAR, time VARCHAR, record VARCHAR) ### OUTPUT SELECT method FROM table_name_57 WHERE time = "5:00" AND record = "5-0"
{ "input": "CREATE TABLE table_name_57 (method VARCHAR, time VARCHAR, record VARCHAR)", "instruction": "What is the method of resolution for the fight that had a time of 5:00 and a record of 5-0?", "output": "SELECT method FROM table_name_57 WHERE time = \"5:00\" AND record = \"5-0\"" }
### INSTRUCTION What district is tom j. murray from? ### INPUT CREATE TABLE table_1342013_41 (district VARCHAR, incumbent VARCHAR) ### OUTPUT SELECT district FROM table_1342013_41 WHERE incumbent = "Tom J. Murray"
{ "input": "CREATE TABLE table_1342013_41 (district VARCHAR, incumbent VARCHAR)", "instruction": "What district is tom j. murray from?", "output": "SELECT district FROM table_1342013_41 WHERE incumbent = \"Tom J. Murray\"" }
### INSTRUCTION List the names of products that are not in any event. ### INPUT CREATE TABLE Products (Product_Name VARCHAR, Product_ID VARCHAR); CREATE TABLE Products_in_Events (Product_Name VARCHAR, Product_ID VARCHAR) ### OUTPUT SELECT Product_Name FROM Products WHERE NOT Product_ID IN (SELECT Product_ID FROM Products_in_Events)
{ "input": "CREATE TABLE Products (Product_Name VARCHAR, Product_ID VARCHAR); CREATE TABLE Products_in_Events (Product_Name VARCHAR, Product_ID VARCHAR)", "instruction": "List the names of products that are not in any event.", "output": "SELECT Product_Name FROM Products WHERE NOT Product_ID IN (SELECT Product_ID FROM Products_in_Events)" }
### INSTRUCTION For each product that has problems, find the number of problems reported after 1986-11-13 and the product id? ### INPUT CREATE TABLE product (product_id VARCHAR); CREATE TABLE problems (product_id VARCHAR, date_problem_reported INTEGER) ### OUTPUT SELECT COUNT(*), T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T1.date_problem_reported > "1986-11-13" GROUP BY T2.product_id
{ "input": "CREATE TABLE product (product_id VARCHAR); CREATE TABLE problems (product_id VARCHAR, date_problem_reported INTEGER)", "instruction": "For each product that has problems, find the number of problems reported after 1986-11-13 and the product id?", "output": "SELECT COUNT(*), T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T1.date_problem_reported > \"1986-11-13\" GROUP BY T2.product_id" }
### INSTRUCTION Show the enrollment and primary_conference of the oldest college. ### INPUT CREATE TABLE university (enrollment VARCHAR, primary_conference VARCHAR, founded VARCHAR) ### OUTPUT SELECT enrollment, primary_conference FROM university ORDER BY founded LIMIT 1
{ "input": "CREATE TABLE university (enrollment VARCHAR, primary_conference VARCHAR, founded VARCHAR)", "instruction": "Show the enrollment and primary_conference of the oldest college.", "output": "SELECT enrollment, primary_conference FROM university ORDER BY founded LIMIT 1" }
### INSTRUCTION How many Poles have Drivers of juan cruz álvarez, and FLaps larger than 0? ### INPUT CREATE TABLE table_name_27 (poles INTEGER, drivers VARCHAR, flaps VARCHAR) ### OUTPUT SELECT SUM(poles) FROM table_name_27 WHERE drivers = "juan cruz álvarez" AND flaps > 0
{ "input": "CREATE TABLE table_name_27 (poles INTEGER, drivers VARCHAR, flaps VARCHAR)", "instruction": "How many Poles have Drivers of juan cruz álvarez, and FLaps larger than 0?", "output": "SELECT SUM(poles) FROM table_name_27 WHERE drivers = \"juan cruz álvarez\" AND flaps > 0" }
### INSTRUCTION what is the built when s.r. number is less than 2033, lb&sc number is less than 18, notes is i2 and withdrawal is cannot handle non-empty timestamp argument! 1935? ### INPUT CREATE TABLE table_name_48 (built VARCHAR, withdrawal VARCHAR, notes VARCHAR, sr_number VARCHAR, lb VARCHAR, sc_number VARCHAR) ### OUTPUT SELECT built FROM table_name_48 WHERE sr_number < 2033 AND lb & sc_number < 18 AND notes = "i2" AND withdrawal = "cannot handle non-empty timestamp argument! 1935"
{ "input": "CREATE TABLE table_name_48 (built VARCHAR, withdrawal VARCHAR, notes VARCHAR, sr_number VARCHAR, lb VARCHAR, sc_number VARCHAR)", "instruction": "what is the built when s.r. number is less than 2033, lb&sc number is less than 18, notes is i2 and withdrawal is cannot handle non-empty timestamp argument! 1935?", "output": "SELECT built FROM table_name_48 WHERE sr_number < 2033 AND lb & sc_number < 18 AND notes = \"i2\" AND withdrawal = \"cannot handle non-empty timestamp argument! 1935\"" }
### INSTRUCTION List all episode air dates where Luiza Possi was the guest fourth judge? ### INPUT CREATE TABLE table_27615445_1 (episode_air_date VARCHAR, guest_fourth_judge VARCHAR) ### OUTPUT SELECT episode_air_date FROM table_27615445_1 WHERE guest_fourth_judge = "Luiza Possi"
{ "input": "CREATE TABLE table_27615445_1 (episode_air_date VARCHAR, guest_fourth_judge VARCHAR)", "instruction": "List all episode air dates where Luiza Possi was the guest fourth judge?", "output": "SELECT episode_air_date FROM table_27615445_1 WHERE guest_fourth_judge = \"Luiza Possi\"" }
### INSTRUCTION Can you tell me the total number of Total votes that has the Election larger than 2009, and the Candidates fielded larger than 61? ### INPUT CREATE TABLE table_name_71 (total_votes VARCHAR, election VARCHAR, candidates_fielded VARCHAR) ### OUTPUT SELECT COUNT(total_votes) FROM table_name_71 WHERE election > 2009 AND candidates_fielded > 61
{ "input": "CREATE TABLE table_name_71 (total_votes VARCHAR, election VARCHAR, candidates_fielded VARCHAR)", "instruction": "Can you tell me the total number of Total votes that has the Election larger than 2009, and the Candidates fielded larger than 61?", "output": "SELECT COUNT(total_votes) FROM table_name_71 WHERE election > 2009 AND candidates_fielded > 61" }
### INSTRUCTION Which Fencing Victories (pts) has a Shooting Score (pts) of 187 (1180) and a Total smaller than 5640? Question 1 ### INPUT CREATE TABLE table_name_61 (fencing_victories__pts_ VARCHAR, shooting_score__pts_ VARCHAR, total VARCHAR) ### OUTPUT SELECT fencing_victories__pts_ FROM table_name_61 WHERE shooting_score__pts_ = "187 (1180)" AND total < 5640
{ "input": "CREATE TABLE table_name_61 (fencing_victories__pts_ VARCHAR, shooting_score__pts_ VARCHAR, total VARCHAR)", "instruction": "Which Fencing Victories (pts) has a Shooting Score (pts) of 187 (1180) and a Total smaller than 5640? Question 1", "output": "SELECT fencing_victories__pts_ FROM table_name_61 WHERE shooting_score__pts_ = \"187 (1180)\" AND total < 5640" }
### INSTRUCTION What amount of the university students and adults ehre the the senior high school is 26mm? ### INPUT CREATE TABLE table_13555999_1 (university_students_and_adults__18yrs VARCHAR, _ VARCHAR, senior_high_school__15_18_yrs_ VARCHAR) ### OUTPUT SELECT university_students_and_adults__18yrs + _ FROM table_13555999_1 WHERE senior_high_school__15_18_yrs_ = "26mm"
{ "input": "CREATE TABLE table_13555999_1 (university_students_and_adults__18yrs VARCHAR, _ VARCHAR, senior_high_school__15_18_yrs_ VARCHAR)", "instruction": "What amount of the university students and adults ehre the the senior high school is 26mm?", "output": "SELECT university_students_and_adults__18yrs + _ FROM table_13555999_1 WHERE senior_high_school__15_18_yrs_ = \"26mm\"" }
### INSTRUCTION What is the Musical Guest/Song with an original airdate of january 2008? ### INPUT CREATE TABLE table_name_85 (musical_guest_song_performed VARCHAR, original_airdate VARCHAR) ### OUTPUT SELECT musical_guest_song_performed FROM table_name_85 WHERE original_airdate = "january 2008"
{ "input": "CREATE TABLE table_name_85 (musical_guest_song_performed VARCHAR, original_airdate VARCHAR)", "instruction": "What is the Musical Guest/Song with an original airdate of january 2008?", "output": "SELECT musical_guest_song_performed FROM table_name_85 WHERE original_airdate = \"january 2008\"" }
### INSTRUCTION Name the melbourne for adelaide of no with auckland of yes and gold coast of yes ### INPUT CREATE TABLE table_name_49 (melbourne VARCHAR, gold_coast VARCHAR, adelaide VARCHAR, auckland VARCHAR) ### OUTPUT SELECT melbourne FROM table_name_49 WHERE adelaide = "no" AND auckland = "yes" AND gold_coast = "no"
{ "input": "CREATE TABLE table_name_49 (melbourne VARCHAR, gold_coast VARCHAR, adelaide VARCHAR, auckland VARCHAR)", "instruction": "Name the melbourne for adelaide of no with auckland of yes and gold coast of yes", "output": "SELECT melbourne FROM table_name_49 WHERE adelaide = \"no\" AND auckland = \"yes\" AND gold_coast = \"no\"" }
### INSTRUCTION Before 2012, which Group has the Result, nominated, the Film/Show, East West 101, and the Award, Best Lead Actor in A Television Drama? ### INPUT CREATE TABLE table_name_31 (group VARCHAR, award VARCHAR, film_show VARCHAR, result VARCHAR, year VARCHAR) ### OUTPUT SELECT group FROM table_name_31 WHERE result = "nominated" AND year < 2012 AND film_show = "east west 101" AND award = "best lead actor in a television drama"
{ "input": "CREATE TABLE table_name_31 (group VARCHAR, award VARCHAR, film_show VARCHAR, result VARCHAR, year VARCHAR)", "instruction": "Before 2012, which Group has the Result, nominated, the Film/Show, East West 101, and the Award, Best Lead Actor in A Television Drama?", "output": "SELECT group FROM table_name_31 WHERE result = \"nominated\" AND year < 2012 AND film_show = \"east west 101\" AND award = \"best lead actor in a television drama\"" }
### INSTRUCTION This engine with a cylinder size of 20 ½” x 26” and a firebox of radial-stay was built when? ### INPUT CREATE TABLE table_25695027_1 (years_built VARCHAR, cylinder_size VARCHAR, firebox VARCHAR) ### OUTPUT SELECT years_built FROM table_25695027_1 WHERE cylinder_size = "20 ½” x 26”" AND firebox = "Radial-stay"
{ "input": "CREATE TABLE table_25695027_1 (years_built VARCHAR, cylinder_size VARCHAR, firebox VARCHAR)", "instruction": "This engine with a cylinder size of 20 ½” x 26” and a firebox of radial-stay was built when?", "output": "SELECT years_built FROM table_25695027_1 WHERE cylinder_size = \"20 ½” x 26”\" AND firebox = \"Radial-stay\"" }
### INSTRUCTION What was the result of the Australian Championships? ### INPUT CREATE TABLE table_2139023_2 (outcome VARCHAR, championship VARCHAR) ### OUTPUT SELECT outcome FROM table_2139023_2 WHERE championship = "Australian championships"
{ "input": "CREATE TABLE table_2139023_2 (outcome VARCHAR, championship VARCHAR)", "instruction": "What was the result of the Australian Championships?", "output": "SELECT outcome FROM table_2139023_2 WHERE championship = \"Australian championships\"" }
### INSTRUCTION Find all the papers published by "Aaron Turon". ### INPUT CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR) ### OUTPUT SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Aaron" AND t1.lname = "Turon"
{ "input": "CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR)", "instruction": "Find all the papers published by \"Aaron Turon\".", "output": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Aaron\" AND t1.lname = \"Turon\"" }
### INSTRUCTION What are the average prices and cases of wines produced in the year of 2009 and made of Zinfandel grape? ### INPUT CREATE TABLE WINE (Price INTEGER, Cases INTEGER, YEAR VARCHAR, Grape VARCHAR) ### OUTPUT SELECT AVG(Price), AVG(Cases) FROM WINE WHERE YEAR = 2009 AND Grape = "Zinfandel"
{ "input": "CREATE TABLE WINE (Price INTEGER, Cases INTEGER, YEAR VARCHAR, Grape VARCHAR)", "instruction": "What are the average prices and cases of wines produced in the year of 2009 and made of Zinfandel grape?", "output": "SELECT AVG(Price), AVG(Cases) FROM WINE WHERE YEAR = 2009 AND Grape = \"Zinfandel\"" }
### INSTRUCTION What is the Record with a Date with december 9? ### INPUT CREATE TABLE table_name_97 (record VARCHAR, date VARCHAR) ### OUTPUT SELECT record FROM table_name_97 WHERE date = "december 9"
{ "input": "CREATE TABLE table_name_97 (record VARCHAR, date VARCHAR)", "instruction": "What is the Record with a Date with december 9?", "output": "SELECT record FROM table_name_97 WHERE date = \"december 9\"" }
### INSTRUCTION What is the lowest Bronze with a Nation of egypt (egy) and with a Gold that is smaller than 2? ### INPUT CREATE TABLE table_name_56 (bronze INTEGER, nation VARCHAR, gold VARCHAR) ### OUTPUT SELECT MIN(bronze) FROM table_name_56 WHERE nation = "egypt (egy)" AND gold < 2
{ "input": "CREATE TABLE table_name_56 (bronze INTEGER, nation VARCHAR, gold VARCHAR)", "instruction": "What is the lowest Bronze with a Nation of egypt (egy) and with a Gold that is smaller than 2?", "output": "SELECT MIN(bronze) FROM table_name_56 WHERE nation = \"egypt (egy)\" AND gold < 2" }
### INSTRUCTION What date was the Italian Grand Prix? ### INPUT CREATE TABLE table_name_12 (date VARCHAR, race VARCHAR) ### OUTPUT SELECT date FROM table_name_12 WHERE race = "italian grand prix"
{ "input": "CREATE TABLE table_name_12 (date VARCHAR, race VARCHAR)", "instruction": "What date was the Italian Grand Prix?", "output": "SELECT date FROM table_name_12 WHERE race = \"italian grand prix\"" }
### INSTRUCTION Which winning driver of the Roussillon Grand Prix had an Alfa Romeo? ### INPUT CREATE TABLE table_name_53 (winning_driver VARCHAR, winning_constructor VARCHAR, name VARCHAR) ### OUTPUT SELECT winning_driver FROM table_name_53 WHERE winning_constructor = "alfa romeo" AND name = "roussillon grand prix"
{ "input": "CREATE TABLE table_name_53 (winning_driver VARCHAR, winning_constructor VARCHAR, name VARCHAR)", "instruction": "Which winning driver of the Roussillon Grand Prix had an Alfa Romeo?", "output": "SELECT winning_driver FROM table_name_53 WHERE winning_constructor = \"alfa romeo\" AND name = \"roussillon grand prix\"" }