chat_prompt
stringlengths
438
1.53k
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"writers_guild_of_america\" (\n \"year\" real,\n \"category\" text,\n \"recipients_and_nominees\" text,\n \"role_episode\" text,\n \"result\" text\n);\n\nQuestion: Which result has a recipients and nominees of outstanding achievement in drama with 1995 as the year?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"writers_guild_of_america\" WHERE \"recipients_and_nominees\"='outstanding achievement in drama' AND \"year\"=1995;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"writers_guild_of_america\" (\n \"year\" real,\n \"category\" text,\n \"recipients_and_nominees\" text,\n \"role_episode\" text,\n \"result\" text\n);\n\nQuestion: What recipients and nominees have outstanding achievement in drama as the category with 1994 as the year?" }, { "role": "assistant", "content": "SELECT \"recipients_and_nominees\" FROM \"writers_guild_of_america\" WHERE \"category\"='outstanding achievement in drama' AND \"year\"=1994;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"writers_guild_of_america\" (\n \"year\" real,\n \"category\" text,\n \"recipients_and_nominees\" text,\n \"role_episode\" text,\n \"result\" text\n);\n\nQuestion: What result has outstanding achievement in drama, as the role/episode with a year prior to 1995?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"writers_guild_of_america\" WHERE \"role_episode\"='outstanding achievement in drama' AND \"year\"<1995;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualified_competitors\" (\n \"position\" real,\n \"gymnast\" text,\n \"a_score\" real,\n \"b_score\" real,\n \"total\" real\n);\n\nQuestion: What is the total for Danny Pinheiro Rodrigues ( fra ), in a Position smaller than 7?" }, { "role": "assistant", "content": "SELECT AVG(\"total\") FROM \"qualified_competitors\" WHERE \"gymnast\"='danny pinheiro rodrigues ( fra )' AND \"position\"<7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualified_competitors\" (\n \"position\" real,\n \"gymnast\" text,\n \"a_score\" real,\n \"b_score\" real,\n \"total\" real\n);\n\nQuestion: What is the total for Chen Yibing ( chn ), when his B Score was smaller than 9.225?" }, { "role": "assistant", "content": "SELECT COUNT(\"total\") FROM \"qualified_competitors\" WHERE \"gymnast\"='chen yibing ( chn )' AND \"b_score\"<9.225;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualified_competitors\" (\n \"position\" real,\n \"gymnast\" text,\n \"a_score\" real,\n \"b_score\" real,\n \"total\" real\n);\n\nQuestion: What is the A Score when the B Score is more than 9.05, and the total is less than 16.525?" }, { "role": "assistant", "content": "SELECT COUNT(\"a_score\") FROM \"qualified_competitors\" WHERE \"b_score\">9.05 AND \"total\"<16.525;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualified_competitors\" (\n \"position\" real,\n \"gymnast\" text,\n \"a_score\" real,\n \"b_score\" real,\n \"total\" real\n);\n\nQuestion: What is the position for Oleksandr Vorobiov ( ukr ), when the total was larger than 16.25?" }, { "role": "assistant", "content": "SELECT COUNT(\"position\") FROM \"qualified_competitors\" WHERE \"gymnast\"='oleksandr vorobiov ( ukr )' AND \"total\">16.25;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualified_competitors\" (\n \"position\" real,\n \"gymnast\" text,\n \"a_score\" real,\n \"b_score\" real,\n \"total\" real\n);\n\nQuestion: What is the total for Robert Stanescu ( rou ), when the B Score is larger than 8.75?" }, { "role": "assistant", "content": "SELECT SUM(\"total\") FROM \"qualified_competitors\" WHERE \"gymnast\"='robert stanescu ( rou )' AND \"b_score\">8.75;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"repechage\" (\n \"rank\" real,\n \"rowers\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: Poland has what notes?" }, { "role": "assistant", "content": "SELECT \"notes\" FROM \"repechage\" WHERE \"country\"='poland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"repechage\" (\n \"rank\" real,\n \"rowers\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: What is Croatia's rank?" }, { "role": "assistant", "content": "SELECT \"rank\" FROM \"repechage\" WHERE \"country\"='croatia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"repechage\" (\n \"rank\" real,\n \"rowers\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: When rank is 5, what is the rowers?" }, { "role": "assistant", "content": "SELECT \"rowers\" FROM \"repechage\" WHERE \"rank\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"repechage\" (\n \"rank\" real,\n \"rowers\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: What is the average rank for Denmark?" }, { "role": "assistant", "content": "SELECT AVG(\"rank\") FROM \"repechage\" WHERE \"country\"='denmark';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_housing_and_construction_ministe\" (\n \"minister\" text,\n \"party\" text,\n \"governments\" text,\n \"term_start\" text,\n \"term_end\" text\n);\n\nQuestion: What is the end of the term for Kadima that started on 18 January 2006?" }, { "role": "assistant", "content": "SELECT \"term_end\" FROM \"list_of_housing_and_construction_ministe\" WHERE \"party\"='kadima' AND \"term_start\"='18 january 2006';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_housing_and_construction_ministe\" (\n \"minister\" text,\n \"party\" text,\n \"governments\" text,\n \"term_start\" text,\n \"term_end\" text\n);\n\nQuestion: Whose term started on 4 May 2006?" }, { "role": "assistant", "content": "SELECT \"minister\" FROM \"list_of_housing_and_construction_ministe\" WHERE \"term_start\"='4 may 2006';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performance_and_rankings_timeline\" (\n \"2005_06\" text,\n \"2006_07\" text,\n \"2007_08\" text,\n \"2009_10\" text,\n \"2010_11\" text,\n \"2011_12\" text,\n \"2012_13\" text\n);\n\nQuestion: Which 2005/ 06 has a 2006/ 07 of ur?" }, { "role": "assistant", "content": "SELECT \"2005_06\" FROM \"performance_and_rankings_timeline\" WHERE \"2006_07\"='ur';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performance_and_rankings_timeline\" (\n \"2005_06\" text,\n \"2006_07\" text,\n \"2007_08\" text,\n \"2009_10\" text,\n \"2010_11\" text,\n \"2011_12\" text,\n \"2012_13\" text\n);\n\nQuestion: Which 2005/ 06 has a 2011/ 12 of ranking tournaments" }, { "role": "assistant", "content": "SELECT \"2005_06\" FROM \"performance_and_rankings_timeline\" WHERE \"2011_12\"='ranking tournaments';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performance_and_rankings_timeline\" (\n \"2005_06\" text,\n \"2006_07\" text,\n \"2007_08\" text,\n \"2009_10\" text,\n \"2010_11\" text,\n \"2011_12\" text,\n \"2012_13\" text\n);\n\nQuestion: Which the 2007/ 08 has a 2006/ 07 of 1r?" }, { "role": "assistant", "content": "SELECT \"2007_08\" FROM \"performance_and_rankings_timeline\" WHERE \"2006_07\"='1r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performance_and_rankings_timeline\" (\n \"2005_06\" text,\n \"2006_07\" text,\n \"2007_08\" text,\n \"2009_10\" text,\n \"2010_11\" text,\n \"2011_12\" text,\n \"2012_13\" text\n);\n\nQuestion: Which 2010/ 11 has a 2011/ 12 of wr?" }, { "role": "assistant", "content": "SELECT \"2010_11\" FROM \"performance_and_rankings_timeline\" WHERE \"2011_12\"='wr';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performance_and_rankings_timeline\" (\n \"2005_06\" text,\n \"2006_07\" text,\n \"2007_08\" text,\n \"2009_10\" text,\n \"2010_11\" text,\n \"2011_12\" text,\n \"2012_13\" text\n);\n\nQuestion: Which in 2007/ 08 has a 2009/ 10 of non-ranking?" }, { "role": "assistant", "content": "SELECT \"2007_08\" FROM \"performance_and_rankings_timeline\" WHERE \"2009_10\"='non-ranking';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performance_and_rankings_timeline\" (\n \"2005_06\" text,\n \"2006_07\" text,\n \"2007_08\" text,\n \"2009_10\" text,\n \"2010_11\" text,\n \"2011_12\" text,\n \"2012_13\" text\n);\n\nQuestion: Name the 2010/ 11 which has a 2006/ 07 of not held, and a 2011/ 12 of a, and a 2012/ 13 of a?" }, { "role": "assistant", "content": "SELECT \"2010_11\" FROM \"performance_and_rankings_timeline\" WHERE \"2006_07\"='not held' AND \"2011_12\"='a' AND \"2012_13\"='a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What's the number of bronze when they are ranked 29, had a total more than 3 and less than 2 golds?" }, { "role": "assistant", "content": "SELECT MIN(\"bronze\") FROM \"medal_table\" WHERE \"gold\"<2 AND \"rank\"='29' AND \"total\">3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What's the bronze medal count for Rank 33 when the silver count was less than 2 and the total was more than 4?" }, { "role": "assistant", "content": "SELECT MAX(\"bronze\") FROM \"medal_table\" WHERE \"silver\"<2 AND \"total\">4 AND \"rank\"='33';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: How many silver for rank 22 when gold count was more than 0 and Bronze count was less than 5?" }, { "role": "assistant", "content": "SELECT SUM(\"silver\") FROM \"medal_table\" WHERE \"bronze\"<5 AND \"gold\">0 AND \"rank\"='22';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What's the bronze count for South Africa (RSA) with a total more than 16?" }, { "role": "assistant", "content": "SELECT MAX(\"bronze\") FROM \"medal_table\" WHERE \"nation\"='south africa (rsa)' AND \"total\">16;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"provinces\" (\n \"province\" text,\n \"inhabitants\" real,\n \"established\" real,\n \"president\" text,\n \"party\" text,\n \"election\" real\n);\n\nQuestion: What was the lowest election result for President Leonardo Marras with an area smaller than 227,063 people?" }, { "role": "assistant", "content": "SELECT MIN(\"election\") FROM \"provinces\" WHERE \"president\"='leonardo marras' AND \"inhabitants\"<'227,063';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"provinces\" (\n \"province\" text,\n \"inhabitants\" real,\n \"established\" real,\n \"president\" text,\n \"party\" text,\n \"election\" real\n);\n\nQuestion: What is the party affiliation for President Stefano Baccelli?" }, { "role": "assistant", "content": "SELECT \"party\" FROM \"provinces\" WHERE \"president\"='stefano baccelli';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"provinces\" (\n \"province\" text,\n \"inhabitants\" real,\n \"established\" real,\n \"president\" text,\n \"party\" text,\n \"election\" real\n);\n\nQuestion: What is the average election result for the province of Grosseto from 1766 and prior?" }, { "role": "assistant", "content": "SELECT AVG(\"election\") FROM \"provinces\" WHERE \"province\"='grosseto' AND \"established\"<1766;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"legislation_sponsored_by_john_mc_cain\" (\n \"years_covered\" text,\n \"all_bills_sponsored\" real,\n \"all_amendments_sponsored\" real,\n \"all_bills_cosponsored\" real,\n \"all_amendments_cosponsored\" real,\n \"bills_originally_cosponsored\" real,\n \"amendments_originally_cosponsored\" real\n);\n\nQuestion: What is the total number of all bills co-sponsored associated with all amendments sponsored under 15, all bills sponsored of 6, and 0 amendments cosponsored?" }, { "role": "assistant", "content": "SELECT COUNT(\"all_bills_cosponsored\") FROM \"legislation_sponsored_by_john_mc_cain\" WHERE \"all_amendments_sponsored\"<15 AND \"all_bills_sponsored\"=6 AND \"all_amendments_cosponsored\"<0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"legislation_sponsored_by_john_mc_cain\" (\n \"years_covered\" text,\n \"all_bills_sponsored\" real,\n \"all_amendments_sponsored\" real,\n \"all_bills_cosponsored\" real,\n \"all_amendments_cosponsored\" real,\n \"bills_originally_cosponsored\" real,\n \"amendments_originally_cosponsored\" real\n);\n\nQuestion: What is the fewest amendments sponsored associated with 150 bills originally cosponsored and over 247 bills cosponsored?" }, { "role": "assistant", "content": "SELECT MIN(\"all_amendments_sponsored\") FROM \"legislation_sponsored_by_john_mc_cain\" WHERE \"bills_originally_cosponsored\"=150 AND \"all_bills_cosponsored\">247;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"legislation_sponsored_by_john_mc_cain\" (\n \"years_covered\" text,\n \"all_bills_sponsored\" real,\n \"all_amendments_sponsored\" real,\n \"all_bills_cosponsored\" real,\n \"all_amendments_cosponsored\" real,\n \"bills_originally_cosponsored\" real,\n \"amendments_originally_cosponsored\" real\n);\n\nQuestion: What is the highest number of bills cosponsored associated with under 24 bills sponsored and under 16 amendments sponsored?" }, { "role": "assistant", "content": "SELECT MAX(\"all_bills_cosponsored\") FROM \"legislation_sponsored_by_john_mc_cain\" WHERE \"all_bills_sponsored\"<24 AND \"all_amendments_sponsored\"<16;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"legislation_sponsored_by_john_mc_cain\" (\n \"years_covered\" text,\n \"all_bills_sponsored\" real,\n \"all_amendments_sponsored\" real,\n \"all_bills_cosponsored\" real,\n \"all_amendments_cosponsored\" real,\n \"bills_originally_cosponsored\" real,\n \"amendments_originally_cosponsored\" real\n);\n\nQuestion: What is the highest number of amendments cosponsored associated with 53 amendments originally cosponsored and over 54 bills sponsored?" }, { "role": "assistant", "content": "SELECT MAX(\"all_amendments_cosponsored\") FROM \"legislation_sponsored_by_john_mc_cain\" WHERE \"amendments_originally_cosponsored\"=53 AND \"all_bills_sponsored\">54;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"legislation_sponsored_by_john_mc_cain\" (\n \"years_covered\" text,\n \"all_bills_sponsored\" real,\n \"all_amendments_sponsored\" real,\n \"all_bills_cosponsored\" real,\n \"all_amendments_cosponsored\" real,\n \"bills_originally_cosponsored\" real,\n \"amendments_originally_cosponsored\" real\n);\n\nQuestion: What is the number of bills sponsored associated with over 113 bills originally cosponsored and under 47 amendments cosponsored?" }, { "role": "assistant", "content": "SELECT \"all_bills_sponsored\" FROM \"legislation_sponsored_by_john_mc_cain\" WHERE \"bills_originally_cosponsored\">113 AND \"all_amendments_cosponsored\"<47;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What is the Lane of the swimmer from Uzbekistan in Heat 1?" }, { "role": "assistant", "content": "SELECT COUNT(\"lane\") FROM \"heats\" WHERE \"heat\"=1 AND \"nationality\"='uzbekistan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_radio_stations_in_malaysia\" (\n \"frequency\" text,\n \"station\" text,\n \"operator\" text,\n \"country_of_origin\" text,\n \"transmitter_location\" text,\n \"format\" text\n);\n\nQuestion: Which station has a frequency of 873khz?" }, { "role": "assistant", "content": "SELECT \"station\" FROM \"list_of_radio_stations_in_malaysia\" WHERE \"frequency\"='873khz';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_radio_stations_in_malaysia\" (\n \"frequency\" text,\n \"station\" text,\n \"operator\" text,\n \"country_of_origin\" text,\n \"transmitter_location\" text,\n \"format\" text\n);\n\nQuestion: Where is the transmitter located for the station voice of vietnam" }, { "role": "assistant", "content": "SELECT \"transmitter_location\" FROM \"list_of_radio_stations_in_malaysia\" WHERE \"station\"='voice of vietnam';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_radio_stations_in_malaysia\" (\n \"frequency\" text,\n \"station\" text,\n \"operator\" text,\n \"country_of_origin\" text,\n \"transmitter_location\" text,\n \"format\" text\n);\n\nQuestion: Which station is from China and has a frequency of 684khz?" }, { "role": "assistant", "content": "SELECT \"station\" FROM \"list_of_radio_stations_in_malaysia\" WHERE \"country_of_origin\"='china' AND \"frequency\"='684khz';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"single_game\" (\n \"rank\" real,\n \"player\" text,\n \"county\" text,\n \"tally\" text,\n \"total\" real,\n \"opposition\" text\n);\n\nQuestion: Name the Tally of an Opposition of westmeath?" }, { "role": "assistant", "content": "SELECT \"tally\" FROM \"single_game\" WHERE \"opposition\"='westmeath';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"individuals\" (\n \"position\" real,\n \"gymnast\" text,\n \"floor\" text,\n \"pommel_horse\" text,\n \"rings\" text,\n \"vault\" text,\n \"parallel_bars\" text,\n \"horizontal_bar\" text,\n \"total\" real\n);\n\nQuestion: What is the horizontal bar score with a pommel horse of n/a, and the position is less than 27, and the parallel bars score is 15.800?" }, { "role": "assistant", "content": "SELECT \"horizontal_bar\" FROM \"individuals\" WHERE \"pommel_horse\"='n/a' AND \"position\"<27 AND \"parallel_bars\"='15.800';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"individuals\" (\n \"position\" real,\n \"gymnast\" text,\n \"floor\" text,\n \"pommel_horse\" text,\n \"rings\" text,\n \"vault\" text,\n \"parallel_bars\" text,\n \"horizontal_bar\" text,\n \"total\" real\n);\n\nQuestion: What is the score of the floor when the position is less than 21, and less than 81.2 total, and the pommel horse score is 13.925?" }, { "role": "assistant", "content": "SELECT \"floor\" FROM \"individuals\" WHERE \"position\"<21 AND \"total\"<81.2 AND \"pommel_horse\"='13.925';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"individuals\" (\n \"position\" real,\n \"gymnast\" text,\n \"floor\" text,\n \"pommel_horse\" text,\n \"rings\" text,\n \"vault\" text,\n \"parallel_bars\" text,\n \"horizontal_bar\" text,\n \"total\" real\n);\n\nQuestion: Who is the gymnast with a floor score of 14.800?" }, { "role": "assistant", "content": "SELECT \"gymnast\" FROM \"individuals\" WHERE \"floor\"='14.800';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"individuals\" (\n \"position\" real,\n \"gymnast\" text,\n \"floor\" text,\n \"pommel_horse\" text,\n \"rings\" text,\n \"vault\" text,\n \"parallel_bars\" text,\n \"horizontal_bar\" text,\n \"total\" real\n);\n\nQuestion: What horizontal bar score also has a pommel horse score of 15.250?" }, { "role": "assistant", "content": "SELECT \"horizontal_bar\" FROM \"individuals\" WHERE \"pommel_horse\"='15.250';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"individuals\" (\n \"position\" real,\n \"gymnast\" text,\n \"floor\" text,\n \"pommel_horse\" text,\n \"rings\" text,\n \"vault\" text,\n \"parallel_bars\" text,\n \"horizontal_bar\" text,\n \"total\" real\n);\n\nQuestion: With a parallel bars score of 14.625 what is the average total?" }, { "role": "assistant", "content": "SELECT AVG(\"total\") FROM \"individuals\" WHERE \"parallel_bars\"='14.625';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"heat_1\" (\n \"rank\" real,\n \"athletes\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: What is the Rank of the Athletes with a Time of 3:43.491?" }, { "role": "assistant", "content": "SELECT COUNT(\"rank\") FROM \"heat_1\" WHERE \"time\"='3:43.491';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"heat_1\" (\n \"rank\" real,\n \"athletes\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: What are the Notes of the Athletes from Germany?" }, { "role": "assistant", "content": "SELECT \"notes\" FROM \"heat_1\" WHERE \"country\"='germany';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"heat_1\" (\n \"rank\" real,\n \"athletes\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: What is the Rank of the Athletes from Ukraine?" }, { "role": "assistant", "content": "SELECT COUNT(\"rank\") FROM \"heat_1\" WHERE \"country\"='ukraine';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"event\" text,\n \"date\" text,\n \"location\" text,\n \"winning_skip\" text,\n \"runner_up_skip\" text\n);\n\nQuestion: What location did Sherry Middaugh win in?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"winners\" WHERE \"winning_skip\"='sherry middaugh';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"event\" text,\n \"date\" text,\n \"location\" text,\n \"winning_skip\" text,\n \"runner_up_skip\" text\n);\n\nQuestion: What event did Patti Lank have the winning skip?" }, { "role": "assistant", "content": "SELECT \"event\" FROM \"winners\" WHERE \"winning_skip\"='patti lank';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"event\" text,\n \"date\" text,\n \"location\" text,\n \"winning_skip\" text,\n \"runner_up_skip\" text\n);\n\nQuestion: What date shows Binia Feltscher-Beeli as the runner-up skip?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"winners\" WHERE \"runner_up_skip\"='binia feltscher-beeli';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"event\" text,\n \"date\" text,\n \"location\" text,\n \"winning_skip\" text,\n \"runner_up_skip\" text\n);\n\nQuestion: What person was the runner-up skip when Julie Reddick was the winning skip?" }, { "role": "assistant", "content": "SELECT \"runner_up_skip\" FROM \"winners\" WHERE \"winning_skip\"='julie reddick';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"total_fertility_rate\" (\n \"brazil_100pct\" text,\n \"white_47_73pct\" text,\n \"black_7_61pct\" text,\n \"yellow_1_09pct\" text,\n \"brown_multiracial_43_13pct\" text,\n \"indians_0_43pct\" text\n);\n\nQuestion: What's the Yellow fertility rate when Brazil is 0,43407?" }, { "role": "assistant", "content": "SELECT \"yellow_1_09pct\" FROM \"total_fertility_rate\" WHERE \"brazil_100pct\"='0,43407';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"name\" text,\n \"type\" text,\n \"population_2011\" real,\n \"population_2006\" real,\n \"area_km_2\" real\n);\n\nQuestion: What is the sum of the area in km with a population of 110 in 2011?" }, { "role": "assistant", "content": "SELECT SUM(\"area_km_2\") FROM \"list\" WHERE \"population_2011\"=110;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"name\" text,\n \"type\" text,\n \"population_2011\" real,\n \"population_2006\" real,\n \"area_km_2\" real\n);\n\nQuestion: What is the average population in 2006 that has more than 5 people in 2011 and an area 5.84km?" }, { "role": "assistant", "content": "SELECT AVG(\"population_2006\") FROM \"list\" WHERE \"population_2011\">5 AND \"area_km_2\"=5.84;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"semifinal_2\" (\n \"rank\" real,\n \"lane\" real,\n \"athlete\" text,\n \"nationality\" text,\n \"time\" real,\n \"react\" real\n);\n\nQuestion: What is the lowest lane with a 0.216 react?" }, { "role": "assistant", "content": "SELECT MIN(\"lane\") FROM \"semifinal_2\" WHERE \"react\"=0.216;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"semifinal_2\" (\n \"rank\" real,\n \"lane\" real,\n \"athlete\" text,\n \"nationality\" text,\n \"time\" real,\n \"react\" real\n);\n\nQuestion: What is the total rank for the lane before 2?" }, { "role": "assistant", "content": "SELECT SUM(\"rank\") FROM \"semifinal_2\" WHERE \"lane\"<2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"readers_choice\" (\n \"year\" real,\n \"game\" text,\n \"genre\" text,\n \"platform_s\" text,\n \"developer_s\" text\n);\n\nQuestion: What genre is the game from the year 2007?" }, { "role": "assistant", "content": "SELECT \"genre\" FROM \"readers_choice\" WHERE \"year\"=2007;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"readers_choice\" (\n \"year\" real,\n \"game\" text,\n \"genre\" text,\n \"platform_s\" text,\n \"developer_s\" text\n);\n\nQuestion: What is the Game that came out before the year 2009 for the Playstation 3?" }, { "role": "assistant", "content": "SELECT \"game\" FROM \"readers_choice\" WHERE \"platform_s\"='playstation 3' AND \"year\"<2009;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"readers_choice\" (\n \"year\" real,\n \"game\" text,\n \"genre\" text,\n \"platform_s\" text,\n \"developer_s\" text\n);\n\nQuestion: What is the earliest year that had the Legend of Zelda: Twilight Princess game?" }, { "role": "assistant", "content": "SELECT MIN(\"year\") FROM \"readers_choice\" WHERE \"game\"='the legend of zelda: twilight princess';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: Who was the opponent on November 15, 1981?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"date\"='november 15, 1981';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1950s\" (\n \"debut_year\" real,\n \"player\" text,\n \"games\" real,\n \"goals\" real,\n \"years_at_club\" text\n);\n\nQuestion: Which Debut year has a Player of noel carroll, and Games smaller than 12?" }, { "role": "assistant", "content": "SELECT MAX(\"debut_year\") FROM \"1950s\" WHERE \"player\"='noel carroll' AND \"games\"<12;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1950s\" (\n \"debut_year\" real,\n \"player\" text,\n \"games\" real,\n \"goals\" real,\n \"years_at_club\" text\n);\n\nQuestion: Which Goals have a Player of noel carroll?" }, { "role": "assistant", "content": "SELECT MIN(\"goals\") FROM \"1950s\" WHERE \"player\"='noel carroll';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1950s\" (\n \"debut_year\" real,\n \"player\" text,\n \"games\" real,\n \"goals\" real,\n \"years_at_club\" text\n);\n\nQuestion: How many debut years have Years at club of 1950\u20131951, and Games larger than 14?" }, { "role": "assistant", "content": "SELECT SUM(\"debut_year\") FROM \"1950s\" WHERE \"years_at_club\"='1950\u20131951' AND \"games\">14;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"greatest_hits_best_of_compilations\" (\n \"title\" text,\n \"label\" text,\n \"year_of_release\" real,\n \"country_of_release\" text,\n \"peaches\" text\n);\n\nQuestion: Which title has origianal sound entertainment as its label?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"greatest_hits_best_of_compilations\" WHERE \"label\"='origianal sound entertainment';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"greatest_hits_best_of_compilations\" (\n \"title\" text,\n \"label\" text,\n \"year_of_release\" real,\n \"country_of_release\" text,\n \"peaches\" text\n);\n\nQuestion: What was the earliest year of release for Peaches: Francine Barker with the wounded bird label?" }, { "role": "assistant", "content": "SELECT MIN(\"year_of_release\") FROM \"greatest_hits_best_of_compilations\" WHERE \"peaches\"='francine barker' AND \"label\"='wounded bird';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"greatest_hits_best_of_compilations\" (\n \"title\" text,\n \"label\" text,\n \"year_of_release\" real,\n \"country_of_release\" text,\n \"peaches\" text\n);\n\nQuestion: What was the latest year of release for the greatest hits title?" }, { "role": "assistant", "content": "SELECT MAX(\"year_of_release\") FROM \"greatest_hits_best_of_compilations\" WHERE \"title\"='greatest hits';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"greatest_hits_best_of_compilations\" (\n \"title\" text,\n \"label\" text,\n \"year_of_release\" real,\n \"country_of_release\" text,\n \"peaches\" text\n);\n\nQuestion: When the country of release is EU, what is the label name?" }, { "role": "assistant", "content": "SELECT \"label\" FROM \"greatest_hits_best_of_compilations\" WHERE \"country_of_release\"='eu';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"k\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" real,\n \"water_sqmi\" real,\n \"latitude\" real,\n \"longitude\" real,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: what is the highest latitude when the township is kingsley and the geo id is higher than 3803942820?" }, { "role": "assistant", "content": "SELECT MAX(\"latitude\") FROM \"k\" WHERE \"township\"='kingsley' AND \"geo_id\">3803942820;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"k\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" real,\n \"water_sqmi\" real,\n \"latitude\" real,\n \"longitude\" real,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: what is the latitude when water (sqmi) is 0.058 and the ansi code is less than 1759683?" }, { "role": "assistant", "content": "SELECT AVG(\"latitude\") FROM \"k\" WHERE \"water_sqmi\"=0.058 AND \"ansi_code\"<1759683;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"k\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" real,\n \"water_sqmi\" real,\n \"latitude\" real,\n \"longitude\" real,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: what is the geo id when the longitude is -98.435797 and the land (sqmi) is less than 36.039?" }, { "role": "assistant", "content": "SELECT MAX(\"geo_id\") FROM \"k\" WHERE \"longitude\"=-98.435797 AND \"land_sqmi\"<36.039;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"membership\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"enrollment\" real,\n \"ihsaa_class\" text,\n \"county\" text,\n \"year_joined\" real,\n \"previous_conference\" text\n);\n\nQuestion: Name the lowest Year Joined which has a Mascot of pioneers?" }, { "role": "assistant", "content": "SELECT MIN(\"year_joined\") FROM \"membership\" WHERE \"mascot\"='pioneers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"membership\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"enrollment\" real,\n \"ihsaa_class\" text,\n \"county\" text,\n \"year_joined\" real,\n \"previous_conference\" text\n);\n\nQuestion: Name the IHSAA Class of Mascot of pioneers?" }, { "role": "assistant", "content": "SELECT \"ihsaa_class\" FROM \"membership\" WHERE \"mascot\"='pioneers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"membership\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"enrollment\" real,\n \"ihsaa_class\" text,\n \"county\" text,\n \"year_joined\" real,\n \"previous_conference\" text\n);\n\nQuestion: Name the IHSAA Class of 55 morgan and a School of mooresville?" }, { "role": "assistant", "content": "SELECT \"ihsaa_class\" FROM \"membership\" WHERE \"county\"='55 morgan' AND \"school\"='mooresville';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"membership\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"enrollment\" real,\n \"ihsaa_class\" text,\n \"county\" text,\n \"year_joined\" real,\n \"previous_conference\" text\n);\n\nQuestion: where is Mascot of quakers?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"membership\" WHERE \"mascot\"='quakers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"membership\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"enrollment\" real,\n \"ihsaa_class\" text,\n \"county\" text,\n \"year_joined\" real,\n \"previous_conference\" text\n);\n\nQuestion: What kind of IHSAA Class has a School of decatur central?" }, { "role": "assistant", "content": "SELECT \"ihsaa_class\" FROM \"membership\" WHERE \"school\"='decatur central';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2000s\" (\n \"year\" real,\n \"title\" text,\n \"director\" text,\n \"studio_s\" text,\n \"notes\" text\n);\n\nQuestion: What studio had the director Peter Lord Nick Park before 2004?" }, { "role": "assistant", "content": "SELECT \"studio_s\" FROM \"2000s\" WHERE \"year\"<2004 AND \"director\"='peter lord nick park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2000s\" (\n \"year\" real,\n \"title\" text,\n \"director\" text,\n \"studio_s\" text,\n \"notes\" text\n);\n\nQuestion: What studio did Paul Greengrass direct in 2007?" }, { "role": "assistant", "content": "SELECT \"studio_s\" FROM \"2000s\" WHERE \"year\"=2007 AND \"director\"='paul greengrass';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"parallel_bars_event_final_qualifiers\" (\n \"position\" text,\n \"gymnast\" text,\n \"a_score\" real,\n \"b_score\" real,\n \"total\" real\n);\n\nQuestion: What is the A score when the B score is more than 9.15 and the gymnast was in the 2nd position?" }, { "role": "assistant", "content": "SELECT SUM(\"a_score\") FROM \"parallel_bars_event_final_qualifiers\" WHERE \"b_score\">9.15 AND \"position\"='2nd';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"railbuses\" (\n \"class\" text,\n \"railway_number_s\" text,\n \"quantity\" real,\n \"year_s_of_manufacture\" text,\n \"axle_arrangement_uic\" text\n);\n\nQuestion: what is the quantity when the year of manufacture is 1900 and the class is mc?" }, { "role": "assistant", "content": "SELECT \"quantity\" FROM \"railbuses\" WHERE \"year_s_of_manufacture\"='1900' AND \"class\"='mc';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"railbuses\" (\n \"class\" text,\n \"railway_number_s\" text,\n \"quantity\" real,\n \"year_s_of_manufacture\" text,\n \"axle_arrangement_uic\" text\n);\n\nQuestion: what is the class when the quantity is 4?" }, { "role": "assistant", "content": "SELECT \"class\" FROM \"railbuses\" WHERE \"quantity\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: Who were the opponents on Week 8?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"week\"=8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2012_statistics_at_least_1_000_000_passe\" (\n \"country\" text,\n \"airport\" text,\n \"city\" text,\n \"2012\" real,\n \"change_12_11\" text\n);\n\nQuestion: When the city is agadir what is the change (12/11)?" }, { "role": "assistant", "content": "SELECT \"change_12_11\" FROM \"2012_statistics_at_least_1_000_000_passe\" WHERE \"city\"='agadir';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"year\" real,\n \"a_side\" text,\n \"b_side\" text,\n \"catalog_number\" text,\n \"label\" text\n);\n\nQuestion: What is the catalog number of Venus Demilo's A-side?" }, { "role": "assistant", "content": "SELECT \"catalog_number\" FROM \"singles\" WHERE \"a_side\"='venus demilo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"year\" real,\n \"a_side\" text,\n \"b_side\" text,\n \"catalog_number\" text,\n \"label\" text\n);\n\nQuestion: What year did the B-Side of Just Squeeze Me come out?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"singles\" WHERE \"b_side\"='just squeeze me';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"year\" real,\n \"a_side\" text,\n \"b_side\" text,\n \"catalog_number\" text,\n \"label\" text\n);\n\nQuestion: What label has the 817 catalog?" }, { "role": "assistant", "content": "SELECT \"label\" FROM \"singles\" WHERE \"catalog_number\"='817';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"year\" real,\n \"a_side\" text,\n \"b_side\" text,\n \"catalog_number\" text,\n \"label\" text\n);\n\nQuestion: What is the A-side for it Never Entered My Mind, Part 2?" }, { "role": "assistant", "content": "SELECT \"a_side\" FROM \"singles\" WHERE \"b_side\"='it never entered my mind, part 2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"year\" real,\n \"a_side\" text,\n \"b_side\" text,\n \"catalog_number\" text,\n \"label\" text\n);\n\nQuestion: What is the A-side for catalog 902?" }, { "role": "assistant", "content": "SELECT \"a_side\" FROM \"singles\" WHERE \"catalog_number\"='902';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"railbuses\" (\n \"class\" text,\n \"railway_number_s\" text,\n \"quantity\" text,\n \"year_s_of_manufacture\" text,\n \"type\" text\n);\n\nQuestion: What is the class of the a1 bm type?" }, { "role": "assistant", "content": "SELECT \"class\" FROM \"railbuses\" WHERE \"type\"='a1 bm';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"railbuses\" (\n \"class\" text,\n \"railway_number_s\" text,\n \"quantity\" text,\n \"year_s_of_manufacture\" text,\n \"type\" text\n);\n\nQuestion: What is the quantity of the aw class?" }, { "role": "assistant", "content": "SELECT \"quantity\" FROM \"railbuses\" WHERE \"class\"='aw';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"railbuses\" (\n \"class\" text,\n \"railway_number_s\" text,\n \"quantity\" text,\n \"year_s_of_manufacture\" text,\n \"type\" text\n);\n\nQuestion: What is the class with 1 quantity?" }, { "role": "assistant", "content": "SELECT \"class\" FROM \"railbuses\" WHERE \"quantity\"='1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"railbuses\" (\n \"class\" text,\n \"railway_number_s\" text,\n \"quantity\" text,\n \"year_s_of_manufacture\" text,\n \"type\" text\n);\n\nQuestion: What is the railway number of the aw class?" }, { "role": "assistant", "content": "SELECT \"railway_number_s\" FROM \"railbuses\" WHERE \"class\"='aw';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" text,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the game when the record was 31-15?" }, { "role": "assistant", "content": "SELECT \"game\" FROM \"game_log\" WHERE \"record\"='31-15';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" text,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the date of the game with a score of W 106-100?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"game_log\" WHERE \"score\"='w 106-100';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"twin_cylinder_race\" (\n \"rank\" text,\n \"rider\" text,\n \"team\" text,\n \"speed\" text,\n \"time\" text\n);\n\nQuestion: What is the speed for rank 1?" }, { "role": "assistant", "content": "SELECT \"speed\" FROM \"twin_cylinder_race\" WHERE \"rank\"='1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"twin_cylinder_race\" (\n \"rank\" text,\n \"rider\" text,\n \"team\" text,\n \"speed\" text,\n \"time\" text\n);\n\nQuestion: What team has a Rank Ret, and rider Frank A Applebee?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"twin_cylinder_race\" WHERE \"rank\"='ret' AND \"rider\"='frank a applebee';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"global_usage_share_data_from_get_clicky_\" (\n \"period\" text,\n \"internet_explorer\" text,\n \"chrome\" text,\n \"firefox\" text,\n \"safari\" text,\n \"opera\" text,\n \"other_mozilla\" text\n);\n\nQuestion: What internet explorer has 29.07% for the chrome?" }, { "role": "assistant", "content": "SELECT \"internet_explorer\" FROM \"global_usage_share_data_from_get_clicky_\" WHERE \"chrome\"='29.07%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"global_usage_share_data_from_get_clicky_\" (\n \"period\" text,\n \"internet_explorer\" text,\n \"chrome\" text,\n \"firefox\" text,\n \"safari\" text,\n \"opera\" text,\n \"other_mozilla\" text\n);\n\nQuestion: What is the other mozilla that has 9.41% for the safari?" }, { "role": "assistant", "content": "SELECT \"other_mozilla\" FROM \"global_usage_share_data_from_get_clicky_\" WHERE \"safari\"='9.41%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"global_usage_share_data_from_get_clicky_\" (\n \"period\" text,\n \"internet_explorer\" text,\n \"chrome\" text,\n \"firefox\" text,\n \"safari\" text,\n \"opera\" text,\n \"other_mozilla\" text\n);\n\nQuestion: What other mozilla has January 2010 as the period?" }, { "role": "assistant", "content": "SELECT \"other_mozilla\" FROM \"global_usage_share_data_from_get_clicky_\" WHERE \"period\"='january 2010';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"global_usage_share_data_from_get_clicky_\" (\n \"period\" text,\n \"internet_explorer\" text,\n \"chrome\" text,\n \"firefox\" text,\n \"safari\" text,\n \"opera\" text,\n \"other_mozilla\" text\n);\n\nQuestion: What internet explorer has 7.89% as the safari, and 8.22% as the chrome?" }, { "role": "assistant", "content": "SELECT \"internet_explorer\" FROM \"global_usage_share_data_from_get_clicky_\" WHERE \"safari\"='7.89%' AND \"chrome\"='8.22%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"global_usage_share_data_from_get_clicky_\" (\n \"period\" text,\n \"internet_explorer\" text,\n \"chrome\" text,\n \"firefox\" text,\n \"safari\" text,\n \"opera\" text,\n \"other_mozilla\" text\n);\n\nQuestion: What period has 0.25% as the other mozilla?" }, { "role": "assistant", "content": "SELECT \"period\" FROM \"global_usage_share_data_from_get_clicky_\" WHERE \"other_mozilla\"='0.25%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sandy_bridge_quad_core_32_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"cores\" text,\n \"frequency\" text,\n \"turbo\" text,\n \"l2_cache\" text,\n \"l3_cache\" text,\n \"gpu_model\" text,\n \"gpu_frequency\" text,\n \"socket\" text,\n \"i_o_bus\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: Which socket goes with the item with release price of $378 and turbo of 6/6/8/9?" }, { "role": "assistant", "content": "SELECT \"socket\" FROM \"sandy_bridge_quad_core_32_nm\" WHERE \"release_price_usd\"='$378' AND \"turbo\"='6/6/8/9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sandy_bridge_quad_core_32_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"cores\" text,\n \"frequency\" text,\n \"turbo\" text,\n \"l2_cache\" text,\n \"l3_cache\" text,\n \"gpu_model\" text,\n \"gpu_frequency\" text,\n \"socket\" text,\n \"i_o_bus\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What is the L2 cache for the core i7-2635QM?" }, { "role": "assistant", "content": "SELECT \"l2_cache\" FROM \"sandy_bridge_quad_core_32_nm\" WHERE \"model_number\"='core i7-2635qm';" } ]