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 \"table1_27462209_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_millions\" text,\n \"original_u_s_air_date\" text,\n \"prod_code\" real\n);\n\nQuestion: Name who wrote the production code 322"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_27462209_1\" WHERE \"prod_code\"=322;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_broadcasts\" (\n \"country\" text,\n \"series_programmes\" text,\n \"series_seasons_programmes\" text,\n \"television_channel\" text,\n \"television_network\" text,\n \"series_premiere\" text,\n \"series_end\" text,\n \"status\" text,\n \"available\" text\n);\n\nQuestion: What is the television network with the television channel of Astro Pelangi & Astro Bintang?"
},
{
"role": "assistant",
"content": "SELECT \"television_network\" FROM \"international_broadcasts\" WHERE \"television_channel\"='Astro Pelangi & Astro Bintang';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_broadcasts\" (\n \"country\" text,\n \"series_programmes\" text,\n \"series_seasons_programmes\" text,\n \"television_channel\" text,\n \"television_network\" text,\n \"series_premiere\" text,\n \"series_end\" text,\n \"status\" text,\n \"available\" text\n);\n\nQuestion: What was the status of the series that was run by tv channel Mediacorp tv12 Suria?"
},
{
"role": "assistant",
"content": "SELECT \"status\" FROM \"international_broadcasts\" WHERE \"television_channel\"='MediaCorp TV12 Suria';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"universities\" (\n \"members\" text,\n \"country\" text,\n \"year_established\" real,\n \"world_rank_by_the_wur_2013\" text,\n \"world_rank_by_arwu_2013\" text,\n \"world_rank_by_qs_2013\" text\n);\n\nQuestion: What was the world rank by QS in 2013 for the University of Otago?"
},
{
"role": "assistant",
"content": "SELECT \"world_rank_by_qs_2013\" FROM \"universities\" WHERE \"members\"='University of Otago';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"universities\" (\n \"members\" text,\n \"country\" text,\n \"year_established\" real,\n \"world_rank_by_the_wur_2013\" text,\n \"world_rank_by_arwu_2013\" text,\n \"world_rank_by_qs_2013\" text\n);\n\nQuestion: What was the world rank by ARWU in 2013 of university whose world rank by QS in 2013 was 90th?"
},
{
"role": "assistant",
"content": "SELECT \"world_rank_by_arwu_2013\" FROM \"universities\" WHERE \"world_rank_by_qs_2013\"='90th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"universities\" (\n \"members\" text,\n \"country\" text,\n \"year_established\" real,\n \"world_rank_by_the_wur_2013\" text,\n \"world_rank_by_arwu_2013\" text,\n \"world_rank_by_qs_2013\" text\n);\n\nQuestion: What was the world rank by ARWU in 2013 of the University of T\u00fcbingen?"
},
{
"role": "assistant",
"content": "SELECT \"world_rank_by_arwu_2013\" FROM \"universities\" WHERE \"members\"='University of T\u00fcbingen';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"universities\" (\n \"members\" text,\n \"country\" text,\n \"year_established\" real,\n \"world_rank_by_the_wur_2013\" text,\n \"world_rank_by_arwu_2013\" text,\n \"world_rank_by_qs_2013\" text\n);\n\nQuestion: What was the world rank by THE-WUR in 2013 of the university whose world rank by QS in 2013 was 113th? "
},
{
"role": "assistant",
"content": "SELECT \"world_rank_by_the_wur_2013\" FROM \"universities\" WHERE \"world_rank_by_qs_2013\"='113th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27481781_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_no\" real,\n \"viewers_millions\" text\n);\n\nQuestion: What is the production number for the episode called \"Random on Purpose\"?"
},
{
"role": "assistant",
"content": "SELECT \"prod_no\" FROM \"table1_27481781_2\" WHERE \"title\"='\\\"Random on Purpose\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27481781_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_no\" real,\n \"viewers_millions\" text\n);\n\nQuestion: How many episodes have 18.73 million viewers?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"no_in_series\") FROM \"table1_27481781_2\" WHERE \"viewers_millions\"='18.73';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"elected\" real,\n \"status\" text,\n \"result\" text\n);\n\nQuestion: What was the result of the election for georgia's 3rd district?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"results\" WHERE \"district\"='Georgia''s 3rd';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"elected\" real,\n \"status\" text,\n \"result\" text\n);\n\nQuestion: Who was the incumbent from georgia's 8th district?"
},
{
"role": "assistant",
"content": "SELECT \"incumbent\" FROM \"results\" WHERE \"district\"='Georgia''s 8th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"elected\" real,\n \"status\" text,\n \"result\" text\n);\n\nQuestion: What was the result of the election with incumbent bob barr?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"results\" WHERE \"incumbent\"='Bob Barr';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"elected\" real,\n \"status\" text,\n \"result\" text\n);\n\nQuestion: What was the result of the election with incumbent john lewis?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"results\" WHERE \"incumbent\"='John Lewis';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"elected\" real,\n \"status\" text,\n \"result\" text\n);\n\nQuestion: Who was the incumbent for the election in 1978?"
},
{
"role": "assistant",
"content": "SELECT \"incumbent\" FROM \"results\" WHERE \"elected\"=1978;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27487310_5\" (\n \"country\" text,\n \"name\" text,\n \"host_s\" text,\n \"judges\" text,\n \"network\" text,\n \"air_dates\" text\n);\n\nQuestion: Who are the judges in the Netherlands for the season airing 28 November 2011 \u2013 24 December 2011?"
},
{
"role": "assistant",
"content": "SELECT \"judges\" FROM \"table1_27487310_5\" WHERE \"country\"='Netherlands' AND \"air_dates\"='28 November 2011 \u2013 24 December 2011';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27487310_5\" (\n \"country\" text,\n \"name\" text,\n \"host_s\" text,\n \"judges\" text,\n \"network\" text,\n \"air_dates\" text\n);\n\nQuestion: What is the version aired on SBS 6 called?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"table1_27487310_5\" WHERE \"network\"='SBS 6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27487310_5\" (\n \"country\" text,\n \"name\" text,\n \"host_s\" text,\n \"judges\" text,\n \"network\" text,\n \"air_dates\" text\n);\n\nQuestion: What are the air dates of the show in ABS-CBN?"
},
{
"role": "assistant",
"content": "SELECT \"air_dates\" FROM \"table1_27487310_5\" WHERE \"network\"='ABS-CBN';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27487310_5\" (\n \"country\" text,\n \"name\" text,\n \"host_s\" text,\n \"judges\" text,\n \"network\" text,\n \"air_dates\" text\n);\n\nQuestion: Who is the host on the series aired on 18 January 2012?"
},
{
"role": "assistant",
"content": "SELECT \"host_s\" FROM \"table1_27487310_5\" WHERE \"air_dates\"='18 January 2012';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27487310_5\" (\n \"country\" text,\n \"name\" text,\n \"host_s\" text,\n \"judges\" text,\n \"network\" text,\n \"air_dates\" text\n);\n\nQuestion: What is the name of the series with the unknown host?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"table1_27487310_5\" WHERE \"host_s\"='unknown';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_by_season_statistics\" (\n \"season\" text,\n \"points_per_game\" text,\n \"total_yards_per_game\" text,\n \"rushing_yards_per_game\" text,\n \"passing_yards_per_game\" text,\n \"sacks\" text,\n \"interceptions\" text\n);\n\nQuestion: What is every value for points per game if passing yards per game is 179.6?"
},
{
"role": "assistant",
"content": "SELECT \"points_per_game\" FROM \"season_by_season_statistics\" WHERE \"passing_yards_per_game\"='179.6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_by_season_statistics\" (\n \"season\" text,\n \"points_per_game\" text,\n \"total_yards_per_game\" text,\n \"rushing_yards_per_game\" text,\n \"passing_yards_per_game\" text,\n \"sacks\" text,\n \"interceptions\" text\n);\n\nQuestion: What is every value for sacks if interceptions is 19?"
},
{
"role": "assistant",
"content": "SELECT \"sacks\" FROM \"season_by_season_statistics\" WHERE \"interceptions\"='19';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_by_season_statistics\" (\n \"season\" text,\n \"points_per_game\" text,\n \"total_yards_per_game\" text,\n \"rushing_yards_per_game\" text,\n \"passing_yards_per_game\" text,\n \"sacks\" text,\n \"interceptions\" text\n);\n\nQuestion: What is every value for passing yards per game if rushing yards per game is 113.6?"
},
{
"role": "assistant",
"content": "SELECT \"passing_yards_per_game\" FROM \"season_by_season_statistics\" WHERE \"rushing_yards_per_game\"='113.6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_by_season_statistics\" (\n \"season\" text,\n \"points_per_game\" text,\n \"total_yards_per_game\" text,\n \"rushing_yards_per_game\" text,\n \"passing_yards_per_game\" text,\n \"sacks\" text,\n \"interceptions\" text\n);\n\nQuestion: What is every value for rushing yards per game if sacks if 25?"
},
{
"role": "assistant",
"content": "SELECT \"rushing_yards_per_game\" FROM \"season_by_season_statistics\" WHERE \"sacks\"='25';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_by_season_statistics\" (\n \"season\" text,\n \"points_per_game\" text,\n \"total_yards_per_game\" text,\n \"rushing_yards_per_game\" text,\n \"passing_yards_per_game\" text,\n \"sacks\" text,\n \"interceptions\" text\n);\n\nQuestion: What is every value for rushing yards per game if the season is 1984?"
},
{
"role": "assistant",
"content": "SELECT \"rushing_yards_per_game\" FROM \"season_by_season_statistics\" WHERE \"season\"='1984';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_by_season_statistics\" (\n \"season\" text,\n \"points_per_game\" text,\n \"total_yards_per_game\" text,\n \"rushing_yards_per_game\" text,\n \"passing_yards_per_game\" text,\n \"sacks\" text,\n \"interceptions\" text\n);\n\nQuestion: How many seasons have a sacks of 39?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"season\") FROM \"season_by_season_statistics\" WHERE \"sacks\"='39';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"averages\" (\n \"rank_by_average\" real,\n \"place\" real,\n \"couple\" text,\n \"total_points\" real,\n \"number_of_dances\" real,\n \"average\" text\n);\n\nQuestion: Name the average for rank of 3"
},
{
"role": "assistant",
"content": "SELECT \"average\" FROM \"averages\" WHERE \"rank_by_average\"=3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"averages\" (\n \"rank_by_average\" real,\n \"place\" real,\n \"couple\" text,\n \"total_points\" real,\n \"number_of_dances\" real,\n \"average\" text\n);\n\nQuestion: Name the total points for 2"
},
{
"role": "assistant",
"content": "SELECT \"total_points\" FROM \"averages\" WHERE \"place\"=2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"february\" real,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text,\n \"points\" real,\n \"decision\" text\n);\n\nQuestion: What is the decision when the opponents are atlanta thrashers?"
},
{
"role": "assistant",
"content": "SELECT \"decision\" FROM \"regular_season\" WHERE \"opponent\"='Atlanta Thrashers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"february\" real,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text,\n \"points\" real,\n \"decision\" text\n);\n\nQuestion: How many game entries are there when the points are 57?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"game\") FROM \"regular_season\" WHERE \"points\"=57;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"a_o\" real,\n \"trabajo_nominado\" text,\n \"premio\" text,\n \"categor_a\" text,\n \"country\" text,\n \"resultado\" text\n);\n\nQuestion: What is the smallest a\u00f1o?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"a_o\") FROM \"awards_and_nominations\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"a_o\" real,\n \"trabajo_nominado\" text,\n \"premio\" text,\n \"categor_a\" text,\n \"country\" text,\n \"resultado\" text\n);\n\nQuestion: How many premio are there when \"Artist of the Year\" was the categoria?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"premio\") FROM \"awards_and_nominations\" WHERE \"categor_a\"='Artist of the Year';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"a_o\" real,\n \"trabajo_nominado\" text,\n \"premio\" text,\n \"categor_a\" text,\n \"country\" text,\n \"resultado\" text\n);\n\nQuestion: What was the resultado when E.E.U.U was the country?"
},
{
"role": "assistant",
"content": "SELECT \"resultado\" FROM \"awards_and_nominations\" WHERE \"country\"='E.E.U.U';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"a_o\" real,\n \"trabajo_nominado\" text,\n \"premio\" text,\n \"categor_a\" text,\n \"country\" text,\n \"resultado\" text\n);\n\nQuestion: What was the categoria when E.E.U.U was the country?"
},
{
"role": "assistant",
"content": "SELECT \"categor_a\" FROM \"awards_and_nominations\" WHERE \"country\"='E.E.U.U';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"a_o\" real,\n \"trabajo_nominado\" text,\n \"premio\" text,\n \"categor_a\" text,\n \"country\" text,\n \"resultado\" text\n);\n\nQuestion: When the a\u00f1o was 2012, who was the county?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"awards_and_nominations\" WHERE \"a_o\"=2012;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27504682_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Name who wrote the episode by lawrence trilling"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_27504682_1\" WHERE \"directed_by\"='Lawrence Trilling';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27504682_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Name the air date for alex taub"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_27504682_1\" WHERE \"written_by\"='Alex Taub';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"march\" real,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text,\n \"points\" real,\n \"decision\" text\n);\n\nQuestion: How many games were numbered 69?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"opponent\") FROM \"regular_season\" WHERE \"game\"=69;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"march\" real,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text,\n \"points\" real,\n \"decision\" text\n);\n\nQuestion: How many times did they play the pittsburgh penguins?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"march\") FROM \"regular_season\" WHERE \"opponent\"='Pittsburgh Penguins';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_chart\" (\n \"name_name_of_act\" text,\n \"age_s\" text,\n \"genre\" text,\n \"act\" text,\n \"hometown\" text,\n \"qtr_final_week\" real,\n \"semi_final_week\" text,\n \"position_reached\" text\n);\n\nQuestion: What is the earliest quarterfinal week when the genre is dancing and the act is 32?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"qtr_final_week\") FROM \"round_chart\" WHERE \"genre\"='Dancing' AND \"age_s\"='32';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_chart\" (\n \"name_name_of_act\" text,\n \"age_s\" text,\n \"genre\" text,\n \"act\" text,\n \"hometown\" text,\n \"qtr_final_week\" real,\n \"semi_final_week\" text,\n \"position_reached\" text\n);\n\nQuestion: What is the quarterfinal week for Austin Anderson?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"qtr_final_week\") FROM \"round_chart\" WHERE \"name_name_of_act\"='Austin Anderson';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_chart\" (\n \"name_name_of_act\" text,\n \"age_s\" text,\n \"genre\" text,\n \"act\" text,\n \"hometown\" text,\n \"qtr_final_week\" real,\n \"semi_final_week\" text,\n \"position_reached\" text\n);\n\nQuestion: What is the genre for the group with ages 29-30?"
},
{
"role": "assistant",
"content": "SELECT \"genre\" FROM \"round_chart\" WHERE \"age_s\"='29-30';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_chart\" (\n \"name_name_of_act\" text,\n \"age_s\" text,\n \"genre\" text,\n \"act\" text,\n \"hometown\" text,\n \"qtr_final_week\" real,\n \"semi_final_week\" text,\n \"position_reached\" text\n);\n\nQuestion: What is the age of the act who is a rapper?"
},
{
"role": "assistant",
"content": "SELECT \"age_s\" FROM \"round_chart\" WHERE \"act\"='Rapper';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_chart\" (\n \"name_name_of_act\" text,\n \"age_s\" text,\n \"genre\" text,\n \"act\" text,\n \"hometown\" text,\n \"qtr_final_week\" real,\n \"semi_final_week\" text,\n \"position_reached\" text\n);\n\nQuestion: What is the hometown of Plutonic?"
},
{
"role": "assistant",
"content": "SELECT \"hometown\" FROM \"round_chart\" WHERE \"name_name_of_act\"='PLUtonic';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_chart\" (\n \"name_name_of_act\" text,\n \"age_s\" text,\n \"genre\" text,\n \"act\" text,\n \"hometown\" text,\n \"qtr_final_week\" real,\n \"semi_final_week\" text,\n \"position_reached\" text\n);\n\nQuestion: How many semi-final weeks are there for acts from Pittsburgh, Pennsylvania?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"semi_final_week\") FROM \"round_chart\" WHERE \"hometown\"='Pittsburgh, Pennsylvania';"
}
]
|
[
{
"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 \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"margin_of_victory\" text,\n \"course\" text,\n \"location\" text,\n \"purse\" real,\n \"winners_share\" real\n);\n\nQuestion: What was the margin of victory for the event in lake forest, illinois?"
},
{
"role": "assistant",
"content": "SELECT \"margin_of_victory\" FROM \"winners\" WHERE \"location\"='Lake Forest, Illinois';"
}
]
|
[
{
"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 \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"margin_of_victory\" text,\n \"course\" text,\n \"location\" text,\n \"purse\" real,\n \"winners_share\" real\n);\n\nQuestion: What was zach johnson's score to par?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"winners\" WHERE \"player\"='Zach Johnson';"
}
]
|
[
{
"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 \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"margin_of_victory\" text,\n \"course\" text,\n \"location\" text,\n \"purse\" real,\n \"winners_share\" real\n);\n\nQuestion: What was the winning score at bellerive country club?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"winners\" WHERE \"course\"='Bellerive Country Club';"
}
]
|
[
{
"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 \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"margin_of_victory\" text,\n \"course\" text,\n \"location\" text,\n \"purse\" real,\n \"winners_share\" real\n);\n\nQuestion: How many courses are located in carmel, indiana?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"course\") FROM \"winners\" WHERE \"location\"='Carmel, Indiana';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_results\" (\n \"pos\" real,\n \"sp\" real,\n \"no\" real,\n \"driver\" text,\n \"car_name\" text,\n \"car_make\" text,\n \"entrant\" text,\n \"laps\" real,\n \"status\" text\n);\n\nQuestion: How many status figures does James Finch have?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"status\") FROM \"race_results\" WHERE \"entrant\"='James Finch';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_results\" (\n \"pos\" real,\n \"sp\" real,\n \"no\" real,\n \"driver\" text,\n \"car_name\" text,\n \"car_make\" text,\n \"entrant\" text,\n \"laps\" real,\n \"status\" text\n);\n\nQuestion: What is the car make for Sterling Marlin?"
},
{
"role": "assistant",
"content": "SELECT \"car_make\" FROM \"race_results\" WHERE \"driver\"='Sterling Marlin';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_results\" (\n \"pos\" real,\n \"sp\" real,\n \"no\" real,\n \"driver\" text,\n \"car_name\" text,\n \"car_make\" text,\n \"entrant\" text,\n \"laps\" real,\n \"status\" text\n);\n\nQuestion: What is the finish position for cars by Pontiac driven by Bobby Hamilton?"
},
{
"role": "assistant",
"content": "SELECT \"pos\" FROM \"race_results\" WHERE \"car_make\"='Pontiac' AND \"driver\"='Bobby Hamilton';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"contestants\" (\n \"represent\" real,\n \"contestant\" text,\n \"age\" real,\n \"sizes\" text,\n \"height\" text,\n \"hometown\" text,\n \"agency\" text\n);\n\nQuestion: who are the participants that wear clothing in 33-23-36"
},
{
"role": "assistant",
"content": "SELECT \"contestant\" FROM \"contestants\" WHERE \"sizes\"='33-23-36';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"contestants\" (\n \"represent\" real,\n \"contestant\" text,\n \"age\" real,\n \"sizes\" text,\n \"height\" text,\n \"hometown\" text,\n \"agency\" text\n);\n\nQuestion: what is the oldest and lives in veraguas"
},
{
"role": "assistant",
"content": "SELECT MAX(\"age\") FROM \"contestants\" WHERE \"hometown\"='Veraguas';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"contestants\" (\n \"represent\" real,\n \"contestant\" text,\n \"age\" real,\n \"sizes\" text,\n \"height\" text,\n \"hometown\" text,\n \"agency\" text\n);\n\nQuestion: where is the participant marelissa him from"
},
{
"role": "assistant",
"content": "SELECT \"hometown\" FROM \"contestants\" WHERE \"contestant\"='Marelissa Him';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"contestants\" (\n \"represent\" real,\n \"contestant\" text,\n \"age\" real,\n \"sizes\" text,\n \"height\" text,\n \"hometown\" text,\n \"agency\" text\n);\n\nQuestion: which company has a person that can wear clothing in 33-23-36"
},
{
"role": "assistant",
"content": "SELECT \"agency\" FROM \"contestants\" WHERE \"sizes\"='33-23-36';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"contestants\" (\n \"represent\" real,\n \"contestant\" text,\n \"age\" real,\n \"sizes\" text,\n \"height\" text,\n \"hometown\" text,\n \"agency\" text\n);\n\nQuestion: how tall is someone who is able to wear 33-24-35"
},
{
"role": "assistant",
"content": "SELECT \"height\" FROM \"contestants\" WHERE \"sizes\"='33-24-35';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tournament_for_the_championship_of_canad\" (\n \"players\" text,\n \"games_won\" real,\n \"games_lost\" real,\n \"total_points\" real,\n \"grand_average\" text,\n \"best_winning_average\" text,\n \"best_run\" real\n);\n\nQuestion: If the best winning average is 7.3-71, what are the total points?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"total_points\") FROM \"tournament_for_the_championship_of_canad\" WHERE \"best_winning_average\"='7.3-71';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tournament_for_the_championship_of_canad\" (\n \"players\" text,\n \"games_won\" real,\n \"games_lost\" real,\n \"total_points\" real,\n \"grand_average\" text,\n \"best_winning_average\" text,\n \"best_run\" real\n);\n\nQuestion: if the best run was 138, what is the amount of games lost?"
},
{
"role": "assistant",
"content": "SELECT \"games_lost\" FROM \"tournament_for_the_championship_of_canad\" WHERE \"best_run\"=138;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tournament_for_the_championship_of_canad\" (\n \"players\" text,\n \"games_won\" real,\n \"games_lost\" real,\n \"total_points\" real,\n \"grand_average\" text,\n \"best_winning_average\" text,\n \"best_run\" real\n);\n\nQuestion: If the games won are 5, what is the best winning average?"
},
{
"role": "assistant",
"content": "SELECT \"best_winning_average\" FROM \"tournament_for_the_championship_of_canad\" WHERE \"games_won\"=5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tournament_for_the_championship_of_canad\" (\n \"players\" text,\n \"games_won\" real,\n \"games_lost\" real,\n \"total_points\" real,\n \"grand_average\" text,\n \"best_winning_average\" text,\n \"best_run\" real\n);\n\nQuestion: If the player is William Jakes, what are the total points?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"total_points\") FROM \"tournament_for_the_championship_of_canad\" WHERE \"players\"='William Jakes';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tournament_for_the_championship_of_canad\" (\n \"players\" text,\n \"games_won\" real,\n \"games_lost\" real,\n \"total_points\" real,\n \"grand_average\" text,\n \"best_winning_average\" text,\n \"best_run\" real\n);\n\nQuestion: If the grand average is 12.76-202, who is the player?"
},
{
"role": "assistant",
"content": "SELECT \"players\" FROM \"tournament_for_the_championship_of_canad\" WHERE \"grand_average\"='12.76-202';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tournament_for_the_championship_of_canad\" (\n \"players\" text,\n \"games_won\" real,\n \"games_lost\" real,\n \"total_points\" real,\n \"grand_average\" text,\n \"best_winning_average\" text,\n \"best_run\" real\n);\n\nQuestion: How many players had a best winning average of 20?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"games_won\") FROM \"tournament_for_the_championship_of_canad\" WHERE \"best_winning_average\"='20';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"first_star\" text,\n \"decision\" text,\n \"location\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What was the October 22 record?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"regular_season\" WHERE \"date\"='October 22';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"first_star\" text,\n \"decision\" text,\n \"location\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What was the 6-4 score's maximum attendance?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"attendance\") FROM \"regular_season\" WHERE \"score\"='6-4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"first_star\" text,\n \"decision\" text,\n \"location\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What was the score for game #1?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"regular_season\" WHERE \"game\"=1;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"first_star\" text,\n \"decision\" text,\n \"location\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What was the record for the October 16 game?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"regular_season\" WHERE \"date\"='October 16';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"first_star\" text,\n \"decision\" text,\n \"location\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What was the record in the game whose first star was J. Oduya?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"regular_season\" WHERE \"first_star\"='J. Oduya';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"first_star\" text,\n \"decision\" text,\n \"location\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What was the score of the game whose first star was O. Pavelec?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"regular_season\" WHERE \"first_star\"='O. Pavelec';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"first_star\" text,\n \"decision\" text,\n \"location\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Who made the decision in the game played on December 26?"
},
{
"role": "assistant",
"content": "SELECT \"decision\" FROM \"regular_season\" WHERE \"date\"='December 26';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"first_star\" text,\n \"decision\" text,\n \"location\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Where was the game seen by 10056 people played?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"regular_season\" WHERE \"attendance\"=10056;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"first_star\" text,\n \"decision\" text,\n \"location\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Who was the first star of the game with record of 17-11-5?"
},
{
"role": "assistant",
"content": "SELECT \"first_star\" FROM \"regular_season\" WHERE \"record\"='17-11-5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"first_star\" text,\n \"decision\" text,\n \"location\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Who made the decisions in the game whose first star was V. Lecavalier?"
},
{
"role": "assistant",
"content": "SELECT \"decision\" FROM \"regular_season\" WHERE \"first_star\"='V. Lecavalier';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"first_star\" text,\n \"decision\" text,\n \"location\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What was the final score the game where the Thrashers over-all record went to 22-16-6?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"regular_season\" WHERE \"record\"='22-16-6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"first_star\" text,\n \"decision\" text,\n \"location\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Who got the decision in the game, when the final score was 1-7?"
},
{
"role": "assistant",
"content": "SELECT \"decision\" FROM \"regular_season\" WHERE \"score\"='1-7';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"first_star\" text,\n \"decision\" text,\n \"location\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What date was M. Grabovski the first start of the game?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"regular_season\" WHERE \"first_star\"='M. Grabovski';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"first_star\" text,\n \"decision\" text,\n \"location\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What was the record for the game where the opponent was the Carolina Hurricanes?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"regular_season\" WHERE \"opponent\"='Carolina Hurricanes';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"first_star\" text,\n \"decision\" text,\n \"location\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: On which date was the record of 27-28-11 set?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"regular_season\" WHERE \"record\"='27-28-11';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"first_star\" text,\n \"decision\" text,\n \"location\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Who made the decision on the game where the record was 29-28-12?"
},
{
"role": "assistant",
"content": "SELECT \"decision\" FROM \"regular_season\" WHERE \"record\"='29-28-12';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"first_star\" text,\n \"decision\" text,\n \"location\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Who made the decision on the game where the record was 27-28-11?"
},
{
"role": "assistant",
"content": "SELECT \"decision\" FROM \"regular_season\" WHERE \"record\"='27-28-11';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"october\" real,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Name the score for game 5"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"regular_season\" WHERE \"game\"=5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"october\" real,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Name the most points for 1-3-1 record"
},
{
"role": "assistant",
"content": "SELECT MAX(\"points\") FROM \"regular_season\" WHERE \"record\"='1-3-1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"october\" real,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Name the record for prudential center - 12,880"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"regular_season\" WHERE \"location_attendance\"='Prudential Center - 12,880';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"october\" real,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Name the number of record for hp pavilion - 17,562"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"record\") FROM \"regular_season\" WHERE \"location_attendance\"='HP Pavilion - 17,562';"
}
]
|
[
{
"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 \"october\" real,\n \"opponent\" text,\n \"score\" text,\n \"decision\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: On how many days in October was the score 6-1?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"october\") FROM \"game_log\" WHERE \"score\"='6-1';"
}
]
|
[
{
"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 \"october\" 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 what was the attendance on those days when the score was 3-5-1?"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"record\"='3-5-1';"
}
]
|
[
{
"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 \"october\" real,\n \"opponent\" text,\n \"score\" text,\n \"decision\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many times was the sabres record 2-5-1?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"location_attendance\") FROM \"game_log\" WHERE \"record\"='2-5-1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"january\" real,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What was the location and attendance for game 41?"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"regular_season\" WHERE \"game\"=41;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"january\" real,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: On what day of January was the record 10-29-2?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"january\") FROM \"regular_season\" WHERE \"record\"='10-29-2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"january\" real,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What are the most points scored in a game where the score was 1-2?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"points\") FROM \"regular_season\" WHERE \"score\"='1-2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"january\" real,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: On what day in January was the record 15-29-3?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"january\") FROM \"regular_season\" WHERE \"record\"='15-29-3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Against what team did the Islanders have a 5-18-5 record?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"regular_season\" WHERE \"record\"='5-18-5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Against what opponent did the game end 5-4?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"regular_season\" WHERE \"score\"='5-4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: How many games were played against a team with a 9-19-6 record against the Islanders?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"december\") FROM \"regular_season\" WHERE \"record\"='9-19-6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"october\" real,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: How many games did they play on october 9?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"opponent\") FROM \"regular_season\" WHERE \"october\"=9;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What is the lowest number of points for game 32?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"points\") FROM \"regular_season\" WHERE \"game\"=32;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What is the location and attendance total from the game on December 1?"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"regular_season\" WHERE \"december\"=1;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27547668_3\" (\n \"num\" real,\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"viewers\" real,\n \"original_airdate\" text,\n \"prod_code\" real\n);\n\nQuestion: Who directed the episode with 899000 viewers?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_27547668_3\" WHERE \"viewers\"=899000;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27547668_3\" (\n \"num\" real,\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"viewers\" real,\n \"original_airdate\" text,\n \"prod_code\" real\n);\n\nQuestion: What is the smallest numbered episode in the series listed?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"num\") FROM \"table1_27547668_3\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27547668_3\" (\n \"num\" real,\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"viewers\" real,\n \"original_airdate\" text,\n \"prod_code\" real\n);\n\nQuestion: How many people watched episode number 13?"
},
{
"role": "assistant",
"content": "SELECT \"viewers\" FROM \"table1_27547668_3\" WHERE \"num\"=13;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27547668_3\" (\n \"num\" real,\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"viewers\" real,\n \"original_airdate\" text,\n \"prod_code\" real\n);\n\nQuestion: What episode number in the season was written by Greg nelson and directed by Keith samples?"
},
{
"role": "assistant",
"content": "SELECT \"no\" FROM \"table1_27547668_3\" WHERE \"written_by\"='Greg Nelson' AND \"directed_by\"='Keith Samples';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.