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 \"2000s\" (\n \"year\" real,\n \"network\" text,\n \"play_by_play\" text,\n \"color_commentator_s\" text,\n \"pregame_host\" text\n);\n\nQuestion: What was the Play-by-play when the color commentator was Eric Wynalda, earlier than 2005?" }, { "role": "assistant", "content": "SELECT \"play_by_play\" FROM \"2000s\" WHERE \"color_commentator_s\"='eric wynalda' AND \"year\"<2005;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2000s\" (\n \"year\" real,\n \"network\" text,\n \"play_by_play\" text,\n \"color_commentator_s\" text,\n \"pregame_host\" text\n);\n\nQuestion: What is the name of the pregame host when the Play-by-play was by JP Dellacamera, earlier than 2009, and Color commentator(s) was Ty Keough?" }, { "role": "assistant", "content": "SELECT \"pregame_host\" FROM \"2000s\" WHERE \"play_by_play\"='jp dellacamera' AND \"year\"<2009 AND \"color_commentator_s\"='ty keough';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pool_c\" (\n \"date\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"set_3\" text,\n \"total\" text\n);\n\nQuestion: What date was the score 3\u20130, and set 1 was 25\u201322?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"pool_c\" WHERE \"score\"='3\u20130' AND \"set_1\"='25\u201322';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pool_c\" (\n \"date\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"set_3\" text,\n \"total\" text\n);\n\nQuestion: What date was the total 56\u201375?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"pool_c\" WHERE \"total\"='56\u201375';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pool_c\" (\n \"date\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"set_3\" text,\n \"total\" text\n);\n\nQuestion: What is the Set 1 when Set 3 was 25\u201315?" }, { "role": "assistant", "content": "SELECT \"set_1\" FROM \"pool_c\" WHERE \"set_3\"='25\u201315';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pool_c\" (\n \"date\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"set_3\" text,\n \"total\" text\n);\n\nQuestion: What date was the total 75\u201345?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"pool_c\" WHERE \"total\"='75\u201345';" } ]
[ { "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 \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: What is the sum of the dates in december that were against the atlanta flames before game 40?" }, { "role": "assistant", "content": "SELECT SUM(\"december\") FROM \"schedule_and_results\" WHERE \"opponent\"='atlanta flames' AND \"game\"<40;" } ]
[ { "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 \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: What was the score of the game against montreal canadiens after game 26?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"schedule_and_results\" WHERE \"game\">26 AND \"opponent\"='montreal canadiens';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"school_club_team\" text\n);\n\nQuestion: In what Round was Grant Long Drafted?" }, { "role": "assistant", "content": "SELECT MIN(\"round\") FROM \"draft_picks\" WHERE \"player\"='grant long';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the Player from Memphis?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"draft_picks\" WHERE \"school_club_team\"='memphis';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"school_club_team\" text\n);\n\nQuestion: What Player was picked after Round 2 with a Pick number larger than 33?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"draft_picks\" WHERE \"pick\">33 AND \"round\">2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"school_club_team\" text\n);\n\nQuestion: In what Round was the Memphis Player drafted?" }, { "role": "assistant", "content": "SELECT AVG(\"round\") FROM \"draft_picks\" WHERE \"school_club_team\"='memphis';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"l\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_grizzlies\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which School/Club Team holds the 2006-2009 Years of Grizzlies ?" }, { "role": "assistant", "content": "SELECT \"school_club_team\" FROM \"l\" WHERE \"years_for_grizzlies\"='2006-2009';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"l\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_grizzlies\" text,\n \"school_club_team\" text\n);\n\nQuestion: Who was the Player in the 1998-2000 Year of Grizzlies?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"l\" WHERE \"years_for_grizzlies\"='1998-2000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"l\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_grizzlies\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the Nationality of the 1998-2000 Years for Grizzlies?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"l\" WHERE \"years_for_grizzlies\"='1998-2000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"l\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_grizzlies\" text,\n \"school_club_team\" text\n);\n\nQuestion: Who was the 1999-2002 Years for Grizzlies small forward Player who was from the United States?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"l\" WHERE \"nationality\"='united states' AND \"position\"='small forward' AND \"years_for_grizzlies\"='1999-2002';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"l\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_grizzlies\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which Player is the shooting guard?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"l\" WHERE \"position\"='shooting guard';" } ]
[ { "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\" real,\n \"opponent\" text,\n \"score\" text,\n \"decision\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is the location and attendance of game 44?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"game\"=44;" } ]
[ { "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\" real,\n \"opponent\" text,\n \"score\" text,\n \"decision\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is the record of game 42, which had a clemmensen decision?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"decision\"='clemmensen' AND \"game\"=42;" } ]
[ { "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\" text\n);\n\nQuestion: What country parred E and scored 71-73-70-74=288?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"final_round\" WHERE \"to_par\"='e' AND \"score\"='71-73-70-74=288';" } ]
[ { "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\" text\n);\n\nQuestion: How much money was scored for 73-71-70-73=287?" }, { "role": "assistant", "content": "SELECT \"money\" FROM \"final_round\" WHERE \"score\"='73-71-70-73=287';" } ]
[ { "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\" text\n);\n\nQuestion: What country has to par E with Mark O'Meara?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"final_round\" WHERE \"to_par\"='e' AND \"player\"='mark o''meara';" } ]
[ { "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\" text\n);\n\nQuestion: What country placed t6 with player Vijay Singh?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"final_round\" WHERE \"place\"='t6' AND \"player\"='vijay singh';" } ]
[ { "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\" text\n);\n\nQuestion: How much money did David Toms get?" }, { "role": "assistant", "content": "SELECT \"money\" FROM \"final_round\" WHERE \"player\"='david toms';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" text,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: What is the playoffs Game number on April 26?" }, { "role": "assistant", "content": "SELECT \"game\" FROM \"playoffs\" WHERE \"date\"='april 26';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" text,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: What is the Score of Game 4?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"playoffs\" WHERE \"game\"='4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" text,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: What is the playoff Game on April 30?" }, { "role": "assistant", "content": "SELECT \"game\" FROM \"playoffs\" WHERE \"date\"='april 30';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" text,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: What is the Date of the game with a Score of L 115\u2013118 (OT)?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"playoffs\" WHERE \"score\"='l 115\u2013118 (ot)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1996\" (\n \"date\" text,\n \"opponent\" text,\n \"site\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: What was the result when there were 27,321 in attendance?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"1996\" WHERE \"attendance\"='27,321';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1996\" (\n \"date\" text,\n \"opponent\" text,\n \"site\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: What is the number in attendance at Dowdy-Ficklen stadium \u2022 Greenville, NC, and the opponent was Ohio?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"1996\" WHERE \"site\"='dowdy-ficklen stadium \u2022 greenville, nc' AND \"opponent\"='ohio';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1996\" (\n \"date\" text,\n \"opponent\" text,\n \"site\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: What date was the game at Dowdy-Ficklen stadium \u2022 Greenville, NC, with 27,321 in attendance?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"1996\" WHERE \"site\"='dowdy-ficklen stadium \u2022 greenville, nc' AND \"attendance\"='27,321';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1996\" (\n \"date\" text,\n \"opponent\" text,\n \"site\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: What team was the opponent when there were 27,321 in attendance?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"1996\" WHERE \"attendance\"='27,321';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1996\" (\n \"date\" text,\n \"opponent\" text,\n \"site\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: What date was the game at Williams-Brice stadium \u2022 Columbia, SC?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"1996\" WHERE \"site\"='williams-brice stadium \u2022 columbia, sc';" } ]
[ { "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 \"country\" text,\n \"winning_score\" text,\n \"to_par\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text,\n \"purse\" real,\n \"winner_s_share\" real\n);\n\nQuestion: Can you tell me the Margin of victory that has the Winning score of 67-69-67-69=272?" }, { "role": "assistant", "content": "SELECT \"margin_of_victory\" FROM \"winners\" WHERE \"winning_score\"='67-69-67-69=272';" } ]
[ { "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 \"country\" text,\n \"winning_score\" text,\n \"to_par\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text,\n \"purse\" real,\n \"winner_s_share\" real\n);\n\nQuestion: Can you tell me the To par that has the Winner's share larger than 200,000, and the Margin of victory of 3 strokes?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"winners\" WHERE \"winner_s_share\">'200,000' AND \"margin_of_victory\"='3 strokes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"date\" real,\n \"region\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: WHAT IS THE AVERAGE DATE FOR CBS LABEL, IN AUSTRALIA, AND SBP 241031 FOR CATALOG?" }, { "role": "assistant", "content": "SELECT AVG(\"date\") FROM \"release_history\" WHERE \"label\"='cbs' AND \"region\"='australia' AND \"catalog\"='sbp 241031';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"date\" real,\n \"region\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: WHAT DATE HAS A CATALOG OF 486553.4?" }, { "role": "assistant", "content": "SELECT MAX(\"date\") FROM \"release_history\" WHERE \"catalog\"='486553.4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"date\" real,\n \"region\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: WHAT IS THE LOWEST DATE FOR KOREA, IN CD FORMAT?" }, { "role": "assistant", "content": "SELECT MIN(\"date\") FROM \"release_history\" WHERE \"region\"='korea' AND \"format\"='cd';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men_s_doubles_performance_timeline\" (\n \"tournament\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text\n);\n\nQuestion: What is 2008, when 2006 is \"1R\"?" }, { "role": "assistant", "content": "SELECT \"2008\" FROM \"men_s_doubles_performance_timeline\" WHERE \"2006\"='1r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men_s_doubles_performance_timeline\" (\n \"tournament\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text\n);\n\nQuestion: What is Tournament, when 2006 is \"A\", and when 2009 is \"A\"?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"men_s_doubles_performance_timeline\" WHERE \"2006\"='a' AND \"2009\"='a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men_s_doubles_performance_timeline\" (\n \"tournament\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text\n);\n\nQuestion: What is 2005, when 2006 is \"1R\"?" }, { "role": "assistant", "content": "SELECT \"2005\" FROM \"men_s_doubles_performance_timeline\" WHERE \"2006\"='1r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men_s_doubles_performance_timeline\" (\n \"tournament\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text\n);\n\nQuestion: What is 2011, when 2008 is \"2R\"?" }, { "role": "assistant", "content": "SELECT \"2011\" FROM \"men_s_doubles_performance_timeline\" WHERE \"2008\"='2r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men_s_doubles_performance_timeline\" (\n \"tournament\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text\n);\n\nQuestion: What is 2004, when 2005 is \"2R\", and when 2006 is \"1R\"" }, { "role": "assistant", "content": "SELECT \"2004\" FROM \"men_s_doubles_performance_timeline\" WHERE \"2005\"='2r' AND \"2006\"='1r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men_s_doubles_performance_timeline\" (\n \"tournament\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text\n);\n\nQuestion: What is 2004, when 2009 is \"A\"?" }, { "role": "assistant", "content": "SELECT \"2004\" FROM \"men_s_doubles_performance_timeline\" WHERE \"2009\"='a';" } ]
[ { "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: What was the name of the opponent when the method was ko (slam), and record was 13\u20131?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"mixed_martial_arts_record\" WHERE \"method\"='ko (slam)' AND \"record\"='13\u20131';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the highest pick of scott turner, who has a round greater than 2?" }, { "role": "assistant", "content": "SELECT MAX(\"pick\") FROM \"washington_redskins_draft_history\" WHERE \"round\">2 AND \"name\"='scott turner';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the name of the ot position player with a round greater than 4?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"washington_redskins_draft_history\" WHERE \"round\">4 AND \"position\"='ot';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the sum of the pick of darryl pounds, who has an overall greater than 68?" }, { "role": "assistant", "content": "SELECT SUM(\"pick\") FROM \"washington_redskins_draft_history\" WHERE \"name\"='darryl pounds' AND \"overall\">68;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the total number of rounds of the player from lehigh college with an overall less than 152?" }, { "role": "assistant", "content": "SELECT COUNT(\"round\") FROM \"washington_redskins_draft_history\" WHERE \"college\"='lehigh' AND \"overall\"<152;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the highest round of pick 3?" }, { "role": "assistant", "content": "SELECT MAX(\"round\") FROM \"washington_redskins_draft_history\" WHERE \"pick\"=3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the total overall number of the ot position player with a pick greater than 5?" }, { "role": "assistant", "content": "SELECT COUNT(\"overall\") FROM \"washington_redskins_draft_history\" WHERE \"position\"='ot' AND \"pick\">5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"goalscorers\" (\n \"rank\" real,\n \"name\" text,\n \"s_league\" text,\n \"singapore_cup\" text,\n \"singapore_league_cup\" text,\n \"afc_cup\" text,\n \"total\" text\n);\n\nQuestion: What rank does the Singapore Cup of 0 (1) have?" }, { "role": "assistant", "content": "SELECT MAX(\"rank\") FROM \"goalscorers\" WHERE \"singapore_cup\"='0 (1)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"goalscorers\" (\n \"rank\" real,\n \"name\" text,\n \"s_league\" text,\n \"singapore_cup\" text,\n \"singapore_league_cup\" text,\n \"afc_cup\" text,\n \"total\" text\n);\n\nQuestion: What Singapore League Cup does Masahiro Fukasawa have?" }, { "role": "assistant", "content": "SELECT \"singapore_league_cup\" FROM \"goalscorers\" WHERE \"name\"='masahiro fukasawa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"goalscorers\" (\n \"rank\" real,\n \"name\" text,\n \"s_league\" text,\n \"singapore_cup\" text,\n \"singapore_league_cup\" text,\n \"afc_cup\" text,\n \"total\" text\n);\n\nQuestion: What is Norikazu Murakami's total?" }, { "role": "assistant", "content": "SELECT \"total\" FROM \"goalscorers\" WHERE \"name\"='norikazu murakami';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"goalscorers\" (\n \"rank\" real,\n \"name\" text,\n \"s_league\" text,\n \"singapore_cup\" text,\n \"singapore_league_cup\" text,\n \"afc_cup\" text,\n \"total\" text\n);\n\nQuestion: What is the rank for the total that has 3 (20)?" }, { "role": "assistant", "content": "SELECT \"rank\" FROM \"goalscorers\" WHERE \"total\"='3 (20)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"goalscorers\" (\n \"rank\" real,\n \"name\" text,\n \"s_league\" text,\n \"singapore_cup\" text,\n \"singapore_league_cup\" text,\n \"afc_cup\" text,\n \"total\" text\n);\n\nQuestion: Which AFC cup does Masahiro Fukasawa have?" }, { "role": "assistant", "content": "SELECT \"afc_cup\" FROM \"goalscorers\" WHERE \"name\"='masahiro fukasawa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"goalscorers\" (\n \"rank\" real,\n \"name\" text,\n \"s_league\" text,\n \"singapore_cup\" text,\n \"singapore_league_cup\" text,\n \"afc_cup\" text,\n \"total\" text\n);\n\nQuestion: Which AFC cup does Kenji Arai have?" }, { "role": "assistant", "content": "SELECT \"afc_cup\" FROM \"goalscorers\" WHERE \"name\"='kenji arai';" } ]
[ { "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: In the game where Joe Johnson (31) was the high points scorer, what was the final score?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"high_points\"='joe johnson (31)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real,\n \"money\" real\n);\n\nQuestion: What is the lowest to par of the player with a t3 place and less than $1,500?" }, { "role": "assistant", "content": "SELECT MIN(\"to_par\") FROM \"final_leaderboard\" WHERE \"place\"='t3' AND \"money\"<'1,500';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real,\n \"money\" real\n);\n\nQuestion: Who is the player from the United States with a t6 place and a 71-70-76-72=289 score?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"final_leaderboard\" WHERE \"country\"='united states' AND \"place\"='t6' AND \"score\"='71-70-76-72=289';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real,\n \"money\" real\n);\n\nQuestion: How much total money does player tommy bolt, who has a to par of 9, have?" }, { "role": "assistant", "content": "SELECT COUNT(\"money\") FROM \"final_leaderboard\" WHERE \"to_par\"=9 AND \"player\"='tommy bolt';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real,\n \"money\" real\n);\n\nQuestion: What is the lowest amount of money a player from South Africa with a to par less than 8 has?" }, { "role": "assistant", "content": "SELECT MIN(\"money\") FROM \"final_leaderboard\" WHERE \"country\"='south africa' AND \"to_par\"<8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What was the venue that had a friendly match competition?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"international_goals\" WHERE \"competition\"='friendly match';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"u_s_open_champions\" (\n \"year\" real,\n \"country\" text,\n \"course\" text,\n \"location\" text,\n \"total_score\" text,\n \"to_par_a\" text\n);\n\nQuestion: With a year larger than 1905, and a location of philadelphia, pennsylvania with a to par [a] of n/a and a country of scotland what is the course?" }, { "role": "assistant", "content": "SELECT \"course\" FROM \"u_s_open_champions\" WHERE \"to_par_a\"='n/a' AND \"country\"='scotland' AND \"year\">1905 AND \"location\"='philadelphia, pennsylvania';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"u_s_open_champions\" (\n \"year\" real,\n \"country\" text,\n \"course\" text,\n \"location\" text,\n \"total_score\" text,\n \"to_par_a\" text\n);\n\nQuestion: What is the total score for a location of san francisco, california, and a year after 1987, and a to pa [a] of +1?" }, { "role": "assistant", "content": "SELECT \"total_score\" FROM \"u_s_open_champions\" WHERE \"location\"='san francisco, california' AND \"year\">1987 AND \"to_par_a\"='+1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"u_s_open_champions\" (\n \"year\" real,\n \"country\" text,\n \"course\" text,\n \"location\" text,\n \"total_score\" text,\n \"to_par_a\" text\n);\n\nQuestion: What is the sum for the year with a location of newport, rhode island?" }, { "role": "assistant", "content": "SELECT SUM(\"year\") FROM \"u_s_open_champions\" WHERE \"location\"='newport, rhode island';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"u_s_open_champions\" (\n \"year\" real,\n \"country\" text,\n \"course\" text,\n \"location\" text,\n \"total_score\" text,\n \"to_par_a\" text\n);\n\nQuestion: What is the country with a course of merion golf club, and a to par [1] of e?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"u_s_open_champions\" WHERE \"course\"='merion golf club' AND \"to_par_a\"='e';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"u_s_open_champions\" (\n \"year\" real,\n \"country\" text,\n \"course\" text,\n \"location\" text,\n \"total_score\" text,\n \"to_par_a\" text\n);\n\nQuestion: What is the total score for the year 2012?" }, { "role": "assistant", "content": "SELECT \"total_score\" FROM \"u_s_open_champions\" WHERE \"year\"=2012;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_competition\" (\n \"state\" text,\n \"preliminary_average\" text,\n \"interview\" text,\n \"swimsuit\" text,\n \"evening_gown\" text,\n \"semifinal_average\" text\n);\n\nQuestion: What is the evening gown score for the contestant from Mississippi?" }, { "role": "assistant", "content": "SELECT \"evening_gown\" FROM \"final_competition\" WHERE \"state\"='mississippi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"denmark\" (\n \"rank\" real,\n \"surname\" text,\n \"number_of_bearers_1971\" real,\n \"number_of_bearers_2009\" real,\n \"type\" text,\n \"etymology\" text\n);\n\nQuestion: What is the type for rank 2?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"denmark\" WHERE \"rank\"=2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"denmark\" (\n \"rank\" real,\n \"surname\" text,\n \"number_of_bearers_1971\" real,\n \"number_of_bearers_2009\" real,\n \"type\" text,\n \"etymology\" text\n);\n\nQuestion: What is the sum of number of bearers in 2009 for a rank above 1, a type of patronymic, an etymology meaning son of Christian, and the number of bearers in 1971 greater than 45.984?" }, { "role": "assistant", "content": "SELECT SUM(\"number_of_bearers_2009\") FROM \"denmark\" WHERE \"rank\">1 AND \"type\"='patronymic' AND \"etymology\"='son of christian' AND \"number_of_bearers_1971\">45.984;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualifying_results\" (\n \"name\" text,\n \"team\" text,\n \"qual_1\" text,\n \"qual_2\" text,\n \"best\" text\n);\n\nQuestion: What is Ryan Hunter-Reay of the Herdez Competition's Qual 2 time?" }, { "role": "assistant", "content": "SELECT \"qual_2\" FROM \"qualifying_results\" WHERE \"team\"='herdez competition' AND \"name\"='ryan hunter-reay';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualifying_results\" (\n \"name\" text,\n \"team\" text,\n \"qual_1\" text,\n \"qual_2\" text,\n \"best\" text\n);\n\nQuestion: What is Justin Wilson's Team?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"qualifying_results\" WHERE \"name\"='justin wilson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualifying_results\" (\n \"name\" text,\n \"team\" text,\n \"qual_1\" text,\n \"qual_2\" text,\n \"best\" text\n);\n\nQuestion: What is the Best of the racer with a Qual 2 of 1:00.588?" }, { "role": "assistant", "content": "SELECT \"best\" FROM \"qualifying_results\" WHERE \"qual_2\"='1:00.588';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"subdivisions\" (\n \"hanyu\" text,\n \"tongyong\" text,\n \"pe_h_e_j\" text,\n \"chinese\" text,\n \"area_km\" real,\n \"no_of_villages\" real,\n \"population_2010\" real\n);\n\nQuestion: Where is the lowest area with a population of 7,616?" }, { "role": "assistant", "content": "SELECT MIN(\"area_km\") FROM \"subdivisions\" WHERE \"population_2010\"='7,616';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"subdivisions\" (\n \"hanyu\" text,\n \"tongyong\" text,\n \"pe_h_e_j\" text,\n \"chinese\" text,\n \"area_km\" real,\n \"no_of_villages\" real,\n \"population_2010\" real\n);\n\nQuestion: Where in Tongyong is Hanyu Sanmin?" }, { "role": "assistant", "content": "SELECT \"tongyong\" FROM \"subdivisions\" WHERE \"hanyu\"='sanmin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"subdivisions\" (\n \"hanyu\" text,\n \"tongyong\" text,\n \"pe_h_e_j\" text,\n \"chinese\" text,\n \"area_km\" real,\n \"no_of_villages\" real,\n \"population_2010\" real\n);\n\nQuestion: Which Hanya has an area of 19.3888?" }, { "role": "assistant", "content": "SELECT \"hanyu\" FROM \"subdivisions\" WHERE \"area_km\"=19.3888;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"pick\" real,\n \"position\" text,\n \"nationality\" text,\n \"college_team\" text\n);\n\nQuestion: What is Nationality, when Round is less than 2, and when Pick is \"24\"?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"draft_picks\" WHERE \"round\"<2 AND \"pick\"=24;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"pick\" real,\n \"position\" text,\n \"nationality\" text,\n \"college_team\" text\n);\n\nQuestion: What is Nationality, when Round is less than 2, and when College/Team is \"CB L'Hospitalet\"?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"draft_picks\" WHERE \"round\"<2 AND \"college_team\"='cb l''hospitalet';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"pick\" real,\n \"position\" text,\n \"nationality\" text,\n \"college_team\" text\n);\n\nQuestion: What is the lowest Round, when College/Team is \"Kansas\", and when Pick is less than 56?" }, { "role": "assistant", "content": "SELECT MIN(\"round\") FROM \"draft_picks\" WHERE \"college_team\"='kansas' AND \"pick\"<56;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"pick\" real,\n \"position\" text,\n \"nationality\" text,\n \"college_team\" text\n);\n\nQuestion: What is College/Team, when Round is less than 2, and when Nationality is \"United States\"?" }, { "role": "assistant", "content": "SELECT \"college_team\" FROM \"draft_picks\" WHERE \"round\"<2 AND \"nationality\"='united states';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualifying\" (\n \"driver\" text,\n \"constructor\" text,\n \"q1_order\" real,\n \"q1_time\" text,\n \"q1_pos\" real,\n \"q1_q2_time\" text\n);\n\nQuestion: WHAT IS THE Q1 POS WITH A 1:31.826 Q1 TIME, AND Q1 ORDER OF 7?" }, { "role": "assistant", "content": "SELECT MAX(\"q1_pos\") FROM \"qualifying\" WHERE \"q1_time\"='1:31.826' AND \"q1_order\">7;" } ]
[ { "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 \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is the score on December 2?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"date\"='december 2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"overall_medal_tally\" (\n \"year\" text,\n \"gold\" text,\n \"silver\" text,\n \"bronze\" text,\n \"total\" text\n);\n\nQuestion: How many silver medals were won in 1938?" }, { "role": "assistant", "content": "SELECT \"silver\" FROM \"overall_medal_tally\" WHERE \"year\"='1938';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"overall_medal_tally\" (\n \"year\" text,\n \"gold\" text,\n \"silver\" text,\n \"bronze\" text,\n \"total\" text\n);\n\nQuestion: How many gold medals were won in 1970?" }, { "role": "assistant", "content": "SELECT \"gold\" FROM \"overall_medal_tally\" WHERE \"year\"='1970';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"overall_medal_tally\" (\n \"year\" text,\n \"gold\" text,\n \"silver\" text,\n \"bronze\" text,\n \"total\" text\n);\n\nQuestion: How many silver medals were won the year 7 gold medals were won?" }, { "role": "assistant", "content": "SELECT \"silver\" FROM \"overall_medal_tally\" WHERE \"gold\"='7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"overall_medal_tally\" (\n \"year\" text,\n \"gold\" text,\n \"silver\" text,\n \"bronze\" text,\n \"total\" text\n);\n\nQuestion: How many bronze medals were won in 1998?" }, { "role": "assistant", "content": "SELECT \"bronze\" FROM \"overall_medal_tally\" WHERE \"year\"='1998';" } ]
[ { "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 \"tv_time\" text,\n \"opponent\" text,\n \"result\" text\n);\n\nQuestion: Can you tell me the TV Time that has the Date of november 22, 1998?" }, { "role": "assistant", "content": "SELECT \"tv_time\" FROM \"schedule\" WHERE \"date\"='november 22, 1998';" } ]
[ { "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 \"tv_time\" text,\n \"opponent\" text,\n \"result\" text\n);\n\nQuestion: Can you tell me the Result that has the Date of september 13, 1998?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"date\"='september 13, 1998';" } ]
[ { "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 \"tv_time\" text,\n \"opponent\" text,\n \"result\" text\n);\n\nQuestion: Can you tell me the Opponent that has the Week smaller than 11, and the TV Time of fox 10:00 am mt, and the Result of w 20-17?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"week\"<11 AND \"tv_time\"='fox 10:00 am mt' AND \"result\"='w 20-17';" } ]
[ { "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 \"tv_time\" text,\n \"opponent\" text,\n \"result\" text\n);\n\nQuestion: Can you tell me the Result that has the Week of 5?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"week\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"south_australia\" (\n \"team\" text,\n \"coach\" text,\n \"home_ground\" text,\n \"location\" text,\n \"founded\" real\n);\n\nQuestion: What is the average year that the club located in enfield was founded with an unknown coach?" }, { "role": "assistant", "content": "SELECT AVG(\"founded\") FROM \"south_australia\" WHERE \"coach\"='unknown' AND \"location\"='enfield';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"south_australia\" (\n \"team\" text,\n \"coach\" text,\n \"home_ground\" text,\n \"location\" text,\n \"founded\" real\n);\n\nQuestion: What was the location of the club where the home ground is wilfred taylor reserve?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"south_australia\" WHERE \"home_ground\"='wilfred taylor reserve';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"south_australia\" (\n \"team\" text,\n \"coach\" text,\n \"home_ground\" text,\n \"location\" text,\n \"founded\" real\n);\n\nQuestion: Where is the club that was founded in 1946 located that has an unknown coach?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"south_australia\" WHERE \"coach\"='unknown' AND \"founded\"=1946;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"south_australia\" (\n \"team\" text,\n \"coach\" text,\n \"home_ground\" text,\n \"location\" text,\n \"founded\" real\n);\n\nQuestion: Where is the home ground for the club coached by nick pantsaras and founded before 1946?" }, { "role": "assistant", "content": "SELECT \"home_ground\" FROM \"south_australia\" WHERE \"founded\"<1946 AND \"coach\"='nick pantsaras';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"team\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: Which team was the opponent that had a location of Madison Square Garden with a score of 87-83?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"playoffs\" WHERE \"location_attendance\"='madison square garden' AND \"score\"='87-83';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"team\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: Which game was played at the Forum and led to a series result of 0-1?" }, { "role": "assistant", "content": "SELECT \"game\" FROM \"playoffs\" WHERE \"location_attendance\"='the forum' AND \"series\"='0-1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"team\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: What was the score for game 2?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"playoffs\" WHERE \"game\"=2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_2_1997_98\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: What is the title of the show with less than 10 seasons that aired on September 29, 1997 and is directed by Milan Cheylov?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"season_2_1997_98\" WHERE \"season_num\"<10 AND \"directed_by\"='milan cheylov' AND \"original_air_date\"='september 29, 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 is the attendance of the November 19, 1990 game?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"date\"='november 19, 1990';" } ]