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 \"torneo_apertura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: Which Losses has Scored of 9, and Points larger than 8?" }, { "role": "assistant", "content": "SELECT AVG(\"losses\") FROM \"torneo_apertura\" WHERE \"scored\"=9 AND \"points\">8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_season\" (\n \"season\" text,\n \"race\" real,\n \"podium\" real,\n \"pole\" real,\n \"f_lap\" real\n);\n\nQuestion: On Race 14 when the FLap is larger than 1, what is the podium number?" }, { "role": "assistant", "content": "SELECT COUNT(\"podium\") FROM \"by_season\" WHERE \"race\"=14 AND \"f_lap\">1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_season\" (\n \"season\" text,\n \"race\" real,\n \"podium\" real,\n \"pole\" real,\n \"f_lap\" real\n);\n\nQuestion: When the Flap is less than 15 and the podium is larger than 11, what is the pole?" }, { "role": "assistant", "content": "SELECT \"pole\" FROM \"by_season\" WHERE \"f_lap\"<15 AND \"podium\">11;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_season\" (\n \"season\" text,\n \"race\" real,\n \"podium\" real,\n \"pole\" real,\n \"f_lap\" real\n);\n\nQuestion: When the pole is larger than 0 and the podium is less than 44, with a race number less than 16, what is the FLap?" }, { "role": "assistant", "content": "SELECT \"f_lap\" FROM \"by_season\" WHERE \"pole\">0 AND \"podium\"<44 AND \"race\"<16;" } ]
[ { "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\" text\n);\n\nQuestion: What is the average Week, when Opponent is Minnesota Vikings?" }, { "role": "assistant", "content": "SELECT AVG(\"week\") FROM \"schedule\" WHERE \"opponent\"='minnesota vikings';" } ]
[ { "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\" text\n);\n\nQuestion: What is Opponent, when Attendance is 58,836?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"attendance\"='58,836';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_formula_one_world_championship_\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"tyres\" text,\n \"points\" text\n);\n\nQuestion: Which engine of Rob Walker Racing Team has 47 points and F tyres?" }, { "role": "assistant", "content": "SELECT \"engine\" FROM \"complete_formula_one_world_championship_\" WHERE \"points\"='47' AND \"tyres\"='f' AND \"entrant\"='rob walker racing team';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_formula_one_world_championship_\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"tyres\" text,\n \"points\" text\n);\n\nQuestion: Which entrant has 49 points and a Mclaren M7A chassis?" }, { "role": "assistant", "content": "SELECT \"entrant\" FROM \"complete_formula_one_world_championship_\" WHERE \"points\"='49' AND \"chassis\"='mclaren m7a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_formula_one_world_championship_\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"tyres\" text,\n \"points\" text\n);\n\nQuestion: How many points did Bob Gerard Racing have in 1965?" }, { "role": "assistant", "content": "SELECT \"points\" FROM \"complete_formula_one_world_championship_\" WHERE \"entrant\"='bob gerard racing' AND \"year\"=1965;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_formula_one_world_championship_\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"tyres\" text,\n \"points\" text\n);\n\nQuestion: Which entrant had a Brabham BT10 chassis before 1965?" }, { "role": "assistant", "content": "SELECT \"entrant\" FROM \"complete_formula_one_world_championship_\" WHERE \"year\"<1965 AND \"chassis\"='brabham bt10';" } ]
[ { "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\" text\n);\n\nQuestion: What is the Attendance on September 28, 1997?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"date\"='september 28, 1997';" } ]
[ { "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\" text\n);\n\nQuestion: What was the Opponent on August 31, 1997?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"date\"='august 31, 1997';" } ]
[ { "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\" text\n);\n\nQuestion: What was the Attendance on Week 10?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"week\"=10;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_standings\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: How many Points have a Home of pittsburgh, and a Score of 1\u20137?" }, { "role": "assistant", "content": "SELECT SUM(\"points\") FROM \"final_standings\" WHERE \"home\"='pittsburgh' AND \"score\"='1\u20137';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_standings\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Which Visitor has an Attendance larger than 10,959, and Points larger than 24?" }, { "role": "assistant", "content": "SELECT \"visitor\" FROM \"final_standings\" WHERE \"attendance\">'10,959' AND \"points\">24;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_standings\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Which Date has a Record of 7\u20137\u20131?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"final_standings\" WHERE \"record\"='7\u20137\u20131';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_standings\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Which Date has a Record of 11\u201310\u20132?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"final_standings\" WHERE \"record\"='11\u201310\u20132';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" text,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"poles\" text,\n \"f_laps\" text,\n \"podiums\" text,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: Which position had 3 podiums and F/laps of 4?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"career_summary\" WHERE \"podiums\"='3' AND \"f_laps\"='4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" text,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"poles\" text,\n \"f_laps\" text,\n \"podiums\" text,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What is the number of races associated with Team ASM and 0 poles?" }, { "role": "assistant", "content": "SELECT \"races\" FROM \"career_summary\" WHERE \"poles\"='0' AND \"team\"='asm';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" text,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"poles\" text,\n \"f_laps\" text,\n \"podiums\" text,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: Which team had 1 race, 1 F/lap and in the series 24 hours of Nurburgring?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"career_summary\" WHERE \"races\"='1' AND \"f_laps\"='1' AND \"series\"='24 hours of nurburgring';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" text,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"poles\" text,\n \"f_laps\" text,\n \"podiums\" text,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What is the number of podiums associated with 4 wins?" }, { "role": "assistant", "content": "SELECT \"podiums\" FROM \"career_summary\" WHERE \"wins\"='4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" text,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"poles\" text,\n \"f_laps\" text,\n \"podiums\" text,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What is the number of races associated with 7 podiums and a position of 4th?" }, { "role": "assistant", "content": "SELECT \"races\" FROM \"career_summary\" WHERE \"position\"='4th' AND \"podiums\"='7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" text,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"poles\" text,\n \"f_laps\" text,\n \"podiums\" text,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What is the F/Laps value associated with a position of 3rd?" }, { "role": "assistant", "content": "SELECT \"f_laps\" FROM \"career_summary\" WHERE \"position\"='3rd';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: Can you tell me the Opponent that has the Time of 0:20?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"mixed_martial_arts_record\" WHERE \"time\"='0:20';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: Can you tell me the Time that has the Opponent of phil baroni?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"mixed_martial_arts_record\" WHERE \"opponent\"='phil baroni';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: Can you tell me the lowest Round that has the Location of indiana, united states, and the Method of submission (guillotine choke)?" }, { "role": "assistant", "content": "SELECT MIN(\"round\") FROM \"mixed_martial_arts_record\" WHERE \"location\"='indiana, united states' AND \"method\"='submission (guillotine choke)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"name\" text,\n \"built\" text,\n \"listed\" text,\n \"location\" text,\n \"county\" text\n);\n\nQuestion: When was la vista built?" }, { "role": "assistant", "content": "SELECT \"built\" FROM \"see_also\" WHERE \"location\"='la vista';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"name\" text,\n \"built\" text,\n \"listed\" text,\n \"location\" text,\n \"county\" text\n);\n\nQuestion: When was the sargent bridge built?" }, { "role": "assistant", "content": "SELECT \"built\" FROM \"see_also\" WHERE \"name\"='sargent bridge';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"name\" text,\n \"built\" text,\n \"listed\" text,\n \"location\" text,\n \"county\" text\n);\n\nQuestion: What's the location for the country of platte?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"see_also\" WHERE \"county\"='platte';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"name\" text,\n \"built\" text,\n \"listed\" text,\n \"location\" text,\n \"county\" text\n);\n\nQuestion: what is the listing date for nuckolls county?" }, { "role": "assistant", "content": "SELECT \"listed\" FROM \"see_also\" WHERE \"county\"='nuckolls';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"name\" text,\n \"built\" text,\n \"listed\" text,\n \"location\" text,\n \"county\" text\n);\n\nQuestion: what's the listing date for the verdigris creek bridge in royal of antelope county?" }, { "role": "assistant", "content": "SELECT \"listed\" FROM \"see_also\" WHERE \"county\"='antelope' AND \"location\"='royal' AND \"name\"='verdigris creek bridge';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"name\" text,\n \"built\" text,\n \"listed\" text,\n \"location\" text,\n \"county\" text\n);\n\nQuestion: what's the county name for the republican river bridge listed on 1992-06-29?" }, { "role": "assistant", "content": "SELECT \"county\" FROM \"see_also\" WHERE \"listed\"='1992-06-29' AND \"name\"='republican river bridge';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: what is the country when the money ($) is more than 3,600 and player is tom watson?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"final_round\" WHERE \"money\">'3,600' AND \"player\"='tom watson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: what is the to par when the place is t10 and the score is 72-74-71-69=286?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"final_round\" WHERE \"place\"='t10' AND \"score\"='72-74-71-69=286';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: what is the to par when the player is hale irwin?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"final_round\" WHERE \"player\"='hale irwin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: what is the to par for Dave hill?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"final_round\" WHERE \"player\"='dave hill';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: what is the place when the score is 68-67-73-68=276?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"final_round\" WHERE \"score\"='68-67-73-68=276';" } ]
[ { "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: Can you tell me the Date that has the Week smaller than 13, and the Opponent of green bay packers?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"week\"<13 AND \"opponent\"='green bay packers';" } ]
[ { "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: Can you tell me the average Attendance that has the Opponent of new orleans saints, and the Week larger than 12?" }, { "role": "assistant", "content": "SELECT AVG(\"attendance\") FROM \"schedule\" WHERE \"opponent\"='new orleans saints' AND \"week\">12;" } ]
[ { "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: Can you tell me the Attendance that has the Opponent of new york giants?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"opponent\"='new york giants';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"municipalities_of_the_city\" text,\n \"area_km\" text,\n \"population_censo_2007_hab\" text,\n \"population_under_1_year_old_censo_2007_hab\" text,\n \"households_2007\" text,\n \"density_hab_km\" text,\n \"elevation_msnm\" text\n);\n\nQuestion: What is the density (hab/km\u00b2) with a population censo 2007(hab) of 336.293*?" }, { "role": "assistant", "content": "SELECT \"density_hab_km\" FROM \"demographics\" WHERE \"population_censo_2007_hab\"='336.293*';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"municipalities_of_the_city\" text,\n \"area_km\" text,\n \"population_censo_2007_hab\" text,\n \"population_under_1_year_old_censo_2007_hab\" text,\n \"households_2007\" text,\n \"density_hab_km\" text,\n \"elevation_msnm\" text\n);\n\nQuestion: What is the under 1 year-old Censo 2007(hab) population with a population censo 2007(hab) of 112.054*?" }, { "role": "assistant", "content": "SELECT \"population_under_1_year_old_censo_2007_hab\" FROM \"demographics\" WHERE \"population_censo_2007_hab\"='112.054*';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"municipalities_of_the_city\" text,\n \"area_km\" text,\n \"population_censo_2007_hab\" text,\n \"population_under_1_year_old_censo_2007_hab\" text,\n \"households_2007\" text,\n \"density_hab_km\" text,\n \"elevation_msnm\" text\n);\n\nQuestion: What is the density (hab/km\u00b2) with a population under 1 year-old censo 2007(hab) of * data from the census taken by the Inei?" }, { "role": "assistant", "content": "SELECT \"density_hab_km\" FROM \"demographics\" WHERE \"population_under_1_year_old_censo_2007_hab\"='* data from the census taken by the inei';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"municipalities_of_the_city\" text,\n \"area_km\" text,\n \"population_censo_2007_hab\" text,\n \"population_under_1_year_old_censo_2007_hab\" text,\n \"households_2007\" text,\n \"density_hab_km\" text,\n \"elevation_msnm\" text\n);\n\nQuestion: What is the elevation msnm for a population censo 2007(hab) of 77.392*?" }, { "role": "assistant", "content": "SELECT \"elevation_msnm\" FROM \"demographics\" WHERE \"population_censo_2007_hab\"='77.392*';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_13\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"venue\" text,\n \"crowd\" real,\n \"box_score\" text,\n \"report\" text\n);\n\nQuestion: What's the report about townsville crocodiles as an away team?" }, { "role": "assistant", "content": "SELECT \"report\" FROM \"round_13\" WHERE \"away_team\"='townsville crocodiles';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"game\" real,\n \"march\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: What's the record of game 67?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"schedule_and_results\" WHERE \"game\"=67;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"game\" real,\n \"march\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: What's the score of the game against the Boston Bruins and after game 68?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"schedule_and_results\" WHERE \"game\">68 AND \"opponent\"='boston bruins';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"births_and_deaths\" (\n \"average_population_x_1000\" text,\n \"live_births_1\" text,\n \"deaths_1\" text,\n \"natural_change_1\" text,\n \"crude_birth_rate_per_1000\" real,\n \"crude_death_rate_per_1000\" real,\n \"natural_change_per_1000\" real\n);\n\nQuestion: what is the natural change (per 1000) when the crude death rate (per 1000) is 10?" }, { "role": "assistant", "content": "SELECT \"natural_change_per_1000\" FROM \"births_and_deaths\" WHERE \"crude_death_rate_per_1000\"=10;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"births_and_deaths\" (\n \"average_population_x_1000\" text,\n \"live_births_1\" text,\n \"deaths_1\" text,\n \"natural_change_1\" text,\n \"crude_birth_rate_per_1000\" real,\n \"crude_death_rate_per_1000\" real,\n \"natural_change_per_1000\" real\n);\n\nQuestion: what is the crude birth rate (per 1000) when the live births 1 is 356 013?" }, { "role": "assistant", "content": "SELECT SUM(\"crude_birth_rate_per_1000\") FROM \"births_and_deaths\" WHERE \"live_births_1\"='356 013';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"births_and_deaths\" (\n \"average_population_x_1000\" text,\n \"live_births_1\" text,\n \"deaths_1\" text,\n \"natural_change_1\" text,\n \"crude_birth_rate_per_1000\" real,\n \"crude_death_rate_per_1000\" real,\n \"natural_change_per_1000\" real\n);\n\nQuestion: what is the natural change (per 1000) when the live births 1 is 278 977?" }, { "role": "assistant", "content": "SELECT \"natural_change_per_1000\" FROM \"births_and_deaths\" WHERE \"live_births_1\"='278 977';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: Which Player has a To par of e, and a Country of united states?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"first_round\" WHERE \"to_par\"='e' AND \"country\"='united states';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: Which Place has a Score smaller than 72, and a To par of \u22121, and a Country of spain?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"first_round\" WHERE \"score\"<72 AND \"to_par\"='\u22121' AND \"country\"='spain';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: What was john huston's score?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"first_round\" WHERE \"player\"='john huston';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: What was willie wood's to par?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"first_round\" WHERE \"player\"='willie wood';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_2\" (\n \"date\" text,\n \"city\" text,\n \"event\" text,\n \"winner\" text,\n \"prize\" text\n);\n\nQuestion: What is the Prize amount of Winner Dominik Nitsche?" }, { "role": "assistant", "content": "SELECT \"prize\" FROM \"season_2\" WHERE \"winner\"='dominik nitsche';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_2\" (\n \"date\" text,\n \"city\" text,\n \"event\" text,\n \"winner\" text,\n \"prize\" text\n);\n\nQuestion: What is the Winner of the Event in Nuevo Vallarta?" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"season_2\" WHERE \"city\"='nuevo vallarta';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_2\" (\n \"date\" text,\n \"city\" text,\n \"event\" text,\n \"winner\" text,\n \"prize\" text\n);\n\nQuestion: What is the Date of the Event in Punta del Este?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"season_2\" WHERE \"city\"='punta del este';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_2\" (\n \"date\" text,\n \"city\" text,\n \"event\" text,\n \"winner\" text,\n \"prize\" text\n);\n\nQuestion: What is the Date of the Event with a Prize of $141,426?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"season_2\" WHERE \"prize\"='$141,426';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_state_leaders_in_840s_bc\" (\n \"type\" text,\n \"name\" text,\n \"title\" text,\n \"royal_house\" text,\n \"from\" text\n);\n\nQuestion: What is the title of ahaziah?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"list_of_state_leaders_in_840s_bc\" WHERE \"name\"='ahaziah';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_state_leaders_in_840s_bc\" (\n \"type\" text,\n \"name\" text,\n \"title\" text,\n \"royal_house\" text,\n \"from\" text\n);\n\nQuestion: What is the type of the king title?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"list_of_state_leaders_in_840s_bc\" WHERE \"title\"='king';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_state_leaders_in_840s_bc\" (\n \"type\" text,\n \"name\" text,\n \"title\" text,\n \"royal_house\" text,\n \"from\" text\n);\n\nQuestion: What is the name of the queen regnant?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"list_of_state_leaders_in_840s_bc\" WHERE \"title\"='queen regnant';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"250cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time\" text,\n \"grid\" real\n);\n\nQuestion: What is the total number of Grid, when Rider is Aleix Espargaro?" }, { "role": "assistant", "content": "SELECT COUNT(\"grid\") FROM \"250cc_classification\" WHERE \"rider\"='aleix espargaro';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"250cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time\" text,\n \"grid\" real\n);\n\nQuestion: What is the Rider, when Grid is less than 16, when Manufacturer is Aprilia, and when Time is +28.288?" }, { "role": "assistant", "content": "SELECT \"rider\" FROM \"250cc_classification\" WHERE \"grid\"<16 AND \"manufacturer\"='aprilia' AND \"time\"='+28.288';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"250cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time\" text,\n \"grid\" real\n);\n\nQuestion: What is the average Laps, when Grid is 15?" }, { "role": "assistant", "content": "SELECT AVG(\"laps\") FROM \"250cc_classification\" WHERE \"grid\"=15;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"250cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time\" text,\n \"grid\" real\n);\n\nQuestion: What is the Manufacturer, when Laps is 26, and when Rider is Aleix Espargaro?" }, { "role": "assistant", "content": "SELECT \"manufacturer\" FROM \"250cc_classification\" WHERE \"laps\"=26 AND \"rider\"='aleix espargaro';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sixth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is Home Team, when Date is \"13 March 1985\", and when Tie No is \"1\"?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"sixth_round_proper\" WHERE \"date\"='13 march 1985' AND \"tie_no\"='1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sixth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is Date, when Away Team is \"Ipswich Town\"?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"sixth_round_proper\" WHERE \"away_team\"='ipswich town';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sixth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is Tie No, when Away Team is \"Millwall\"?" }, { "role": "assistant", "content": "SELECT \"tie_no\" FROM \"sixth_round_proper\" WHERE \"away_team\"='millwall';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sixth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is Score, when Date is \"13 March 1985\", and when Away Team is \"Millwall\"?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"sixth_round_proper\" WHERE \"date\"='13 march 1985' AND \"away_team\"='millwall';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sixth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is Date, when Away Team is \"Liverpool\"?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"sixth_round_proper\" WHERE \"away_team\"='liverpool';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sixth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is Score, when Home Team is \"Manchester United\"?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"sixth_round_proper\" WHERE \"home_team\"='manchester united';" } ]
[ { "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\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is Team, when High Rebounds is \"Carl Landry (11)\"?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"game_log\" WHERE \"high_rebounds\"='carl landry (11)';" } ]
[ { "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\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is Location Attendance, when High Assists is \"Rafer Alston (7)\", and when High Rebounds is \"Yao Ming (13)\"?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"high_assists\"='rafer alston (7)' AND \"high_rebounds\"='yao ming (13)';" } ]
[ { "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\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is Score, when Team is \"@ Memphis\"?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"team\"='@ memphis';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1929_30_season_as_a_three_year_old\" (\n \"result\" text,\n \"race\" text,\n \"distance\" text,\n \"weight\" real,\n \"winner_or_2nd\" text,\n \"pos_n\" text\n);\n\nQuestion: What is the result of the ajc craven plate (wfa) race?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"1929_30_season_as_a_three_year_old\" WHERE \"race\"='ajc craven plate (wfa)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1929_30_season_as_a_three_year_old\" (\n \"result\" text,\n \"race\" text,\n \"distance\" text,\n \"weight\" real,\n \"winner_or_2nd\" text,\n \"pos_n\" text\n);\n\nQuestion: What is the distance of the race with amounis as the winner or 2nd and a 2nd pos'n?" }, { "role": "assistant", "content": "SELECT \"distance\" FROM \"1929_30_season_as_a_three_year_old\" WHERE \"winner_or_2nd\"='amounis' AND \"pos_n\"='2nd';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1929_30_season_as_a_three_year_old\" (\n \"result\" text,\n \"race\" text,\n \"distance\" text,\n \"weight\" real,\n \"winner_or_2nd\" text,\n \"pos_n\" text\n);\n\nQuestion: What is the result of the sajc king's cup race, which has a weight heavier than 8.1?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"1929_30_season_as_a_three_year_old\" WHERE \"weight\">8.1 AND \"race\"='sajc king''s cup';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1929_30_season_as_a_three_year_old\" (\n \"result\" text,\n \"race\" text,\n \"distance\" text,\n \"weight\" real,\n \"winner_or_2nd\" text,\n \"pos_n\" text\n);\n\nQuestion: What is the winner or 2nd of the race with a 2nd pos'n and a weight lighter than 8.1?" }, { "role": "assistant", "content": "SELECT \"winner_or_2nd\" FROM \"1929_30_season_as_a_three_year_old\" WHERE \"pos_n\"='2nd' AND \"weight\"<8.1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1929_30_season_as_a_three_year_old\" (\n \"result\" text,\n \"race\" text,\n \"distance\" text,\n \"weight\" real,\n \"winner_or_2nd\" text,\n \"pos_n\" text\n);\n\nQuestion: What is the sum of the weight of the race with a 1st pos'n and a 8f distance?" }, { "role": "assistant", "content": "SELECT SUM(\"weight\") FROM \"1929_30_season_as_a_three_year_old\" WHERE \"pos_n\"='1st' AND \"distance\"='8f';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1929_30_season_as_a_three_year_old\" (\n \"result\" text,\n \"race\" text,\n \"distance\" text,\n \"weight\" real,\n \"winner_or_2nd\" text,\n \"pos_n\" text\n);\n\nQuestion: What is the race with a 10f distance and mollison as the winner or 2nd?" }, { "role": "assistant", "content": "SELECT \"race\" FROM \"1929_30_season_as_a_three_year_old\" WHERE \"distance\"='10f' AND \"winner_or_2nd\"='mollison';" } ]
[ { "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 \"total\" real,\n \"gorenum\" real,\n \"gorepct\" text,\n \"bushnum\" real,\n \"bushpct\" text,\n \"othersnum\" real,\n \"otherspct\" text\n);\n\nQuestion: What is the highest number of Bush with a 32.40% Bush % and a total less than 5,126?" }, { "role": "assistant", "content": "SELECT MAX(\"bushnum\") FROM \"by_county\" WHERE \"bushpct\"='32.40%' AND \"total\"<'5,126';" } ]
[ { "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\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is the location and attendance when the score as w 117\u2013109 (ot)?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"score\"='w 117\u2013109 (ot)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"record_vs_other_opponents_at_least_15_ga\" (\n \"missouri_vs\" text,\n \"overall_record\" text,\n \"at_columbia\" text,\n \"at_opponent_s_venue\" text,\n \"at_neutral_site\" text,\n \"last_5_meetings\" text,\n \"last_10_meetings\" text,\n \"current_streak\" text\n);\n\nQuestion: What were the last 10 meetings when the opponent's venue was mu, 11-7?" }, { "role": "assistant", "content": "SELECT \"last_10_meetings\" FROM \"record_vs_other_opponents_at_least_15_ga\" WHERE \"at_opponent_s_venue\"='mu, 11-7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"record_vs_other_opponents_at_least_15_ga\" (\n \"missouri_vs\" text,\n \"overall_record\" text,\n \"at_columbia\" text,\n \"at_opponent_s_venue\" text,\n \"at_neutral_site\" text,\n \"last_5_meetings\" text,\n \"last_10_meetings\" text,\n \"current_streak\" text\n);\n\nQuestion: What were the last 5 meetings when Columbia was mu, 4-2?" }, { "role": "assistant", "content": "SELECT \"last_5_meetings\" FROM \"record_vs_other_opponents_at_least_15_ga\" WHERE \"at_columbia\"='mu, 4-2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text\n);\n\nQuestion: What is the total number of rounds at 5:36?" }, { "role": "assistant", "content": "SELECT COUNT(\"round\") FROM \"mixed_martial_arts_record\" WHERE \"time\"='5:36';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text\n);\n\nQuestion: What is the total number of rounds with a 4-0 record?" }, { "role": "assistant", "content": "SELECT COUNT(\"round\") FROM \"mixed_martial_arts_record\" WHERE \"record\"='4-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_population\" (\n \"province\" text,\n \"population\" real,\n \"region\" text,\n \"name_of_city\" text,\n \"districts\" real\n);\n\nQuestion: Which district is in the province of Piura?" }, { "role": "assistant", "content": "SELECT \"districts\" FROM \"by_population\" WHERE \"province\"='piura';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_population\" (\n \"province\" text,\n \"population\" real,\n \"region\" text,\n \"name_of_city\" text,\n \"districts\" real\n);\n\nQuestion: What is the population of Chimbote?" }, { "role": "assistant", "content": "SELECT SUM(\"population\") FROM \"by_population\" WHERE \"name_of_city\"='chimbote';" } ]
[ { "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: What is the result of the game that was played at Detroit Lions?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"opponent\"='at detroit lions';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_1_1996_97\" (\n \"series_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: What series number was directed by milan cheylov and written by will dixon?" }, { "role": "assistant", "content": "SELECT AVG(\"series_num\") FROM \"season_1_1996_97\" WHERE \"directed_by\"='milan cheylov' AND \"written_by\"='will dixon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_1_1996_97\" (\n \"series_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: What series # had an original air date of november 30, 1996?" }, { "role": "assistant", "content": "SELECT MIN(\"series_num\") FROM \"season_1_1996_97\" WHERE \"original_air_date\"='november 30, 1996';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"northwest_germanic\" (\n \"class\" text,\n \"part_1\" text,\n \"part_2\" text,\n \"part_3\" text,\n \"part_4\" text\n);\n\nQuestion: What was part 4 when part 3 was *hleupun?" }, { "role": "assistant", "content": "SELECT \"part_4\" FROM \"northwest_germanic\" WHERE \"part_3\"='*hleupun';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"northwest_germanic\" (\n \"class\" text,\n \"part_1\" text,\n \"part_2\" text,\n \"part_3\" text,\n \"part_4\" text\n);\n\nQuestion: What was the class when part 2 was *h\u0113t?" }, { "role": "assistant", "content": "SELECT \"class\" FROM \"northwest_germanic\" WHERE \"part_2\"='*h\u0113t';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"northwest_germanic\" (\n \"class\" text,\n \"part_1\" text,\n \"part_2\" text,\n \"part_3\" text,\n \"part_4\" text\n);\n\nQuestion: What was the class when part 4 was *r\u0101danaz?" }, { "role": "assistant", "content": "SELECT \"class\" FROM \"northwest_germanic\" WHERE \"part_4\"='*r\u0101danaz';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"northwest_germanic\" (\n \"class\" text,\n \"part_1\" text,\n \"part_2\" text,\n \"part_3\" text,\n \"part_4\" text\n);\n\nQuestion: What was part 2 when part 4 was *bl\u014dtanaz?" }, { "role": "assistant", "content": "SELECT \"part_2\" FROM \"northwest_germanic\" WHERE \"part_4\"='*bl\u014dtanaz';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"northwest_germanic\" (\n \"class\" text,\n \"part_1\" text,\n \"part_2\" text,\n \"part_3\" text,\n \"part_4\" text\n);\n\nQuestion: What was part 2 when part 4 was *haldanaz?" }, { "role": "assistant", "content": "SELECT \"part_2\" FROM \"northwest_germanic\" WHERE \"part_4\"='*haldanaz';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"northwest_germanic\" (\n \"class\" text,\n \"part_1\" text,\n \"part_2\" text,\n \"part_3\" text,\n \"part_4\" text\n);\n\nQuestion: What was the class when part 3 was *heldun?" }, { "role": "assistant", "content": "SELECT \"class\" FROM \"northwest_germanic\" WHERE \"part_3\"='*heldun';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"royal_league_2005\" (\n \"date\" text,\n \"venue\" text,\n \"opponents\" text,\n \"score\" text,\n \"round\" text\n);\n\nQuestion: What is the Round din Ullevaal?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"royal_league_2005\" WHERE \"venue\"='ullevaal';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"royal_league_2005\" (\n \"date\" text,\n \"venue\" text,\n \"opponents\" text,\n \"score\" text,\n \"round\" text\n);\n\nQuestion: What Round is in Ullevaal?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"royal_league_2005\" WHERE \"venue\"='ullevaal';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"royal_league_2005\" (\n \"date\" text,\n \"venue\" text,\n \"opponents\" text,\n \"score\" text,\n \"round\" text\n);\n\nQuestion: In what Venue was the Score 1-1?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"royal_league_2005\" WHERE \"score\"='1-1';" } ]