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 \"wins_18\" (\n \"year\" text,\n \"championship\" text,\n \"54_holes\" text,\n \"winning_score\" text,\n \"margin\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What was the winning score of the Masters Tournament?" }, { "role": "assistant", "content": "SELECT \"winning_score\" FROM \"wins_18\" WHERE \"championship\"='Masters Tournament';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wins_18\" (\n \"year\" text,\n \"championship\" text,\n \"54_holes\" text,\n \"winning_score\" text,\n \"margin\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What was the winning score of the PGA Championship (3)?" }, { "role": "assistant", "content": "SELECT \"winning_score\" FROM \"wins_18\" WHERE \"championship\"='PGA Championship (3)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pga_tour_career_summary\" (\n \"year\" real,\n \"starts\" real,\n \"wins_majors\" text,\n \"2nd\" real,\n \"3rd\" real,\n \"earnings\" real,\n \"money_list_rank\" text,\n \"scoring_average\" text\n);\n\nQuestion: What is the number of starts for 1987?" }, { "role": "assistant", "content": "SELECT COUNT(\"starts\") FROM \"pga_tour_career_summary\" WHERE \"year\"=1987;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pga_tour_career_summary\" (\n \"year\" real,\n \"starts\" real,\n \"wins_majors\" text,\n \"2nd\" real,\n \"3rd\" real,\n \"earnings\" real,\n \"money_list_rank\" text,\n \"scoring_average\" text\n);\n\nQuestion: What is the scoring aerage for 111419?" }, { "role": "assistant", "content": "SELECT \"scoring_average\" FROM \"pga_tour_career_summary\" WHERE \"earnings\"=111419;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pga_tour_career_summary\" (\n \"year\" real,\n \"starts\" real,\n \"wins_majors\" text,\n \"2nd\" real,\n \"3rd\" real,\n \"earnings\" real,\n \"money_list_rank\" text,\n \"scoring_average\" text\n);\n\nQuestion: What is the money list rank for 1966?" }, { "role": "assistant", "content": "SELECT \"money_list_rank\" FROM \"pga_tour_career_summary\" WHERE \"year\"=1966;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pga_tour_career_summary\" (\n \"year\" real,\n \"starts\" real,\n \"wins_majors\" text,\n \"2nd\" real,\n \"3rd\" real,\n \"earnings\" real,\n \"money_list_rank\" text,\n \"scoring_average\" text\n);\n\nQuestion: Name the total number of scoring average for money list rank of 174" }, { "role": "assistant", "content": "SELECT COUNT(\"scoring_average\") FROM \"pga_tour_career_summary\" WHERE \"money_list_rank\"='174';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"kerrypct\" text,\n \"kerrynum\" real,\n \"bushpct\" text,\n \"bushnum\" real,\n \"otherspct\" text,\n \"othersnum\" real\n);\n\nQuestion: What is the county where kerry# is 59740?" }, { "role": "assistant", "content": "SELECT \"county\" FROM \"by_county\" WHERE \"kerrynum\"=59740;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"kerrypct\" text,\n \"kerrynum\" real,\n \"bushpct\" text,\n \"bushnum\" real,\n \"otherspct\" text,\n \"othersnum\" real\n);\n\nQuestion: In cook county Kerry# is?" }, { "role": "assistant", "content": "SELECT \"kerrynum\" FROM \"by_county\" WHERE \"county\"='Cook';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"kerrypct\" text,\n \"kerrynum\" real,\n \"bushpct\" text,\n \"bushnum\" real,\n \"otherspct\" text,\n \"othersnum\" real\n);\n\nQuestion: When bush# is 3907, what is Kerry#?" }, { "role": "assistant", "content": "SELECT \"kerrynum\" FROM \"by_county\" WHERE \"bushnum\"=3907;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"kerrypct\" text,\n \"kerrynum\" real,\n \"bushpct\" text,\n \"bushnum\" real,\n \"otherspct\" text,\n \"othersnum\" real\n);\n\nQuestion: What is the others# when bush% is 57.0%?" }, { "role": "assistant", "content": "SELECT MAX(\"othersnum\") FROM \"by_county\" WHERE \"bushpct\"='57.0%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13036251_1\" (\n \"season\" text,\n \"airdate\" text,\n \"the_mole\" text,\n \"winner\" text,\n \"runner_up\" text,\n \"prize_money\" text,\n \"international_destination\" text\n);\n\nQuestion: what's\u00a0the mole\u00a0with\u00a0airdate\u00a0being 8 january 2009" }, { "role": "assistant", "content": "SELECT \"the_mole\" FROM \"table1_13036251_1\" WHERE \"airdate\"='8 January 2009';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13036251_1\" (\n \"season\" text,\n \"airdate\" text,\n \"the_mole\" text,\n \"winner\" text,\n \"runner_up\" text,\n \"prize_money\" text,\n \"international_destination\" text\n);\n\nQuestion: what's\u00a0the mole\u00a0with\u00a0prize money\u00a0being \u20ac24,475" }, { "role": "assistant", "content": "SELECT \"the_mole\" FROM \"table1_13036251_1\" WHERE \"prize_money\"='\u20ac24,475';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13036251_1\" (\n \"season\" text,\n \"airdate\" text,\n \"the_mole\" text,\n \"winner\" text,\n \"runner_up\" text,\n \"prize_money\" text,\n \"international_destination\" text\n);\n\nQuestion: what's the\u00a0the mole\u00a0with\u00a0airdate\u00a0being 5 january 2012" }, { "role": "assistant", "content": "SELECT COUNT(\"the_mole\") FROM \"table1_13036251_1\" WHERE \"airdate\"='5 January 2012';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13036251_1\" (\n \"season\" text,\n \"airdate\" text,\n \"the_mole\" text,\n \"winner\" text,\n \"runner_up\" text,\n \"prize_money\" text,\n \"international_destination\" text\n);\n\nQuestion: what's\u00a0airdate\u00a0with\u00a0international destination\u00a0being scotland" }, { "role": "assistant", "content": "SELECT \"airdate\" FROM \"table1_13036251_1\" WHERE \"international_destination\"='Scotland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13036251_1\" (\n \"season\" text,\n \"airdate\" text,\n \"the_mole\" text,\n \"winner\" text,\n \"runner_up\" text,\n \"prize_money\" text,\n \"international_destination\" text\n);\n\nQuestion: what's\u00a0the mole\u00a0with\u00a0winner\u00a0being fr\u00e9d\u00e9rique huydts" }, { "role": "assistant", "content": "SELECT \"the_mole\" FROM \"table1_13036251_1\" WHERE \"winner\"='Fr\u00e9d\u00e9rique Huydts';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13036251_1\" (\n \"season\" text,\n \"airdate\" text,\n \"the_mole\" text,\n \"winner\" text,\n \"runner_up\" text,\n \"prize_money\" text,\n \"international_destination\" text\n);\n\nQuestion: what's\u00a0runner-up\u00a0with\u00a0season\u00a0being season 13" }, { "role": "assistant", "content": "SELECT \"runner_up\" FROM \"table1_13036251_1\" WHERE \"season\"='Season 13';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"kerrypct\" text,\n \"kerrynum\" real,\n \"bushpct\" text,\n \"bushnum\" real,\n \"otherspct\" text,\n \"othersnum\" real\n);\n\nQuestion: In what county did 29231 people vote for Kerry?" }, { "role": "assistant", "content": "SELECT \"county\" FROM \"by_county\" WHERE \"kerrynum\"=29231;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"kerrypct\" text,\n \"kerrynum\" real,\n \"bushpct\" text,\n \"bushnum\" real,\n \"otherspct\" text,\n \"othersnum\" real\n);\n\nQuestion: What's the name of the county where 48.3% voted for Bush?" }, { "role": "assistant", "content": "SELECT \"county\" FROM \"by_county\" WHERE \"bushpct\"='48.3%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"kerrypct\" text,\n \"kerrynum\" real,\n \"bushpct\" text,\n \"bushnum\" real,\n \"otherspct\" text,\n \"othersnum\" real\n);\n\nQuestion: What's the percentage of votes for other candidates in the county where Bush got 51.6% of the votes?" }, { "role": "assistant", "content": "SELECT \"otherspct\" FROM \"by_county\" WHERE \"bushpct\"='51.6%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"kerrypct\" text,\n \"kerrynum\" real,\n \"bushpct\" text,\n \"bushnum\" real,\n \"otherspct\" text,\n \"othersnum\" real\n);\n\nQuestion: What's the name of the county where 54.6% voted for Bush?" }, { "role": "assistant", "content": "SELECT \"county\" FROM \"by_county\" WHERE \"bushpct\"='54.6%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"world\" (\n \"year\" real,\n \"points\" text,\n \"rebounds\" text,\n \"assists\" text,\n \"steals\" text,\n \"blocks\" text\n);\n\nQuestion: What is the number of steals for 2012" }, { "role": "assistant", "content": "SELECT COUNT(\"steals\") FROM \"world\" WHERE \"year\"=2012;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"usa\" (\n \"year\" real,\n \"points\" text,\n \"rebounds\" text,\n \"assists\" text,\n \"steals\" text,\n \"blocks\" text\n);\n\nQuestion: Who are the blockers where points are scored by Zach Randolph (24)?" }, { "role": "assistant", "content": "SELECT \"blocks\" FROM \"usa\" WHERE \"points\"='Zach Randolph (24)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"usa\" (\n \"year\" real,\n \"points\" text,\n \"rebounds\" text,\n \"assists\" text,\n \"steals\" text,\n \"blocks\" text\n);\n\nQuestion: Who are the blockers where points are scored by Zach Randolph (24)?" }, { "role": "assistant", "content": "SELECT \"blocks\" FROM \"usa\" WHERE \"points\"='Zach Randolph (24)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"usa\" (\n \"year\" real,\n \"points\" text,\n \"rebounds\" text,\n \"assists\" text,\n \"steals\" text,\n \"blocks\" text\n);\n\nQuestion: How many rebounds were there in 2008?" }, { "role": "assistant", "content": "SELECT COUNT(\"rebounds\") FROM \"usa\" WHERE \"year\"=2008;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"usa\" (\n \"year\" real,\n \"points\" text,\n \"rebounds\" text,\n \"assists\" text,\n \"steals\" text,\n \"blocks\" text\n);\n\nQuestion: Who had all of the blocks in 2012?" }, { "role": "assistant", "content": "SELECT \"blocks\" FROM \"usa\" WHERE \"year\"=2012;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"usa\" (\n \"year\" real,\n \"points\" text,\n \"rebounds\" text,\n \"assists\" text,\n \"steals\" text,\n \"blocks\" text\n);\n\nQuestion: What year has Nerlens Noel (4) as blocker?" }, { "role": "assistant", "content": "SELECT MIN(\"year\") FROM \"usa\" WHERE \"blocks\"='Nerlens Noel (4)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"percussion_scholastic_concert_world_clas\" (\n \"ensemble\" text,\n \"gold_medals\" real,\n \"silver_medals\" real,\n \"bronze_medals\" real,\n \"total_medals\" real\n);\n\nQuestion: What is the most silver medals?" }, { "role": "assistant", "content": "SELECT MAX(\"silver_medals\") FROM \"percussion_scholastic_concert_world_clas\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"percussion_scholastic_concert_world_clas\" (\n \"ensemble\" text,\n \"gold_medals\" real,\n \"silver_medals\" real,\n \"bronze_medals\" real,\n \"total_medals\" real\n);\n\nQuestion: what are all the gold medals when the silver medals is smaller than 1.0?" }, { "role": "assistant", "content": "SELECT \"gold_medals\" FROM \"percussion_scholastic_concert_world_clas\" WHERE \"silver_medals\"<1.0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"percussion_scholastic_concert_open_class\" (\n \"ensemble\" text,\n \"gold_medals\" real,\n \"silver_medals\" real,\n \"bronze_medals\" real,\n \"total_medals\" real\n);\n\nQuestion: How many numbers were listed under Silver Medals for Portsmouth HS?" }, { "role": "assistant", "content": "SELECT COUNT(\"silver_medals\") FROM \"percussion_scholastic_concert_open_class\" WHERE \"ensemble\"='Portsmouth HS';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"percussion_scholastic_concert_open_class\" (\n \"ensemble\" text,\n \"gold_medals\" real,\n \"silver_medals\" real,\n \"bronze_medals\" real,\n \"total_medals\" real\n);\n\nQuestion: What was the smallest total number of medals?" }, { "role": "assistant", "content": "SELECT MIN(\"total_medals\") FROM \"percussion_scholastic_concert_open_class\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"percussion_scholastic_concert_open_class\" (\n \"ensemble\" text,\n \"gold_medals\" real,\n \"silver_medals\" real,\n \"bronze_medals\" real,\n \"total_medals\" real\n);\n\nQuestion: What is the highest number of gold medals Naugatuck HS won?" }, { "role": "assistant", "content": "SELECT MAX(\"gold_medals\") FROM \"percussion_scholastic_concert_open_class\" WHERE \"ensemble\"='Naugatuck HS';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"calendar\" (\n \"round\" real,\n \"circuit\" text,\n \"date\" text,\n \"length\" text,\n \"pole_position\" text,\n \"gt3_winner\" text,\n \"gtc_winner\" text\n);\n\nQuestion: what is the maximum round for gt3 winner hector lester tim mullen and pole position of jonny cocker paul drayson" }, { "role": "assistant", "content": "SELECT MAX(\"round\") FROM \"calendar\" WHERE \"gt3_winner\"='Hector Lester Tim Mullen' AND \"pole_position\"='Jonny Cocker Paul Drayson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"calendar\" (\n \"round\" real,\n \"circuit\" text,\n \"date\" text,\n \"length\" text,\n \"pole_position\" text,\n \"gt3_winner\" text,\n \"gtc_winner\" text\n);\n\nQuestion: what are all the date for gt3 winner oliver bryant matt harris" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"calendar\" WHERE \"gt3_winner\"='Oliver Bryant Matt Harris';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"calendar\" (\n \"round\" real,\n \"circuit\" text,\n \"date\" text,\n \"length\" text,\n \"pole_position\" text,\n \"gt3_winner\" text,\n \"gtc_winner\" text\n);\n\nQuestion: what are all the date for gtc winners graeme mundy jamie smyth and gt3 winners hector lester tim mullen" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"calendar\" WHERE \"gtc_winner\"='Graeme Mundy Jamie Smyth' AND \"gt3_winner\"='Hector Lester Tim Mullen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"calendar\" (\n \"round\" real,\n \"circuit\" text,\n \"date\" text,\n \"length\" text,\n \"pole_position\" text,\n \"gt3_winner\" text,\n \"gtc_winner\" text\n);\n\nQuestion: what are all the circuit for 9 september and gt3 winner hector lester allan simonsen" }, { "role": "assistant", "content": "SELECT \"circuit\" FROM \"calendar\" WHERE \"date\"='9 September' AND \"gt3_winner\"='Hector Lester Allan Simonsen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"calendar\" (\n \"round\" real,\n \"circuit\" text,\n \"date\" text,\n \"length\" text,\n \"pole_position\" text,\n \"gt3_winner\" text,\n \"gtc_winner\" text\n);\n\nQuestion: what are all the circuit for gtc winner graeme mundy jamie smyth and pole position bradley ellis alex mortimer" }, { "role": "assistant", "content": "SELECT \"circuit\" FROM \"calendar\" WHERE \"gtc_winner\"='Graeme Mundy Jamie Smyth' AND \"pole_position\"='Bradley Ellis Alex Mortimer';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"calendar\" (\n \"round\" real,\n \"circuit\" text,\n \"date\" text,\n \"length\" text,\n \"pole_position\" text,\n \"gt3_winner\" text,\n \"gtc_winner\" text\n);\n\nQuestion: what are all the gtc winners for pole position no. 21 team modena" }, { "role": "assistant", "content": "SELECT \"gtc_winner\" FROM \"calendar\" WHERE \"pole_position\"='No. 21 Team Modena';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1307572_1\" (\n \"value\" text,\n \"diameter\" text,\n \"thickness\" text,\n \"mass\" text,\n \"composition\" text,\n \"edge\" text,\n \"obverse\" text,\n \"reverse\" text,\n \"first_minting\" real,\n \"issue\" text,\n \"withdrawal\" text,\n \"lapse\" text\n);\n\nQuestion: What material is made with a rounded, plain edge?" }, { "role": "assistant", "content": "SELECT \"composition\" FROM \"table1_1307572_1\" WHERE \"edge\"='Rounded, plain';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1307572_1\" (\n \"value\" text,\n \"diameter\" text,\n \"thickness\" text,\n \"mass\" text,\n \"composition\" text,\n \"edge\" text,\n \"obverse\" text,\n \"reverse\" text,\n \"first_minting\" real,\n \"issue\" text,\n \"withdrawal\" text,\n \"lapse\" text\n);\n\nQuestion: How many coins have a diameter of 23mm?" }, { "role": "assistant", "content": "SELECT COUNT(\"reverse\") FROM \"table1_1307572_1\" WHERE \"diameter\"='23mm';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1307572_1\" (\n \"value\" text,\n \"diameter\" text,\n \"thickness\" text,\n \"mass\" text,\n \"composition\" text,\n \"edge\" text,\n \"obverse\" text,\n \"reverse\" text,\n \"first_minting\" real,\n \"issue\" text,\n \"withdrawal\" text,\n \"lapse\" text\n);\n\nQuestion: When was the coin with the mass of 3.7 g first minted?" }, { "role": "assistant", "content": "SELECT \"first_minting\" FROM \"table1_1307572_1\" WHERE \"mass\"='3.7 g';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2004_enlargement\" (\n \"member_countries\" text,\n \"population\" real,\n \"area_km\" real,\n \"gdp_billion_us\" text,\n \"gdp_per_capita_us\" real\n);\n\nQuestion: What is the number of population for lithuania?" }, { "role": "assistant", "content": "SELECT COUNT(\"population\") FROM \"2004_enlargement\" WHERE \"member_countries\"='Lithuania';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2004_enlargement\" (\n \"member_countries\" text,\n \"population\" real,\n \"area_km\" real,\n \"gdp_billion_us\" text,\n \"gdp_per_capita_us\" real\n);\n\nQuestion: Name the gdp where gdp per capita 20200" }, { "role": "assistant", "content": "SELECT \"gdp_billion_us\" FROM \"2004_enlargement\" WHERE \"gdp_per_capita_us\"=20200;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2004_enlargement\" (\n \"member_countries\" text,\n \"population\" real,\n \"area_km\" real,\n \"gdp_billion_us\" text,\n \"gdp_per_capita_us\" real\n);\n\nQuestion: Name the total number of area for 775927 population" }, { "role": "assistant", "content": "SELECT COUNT(\"area_km\") FROM \"2004_enlargement\" WHERE \"population\"=775927;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1995_enlargement\" (\n \"member_countries\" text,\n \"population\" real,\n \"area_km\" real,\n \"gdp_billion_us\" text,\n \"gdp_per_capita_us\" real\n);\n\nQuestion: What is the gdp of the country with an area of 83871 (km2)?" }, { "role": "assistant", "content": "SELECT \"gdp_billion_us\" FROM \"1995_enlargement\" WHERE \"area_km\"=83871;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1995_enlargement\" (\n \"member_countries\" text,\n \"population\" real,\n \"area_km\" real,\n \"gdp_billion_us\" text,\n \"gdp_per_capita_us\" real\n);\n\nQuestion: What was the gdp of the country with a gdp per capita of $18048?" }, { "role": "assistant", "content": "SELECT \"gdp_billion_us\" FROM \"1995_enlargement\" WHERE \"gdp_per_capita_us\"=18048;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1995_enlargement\" (\n \"member_countries\" text,\n \"population\" real,\n \"area_km\" real,\n \"gdp_billion_us\" text,\n \"gdp_per_capita_us\" real\n);\n\nQuestion: What is Austria's maximum area (km2)?" }, { "role": "assistant", "content": "SELECT MAX(\"area_km\") FROM \"1995_enlargement\" WHERE \"member_countries\"='Austria';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"season\" real,\n \"teams\" real,\n \"champion\" text,\n \"season_mvp\" text,\n \"top_draft_pick\" text,\n \"rookie_of_the_year\" text,\n \"all_star_game\" text\n);\n\nQuestion: What is the season for no award given for rookie of the year?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"see_also\" WHERE \"rookie_of_the_year\"='No award given';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13110459_2\" (\n \"no\" real,\n \"air_date\" text,\n \"rating\" text,\n \"share\" real,\n \"18_49_rating_share\" text,\n \"viewers_m\" text,\n \"night\" real,\n \"timeslot\" real,\n \"overall\" text\n);\n\nQuestion: how many\u00a0air date\u00a0with\u00a0overall\u00a0being 83/95" }, { "role": "assistant", "content": "SELECT COUNT(\"air_date\") FROM \"table1_13110459_2\" WHERE \"overall\"='83/95';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13110459_2\" (\n \"no\" real,\n \"air_date\" text,\n \"rating\" text,\n \"share\" real,\n \"18_49_rating_share\" text,\n \"viewers_m\" text,\n \"night\" real,\n \"timeslot\" real,\n \"overall\" text\n);\n\nQuestion: how many\u00a0viewers (m)\u00a0with\u00a0overall\u00a0being 91/101" }, { "role": "assistant", "content": "SELECT COUNT(\"viewers_m\") FROM \"table1_13110459_2\" WHERE \"overall\"='91/101';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13110459_2\" (\n \"no\" real,\n \"air_date\" text,\n \"rating\" text,\n \"share\" real,\n \"18_49_rating_share\" text,\n \"viewers_m\" text,\n \"night\" real,\n \"timeslot\" real,\n \"overall\" text\n);\n\nQuestion: what are all the\u00a0rating\u00a0with\u00a0viewers (m)\u00a0being 2.89" }, { "role": "assistant", "content": "SELECT \"rating\" FROM \"table1_13110459_2\" WHERE \"viewers_m\"='2.89';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13110459_2\" (\n \"no\" real,\n \"air_date\" text,\n \"rating\" text,\n \"share\" real,\n \"18_49_rating_share\" text,\n \"viewers_m\" text,\n \"night\" real,\n \"timeslot\" real,\n \"overall\" text\n);\n\nQuestion: what are all the\u00a0overall\u00a0with\u00a0rating\u00a0being 1.4" }, { "role": "assistant", "content": "SELECT \"overall\" FROM \"table1_13110459_2\" WHERE \"rating\"='1.4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13110459_2\" (\n \"no\" real,\n \"air_date\" text,\n \"rating\" text,\n \"share\" real,\n \"18_49_rating_share\" text,\n \"viewers_m\" text,\n \"night\" real,\n \"timeslot\" real,\n \"overall\" text\n);\n\nQuestion: what are all the\u00a0overall\u00a0with\u00a0viewers (m)\u00a0being 2.61" }, { "role": "assistant", "content": "SELECT \"overall\" FROM \"table1_13110459_2\" WHERE \"viewers_m\"='2.61';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13110459_2\" (\n \"no\" real,\n \"air_date\" text,\n \"rating\" text,\n \"share\" real,\n \"18_49_rating_share\" text,\n \"viewers_m\" text,\n \"night\" real,\n \"timeslot\" real,\n \"overall\" text\n);\n\nQuestion: what are all the\u00a0rating\u00a0with\u00a0viewers (m)\u00a0being 2.61" }, { "role": "assistant", "content": "SELECT \"rating\" FROM \"table1_13110459_2\" WHERE \"viewers_m\"='2.61';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_season\" (\n \"year\" real,\n \"competition\" text,\n \"location\" text,\n \"event\" text,\n \"final_rank\" text,\n \"final_score\" text,\n \"qualifying_rank\" real,\n \"qualifying_score\" text\n);\n\nQuestion: what is the year where the qualifying score was 15.150?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"2008_season\" WHERE \"qualifying_score\"='15.150';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_season\" (\n \"year\" real,\n \"competition\" text,\n \"location\" text,\n \"event\" text,\n \"final_rank\" text,\n \"final_score\" text,\n \"qualifying_rank\" real,\n \"qualifying_score\" text\n);\n\nQuestion: how many times was the qualifying score 60.750?" }, { "role": "assistant", "content": "SELECT COUNT(\"event\") FROM \"2008_season\" WHERE \"qualifying_score\"='60.750';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_season\" (\n \"year\" real,\n \"competition\" text,\n \"location\" text,\n \"event\" text,\n \"final_rank\" text,\n \"final_score\" text,\n \"qualifying_rank\" real,\n \"qualifying_score\" text\n);\n\nQuestion: how many times is the qualifying score 61.400?" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"2008_season\" WHERE \"qualifying_score\"='61.400';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_season\" (\n \"year\" real,\n \"competition\" text,\n \"location\" text,\n \"event\" text,\n \"final_rank\" text,\n \"final_score\" text,\n \"qualifying_rank\" real,\n \"qualifying_score\" text\n);\n\nQuestion: what is the final-rank for the uneven bars and the competition is u.s. championships?" }, { "role": "assistant", "content": "SELECT \"final_rank\" FROM \"2008_season\" WHERE \"event\"='Uneven Bars' AND \"competition\"='U.S. Championships';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_season\" (\n \"year\" real,\n \"competition\" text,\n \"location\" text,\n \"event\" text,\n \"final_rank\" text,\n \"final_score\" text,\n \"qualifying_rank\" real,\n \"qualifying_score\" text\n);\n\nQuestion: what is the lowest qualifying rank?" }, { "role": "assistant", "content": "SELECT MIN(\"qualifying_rank\") FROM \"2008_season\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_season\" (\n \"year\" real,\n \"competition\" text,\n \"location\" text,\n \"event\" text,\n \"final_rank\" text,\n \"final_score\" text,\n \"qualifying_rank\" real,\n \"qualifying_score\" text\n);\n\nQuestion: what is the highest qualifying rank where the competition is olympic trials, the final-rank is 4 and qualifying score is 15.100?" }, { "role": "assistant", "content": "SELECT MAX(\"qualifying_rank\") FROM \"2008_season\" WHERE \"competition\"='Olympic Trials' AND \"final_rank\"='4' AND \"qualifying_score\"='15.100';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_winners\" (\n \"season\" real,\n \"season_premiere_date\" text,\n \"season_finale_date\" text,\n \"winner\" text,\n \"1st_runner_up\" text,\n \"2nd_runner_up\" text\n);\n\nQuestion: When did the season of gurmeet choudhary premiere?" }, { "role": "assistant", "content": "SELECT \"season_premiere_date\" FROM \"series_winners\" WHERE \"winner\"='Gurmeet Choudhary';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_winners\" (\n \"season\" real,\n \"season_premiere_date\" text,\n \"season_finale_date\" text,\n \"winner\" text,\n \"1st_runner_up\" text,\n \"2nd_runner_up\" text\n);\n\nQuestion: When was the season finale of meiyang chang?" }, { "role": "assistant", "content": "SELECT \"season_finale_date\" FROM \"series_winners\" WHERE \"winner\"='Meiyang Chang';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_winners\" (\n \"season\" real,\n \"season_premiere_date\" text,\n \"season_finale_date\" text,\n \"winner\" text,\n \"1st_runner_up\" text,\n \"2nd_runner_up\" text\n);\n\nQuestion: What is the winner of rashmi desai?" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"series_winners\" WHERE \"1st_runner_up\"='Rashmi Desai';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_winners\" (\n \"season\" real,\n \"season_premiere_date\" text,\n \"season_finale_date\" text,\n \"winner\" text,\n \"1st_runner_up\" text,\n \"2nd_runner_up\" text\n);\n\nQuestion: When is the season finale of meiyang chang?" }, { "role": "assistant", "content": "SELECT \"season_finale_date\" FROM \"series_winners\" WHERE \"winner\"='Meiyang Chang';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1315616_1\" (\n \"k_haku_num\" real,\n \"date\" text,\n \"red_team_host\" text,\n \"white_team_host\" text,\n \"mediator\" text,\n \"winning_team\" text\n);\n\nQuestion: In what number k\u014dhaku was the red team host Peggy Hayama? " }, { "role": "assistant", "content": "SELECT \"k_haku_num\" FROM \"table1_1315616_1\" WHERE \"red_team_host\"='Peggy Hayama';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1315616_1\" (\n \"k_haku_num\" real,\n \"date\" text,\n \"red_team_host\" text,\n \"white_team_host\" text,\n \"mediator\" text,\n \"winning_team\" text\n);\n\nQuestion: Who was the mediator in k\u014dhaku number 53?" }, { "role": "assistant", "content": "SELECT \"mediator\" FROM \"table1_1315616_1\" WHERE \"k_haku_num\"=53;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1315616_1\" (\n \"k_haku_num\" real,\n \"date\" text,\n \"red_team_host\" text,\n \"white_team_host\" text,\n \"mediator\" text,\n \"winning_team\" text\n);\n\nQuestion: On what date was Keiichi Ubukata the mediator and Mitsuko Mori the red team host?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"table1_1315616_1\" WHERE \"mediator\"='Keiichi Ubukata' AND \"red_team_host\"='Mitsuko Mori';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" real,\n \"dates\" text,\n \"champion\" text,\n \"score\" real,\n \"to_par\" text,\n \"margin_of_victory\" text,\n \"purse\" real,\n \"winners_share\" real\n);\n\nQuestion: What is the most recent year?" }, { "role": "assistant", "content": "SELECT MAX(\"year\") FROM \"winners\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" real,\n \"dates\" text,\n \"champion\" text,\n \"score\" real,\n \"to_par\" text,\n \"margin_of_victory\" text,\n \"purse\" real,\n \"winners_share\" real\n);\n\nQuestion: What year is Jiyai Shin the champion?" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"winners\" WHERE \"champion\"='Jiyai Shin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13183076_3\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What is the # for the episode with a Production code of 3T7057?" }, { "role": "assistant", "content": "SELECT \"num\" FROM \"table1_13183076_3\" WHERE \"production_code\"='3T7057';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13183076_3\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What is the Original air date for the episode directed by Tricia Brock?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_13183076_3\" WHERE \"directed_by\"='Tricia Brock';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13183076_3\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What is the Original air date for the episode written by Peter Ocko?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_13183076_3\" WHERE \"written_by\"='Peter Ocko';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13183076_3\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many U.S. viewers (million) are there for the episode whose Production code is 3T7051?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_million\" FROM \"table1_13183076_3\" WHERE \"production_code\"='3T7051';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13183076_3\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many episodes were aired on the Original air date for \"Circus, Circus\"?" }, { "role": "assistant", "content": "SELECT COUNT(\"original_air_date\") FROM \"table1_13183076_3\" WHERE \"title\"='\\\"Circus, Circus\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13223187_1\" (\n \"stage_winner\" text,\n \"missouri_department_of_tourism_general_classification_yellow_jersey\" text,\n \"edward_jones_investments_points_classification_green_jersey\" text,\n \"michelob_ultra_mountains_classification_gold_polka_dot_jersey\" text,\n \"build_a_bear_best_young_rider_blue_jersey\" text,\n \"drury_hotels_most_aggressive_rider_red_jersey\" text,\n \"team_classification\" text\n);\n\nQuestion: How many michelob ultra mountains classification for darren lill" }, { "role": "assistant", "content": "SELECT COUNT(\"michelob_ultra_mountains_classification_gold_polka_dot_jersey\") FROM \"table1_13223187_1\" WHERE \"drury_hotels_most_aggressive_rider_red_jersey\"='Darren Lill';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"notable_releases_of_the_year_2001\" (\n \"release\" text,\n \"title\" text,\n \"windows\" text,\n \"5th_gen\" text,\n \"6th_gen\" text,\n \"handheld\" text\n);\n\nQuestion: What was the release date of Sonic Adventure 2?" }, { "role": "assistant", "content": "SELECT \"release\" FROM \"notable_releases_of_the_year_2001\" WHERE \"title\"='Sonic Adventure 2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"notable_releases_of_the_year_2001\" (\n \"release\" text,\n \"title\" text,\n \"windows\" text,\n \"5th_gen\" text,\n \"6th_gen\" text,\n \"handheld\" text\n);\n\nQuestion: Was the release on April 8 available on Windows?" }, { "role": "assistant", "content": "SELECT \"windows\" FROM \"notable_releases_of_the_year_2001\" WHERE \"release\"='April 8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"notable_releases_of_the_year_2001\" (\n \"release\" text,\n \"title\" text,\n \"windows\" text,\n \"5th_gen\" text,\n \"6th_gen\" text,\n \"handheld\" text\n);\n\nQuestion: What title was released on August 27?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"notable_releases_of_the_year_2001\" WHERE \"release\"='August 27';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"notable_releases_of_the_year_2000\" (\n \"release\" text,\n \"title\" text,\n \"windows\" text,\n \"5th_gen\" text,\n \"6th_gen\" text,\n \"handheld\" text,\n \"arcade\" text\n);\n\nQuestion: Is icewind dale available for windows" }, { "role": "assistant", "content": "SELECT \"windows\" FROM \"notable_releases_of_the_year_2000\" WHERE \"title\"='Icewind Dale';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13237088_28\" (\n \"name\" text,\n \"gp\" real,\n \"solo\" real,\n \"ast\" real,\n \"total\" real,\n \"tfl_yds\" text,\n \"no_yds\" text,\n \"br_up\" real,\n \"qbh\" real,\n \"no_yds\" text,\n \"avg\" text,\n \"td\" real,\n \"long\" real,\n \"rcv_yds\" text,\n \"ff\" real,\n \"blkd_kick\" real\n);\n\nQuestion: List all number of yards with an AST of 8." }, { "role": "assistant", "content": "SELECT \"no_yds\" FROM \"table1_13237088_28\" WHERE \"ast\"=8;" } ]
[ { "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 \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: Who did the Seahawks play when the listed attendance was 61615?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"attendance\"=61615;" } ]
[ { "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 \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What was the Seahawks record on September 18, 1983?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"schedule\" WHERE \"date\"='September 18, 1983';" } ]
[ { "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 \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What week did the Seahawks play at los angeles memorial coliseum?" }, { "role": "assistant", "content": "SELECT MIN(\"week\") FROM \"schedule\" WHERE \"game_site\"='Los Angeles Memorial Coliseum';" } ]
[ { "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 \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What was the score of the game when the attendance was 48945?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"attendance\"=48945;" } ]
[ { "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 \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: Who did the Seahawks play on September 4, 1983?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"date\"='September 4, 1983';" } ]
[ { "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 \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What was the record set during the game played at Hubert H. Humphrey Metrodome?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"schedule\" WHERE \"game_site\"='Hubert H. Humphrey Metrodome';" } ]
[ { "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 \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: On what date was the game against San Diego Chargers played?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"opponent\"='San Diego Chargers';" } ]
[ { "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 \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What was the date of the game against Kansas City Chiefs?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"opponent\"='Kansas City Chiefs';" } ]
[ { "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 \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What was the result of the game played on September 16, 1984?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"date\"='September 16, 1984';" } ]
[ { "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 \"game_site\" text,\n \"record\" text,\n \"attendance\" text\n);\n\nQuestion: On what date did the game end with the result w 43-14?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"result\"='W 43-14';" } ]
[ { "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 \"game_site\" text,\n \"record\" text,\n \"attendance\" text\n);\n\nQuestion: What was the attendance at the game that resulted in w 24-20? " }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"result\"='W 24-20';" } ]
[ { "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 \"game_site\" text,\n \"record\" text,\n \"attendance\" text\n);\n\nQuestion: Who did they play against in the game that ended in 2-2?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"record\"='2-2';" } ]
[ { "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 \"game_site\" text,\n \"record\" text,\n \"attendance\" text\n);\n\nQuestion: When was the record of 0-1 set?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"record\"='0-1';" } ]
[ { "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 \"game_site\" text,\n \"record\" text,\n \"attendance\" text\n);\n\nQuestion: During what weak of the season was the game played on october 4, 1987?" }, { "role": "assistant", "content": "SELECT MAX(\"week\") FROM \"schedule\" WHERE \"date\"='October 4, 1987';" } ]
[ { "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 \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What was the attendance when the record was 1-1?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"record\"='1-1';" } ]
[ { "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 \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: In what week was the record 5-9?" }, { "role": "assistant", "content": "SELECT MAX(\"week\") FROM \"schedule\" WHERE \"record\"='5-9';" } ]
[ { "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 \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What date did the Seahawks play the Kansas City Chiefs at the Kingdome?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"game_site\"='Kingdome' AND \"opponent\"='Kansas City Chiefs';" } ]
[ { "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 \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: In what week was November 27, 1977?" }, { "role": "assistant", "content": "SELECT MAX(\"week\") FROM \"schedule\" WHERE \"date\"='November 27, 1977';" } ]
[ { "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 \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: Where did the teams play on October 16, 1977?" }, { "role": "assistant", "content": "SELECT \"game_site\" FROM \"schedule\" WHERE \"date\"='October 16, 1977';" } ]
[ { "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 \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What team was the opponent at Mile High Stadium?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"game_site\"='Mile High Stadium';" } ]
[ { "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 \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What was the record when they played the Los Angeles Rams?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"schedule\" WHERE \"opponent\"='Los Angeles Rams';" } ]