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 \"ghanaian_presidents_ages\" (\n \"num\" real,\n \"president\" text,\n \"date_of_birth\" text,\n \"date_of_inauguration\" text,\n \"age_at_inauguration\" text,\n \"end_of_term\" text,\n \"length_of_retirement\" text,\n \"date_of_death\" text,\n \"lifespan\" text\n);\n\nQuestion: what's the\u00a0date of birth\u00a0with\u00a0#\u00a0being 2" }, { "role": "assistant", "content": "SELECT \"date_of_birth\" FROM \"ghanaian_presidents_ages\" WHERE \"num\"=2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ghanaian_presidents_ages\" (\n \"num\" real,\n \"president\" text,\n \"date_of_birth\" text,\n \"date_of_inauguration\" text,\n \"age_at_inauguration\" text,\n \"end_of_term\" text,\n \"length_of_retirement\" text,\n \"date_of_death\" text,\n \"lifespan\" text\n);\n\nQuestion: how many\u00a0end of term\u00a0with\u00a0age at inauguration\u00a0being 64-066 64years, 66days" }, { "role": "assistant", "content": "SELECT COUNT(\"end_of_term\") FROM \"ghanaian_presidents_ages\" WHERE \"age_at_inauguration\"='64-066 64years, 66days';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lone_star_series\" (\n \"date\" text,\n \"winning_team\" text,\n \"score\" text,\n \"winning_pitcher\" text,\n \"losing_pitcher\" text,\n \"attendance\" real,\n \"location\" text\n);\n\nQuestion: Who was the winning pitcher on june 25?" }, { "role": "assistant", "content": "SELECT \"winning_pitcher\" FROM \"lone_star_series\" WHERE \"date\"='June 25';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lone_star_series\" (\n \"date\" text,\n \"winning_team\" text,\n \"score\" text,\n \"winning_pitcher\" text,\n \"losing_pitcher\" text,\n \"attendance\" real,\n \"location\" text\n);\n\nQuestion: How many games were on May 20?" }, { "role": "assistant", "content": "SELECT COUNT(\"attendance\") FROM \"lone_star_series\" WHERE \"date\"='May 20';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lone_star_series\" (\n \"date\" text,\n \"winning_team\" text,\n \"score\" text,\n \"winning_pitcher\" text,\n \"losing_pitcher\" text,\n \"attendance\" real,\n \"location\" text\n);\n\nQuestion: Who is the losing pitcher when the winning pitcher is roy oswalt?" }, { "role": "assistant", "content": "SELECT \"losing_pitcher\" FROM \"lone_star_series\" WHERE \"winning_pitcher\"='Roy Oswalt';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lone_star_series\" (\n \"date\" text,\n \"winning_team\" text,\n \"score\" text,\n \"winning_pitcher\" text,\n \"losing_pitcher\" text,\n \"attendance\" real,\n \"location\" text\n);\n\nQuestion: Who is the winning pitcher when attendance is 38109?" }, { "role": "assistant", "content": "SELECT \"winning_pitcher\" FROM \"lone_star_series\" WHERE \"attendance\"=38109;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: How many NHL teams does Terry French play for?" }, { "role": "assistant", "content": "SELECT COUNT(\"nhl_team\") FROM \"round_two\" WHERE \"player\"='Terry French';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Who's the player for the New York Rangers?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_two\" WHERE \"nhl_team\"='New York Rangers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: How many positions do the players of Chicago Black Hawks play in?" }, { "role": "assistant", "content": "SELECT COUNT(\"position\") FROM \"round_two\" WHERE \"nhl_team\"='Chicago Black Hawks';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What is the nationality of the player from Buffalo Sabres?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"round_two\" WHERE \"nhl_team\"='Buffalo Sabres';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What position does the player from Peterborough Petes (OHA) play on?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_two\" WHERE \"college_junior_club_team\"='Peterborough Petes (OHA)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What's Dave Fortier's pick number?" }, { "role": "assistant", "content": "SELECT COUNT(\"pick_num\") FROM \"round_two\" WHERE \"player\"='Dave Fortier';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What team does George Hulme play for?" }, { "role": "assistant", "content": "SELECT \"college_junior_club_team\" FROM \"round_four\" WHERE \"player\"='George Hulme';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What position does Neil Komadoski play?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_four\" WHERE \"player\"='Neil Komadoski';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: where is team player mike mcniven played for?" }, { "role": "assistant", "content": "SELECT \"college_junior_club_team\" FROM \"round_five\" WHERE \"player\"='Mike McNiven';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: what college has nhl team chicago black hawks?" }, { "role": "assistant", "content": "SELECT \"college_junior_club_team\" FROM \"round_five\" WHERE \"nhl_team\"='Chicago Black Hawks';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: what is the college that has the nhl chicago black hawks?" }, { "role": "assistant", "content": "SELECT \"college_junior_club_team\" FROM \"round_five\" WHERE \"nhl_team\"='Chicago Black Hawks';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: who is the player with the nationality of canada and pick # is 65?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_five\" WHERE \"nationality\"='Canada' AND \"pick_num\"=65;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_three\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: How many teams did Bob Peppler play for?" }, { "role": "assistant", "content": "SELECT COUNT(\"nhl_team\") FROM \"round_three\" WHERE \"player\"='Bob Peppler';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_three\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What is the position listed for the team the Philadelphia Flyers?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_three\" WHERE \"nhl_team\"='Philadelphia Flyers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_three\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: How many nationalities are listed for the player Glen Irwin?" }, { "role": "assistant", "content": "SELECT COUNT(\"nationality\") FROM \"round_three\" WHERE \"player\"='Glen Irwin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_seven\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Which players have the position of centre and play for the nhl team new york rangers" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_seven\" WHERE \"position\"='Centre' AND \"nhl_team\"='New York Rangers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_seven\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Which nhl team has a college/junior/club team named university of notre dame (ncaa)" }, { "role": "assistant", "content": "SELECT \"nhl_team\" FROM \"round_seven\" WHERE \"college_junior_club_team\"='University of Notre Dame (NCAA)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_seven\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: what are all the position where player is al simmons" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_seven\" WHERE \"player\"='Al Simmons';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_seven\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What nationality is pick # 89" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"round_seven\" WHERE \"pick_num\"=89;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_seven\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Which college/junior/club teams nationality is canada and nhl team is minnesota north stars" }, { "role": "assistant", "content": "SELECT \"college_junior_club_team\" FROM \"round_seven\" WHERE \"nationality\"='Canada' AND \"nhl_team\"='Minnesota North Stars';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_seven\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: what is the total number of pick # where nhl team is philadelphia flyers" }, { "role": "assistant", "content": "SELECT COUNT(\"pick_num\") FROM \"round_seven\" WHERE \"nhl_team\"='Philadelphia Flyers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_six\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What is the nationality of the player from the Detroit Red Wings?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"round_six\" WHERE \"nhl_team\"='Detroit Red Wings';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_six\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What position does Jim Johnston play?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_six\" WHERE \"player\"='Jim Johnston';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_six\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Which team does Pierre Duguay play for?" }, { "role": "assistant", "content": "SELECT \"nhl_team\" FROM \"round_six\" WHERE \"player\"='Pierre Duguay';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_six\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What country does the goaltender come from?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"round_six\" WHERE \"position\"='Goaltender';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12148018_2\" (\n \"num\" real,\n \"episode\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text,\n \"viewers\" text\n);\n\nQuestion: who is the\u00a0writer\u00a0where\u00a0viewers\u00a0is 5.16m" }, { "role": "assistant", "content": "SELECT \"writer\" FROM \"table1_12148018_2\" WHERE \"viewers\"='5.16m';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12148018_2\" (\n \"num\" real,\n \"episode\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text,\n \"viewers\" text\n);\n\nQuestion: who is the\u00a0writer\u00a0for episode\u00a0\"episode 7\"" }, { "role": "assistant", "content": "SELECT \"writer\" FROM \"table1_12148018_2\" WHERE \"episode\"='\\\"Episode 7\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" text,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: For which league is the open cup the quarter finals" }, { "role": "assistant", "content": "SELECT \"league\" FROM \"year_by_year\" WHERE \"open_cup\"='Quarter Finals';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" text,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: What open cups where played in 2002" }, { "role": "assistant", "content": "SELECT \"open_cup\" FROM \"year_by_year\" WHERE \"year\"=2002;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" text,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: What leagues includes division 3" }, { "role": "assistant", "content": "SELECT \"league\" FROM \"year_by_year\" WHERE \"division\"='3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" text,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: What was the result of the playoffs when the regular season was 7th, southeast" }, { "role": "assistant", "content": "SELECT \"playoffs\" FROM \"year_by_year\" WHERE \"regular_season\"='7th, Southeast';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12159115_2\" (\n \"series_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What's the original air date of the episode with production code 2T6719?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_12159115_2\" WHERE \"production_code\"='2T6719';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12159115_2\" (\n \"series_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who's the writer of the episode see by 12.13 million US viewers?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_12159115_2\" WHERE \"u_s_viewers_millions\"='12.13';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12159115_2\" (\n \"series_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What's the total number of episodes with production code 2T6705?" }, { "role": "assistant", "content": "SELECT COUNT(\"title\") FROM \"table1_12159115_2\" WHERE \"production_code\"='2T6705';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12159115_2\" (\n \"series_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What's the total number of directors who've directed episodes seen by 11.34 million US viewers?" }, { "role": "assistant", "content": "SELECT COUNT(\"directed_by\") FROM \"table1_12159115_2\" WHERE \"u_s_viewers_millions\"='11.34';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12159115_2\" (\n \"series_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What's the production code of the episode seen by 11.64 million US viewers?" }, { "role": "assistant", "content": "SELECT \"production_code\" FROM \"table1_12159115_2\" WHERE \"u_s_viewers_millions\"='11.64';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nations_cup\" (\n \"season\" text,\n \"winner\" text,\n \"runner_up\" text,\n \"third\" text,\n \"winner_men\" text,\n \"winner_women\" text\n);\n\nQuestion: What is the season where the winner is norway and the winner women is russia?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"nations_cup\" WHERE \"winner\"='Norway' AND \"winner_women\"='Russia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nations_cup\" (\n \"season\" text,\n \"winner\" text,\n \"runner_up\" text,\n \"third\" text,\n \"winner_men\" text,\n \"winner_women\" text\n);\n\nQuestion: What is the winner women and third is italy and runner-up is finland?" }, { "role": "assistant", "content": "SELECT \"winner_women\" FROM \"nations_cup\" WHERE \"third\"='Italy' AND \"runner_up\"='Finland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nations_cup\" (\n \"season\" text,\n \"winner\" text,\n \"runner_up\" text,\n \"third\" text,\n \"winner_men\" text,\n \"winner_women\" text\n);\n\nQuestion: What is the number of runner up when the winner of women is norway and third is sweden?" }, { "role": "assistant", "content": "SELECT COUNT(\"runner_up\") FROM \"nations_cup\" WHERE \"winner_women\"='Norway' AND \"third\"='Sweden';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"drivers_standings\" (\n \"rd\" real,\n \"grand_prix\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: what's the\u00a0report\u00a0with\u00a0fastest lap\u00a0being felipe massa and\u00a0winning driver\u00a0being jenson button" }, { "role": "assistant", "content": "SELECT \"report\" FROM \"drivers_standings\" WHERE \"fastest_lap\"='Felipe Massa' AND \"winning_driver\"='Jenson Button';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"drivers_standings\" (\n \"rd\" real,\n \"grand_prix\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: what's the\u00a0grand prix\u00a0with\u00a0winning driver\u00a0being jenson button" }, { "role": "assistant", "content": "SELECT \"grand_prix\" FROM \"drivers_standings\" WHERE \"winning_driver\"='Jenson Button';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"drivers_standings\" (\n \"rd\" real,\n \"grand_prix\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: who is the the\u00a0pole position\u00a0with\u00a0grand prix\u00a0being italian grand prix" }, { "role": "assistant", "content": "SELECT \"pole_position\" FROM \"drivers_standings\" WHERE \"grand_prix\"='Italian Grand Prix';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"drivers_standings\" (\n \"rd\" real,\n \"grand_prix\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: who is the the\u00a0fastest lap\u00a0with\u00a0grand prix\u00a0being european grand prix" }, { "role": "assistant", "content": "SELECT \"fastest_lap\" FROM \"drivers_standings\" WHERE \"grand_prix\"='European Grand Prix';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12159115_3\" (\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 \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many viewers, in millions, were for the episode directed by Tawnia McKiernan?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_millions\" FROM \"table1_12159115_3\" WHERE \"directed_by\"='Tawnia McKiernan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12159115_3\" (\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 \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many episodes were written only by William N. Fordes?" }, { "role": "assistant", "content": "SELECT COUNT(\"series_num\") FROM \"table1_12159115_3\" WHERE \"written_by\"='William N. Fordes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12159115_3\" (\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 \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many U.S Viewers, in millions, were for series # 26?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_millions\" FROM \"table1_12159115_3\" WHERE \"series_num\"=26;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12148147_2\" (\n \"subjects\" text,\n \"first_year\" text,\n \"second_year\" text,\n \"third_year\" text,\n \"fourth_year\" text\n);\n\nQuestion: What is the third year course in science?" }, { "role": "assistant", "content": "SELECT \"third_year\" FROM \"table1_12148147_2\" WHERE \"subjects\"='Science';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12148147_2\" (\n \"subjects\" text,\n \"first_year\" text,\n \"second_year\" text,\n \"third_year\" text,\n \"fourth_year\" text\n);\n\nQuestion: What is the second year class following pag-unawa?" }, { "role": "assistant", "content": "SELECT \"second_year\" FROM \"table1_12148147_2\" WHERE \"first_year\"='Pag-unawa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12148147_2\" (\n \"subjects\" text,\n \"first_year\" text,\n \"second_year\" text,\n \"third_year\" text,\n \"fourth_year\" text\n);\n\nQuestion: How many classes are taken in the third year when pag-unawa was taken in the first year?" }, { "role": "assistant", "content": "SELECT COUNT(\"third_year\") FROM \"table1_12148147_2\" WHERE \"first_year\"='Pag-unawa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12148147_2\" (\n \"subjects\" text,\n \"first_year\" text,\n \"second_year\" text,\n \"third_year\" text,\n \"fourth_year\" text\n);\n\nQuestion: What is the first year course in the program where geometry is taken in the third year?" }, { "role": "assistant", "content": "SELECT \"first_year\" FROM \"table1_12148147_2\" WHERE \"third_year\"='Geometry';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12148147_2\" (\n \"subjects\" text,\n \"first_year\" text,\n \"second_year\" text,\n \"third_year\" text,\n \"fourth_year\" text\n);\n\nQuestion: What is the second year course in the program where physics is taken in the fourth year?" }, { "role": "assistant", "content": "SELECT \"second_year\" FROM \"table1_12148147_2\" WHERE \"fourth_year\"='Physics';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"previous_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Who won the womens singles event the year that Jonas Lyduch won?" }, { "role": "assistant", "content": "SELECT \"womens_singles\" FROM \"previous_winners\" WHERE \"mens_singles\"='Jonas Lyduch';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"previous_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Who won the mens doubles the year Alison Humby won the womens singles?" }, { "role": "assistant", "content": "SELECT \"mens_doubles\" FROM \"previous_winners\" WHERE \"womens_singles\"='Alison Humby';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"design_details\" (\n \"308_winchester_cartridge_type\" text,\n \"100_m_group_mm\" text,\n \"100_m_group_moa\" text,\n \"300_m_group_mm\" text,\n \"300_m_group_moa\" text\n);\n\nQuestion: What are all the .308 Winchester cartridge types with 38 for the 300 m group (mm)" }, { "role": "assistant", "content": "SELECT \"308_winchester_cartridge_type\" FROM \"design_details\" WHERE \"300_m_group_mm\"='38';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"design_details\" (\n \"308_winchester_cartridge_type\" text,\n \"100_m_group_mm\" text,\n \"100_m_group_moa\" text,\n \"300_m_group_mm\" text,\n \"300_m_group_moa\" text\n);\n\nQuestion: For which 100 m group ( moa ) is the 300 m group ( moa ) 0.63" }, { "role": "assistant", "content": "SELECT \"100_m_group_moa\" FROM \"design_details\" WHERE \"300_m_group_moa\"='0.63';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"design_details\" (\n \"308_winchester_cartridge_type\" text,\n \"100_m_group_mm\" text,\n \"100_m_group_moa\" text,\n \"300_m_group_mm\" text,\n \"300_m_group_moa\" text\n);\n\nQuestion: What are all the 300 m group (mm) with a .308 winchester cartridge type of ruag swiss p target 168 gr hp-bt" }, { "role": "assistant", "content": "SELECT \"300_m_group_mm\" FROM \"design_details\" WHERE \"308_winchester_cartridge_type\"='RUAG Swiss P Target 168 gr HP-BT';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"design_details\" (\n \"308_winchester_cartridge_type\" text,\n \"100_m_group_mm\" text,\n \"100_m_group_moa\" text,\n \"300_m_group_mm\" text,\n \"300_m_group_moa\" text\n);\n\nQuestion: For which .308 winchester cartridge type is the 300 m group ( moa ) 0.51" }, { "role": "assistant", "content": "SELECT \"308_winchester_cartridge_type\" FROM \"design_details\" WHERE \"300_m_group_moa\"='0.51';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"design_details\" (\n \"308_winchester_cartridge_type\" text,\n \"100_m_group_mm\" text,\n \"100_m_group_moa\" text,\n \"300_m_group_mm\" text,\n \"300_m_group_moa\" text\n);\n\nQuestion: For which 300 m group ( moa ) is the 300 m group (mm) 45" }, { "role": "assistant", "content": "SELECT \"300_m_group_moa\" FROM \"design_details\" WHERE \"300_m_group_mm\"='45';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"design_details\" (\n \"308_winchester_cartridge_type\" text,\n \"100_m_group_mm\" text,\n \"100_m_group_moa\" text,\n \"300_m_group_mm\" text,\n \"300_m_group_moa\" text\n);\n\nQuestion: What are all the 100 m group (mm) with a .308 winchester cartridge type of .300 winchester magnum cartridge type" }, { "role": "assistant", "content": "SELECT \"100_m_group_mm\" FROM \"design_details\" WHERE \"308_winchester_cartridge_type\"='.300 Winchester Magnum cartridge type';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"previous_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: How many years did Peter Mikkelsen win the Mens Singles?" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"previous_winners\" WHERE \"mens_singles\"='Peter Mikkelsen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"previous_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Who won the Men's Doubles when Karina de Wit won the Women's Singles?" }, { "role": "assistant", "content": "SELECT \"mens_doubles\" FROM \"previous_winners\" WHERE \"womens_singles\"='Karina de Wit';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"previous_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: How many Mixed Doubles won when Oliver Pongratz won the Men's Singles?" }, { "role": "assistant", "content": "SELECT COUNT(\"mixed_doubles\") FROM \"previous_winners\" WHERE \"mens_singles\"='Oliver Pongratz';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"previous_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Who won the Men's Doubles when Guo Xin won the Women's Singles?" }, { "role": "assistant", "content": "SELECT \"mens_doubles\" FROM \"previous_winners\" WHERE \"womens_singles\"='Guo Xin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_one\" (\n \"overall_pick_num\" real,\n \"afl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which college did Dennis Byrd come from?" }, { "role": "assistant", "content": "SELECT \"college\" FROM \"round_one\" WHERE \"player\"='Dennis Byrd';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_one\" (\n \"overall_pick_num\" real,\n \"afl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Bob Johnson plays for which AFL team?" }, { "role": "assistant", "content": "SELECT \"afl_team\" FROM \"round_one\" WHERE \"player\"='Bob Johnson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_one\" (\n \"overall_pick_num\" real,\n \"afl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What position does the Cincinnati Bengals' player have?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_one\" WHERE \"afl_team\"='Cincinnati Bengals';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_one\" (\n \"overall_pick_num\" real,\n \"afl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What position does Syracuse's player have?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_one\" WHERE \"college\"='Syracuse';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_one\" (\n \"overall_pick_num\" real,\n \"afl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What college did the Cincinnati Bengals' player come from?" }, { "role": "assistant", "content": "SELECT \"college\" FROM \"round_one\" WHERE \"afl_team\"='Cincinnati Bengals';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"contents\" (\n \"chapter\" real,\n \"chinese\" text,\n \"pinyin\" text,\n \"translation\" text,\n \"subject\" text\n);\n\nQuestion: What is the pinyin for explaining music?" }, { "role": "assistant", "content": "SELECT \"pinyin\" FROM \"contents\" WHERE \"translation\"='Explaining Music';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"contents\" (\n \"chapter\" real,\n \"chinese\" text,\n \"pinyin\" text,\n \"translation\" text,\n \"subject\" text\n);\n\nQuestion: How many subjects have the pinyin shixun?" }, { "role": "assistant", "content": "SELECT COUNT(\"subject\") FROM \"contents\" WHERE \"pinyin\"='Shixun';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"contents\" (\n \"chapter\" real,\n \"chinese\" text,\n \"pinyin\" text,\n \"translation\" text,\n \"subject\" text\n);\n\nQuestion: What is the pinyin for explaining beasts?" }, { "role": "assistant", "content": "SELECT \"pinyin\" FROM \"contents\" WHERE \"translation\"='Explaining Beasts';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"contents\" (\n \"chapter\" real,\n \"chinese\" text,\n \"pinyin\" text,\n \"translation\" text,\n \"subject\" text\n);\n\nQuestion: How many pinyin transaltions are available for the chinese phrase \u91cb\u87f2?" }, { "role": "assistant", "content": "SELECT COUNT(\"pinyin\") FROM \"contents\" WHERE \"chinese\"='\u91cb\u87f2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"contents\" (\n \"chapter\" real,\n \"chinese\" text,\n \"pinyin\" text,\n \"translation\" text,\n \"subject\" text\n);\n\nQuestion: What chapter number is Shiqiu?" }, { "role": "assistant", "content": "SELECT MIN(\"chapter\") FROM \"contents\" WHERE \"pinyin\"='Shiqiu';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: How many mens doubles when womens doubles is catrine bengtsson margit borg?" }, { "role": "assistant", "content": "SELECT COUNT(\"mens_doubles\") FROM \"past_winners\" WHERE \"womens_doubles\"='Catrine Bengtsson Margit Borg';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Who is the mens doubles when womens doubles is anastasia chervyakova romina gabdullina?" }, { "role": "assistant", "content": "SELECT \"mens_doubles\" FROM \"past_winners\" WHERE \"womens_doubles\"='Anastasia Chervyakova Romina Gabdullina';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Who is themens doubles when the mens singles is flemming delfs?" }, { "role": "assistant", "content": "SELECT \"mens_doubles\" FROM \"past_winners\" WHERE \"mens_singles\"='Flemming Delfs';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Who was the womens doubles when the mixed doubles is jacco arends selena piek?" }, { "role": "assistant", "content": "SELECT \"womens_doubles\" FROM \"past_winners\" WHERE \"mixed_doubles\"='Jacco Arends Selena Piek';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Who was the mens doubles when womens singles is mette s\u00f8rensen?" }, { "role": "assistant", "content": "SELECT \"mens_doubles\" FROM \"past_winners\" WHERE \"womens_singles\"='Mette S\u00f8rensen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"round\" real,\n \"date\" text,\n \"grand_prix\" text,\n \"circuit\" text,\n \"125cc_winner\" text,\n \"250cc_winner\" text,\n \"moto_gp_winner\" text,\n \"report\" text\n);\n\nQuestion: Who is the Motogp winnder for the Catalunya Circuit?" }, { "role": "assistant", "content": "SELECT \"moto_gp_winner\" FROM \"grands_prix\" WHERE \"circuit\"='Catalunya';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"round\" real,\n \"date\" text,\n \"grand_prix\" text,\n \"circuit\" text,\n \"125cc_winner\" text,\n \"250cc_winner\" text,\n \"moto_gp_winner\" text,\n \"report\" text\n);\n\nQuestion: Who is the 125cc winnder for the Phillip Island circuit?" }, { "role": "assistant", "content": "SELECT \"125cc_winner\" FROM \"grands_prix\" WHERE \"circuit\"='Phillip Island';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"round\" real,\n \"date\" text,\n \"grand_prix\" text,\n \"circuit\" text,\n \"125cc_winner\" text,\n \"250cc_winner\" text,\n \"moto_gp_winner\" text,\n \"report\" text\n);\n\nQuestion: What is the date of the German Grand Prix?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"grands_prix\" WHERE \"grand_prix\"='German Grand Prix';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"round\" real,\n \"date\" text,\n \"grand_prix\" text,\n \"circuit\" text,\n \"125cc_winner\" text,\n \"250cc_winner\" text,\n \"moto_gp_winner\" text,\n \"report\" text\n);\n\nQuestion: What circuit was on the date 4 May?" }, { "role": "assistant", "content": "SELECT \"circuit\" FROM \"grands_prix\" WHERE \"date\"='4 May';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12193259_1\" (\n \"season\" text,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Name the number of mens doubles for 2004/2005" }, { "role": "assistant", "content": "SELECT COUNT(\"mens_doubles\") FROM \"table1_12193259_1\" WHERE \"season\"='2004/2005';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12193259_1\" (\n \"season\" text,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Name the total number for mens single for 2002/2003" }, { "role": "assistant", "content": "SELECT COUNT(\"mens_singles\") FROM \"table1_12193259_1\" WHERE \"season\"='2002/2003';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12193259_1\" (\n \"season\" text,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Name the mens singles for 1944/1945" }, { "role": "assistant", "content": "SELECT \"mens_singles\" FROM \"table1_12193259_1\" WHERE \"season\"='1944/1945';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_boxing_quadruple_or_four_divisio\" (\n \"number\" real,\n \"name\" text,\n \"titles\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"defenses\" real\n);\n\nQuestion: How many times was pernell whitaker an opponent?" }, { "role": "assistant", "content": "SELECT COUNT(\"date\") FROM \"list_of_boxing_quadruple_or_four_divisio\" WHERE \"opponent\"='Pernell Whitaker';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_boxing_quadruple_or_four_divisio\" (\n \"number\" real,\n \"name\" text,\n \"titles\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"defenses\" real\n);\n\nQuestion: How many times was iran barkley an opponent?" }, { "role": "assistant", "content": "SELECT \"number\" FROM \"list_of_boxing_quadruple_or_four_divisio\" WHERE \"opponent\"='Iran Barkley';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_boxing_quadruple_or_four_divisio\" (\n \"number\" real,\n \"name\" text,\n \"titles\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"defenses\" real\n);\n\nQuestion: Who was the opponent when the result was ud 12/12 and date was 1993-05-22?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"list_of_boxing_quadruple_or_four_divisio\" WHERE \"result\"='UD 12/12' AND \"date\"='1993-05-22';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_boxing_quadruple_or_four_divisio\" (\n \"number\" real,\n \"name\" text,\n \"titles\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"defenses\" real\n);\n\nQuestion: How many opponents fought on 1982-12-03?" }, { "role": "assistant", "content": "SELECT COUNT(\"opponent\") FROM \"list_of_boxing_quadruple_or_four_divisio\" WHERE \"date\"='1982-12-03';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_boxing_quadruple_or_four_divisio\" (\n \"number\" real,\n \"name\" text,\n \"titles\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"defenses\" real\n);\n\nQuestion: What is the name of the title winner in the ring light heavyweight (175) division?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"list_of_boxing_quadruple_or_four_divisio\" WHERE \"titles\"='The Ring Light heavyweight (175)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12221135_3\" (\n \"departure\" text,\n \"going_to\" text,\n \"calling_at\" text,\n \"arrival\" text,\n \"operator\" text\n);\n\nQuestion: How many trains call at Castor, Overton, Peterborough East and are operated by LNWR?" }, { "role": "assistant", "content": "SELECT COUNT(\"arrival\") FROM \"table1_12221135_3\" WHERE \"operator\"='LNWR' AND \"calling_at\"='Castor, Overton, Peterborough East';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12204717_1\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Who won the mens singles in 2009?" }, { "role": "assistant", "content": "SELECT \"mens_singles\" FROM \"table1_12204717_1\" WHERE \"year\"=2009;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"member_institutions\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"joined\" real,\n \"nickname\" text,\n \"colors\" text\n);\n\nQuestion: What are the the University of Richmond's school colors?" }, { "role": "assistant", "content": "SELECT \"colors\" FROM \"member_institutions\" WHERE \"institution\"='University of Richmond';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"member_institutions\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"joined\" real,\n \"nickname\" text,\n \"colors\" text\n);\n\nQuestion: What are the school colors of the University of New Hampshire?" }, { "role": "assistant", "content": "SELECT \"colors\" FROM \"member_institutions\" WHERE \"institution\"='University of New Hampshire';" } ]