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 \"24_hours_of_le_mans_results\" (\n \"year\" real,\n \"team\" text,\n \"co_drivers\" text,\n \"class\" text,\n \"laps\" real,\n \"pos\" text,\n \"class_pos\" text\n);\n\nQuestion: Name the team for co-drivers of david brabham mario andretti" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"24_hours_of_le_mans_results\" WHERE \"co_drivers\"='david brabham mario andretti';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_formula_one_world_championship_\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: Name the highest year with points more than 0" }, { "role": "assistant", "content": "SELECT MAX(\"year\") FROM \"complete_formula_one_world_championship_\" WHERE \"points\">0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_formula_one_world_championship_\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: Name the highest points when year is more than 1953" }, { "role": "assistant", "content": "SELECT MAX(\"points\") FROM \"complete_formula_one_world_championship_\" WHERE \"year\">1953;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_formula_one_world_championship_\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: Name the engine when points are 0 and chassis is kuzma indy roadster for 1954" }, { "role": "assistant", "content": "SELECT \"engine\" FROM \"complete_formula_one_world_championship_\" WHERE \"points\"=0 AND \"chassis\"='kuzma indy roadster' AND \"year\"=1954;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_formula_one_world_championship_\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: Name the least points with chassis of kurtis kraft 3000 and year before 1951" }, { "role": "assistant", "content": "SELECT MIN(\"points\") FROM \"complete_formula_one_world_championship_\" WHERE \"chassis\"='kurtis kraft 3000' AND \"year\"<1951;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"population\" (\n \"year\" real,\n \"total_region\" real,\n \"mackay\" real,\n \"pioneer\" real,\n \"mirani\" real,\n \"sarina\" real\n);\n\nQuestion: What is the total region population with a Mirani population of 5,220 and a Mackay population less than 75,020?" }, { "role": "assistant", "content": "SELECT COUNT(\"total_region\") FROM \"population\" WHERE \"mirani\"='5,220' AND \"mackay\"<'75,020';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"population\" (\n \"year\" real,\n \"total_region\" real,\n \"mackay\" real,\n \"pioneer\" real,\n \"mirani\" real,\n \"sarina\" real\n);\n\nQuestion: What is the Pioneer population with a Sarina population less than 3,268 and a Mirani population less than 4,412?" }, { "role": "assistant", "content": "SELECT SUM(\"pioneer\") FROM \"population\" WHERE \"sarina\"<'3,268' AND \"mirani\"<'4,412';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"population\" (\n \"year\" real,\n \"total_region\" real,\n \"mackay\" real,\n \"pioneer\" real,\n \"mirani\" real,\n \"sarina\" real\n);\n\nQuestion: What is the Mirani population with a total region population less than 48,530, a Mackay population less than 13,486, and a Pioneer population larger than 9,926?" }, { "role": "assistant", "content": "SELECT SUM(\"mirani\") FROM \"population\" WHERE \"total_region\"<'48,530' AND \"mackay\"<'13,486' AND \"pioneer\">'9,926';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"population\" (\n \"year\" real,\n \"total_region\" real,\n \"mackay\" real,\n \"pioneer\" real,\n \"mirani\" real,\n \"sarina\" real\n);\n\nQuestion: What is the lowest Pioneer population in 1966 with a Sarina population greater than 4,611?" }, { "role": "assistant", "content": "SELECT MIN(\"pioneer\") FROM \"population\" WHERE \"year\"=1966 AND \"sarina\">'4,611';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"population\" (\n \"year\" real,\n \"total_region\" real,\n \"mackay\" real,\n \"pioneer\" real,\n \"mirani\" real,\n \"sarina\" real\n);\n\nQuestion: What is the lowest Pioneer population with a Sarina population less than 7,537 and a Mirani population less than 5,379 in 1966?" }, { "role": "assistant", "content": "SELECT MIN(\"pioneer\") FROM \"population\" WHERE \"sarina\"<'7,537' AND \"year\"=1966 AND \"mirani\"<'5,379';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tv_series\" (\n \"year\" text,\n \"title\" text,\n \"title_in_english\" text,\n \"director\" text,\n \"character\" text\n);\n\nQuestion: What is the year of the TV series directed by Soroush Sehat?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"tv_series\" WHERE \"director\"='soroush sehat';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tv_series\" (\n \"year\" text,\n \"title\" text,\n \"title_in_english\" text,\n \"director\" text,\n \"character\" text\n);\n\nQuestion: What is the title of the TV series with a character of Sheyda/Ashraf?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"tv_series\" WHERE \"character\"='sheyda/ashraf';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tv_series\" (\n \"year\" text,\n \"title\" text,\n \"title_in_english\" text,\n \"director\" text,\n \"character\" text\n);\n\nQuestion: What is the year of the TV series that has a character of Leiloon Bala Barareh?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"tv_series\" WHERE \"character\"='leiloon bala barareh';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tv_series\" (\n \"year\" text,\n \"title\" text,\n \"title_in_english\" text,\n \"director\" text,\n \"character\" text\n);\n\nQuestion: What is the title of the TV series in 2012?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"tv_series\" WHERE \"year\"='2012';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cry_engine\" (\n \"title\" text,\n \"year\" text,\n \"developer\" text,\n \"publisher\" text,\n \"platform\" text\n);\n\nQuestion: Who published Star Citizen in 2014?" }, { "role": "assistant", "content": "SELECT \"publisher\" FROM \"cry_engine\" WHERE \"year\"='2014' AND \"title\"='star citizen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cry_engine\" (\n \"title\" text,\n \"year\" text,\n \"developer\" text,\n \"publisher\" text,\n \"platform\" text\n);\n\nQuestion: Which title was developed by Battlecry Studios?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"cry_engine\" WHERE \"developer\"='battlecry studios';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: How many people were at the match on July 13/" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"game_log\" WHERE \"date\"='july 13';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Who was the opponent on July 27?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"date\"='july 27';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009_2010_table\" (\n \"club\" text,\n \"played\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: For Ynysybwl RFC, what was the losing bonus for 416 points?" }, { "role": "assistant", "content": "SELECT \"losing_bonus\" FROM \"2009_2010_table\" WHERE \"points_for\"='416' AND \"club\"='ynysybwl rfc';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009_2010_table\" (\n \"club\" text,\n \"played\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: For the club that had 453 points against, losing bonus of 5 and played of 22, what is the drawn?" }, { "role": "assistant", "content": "SELECT \"drawn\" FROM \"2009_2010_table\" WHERE \"played\"='22' AND \"points_against\"='453' AND \"losing_bonus\"='5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009_2010_table\" (\n \"club\" text,\n \"played\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: For the club that had tries of 50 and drawn of 0, what were the points?" }, { "role": "assistant", "content": "SELECT \"points_against\" FROM \"2009_2010_table\" WHERE \"drawn\"='0' AND \"tries_for\"='50';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009_2010_table\" (\n \"club\" text,\n \"played\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: The club that had 546 points against, what was the losing bonus?" }, { "role": "assistant", "content": "SELECT \"losing_bonus\" FROM \"2009_2010_table\" WHERE \"points_against\"='546';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009_2010_table\" (\n \"club\" text,\n \"played\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: What is the lost of Ynysybwl RFC?" }, { "role": "assistant", "content": "SELECT \"lost\" FROM \"2009_2010_table\" WHERE \"club\"='ynysybwl rfc';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009_2010_table\" (\n \"club\" text,\n \"played\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: How many points does Club have?" }, { "role": "assistant", "content": "SELECT \"points\" FROM \"2009_2010_table\" WHERE \"club\"='club';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"online_episodes\" (\n \"episode_num\" real,\n \"title\" text,\n \"part_1\" text,\n \"part_2\" text,\n \"part_3\" text,\n \"part_4\" text,\n \"part_5\" text,\n \"part_6\" text\n);\n\nQuestion: When is Part 6, when Part 4 is on March 2, 2008?" }, { "role": "assistant", "content": "SELECT \"part_6\" FROM \"online_episodes\" WHERE \"part_4\"='march 2, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"online_episodes\" (\n \"episode_num\" real,\n \"title\" text,\n \"part_1\" text,\n \"part_2\" text,\n \"part_3\" text,\n \"part_4\" text,\n \"part_5\" text,\n \"part_6\" text\n);\n\nQuestion: What is the Title, when the Episode # is after 2, and when Part 6 is on January 6, 2008?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"online_episodes\" WHERE \"episode_num\">2 AND \"part_6\"='january 6, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"online_episodes\" (\n \"episode_num\" real,\n \"title\" text,\n \"part_1\" text,\n \"part_2\" text,\n \"part_3\" text,\n \"part_4\" text,\n \"part_5\" text,\n \"part_6\" text\n);\n\nQuestion: When is Part 2, when Part 4 is on December 9, 2007?" }, { "role": "assistant", "content": "SELECT \"part_2\" FROM \"online_episodes\" WHERE \"part_4\"='december 9, 2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"online_episodes\" (\n \"episode_num\" real,\n \"title\" text,\n \"part_1\" text,\n \"part_2\" text,\n \"part_3\" text,\n \"part_4\" text,\n \"part_5\" text,\n \"part_6\" text\n);\n\nQuestion: When is Part 1, when Part 4 is on February 10, 2008?" }, { "role": "assistant", "content": "SELECT \"part_1\" FROM \"online_episodes\" WHERE \"part_4\"='february 10, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"online_episodes\" (\n \"episode_num\" real,\n \"title\" text,\n \"part_1\" text,\n \"part_2\" text,\n \"part_3\" text,\n \"part_4\" text,\n \"part_5\" text,\n \"part_6\" text\n);\n\nQuestion: When is Part 2, when Part 5 is on January 24, 2008?" }, { "role": "assistant", "content": "SELECT \"part_2\" FROM \"online_episodes\" WHERE \"part_5\"='january 24, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_5\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: Who was the finals opponent on the hard surface tournament?" }, { "role": "assistant", "content": "SELECT \"opponent_in_the_final\" FROM \"singles_5\" WHERE \"surface\"='hard';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_5\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: Which surface was played during Curitiba tournament?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"singles_5\" WHERE \"tournament\"='curitiba';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"location\" text\n);\n\nQuestion: What is the highest round for UFC 109?" }, { "role": "assistant", "content": "SELECT MAX(\"round\") FROM \"mixed_martial_arts_record\" WHERE \"event\"='ufc 109';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"location\" text\n);\n\nQuestion: What round was the opponent Manny Gamburyan?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"mixed_martial_arts_record\" WHERE \"opponent\"='manny gamburyan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What was the earliest week that had an attendance of less than 16,375, for a game played on November 22, 1964?" }, { "role": "assistant", "content": "SELECT MIN(\"week\") FROM \"season_schedule\" WHERE \"attendance\"<'16,375' AND \"date\"='november 22, 1964';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What was the week of the game played December 6, 1964?" }, { "role": "assistant", "content": "SELECT SUM(\"week\") FROM \"season_schedule\" WHERE \"date\"='december 6, 1964';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_ladder\" (\n \"bellarine_fl\" text,\n \"wins\" real,\n \"byes\" real,\n \"losses\" real,\n \"draws\" real,\n \"against\" real\n);\n\nQuestion: What is the fewest losses that had an against score of 2190 and more than 0 draws?" }, { "role": "assistant", "content": "SELECT MIN(\"losses\") FROM \"2010_ladder\" WHERE \"against\"=2190 AND \"draws\">0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_ladder\" (\n \"bellarine_fl\" text,\n \"wins\" real,\n \"byes\" real,\n \"losses\" real,\n \"draws\" real,\n \"against\" real\n);\n\nQuestion: What is the fewest number of draws for teams with more than 0 byes?" }, { "role": "assistant", "content": "SELECT MIN(\"draws\") FROM \"2010_ladder\" WHERE \"byes\">0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_ladder\" (\n \"bellarine_fl\" text,\n \"wins\" real,\n \"byes\" real,\n \"losses\" real,\n \"draws\" real,\n \"against\" real\n);\n\nQuestion: What is the sum of losses for Geelong Amateur, with 0 byes?" }, { "role": "assistant", "content": "SELECT SUM(\"losses\") FROM \"2010_ladder\" WHERE \"bellarine_fl\"='geelong amateur' AND \"byes\"<0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_ladder\" (\n \"bellarine_fl\" text,\n \"wins\" real,\n \"byes\" real,\n \"losses\" real,\n \"draws\" real,\n \"against\" real\n);\n\nQuestion: What is the sum of the number of wins for teams with more than 0 draws?" }, { "role": "assistant", "content": "SELECT SUM(\"wins\") FROM \"2010_ladder\" WHERE \"draws\">0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_season\" (\n \"date\" text,\n \"visiting_team\" text,\n \"final_score\" text,\n \"host_team\" text,\n \"stadium\" text\n);\n\nQuestion: What is the Stadium that hosts the team Jacksonville Jaguars?" }, { "role": "assistant", "content": "SELECT \"stadium\" FROM \"2008_season\" WHERE \"host_team\"='jacksonville jaguars';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_season\" (\n \"date\" text,\n \"visiting_team\" text,\n \"final_score\" text,\n \"host_team\" text,\n \"stadium\" text\n);\n\nQuestion: What stadium was used on November 13?" }, { "role": "assistant", "content": "SELECT \"stadium\" FROM \"2008_season\" WHERE \"date\"='november 13';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_season\" (\n \"date\" text,\n \"visiting_team\" text,\n \"final_score\" text,\n \"host_team\" text,\n \"stadium\" text\n);\n\nQuestion: What is the host team with the stadium Lincoln Financial Field?" }, { "role": "assistant", "content": "SELECT \"host_team\" FROM \"2008_season\" WHERE \"stadium\"='lincoln financial field';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_season\" (\n \"date\" text,\n \"visiting_team\" text,\n \"final_score\" text,\n \"host_team\" text,\n \"stadium\" text\n);\n\nQuestion: What team visited the Cleveland Browns Stadium?" }, { "role": "assistant", "content": "SELECT \"visiting_team\" FROM \"2008_season\" WHERE \"stadium\"='cleveland browns stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_season\" (\n \"date\" text,\n \"visiting_team\" text,\n \"final_score\" text,\n \"host_team\" text,\n \"stadium\" text\n);\n\nQuestion: What stadium did the Denver Broncos visit?" }, { "role": "assistant", "content": "SELECT \"stadium\" FROM \"2008_season\" WHERE \"visiting_team\"='denver broncos';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_season\" (\n \"date\" text,\n \"visiting_team\" text,\n \"final_score\" text,\n \"host_team\" text,\n \"stadium\" text\n);\n\nQuestion: What team visited the Jacksonville Municipal Stadium?" }, { "role": "assistant", "content": "SELECT \"visiting_team\" FROM \"2008_season\" WHERE \"stadium\"='jacksonville municipal stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"rank\" real,\n \"station\" text,\n \"city\" text,\n \"state\" text,\n \"boardings_and_deboardings\" real\n);\n\nQuestion: How many people boarded and de-boarded the Amtrak in Linthicum?" }, { "role": "assistant", "content": "SELECT COUNT(\"boardings_and_deboardings\") FROM \"list\" WHERE \"city\"='linthicum';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"rank\" real,\n \"station\" text,\n \"city\" text,\n \"state\" text,\n \"boardings_and_deboardings\" real\n);\n\nQuestion: In California what was the total rank at Irvine station when the number of boarding and deboardings was less than 683,626?" }, { "role": "assistant", "content": "SELECT SUM(\"rank\") FROM \"list\" WHERE \"boardings_and_deboardings\"<'683,626' AND \"state\"='california' AND \"station\"='irvine station';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"rank\" real,\n \"station\" text,\n \"city\" text,\n \"state\" text,\n \"boardings_and_deboardings\" real\n);\n\nQuestion: At south station what was the total rank when boarding and deboardings were smaller than 1,360,162?" }, { "role": "assistant", "content": "SELECT SUM(\"rank\") FROM \"list\" WHERE \"station\"='south station' AND \"boardings_and_deboardings\"<'1,360,162';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"rank\" real,\n \"station\" text,\n \"city\" text,\n \"state\" text,\n \"boardings_and_deboardings\" real\n);\n\nQuestion: Which is the highest rank that has 8,995,551 boardings and deboardings?" }, { "role": "assistant", "content": "SELECT MAX(\"rank\") FROM \"list\" WHERE \"boardings_and_deboardings\"='8,995,551';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"most_appearances\" (\n \"name\" text,\n \"years\" text,\n \"league\" text,\n \"fa_cup\" text,\n \"league_cup\" text,\n \"europe\" text,\n \"other_c\" text,\n \"total\" text\n);\n\nQuestion: The Europe listing of 00 0 0 (0) also has what listed as the total?" }, { "role": "assistant", "content": "SELECT \"total\" FROM \"most_appearances\" WHERE \"europe\"='00 0 0 (0)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"most_appearances\" (\n \"name\" text,\n \"years\" text,\n \"league\" text,\n \"fa_cup\" text,\n \"league_cup\" text,\n \"europe\" text,\n \"other_c\" text,\n \"total\" text\n);\n\nQuestion: The league of 400 (21) has what years listed?" }, { "role": "assistant", "content": "SELECT \"years\" FROM \"most_appearances\" WHERE \"league\"='400 (21)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"most_appearances\" (\n \"name\" text,\n \"years\" text,\n \"league\" text,\n \"fa_cup\" text,\n \"league_cup\" text,\n \"europe\" text,\n \"other_c\" text,\n \"total\" text\n);\n\nQuestion: With a FA Cup of 0 44 0 (0), the other [C] is listed as what?" }, { "role": "assistant", "content": "SELECT \"other_c\" FROM \"most_appearances\" WHERE \"fa_cup\"='0 44 0 (0)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"most_appearances\" (\n \"name\" text,\n \"years\" text,\n \"league\" text,\n \"fa_cup\" text,\n \"league_cup\" text,\n \"europe\" text,\n \"other_c\" text,\n \"total\" text\n);\n\nQuestion: The Europe listing of 117 0 (8) belongs to what league?" }, { "role": "assistant", "content": "SELECT \"league\" FROM \"most_appearances\" WHERE \"europe\"='117 0 (8)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"most_appearances\" (\n \"name\" text,\n \"years\" text,\n \"league\" text,\n \"fa_cup\" text,\n \"league_cup\" text,\n \"europe\" text,\n \"other_c\" text,\n \"total\" text\n);\n\nQuestion: The League Cup of 0 40 0 (6) also has what listed in the Europe column?" }, { "role": "assistant", "content": "SELECT \"europe\" FROM \"most_appearances\" WHERE \"league_cup\"='0 40 0 (6)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"most_appearances\" (\n \"name\" text,\n \"years\" text,\n \"league\" text,\n \"fa_cup\" text,\n \"league_cup\" text,\n \"europe\" text,\n \"other_c\" text,\n \"total\" text\n);\n\nQuestion: The other [C] of 0 12 0 (0) belongs to what FA Cup?" }, { "role": "assistant", "content": "SELECT \"fa_cup\" FROM \"most_appearances\" WHERE \"other_c\"='0 12 0 (0)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"summer\" (\n \"year\" text,\n \"edition\" text,\n \"host_city\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the lowest VIII Edition Gold with a Silver of 4?" }, { "role": "assistant", "content": "SELECT MIN(\"gold\") FROM \"summer\" WHERE \"silver\"=4 AND \"edition\"='viii';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"summer\" (\n \"year\" text,\n \"edition\" text,\n \"host_city\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the highest Edition I Bronze with a Gold higher than 9 and a Silver higher than 10?" }, { "role": "assistant", "content": "SELECT MAX(\"bronze\") FROM \"summer\" WHERE \"silver\">10 AND \"edition\"='i' AND \"gold\">9;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"summer\" (\n \"year\" text,\n \"edition\" text,\n \"host_city\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What's the Total for a Mexico City game with a Gold of less than 4 and a Bronze of less than 2?" }, { "role": "assistant", "content": "SELECT COUNT(\"total\") FROM \"summer\" WHERE \"host_city\"='mexico city' AND \"gold\"<4 AND \"bronze\"<2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"summer\" (\n \"year\" text,\n \"edition\" text,\n \"host_city\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: Which Host City has more than 6 Silver and a Total of 22?" }, { "role": "assistant", "content": "SELECT \"host_city\" FROM \"summer\" WHERE \"silver\">6 AND \"total\"=22;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"disc_four\" (\n \"track\" real,\n \"recorded\" text,\n \"catalogue\" text,\n \"release_date\" text,\n \"song_title\" text,\n \"writer_s\" text,\n \"time\" text\n);\n\nQuestion: What was the time for tracks before 19 on 8/26/69?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"disc_four\" WHERE \"release_date\"='8/26/69' AND \"track\"<19;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"long_course_50_meter_pool\" (\n \"event\" text,\n \"time\" text,\n \"venue\" text,\n \"date\" text,\n \"notes\" text\n);\n\nQuestion: Which venue has a note of AM?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"long_course_50_meter_pool\" WHERE \"notes\"='am';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"long_course_50_meter_pool\" (\n \"event\" text,\n \"time\" text,\n \"venue\" text,\n \"date\" text,\n \"notes\" text\n);\n\nQuestion: What is the time associated with August 16, 2008?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"long_course_50_meter_pool\" WHERE \"date\"='august 16, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"long_course_50_meter_pool\" (\n \"event\" text,\n \"time\" text,\n \"venue\" text,\n \"date\" text,\n \"notes\" text\n);\n\nQuestion: Which event was held in Beijing?" }, { "role": "assistant", "content": "SELECT \"event\" FROM \"long_course_50_meter_pool\" WHERE \"venue\"='beijing';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"long_course_50_meter_pool\" (\n \"event\" text,\n \"time\" text,\n \"venue\" text,\n \"date\" text,\n \"notes\" text\n);\n\nQuestion: For a venue of Rome on July 30, 2009, what are the notes?" }, { "role": "assistant", "content": "SELECT \"notes\" FROM \"long_course_50_meter_pool\" WHERE \"venue\"='rome' AND \"date\"='july 30, 2009';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"series\" text\n);\n\nQuestion: Name the score for october 9" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"date\"='october 9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"series\" text\n);\n\nQuestion: Name the loss for series 2-2" }, { "role": "assistant", "content": "SELECT \"loss\" FROM \"game_log\" WHERE \"series\"='2-2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"series\" text\n);\n\nQuestion: Name the total number of attendance for october 8" }, { "role": "assistant", "content": "SELECT COUNT(\"attendance\") FROM \"game_log\" WHERE \"date\"='october 8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_formula_one_results\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: Which engine did \u00c9lie Bayol use when they earned 0 points?" }, { "role": "assistant", "content": "SELECT \"engine\" FROM \"complete_formula_one_results\" WHERE \"points\"=0 AND \"entrant\"='\u00e9lie bayol';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"record_as_j_league_member\" (\n \"season\" real,\n \"div\" text,\n \"tms\" real,\n \"pos\" real,\n \"attendance_g\" real,\n \"j_league_cup\" text,\n \"emperor_s_cup\" text\n);\n\nQuestion: What season had the highest attendance/g than 3,289?" }, { "role": "assistant", "content": "SELECT MAX(\"season\") FROM \"record_as_j_league_member\" WHERE \"attendance_g\"<'3,289';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_formula_one_results\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"pts\" real\n);\n\nQuestion: What year had 13 points?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"complete_formula_one_results\" WHERE \"pts\"=13;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_formula_one_results\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"pts\" real\n);\n\nQuestion: Which chassis has a year later than 1964, a Ford engine, and 13 points?" }, { "role": "assistant", "content": "SELECT \"chassis\" FROM \"complete_formula_one_results\" WHERE \"year\">1964 AND \"engine\"='ford' AND \"pts\"=13;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_formula_one_results\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"pts\" real\n);\n\nQuestion: Which entrant has fewer than 12 points, a Climax engine, and a Lotus 24 chassis?" }, { "role": "assistant", "content": "SELECT \"entrant\" FROM \"complete_formula_one_results\" WHERE \"pts\"<12 AND \"engine\"='climax' AND \"chassis\"='lotus 24';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_formula_one_results\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"pts\" real\n);\n\nQuestion: In 1972, what was the highest number of points with a Ford engine and an entrant of Brooke Bond Oxo Team Surtees?" }, { "role": "assistant", "content": "SELECT MAX(\"pts\") FROM \"complete_formula_one_results\" WHERE \"engine\"='ford' AND \"entrant\"='brooke bond oxo team surtees' AND \"year\"=1972;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_formula_one_results\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"pts\" real\n);\n\nQuestion: What year had a Ford engine and 13 points?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"complete_formula_one_results\" WHERE \"engine\"='ford' AND \"pts\"=13;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"main_transmitters\" (\n \"region_served\" text,\n \"city\" text,\n \"channels_analog_digital\" text,\n \"first_air_date\" text,\n \"erp_analog_digital\" text,\n \"haat_analog_digital_1\" text,\n \"transmitter_location\" text\n);\n\nQuestion: What is the ERP for the Rockhampton region?" }, { "role": "assistant", "content": "SELECT \"erp_analog_digital\" FROM \"main_transmitters\" WHERE \"region_served\"='rockhampton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"main_transmitters\" (\n \"region_served\" text,\n \"city\" text,\n \"channels_analog_digital\" text,\n \"first_air_date\" text,\n \"erp_analog_digital\" text,\n \"haat_analog_digital_1\" text,\n \"transmitter_location\" text\n);\n\nQuestion: What channels first aired on 31 December 1990 in the Southern Downs region?" }, { "role": "assistant", "content": "SELECT \"channels_analog_digital\" FROM \"main_transmitters\" WHERE \"first_air_date\"='31 december 1990' AND \"region_served\"='southern downs';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"main_transmitters\" (\n \"region_served\" text,\n \"city\" text,\n \"channels_analog_digital\" text,\n \"first_air_date\" text,\n \"erp_analog_digital\" text,\n \"haat_analog_digital_1\" text,\n \"transmitter_location\" text\n);\n\nQuestion: What is the transmitter location for city of Maryborough?" }, { "role": "assistant", "content": "SELECT \"transmitter_location\" FROM \"main_transmitters\" WHERE \"city\"='maryborough';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"main_transmitters\" (\n \"region_served\" text,\n \"city\" text,\n \"channels_analog_digital\" text,\n \"first_air_date\" text,\n \"erp_analog_digital\" text,\n \"haat_analog_digital_1\" text,\n \"transmitter_location\" text\n);\n\nQuestion: What is the ERP for the Mount Goonaneman transmitter?" }, { "role": "assistant", "content": "SELECT \"erp_analog_digital\" FROM \"main_transmitters\" WHERE \"transmitter_location\"='mount goonaneman';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"language\" (\n \"language\" text,\n \"number\" text,\n \"percentage_pct\" text,\n \"males\" text,\n \"females\" text\n);\n\nQuestion: Which number has 11 males?" }, { "role": "assistant", "content": "SELECT \"number\" FROM \"language\" WHERE \"males\"='11';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"rank\" real,\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What is the time for a lane less than 6, and a heat less than 4 for Joanne Malar?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"heats\" WHERE \"lane\"<6 AND \"heat\"<4 AND \"name\"='joanne malar';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"rank\" real,\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What is the largest heat with a time of 4:57.90, and a Rank larger than 22?" }, { "role": "assistant", "content": "SELECT MAX(\"heat\") FROM \"heats\" WHERE \"time\"='4:57.90' AND \"rank\">22;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"rank\" real,\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What is the time for Adi Bichman?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"heats\" WHERE \"name\"='adi bichman';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What is the total attendance at games against the New York Mets with a record of 18-18?" }, { "role": "assistant", "content": "SELECT COUNT(\"attendance\") FROM \"game_log\" WHERE \"opponent\"='new york mets' AND \"record\"='18-18';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What is the total attendance at games with a score of 4-2?" }, { "role": "assistant", "content": "SELECT COUNT(\"attendance\") FROM \"game_log\" WHERE \"score\"='4-2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1987\" (\n \"date\" text,\n \"visiting_team\" text,\n \"final_score\" text,\n \"host_team\" text,\n \"stadium\" text\n);\n\nQuestion: On what date did the New York Giants host a game?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"1987\" WHERE \"host_team\"='new york giants';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1987\" (\n \"date\" text,\n \"visiting_team\" text,\n \"final_score\" text,\n \"host_team\" text,\n \"stadium\" text\n);\n\nQuestion: Who was the host team for the game on December 27?" }, { "role": "assistant", "content": "SELECT \"host_team\" FROM \"1987\" WHERE \"date\"='december 27';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1987\" (\n \"date\" text,\n \"visiting_team\" text,\n \"final_score\" text,\n \"host_team\" text,\n \"stadium\" text\n);\n\nQuestion: What was the final score of the game at Texas Stadium?" }, { "role": "assistant", "content": "SELECT \"final_score\" FROM \"1987\" WHERE \"stadium\"='texas stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1987\" (\n \"date\" text,\n \"visiting_team\" text,\n \"final_score\" text,\n \"host_team\" text,\n \"stadium\" text\n);\n\nQuestion: Who was the visiting team who played at the hubert h. humphrey metrodome stadium?" }, { "role": "assistant", "content": "SELECT \"visiting_team\" FROM \"1987\" WHERE \"stadium\"='hubert h. humphrey metrodome';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1987\" (\n \"date\" text,\n \"visiting_team\" text,\n \"final_score\" text,\n \"host_team\" text,\n \"stadium\" text\n);\n\nQuestion: When did the New England Patriots play as the visiting team?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"1987\" WHERE \"visiting_team\"='new england patriots';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1987\" (\n \"date\" text,\n \"visiting_team\" text,\n \"final_score\" text,\n \"host_team\" text,\n \"stadium\" text\n);\n\nQuestion: At which stadium did the Los Angeles Raiders play as the visiting team?" }, { "role": "assistant", "content": "SELECT \"stadium\" FROM \"1987\" WHERE \"visiting_team\"='los angeles raiders';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fiba_euro_basket_2007_squads\" (\n \"player\" text,\n \"height\" real,\n \"position\" text,\n \"year_born\" real,\n \"current_club\" text\n);\n\nQuestion: Who is 1.92 m tall and a current club member of Montepaschi Siena" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"fiba_euro_basket_2007_squads\" WHERE \"height\"=1.92 AND \"current_club\"='montepaschi siena';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_finals_2_titles_4_runner_ups\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Which date has a Tournament of la quinta?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"singles_finals_2_titles_4_runner_ups\" WHERE \"tournament\"='la quinta';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_finals_2_titles_4_runner_ups\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Which date has a Surface of carpet (i)?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"singles_finals_2_titles_4_runner_ups\" WHERE \"surface\"='carpet (i)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_finals_2_titles_4_runner_ups\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Which tournament has a Date of april 20, 1987?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"singles_finals_2_titles_4_runner_ups\" WHERE \"date\"='april 20, 1987';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_finals_2_titles_4_runner_ups\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Which Opponent has a Surface of hardcourt, an Outcome of runner-up, and a Tournament of honolulu?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"singles_finals_2_titles_4_runner_ups\" WHERE \"surface\"='hardcourt' AND \"outcome\"='runner-up' AND \"tournament\"='honolulu';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_finals_2_titles_4_runner_ups\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Which Tournament has a Score of 6\u20134, 6\u20134?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"singles_finals_2_titles_4_runner_ups\" WHERE \"score\"='6\u20134, 6\u20134';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_finals_2_titles_4_runner_ups\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Which score has a Surface of hardcourt, and a Date of september 30, 1984?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"singles_finals_2_titles_4_runner_ups\" WHERE \"surface\"='hardcourt' AND \"date\"='september 30, 1984';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"principle\" (\n \"group\" real,\n \"half_life_s\" real,\n \"decay_constant_s_1\" real,\n \"yield_neutrons_per_fission\" real,\n \"fraction\" real\n);\n\nQuestion: What is the lowest group number that has a Fraction less than 0.000748, a Half-Life of 55.72 and a Decay Constant larger than 0.012400000000000001?" }, { "role": "assistant", "content": "SELECT MIN(\"group\") FROM \"principle\" WHERE \"fraction\"<0.000748 AND \"half_life_s\"=55.72 AND \"decay_constant_s_1\">0.012400000000000001;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"principle\" (\n \"group\" real,\n \"half_life_s\" real,\n \"decay_constant_s_1\" real,\n \"yield_neutrons_per_fission\" real,\n \"fraction\" real\n);\n\nQuestion: What is the lowest Half-Life with a Yield, Neutrons per Fission greater than 0.0054600000000000004 and a Fraction less than 0.002568?" }, { "role": "assistant", "content": "SELECT MIN(\"half_life_s\") FROM \"principle\" WHERE \"yield_neutrons_per_fission\">0.0054600000000000004 AND \"fraction\"<0.002568;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What was the date of the game with a loss of Wakefield (5-2)?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"game_log\" WHERE \"loss\"='wakefield (5-2)';" } ]