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 \"submissions\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: Who is the director of the fimm Biola Tak Berdawai?" }, { "role": "assistant", "content": "SELECT \"director\" FROM \"submissions\" WHERE \"original_title\"='Biola tak berdawai';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"submissions\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: What title was used in the nomination for the title Biola Tak Berdawai?" }, { "role": "assistant", "content": "SELECT \"film_title_used_in_nomination\" FROM \"submissions\" WHERE \"original_title\"='Biola tak berdawai';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"submissions\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: How many years have a film that uses the title \"Nagabonar\" in the nomination?" }, { "role": "assistant", "content": "SELECT COUNT(\"year_ceremony\") FROM \"submissions\" WHERE \"film_title_used_in_nomination\"='Nagabonar';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"submissions\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: Who is the director of the film Gie?" }, { "role": "assistant", "content": "SELECT \"director\" FROM \"submissions\" WHERE \"film_title_used_in_nomination\"='Gie';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" 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: Name the try bonus for tries against is 70" }, { "role": "assistant", "content": "SELECT \"try_bonus\" FROM \"2008_2009_table\" WHERE \"tries_against\"='70';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" 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 try bonus for when tries against is 43?" }, { "role": "assistant", "content": "SELECT \"try_bonus\" FROM \"2008_2009_table\" WHERE \"tries_against\"='43';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" 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: Name the drawn for llandaff rfc" }, { "role": "assistant", "content": "SELECT \"drawn\" FROM \"2008_2009_table\" WHERE \"club\"='Llandaff RFC';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" 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: Name the won for try bonus of 10" }, { "role": "assistant", "content": "SELECT \"won\" FROM \"2008_2009_table\" WHERE \"try_bonus\"='10';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1373542_1\" (\n \"asset_acquired\" text,\n \"acquired_from\" text,\n \"date_announced\" text,\n \"date_completed\" text,\n \"reported_cost\" text\n);\n\nQuestion: It was announced on July 2, 2006 that what asset was acquired? " }, { "role": "assistant", "content": "SELECT \"asset_acquired\" FROM \"table1_1373542_1\" WHERE \"date_announced\"='July 2, 2006';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1373542_1\" (\n \"asset_acquired\" text,\n \"acquired_from\" text,\n \"date_announced\" text,\n \"date_completed\" text,\n \"reported_cost\" text\n);\n\nQuestion: On what date was it announced that an asset was acquired for US$9 Million? " }, { "role": "assistant", "content": "SELECT \"date_announced\" FROM \"table1_1373542_1\" WHERE \"reported_cost\"='US$9 million';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1373542_1\" (\n \"asset_acquired\" text,\n \"acquired_from\" text,\n \"date_announced\" text,\n \"date_completed\" text,\n \"reported_cost\" text\n);\n\nQuestion: On what date was the asset acquisition that was announced on February 22, 2007 completed? " }, { "role": "assistant", "content": "SELECT \"date_completed\" FROM \"table1_1373542_1\" WHERE \"date_announced\"='February 22, 2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1373542_1\" (\n \"asset_acquired\" text,\n \"acquired_from\" text,\n \"date_announced\" text,\n \"date_completed\" text,\n \"reported_cost\" text\n);\n\nQuestion: It is was announced on July 2, 2006 that what asset had been acquired? " }, { "role": "assistant", "content": "SELECT \"asset_acquired\" FROM \"table1_1373542_1\" WHERE \"date_announced\"='July 2, 2006';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1373542_1\" (\n \"asset_acquired\" text,\n \"acquired_from\" text,\n \"date_announced\" text,\n \"date_completed\" text,\n \"reported_cost\" text\n);\n\nQuestion: What was the reported cost of the asset acquired from Standard & Poor's? " }, { "role": "assistant", "content": "SELECT \"reported_cost\" FROM \"table1_1373542_1\" WHERE \"acquired_from\"='Standard & Poor''s';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"trim\" text,\n \"engine\" text,\n \"displacement\" text,\n \"power\" text,\n \"torque\" text,\n \"transmission\" text,\n \"fuel_mileage_latest_epa_mpg_us\" text\n);\n\nQuestion: what's the\u00a0trim\u00a0with\u00a0fuel mileage (latest epa mpg - us )\u00a0being 22 city, 30 hwy, 25 comb" }, { "role": "assistant", "content": "SELECT \"trim\" FROM \"engines\" WHERE \"fuel_mileage_latest_epa_mpg_us\"='22 city, 30 hwy, 25 comb';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"trim\" text,\n \"engine\" text,\n \"displacement\" text,\n \"power\" text,\n \"torque\" text,\n \"transmission\" text,\n \"fuel_mileage_latest_epa_mpg_us\" text\n);\n\nQuestion: what's the\u00a0trim\u00a0with\u00a0fuel mileage (latest epa mpg - us )\u00a0being 22 city, 30 hwy, 25 comb" }, { "role": "assistant", "content": "SELECT \"trim\" FROM \"engines\" WHERE \"fuel_mileage_latest_epa_mpg_us\"='22 city, 30 hwy, 25 comb';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"trim\" text,\n \"engine\" text,\n \"displacement\" text,\n \"power\" text,\n \"torque\" text,\n \"transmission\" text,\n \"fuel_mileage_latest_epa_mpg_us\" text\n);\n\nQuestion: what's the\u00a0trim\u00a0with\u00a0engine\u00a0being 3.5l lz4 v6" }, { "role": "assistant", "content": "SELECT \"trim\" FROM \"engines\" WHERE \"engine\"='3.5L LZ4 V6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"trim\" text,\n \"engine\" text,\n \"displacement\" text,\n \"power\" text,\n \"torque\" text,\n \"transmission\" text,\n \"fuel_mileage_latest_epa_mpg_us\" text\n);\n\nQuestion: what's the\u00a0torque\u00a0with\u00a0fuel mileage (latest epa mpg - us )\u00a0being 22 city, 30 hwy, 25 comb" }, { "role": "assistant", "content": "SELECT \"torque\" FROM \"engines\" WHERE \"fuel_mileage_latest_epa_mpg_us\"='22 city, 30 hwy, 25 comb';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"trim\" text,\n \"engine\" text,\n \"displacement\" text,\n \"power\" text,\n \"torque\" text,\n \"transmission\" text,\n \"fuel_mileage_latest_epa_mpg_us\" text\n);\n\nQuestion: what's the\u00a0torque\u00a0with\u00a0trim\u00a0being xe (2009)" }, { "role": "assistant", "content": "SELECT \"torque\" FROM \"engines\" WHERE \"trim\"='XE (2009)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"trim\" text,\n \"engine\" text,\n \"displacement\" text,\n \"power\" text,\n \"torque\" text,\n \"transmission\" text,\n \"fuel_mileage_latest_epa_mpg_us\" text\n);\n\nQuestion: what's the\u00a0transmbeingsion\u00a0with\u00a0trim\u00a0being xe (2009)" }, { "role": "assistant", "content": "SELECT \"transmission\" FROM \"engines\" WHERE \"trim\"='XE (2009)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13740746_1\" (\n \"ep_no\" real,\n \"title\" text,\n \"director\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_no\" real\n);\n\nQuestion: Who is the director of the episode \"rain of terror\" that was written by John Brown?" }, { "role": "assistant", "content": "SELECT \"director\" FROM \"table1_13740746_1\" WHERE \"written_by\"='John Brown' AND \"title\"='\\\"Rain of Terror\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13740746_1\" (\n \"ep_no\" real,\n \"title\" text,\n \"director\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_no\" real\n);\n\nQuestion: What is the production number of \"rain of terror\"?" }, { "role": "assistant", "content": "SELECT MIN(\"production_no\") FROM \"table1_13740746_1\" WHERE \"title\"='\\\"Rain of Terror\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13740746_1\" (\n \"ep_no\" real,\n \"title\" text,\n \"director\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_no\" real\n);\n\nQuestion: Who wrote the episode called \"mercury falling\"?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_13740746_1\" WHERE \"title\"='\\\"Mercury Falling\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2006_2007_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"points\" text\n);\n\nQuestion: Nantyglo RFC had 546 points for and how many points?" }, { "role": "assistant", "content": "SELECT \"points\" FROM \"2006_2007_table\" WHERE \"points_for\"='546';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2006_2007_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"points\" text\n);\n\nQuestion: What club had 523 points against? " }, { "role": "assistant", "content": "SELECT \"club\" FROM \"2006_2007_table\" WHERE \"points_against\"='523';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2006_2007_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"points\" text\n);\n\nQuestion: What club has 536 points for?" }, { "role": "assistant", "content": "SELECT \"club\" FROM \"2006_2007_table\" WHERE \"points_for\"='536';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2006_2007_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"points\" text\n);\n\nQuestion: How many clubs had 7 wins? " }, { "role": "assistant", "content": "SELECT COUNT(\"club\") FROM \"2006_2007_table\" WHERE \"won\"='7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2006_2007_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"points\" text\n);\n\nQuestion: What club had 404 points against? " }, { "role": "assistant", "content": "SELECT \"club\" FROM \"2006_2007_table\" WHERE \"points_against\"='404';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2006_2007_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"points\" text\n);\n\nQuestion: Risca RFC has 54 tries for and how many draws? " }, { "role": "assistant", "content": "SELECT \"drawn\" FROM \"2006_2007_table\" WHERE \"tries_for\"='54';" } ]
[ { "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 \"won\" 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 club has 36 points?" }, { "role": "assistant", "content": "SELECT \"club\" FROM \"2009_2010_table\" WHERE \"points\"='36';" } ]
[ { "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 \"won\" 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 are the lost where points lost is 353?" }, { "role": "assistant", "content": "SELECT \"lost\" FROM \"2009_2010_table\" WHERE \"points_for\"='353';" } ]
[ { "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 \"won\" 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 are the won games with losing bonus of 0?" }, { "role": "assistant", "content": "SELECT \"won\" FROM \"2009_2010_table\" WHERE \"losing_bonus\"='0';" } ]
[ { "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 \"won\" 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: Which club has 565 points?" }, { "role": "assistant", "content": "SELECT \"club\" FROM \"2009_2010_table\" WHERE \"points_for\"='565';" } ]
[ { "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 \"won\" 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 tries where points is 77?" }, { "role": "assistant", "content": "SELECT \"tries_for\" FROM \"2009_2010_table\" WHERE \"points\"='77';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"parliamentary_elections\" (\n \"election_date\" real,\n \"party_leader\" text,\n \"number_of_votes_received\" real,\n \"percentage_of_votes\" text,\n \"number_of_deputies\" real\n);\n\nQuestion: what's the\u00a0percentage of votes\u00a0with\u00a0number of deputies\u00a0being 112" }, { "role": "assistant", "content": "SELECT \"percentage_of_votes\" FROM \"parliamentary_elections\" WHERE \"number_of_deputies\"=112;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"parliamentary_elections\" (\n \"election_date\" real,\n \"party_leader\" text,\n \"number_of_votes_received\" real,\n \"percentage_of_votes\" text,\n \"number_of_deputies\" real\n);\n\nQuestion: what's the\u00a0percentage of votes\u00a0with\u00a0number of deputies\u00a0being 112" }, { "role": "assistant", "content": "SELECT \"percentage_of_votes\" FROM \"parliamentary_elections\" WHERE \"number_of_deputies\"=112;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"parliamentary_elections\" (\n \"election_date\" real,\n \"party_leader\" text,\n \"number_of_votes_received\" real,\n \"percentage_of_votes\" text,\n \"number_of_deputies\" real\n);\n\nQuestion: what's the\u00a0percentage of votes\u00a0with\u00a0election date\u00a0being 1981" }, { "role": "assistant", "content": "SELECT \"percentage_of_votes\" FROM \"parliamentary_elections\" WHERE \"election_date\"=1981;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"parliamentary_elections\" (\n \"election_date\" real,\n \"party_leader\" text,\n \"number_of_votes_received\" real,\n \"percentage_of_votes\" text,\n \"number_of_deputies\" real\n);\n\nQuestion: what's the\u00a0number of deputies\u00a0with\u00a0number of votes received\u00a0being smaller than 1549176.2765483726 and\u00a0election date\u00a0being 1969" }, { "role": "assistant", "content": "SELECT \"number_of_deputies\" FROM \"parliamentary_elections\" WHERE \"number_of_votes_received\"<1549176.2765483726 AND \"election_date\"=1969;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13755296_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"story_by\" text,\n \"teleplay_by\" text,\n \"directed_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: Who wrote the sorry of the episode directed by Dan Attias? " }, { "role": "assistant", "content": "SELECT \"story_by\" FROM \"table1_13755296_1\" WHERE \"directed_by\"='Dan Attias';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13755296_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"story_by\" text,\n \"teleplay_by\" text,\n \"directed_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: What's the season number of the episode directed by Dan Attias? " }, { "role": "assistant", "content": "SELECT MIN(\"season_num\") FROM \"table1_13755296_1\" WHERE \"directed_by\"='Dan Attias';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13755296_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"story_by\" text,\n \"teleplay_by\" text,\n \"directed_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: What's the title of the episode written by David Simon? " }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_13755296_1\" WHERE \"teleplay_by\"='David Simon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"4_a_members\" (\n \"high_school\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"division\" text\n);\n\nQuestion: What year was Skyline High School founded?" }, { "role": "assistant", "content": "SELECT COUNT(\"founded\") FROM \"4_a_members\" WHERE \"high_school\"='Skyline';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"4_a_members\" (\n \"high_school\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"division\" text\n);\n\nQuestion: How many enrollment figures are provided for Roosevelt High School?" }, { "role": "assistant", "content": "SELECT COUNT(\"enrollment\") FROM \"4_a_members\" WHERE \"high_school\"='Roosevelt';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"4_a_members\" (\n \"high_school\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"division\" text\n);\n\nQuestion: Which location has a team that is nicknamed the Vikings?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"4_a_members\" WHERE \"nickname\"='Vikings';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"3_a_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"nickname\" text\n);\n\nQuestion: What year was Kirkland founded?" }, { "role": "assistant", "content": "SELECT \"founded\" FROM \"3_a_members\" WHERE \"location\"='Kirkland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"3_a_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"nickname\" text\n);\n\nQuestion: Which institution was founded in 1923?" }, { "role": "assistant", "content": "SELECT \"institution\" FROM \"3_a_members\" WHERE \"founded\"=1923;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"3_a_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"nickname\" text\n);\n\nQuestion: Where is Interlake located?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"3_a_members\" WHERE \"institution\"='Interlake';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2006_nba_playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: What was the series count at on May 23? " }, { "role": "assistant", "content": "SELECT \"series\" FROM \"2006_nba_playoffs\" WHERE \"date\"='May 23';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is the lowest numbered game on the list?" }, { "role": "assistant", "content": "SELECT MIN(\"game\") FROM \"game_log\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who had the high rebounds at the delta center?" }, { "role": "assistant", "content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"location_attendance\"='Delta Center';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many people had the high rebound total when the team was 19-13?" }, { "role": "assistant", "content": "SELECT COUNT(\"high_rebounds\") FROM \"game_log\" WHERE \"record\"='19-13';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who had the high point total when the team was 24-17?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"record\"='24-17';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the score when the heat played at charlotte arena?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"location_attendance\"='Charlotte Arena';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many games had the team played after they were 40-20?" }, { "role": "assistant", "content": "SELECT \"game\" FROM \"game_log\" WHERE \"record\"='40-20';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the score on November 25?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"date\"='November 25';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many players scored the most points when the opposing team was New Orleans/Oklahoma City?" }, { "role": "assistant", "content": "SELECT COUNT(\"high_points\") FROM \"game_log\" WHERE \"team\"='New Orleans/Oklahoma City';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many players scored the most points on game 4?" }, { "role": "assistant", "content": "SELECT COUNT(\"high_points\") FROM \"game_log\" WHERE \"game\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the last game where the record was 6-3?" }, { "role": "assistant", "content": "SELECT MAX(\"game\") FROM \"game_log\" WHERE \"record\"='6-3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13779832_1\" (\n \"country_region\" text,\n \"local_title\" text,\n \"television_network\" text,\n \"seasons_and_winners\" text,\n \"judges\" text,\n \"presenters\" text\n);\n\nQuestion: what's the\u00a0country/region\u00a0with\u00a0seasons and winners\u00a0being season 1, 2012: demetra malalan" }, { "role": "assistant", "content": "SELECT \"country_region\" FROM \"table1_13779832_1\" WHERE \"seasons_and_winners\"='Season 1, 2012: Demetra Malalan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13779832_1\" (\n \"country_region\" text,\n \"local_title\" text,\n \"television_network\" text,\n \"seasons_and_winners\" text,\n \"judges\" text,\n \"presenters\" text\n);\n\nQuestion: how many\u00a0local title\u00a0with\u00a0televbeingion network\u00a0being tv nova website" }, { "role": "assistant", "content": "SELECT COUNT(\"local_title\") FROM \"table1_13779832_1\" WHERE \"television_network\"='TV Nova Website';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13779832_1\" (\n \"country_region\" text,\n \"local_title\" text,\n \"television_network\" text,\n \"seasons_and_winners\" text,\n \"judges\" text,\n \"presenters\" text\n);\n\nQuestion: who is the the\u00a0judges\u00a0with\u00a0seasons and winners\u00a0being season 1, 2013\u20132014: upcoming season" }, { "role": "assistant", "content": "SELECT \"judges\" FROM \"table1_13779832_1\" WHERE \"seasons_and_winners\"='Season 1, 2013\u20132014: Upcoming season';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13779832_1\" (\n \"country_region\" text,\n \"local_title\" text,\n \"television_network\" text,\n \"seasons_and_winners\" text,\n \"judges\" text,\n \"presenters\" text\n);\n\nQuestion: who is the the\u00a0judges\u00a0with\u00a0local title\u00a0being x factor and\u00a0presenters\u00a0being heikki paasonen jukka rossi (xtra factor)" }, { "role": "assistant", "content": "SELECT \"judges\" FROM \"table1_13779832_1\" WHERE \"local_title\"='X Factor' AND \"presenters\"='Heikki Paasonen Jukka Rossi (Xtra Factor)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13779832_1\" (\n \"country_region\" text,\n \"local_title\" text,\n \"television_network\" text,\n \"seasons_and_winners\" text,\n \"judges\" text,\n \"presenters\" text\n);\n\nQuestion: what's the\u00a0local title\u00a0with\u00a0seasons and winners\u00a0being series 1, 2006: lucy benjamin" }, { "role": "assistant", "content": "SELECT \"local_title\" FROM \"table1_13779832_1\" WHERE \"seasons_and_winners\"='Series 1, 2006: Lucy Benjamin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13779832_1\" (\n \"country_region\" text,\n \"local_title\" text,\n \"television_network\" text,\n \"seasons_and_winners\" text,\n \"judges\" text,\n \"presenters\" text\n);\n\nQuestion: what's the\u00a0country/region\u00a0with\u00a0presenters\u00a0being heikki paasonen jukka rossi (xtra factor)" }, { "role": "assistant", "content": "SELECT \"country_region\" FROM \"table1_13779832_1\" WHERE \"presenters\"='Heikki Paasonen Jukka Rossi (Xtra Factor)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mpeg_2_profiles\" (\n \"abbr\" text,\n \"name\" text,\n \"picture_coding_types\" text,\n \"chroma_format\" text,\n \"aspect_ratios\" text,\n \"scalable_modes\" text,\n \"intra_dc_precision\" text\n);\n\nQuestion: how many\u00a0chroma format\u00a0with\u00a0name\u00a0being high profile" }, { "role": "assistant", "content": "SELECT COUNT(\"chroma_format\") FROM \"mpeg_2_profiles\" WHERE \"name\"='High profile';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mpeg_2_profiles\" (\n \"abbr\" text,\n \"name\" text,\n \"picture_coding_types\" text,\n \"chroma_format\" text,\n \"aspect_ratios\" text,\n \"scalable_modes\" text,\n \"intra_dc_precision\" text\n);\n\nQuestion: what's the\u00a0chroma format\u00a0with\u00a0scalable modes\u00a0being snr- or spatial-scalable and\u00a0intra dc precbeingion\u00a0being 8, 9, 10" }, { "role": "assistant", "content": "SELECT \"chroma_format\" FROM \"mpeg_2_profiles\" WHERE \"scalable_modes\"='SNR- or spatial-scalable' AND \"intra_dc_precision\"='8, 9, 10';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mpeg_2_profiles\" (\n \"abbr\" text,\n \"name\" text,\n \"picture_coding_types\" text,\n \"chroma_format\" text,\n \"aspect_ratios\" text,\n \"scalable_modes\" text,\n \"intra_dc_precision\" text\n);\n\nQuestion: what's the\u00a0chroma format\u00a0with\u00a0name\u00a0being high profile" }, { "role": "assistant", "content": "SELECT \"chroma_format\" FROM \"mpeg_2_profiles\" WHERE \"name\"='High profile';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13789248_2\" (\n \"position\" real,\n \"artist\" text,\n \"song_title\" text,\n \"highest_position\" real,\n \"points\" real\n);\n\nQuestion: who is the the\u00a0artbeingt\u00a0with\u00a0song title\u00a0being \" a steel guitar and a glass of wine \"" }, { "role": "assistant", "content": "SELECT \"artist\" FROM \"table1_13789248_2\" WHERE \"song_title\"='\\\" A Steel Guitar And A Glass Of Wine \\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13789248_2\" (\n \"position\" real,\n \"artist\" text,\n \"song_title\" text,\n \"highest_position\" real,\n \"points\" real\n);\n\nQuestion: what's the\u00a0points\u00a0with\u00a0artbeingt\u00a0being dave appell" }, { "role": "assistant", "content": "SELECT \"points\" FROM \"table1_13789248_2\" WHERE \"artist\"='Dave Appell';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13789248_2\" (\n \"position\" real,\n \"artist\" text,\n \"song_title\" text,\n \"highest_position\" real,\n \"points\" real\n);\n\nQuestion: who is the the\u00a0artbeingt\u00a0with\u00a0song title\u00a0being \" a little bitty tear \"" }, { "role": "assistant", "content": "SELECT \"artist\" FROM \"table1_13789248_2\" WHERE \"song_title\"='\\\" A Little Bitty Tear \\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13789248_2\" (\n \"position\" real,\n \"artist\" text,\n \"song_title\" text,\n \"highest_position\" real,\n \"points\" real\n);\n\nQuestion: who is the the\u00a0artbeingt\u00a0with\u00a0position\u00a0being 32" }, { "role": "assistant", "content": "SELECT \"artist\" FROM \"table1_13789248_2\" WHERE \"position\"=32;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13789248_2\" (\n \"position\" real,\n \"artist\" text,\n \"song_title\" text,\n \"highest_position\" real,\n \"points\" real\n);\n\nQuestion: how many\u00a0song title\u00a0with\u00a0artbeingt\u00a0being chubby checker" }, { "role": "assistant", "content": "SELECT COUNT(\"song_title\") FROM \"table1_13789248_2\" WHERE \"artist\"='Chubby Checker';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13789248_2\" (\n \"position\" real,\n \"artist\" text,\n \"song_title\" text,\n \"highest_position\" real,\n \"points\" real\n);\n\nQuestion: what is the minimum\u00a0points\u00a0with\u00a0highest position\u00a0being 1" }, { "role": "assistant", "content": "SELECT MIN(\"points\") FROM \"table1_13789248_2\" WHERE \"highest_position\"=1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_data\" (\n \"rank\" real,\n \"airport\" text,\n \"total_passengers\" real,\n \"pct_change_2007_2008\" text,\n \"international_passengers\" real,\n \"domestic_passengers\" real,\n \"transit_passengers\" real,\n \"aircraft_movements\" real,\n \"freight_metric_tonnes\" real\n);\n\nQuestion: What is the maximum number of trnsit passeners when the total number of international passengers is 4870184?" }, { "role": "assistant", "content": "SELECT MAX(\"transit_passengers\") FROM \"2008_data\" WHERE \"international_passengers\"=4870184;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_data\" (\n \"rank\" real,\n \"airport\" text,\n \"total_passengers\" real,\n \"pct_change_2007_2008\" text,\n \"international_passengers\" real,\n \"domestic_passengers\" real,\n \"transit_passengers\" real,\n \"aircraft_movements\" real,\n \"freight_metric_tonnes\" real\n);\n\nQuestion: What is Edinburgh's airport's freight in metric tonnes?" }, { "role": "assistant", "content": "SELECT MAX(\"freight_metric_tonnes\") FROM \"2008_data\" WHERE \"airport\"='Edinburgh';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_data\" (\n \"rank\" real,\n \"airport\" text,\n \"total_passengers\" real,\n \"pct_change_2007_2008\" text,\n \"international_passengers\" real,\n \"domestic_passengers\" real,\n \"transit_passengers\" real,\n \"aircraft_movements\" real,\n \"freight_metric_tonnes\" real\n);\n\nQuestion: How many different total number of transit passengers are there in London Luton?" }, { "role": "assistant", "content": "SELECT COUNT(\"transit_passengers\") FROM \"2008_data\" WHERE \"airport\"='London Luton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_data\" (\n \"rank\" real,\n \"airport\" text,\n \"total_passengers\" real,\n \"pct_change_2007_2008\" text,\n \"international_passengers\" real,\n \"domestic_passengers\" real,\n \"transit_passengers\" real,\n \"aircraft_movements\" real,\n \"freight_metric_tonnes\" real\n);\n\nQuestion: What are the total freights in metric tonnes when the total transit passengers is 147791?" }, { "role": "assistant", "content": "SELECT \"freight_metric_tonnes\" FROM \"2008_data\" WHERE \"transit_passengers\"=147791;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_data\" (\n \"rank\" real,\n \"airport\" text,\n \"total_passengers\" real,\n \"pct_change_2007_2008\" text,\n \"international_passengers\" real,\n \"domestic_passengers\" real,\n \"transit_passengers\" real,\n \"aircraft_movements\" real,\n \"freight_metric_tonnes\" real\n);\n\nQuestion: What is the total number of passengers of the airport ranked 15?" }, { "role": "assistant", "content": "SELECT \"international_passengers\" FROM \"2008_data\" WHERE \"rank\"=15;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13834298_1\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: Whatis the original title for lion's den?" }, { "role": "assistant", "content": "SELECT \"original_title\" FROM \"table1_13834298_1\" WHERE \"film_title_used_in_nomination\"='Lion''s Den';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009_data\" (\n \"rank\" real,\n \"airport\" text,\n \"total_passengers\" real,\n \"pct_change_2008_2009\" text,\n \"international_passengers\" real,\n \"domestic_passengers\" real,\n \"transit_passengers\" real,\n \"aircraft_movements\" real,\n \"freight_metric_tonnes\" real\n);\n\nQuestion: What is the percent change from 08/09 for belfast international?" }, { "role": "assistant", "content": "SELECT \"pct_change_2008_2009\" FROM \"2009_data\" WHERE \"airport\"='Belfast International';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009_data\" (\n \"rank\" real,\n \"airport\" text,\n \"total_passengers\" real,\n \"pct_change_2008_2009\" text,\n \"international_passengers\" real,\n \"domestic_passengers\" real,\n \"transit_passengers\" real,\n \"aircraft_movements\" real,\n \"freight_metric_tonnes\" real\n);\n\nQuestion: How many transit passengers at london gatwick?" }, { "role": "assistant", "content": "SELECT \"transit_passengers\" FROM \"2009_data\" WHERE \"airport\"='London Gatwick';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009_data\" (\n \"rank\" real,\n \"airport\" text,\n \"total_passengers\" real,\n \"pct_change_2008_2009\" text,\n \"international_passengers\" real,\n \"domestic_passengers\" real,\n \"transit_passengers\" real,\n \"aircraft_movements\" real,\n \"freight_metric_tonnes\" real\n);\n\nQuestion: What is the rank of the airport with freight ( metric tonnes ) of 255121?" }, { "role": "assistant", "content": "SELECT \"rank\" FROM \"2009_data\" WHERE \"freight_metric_tonnes\"=255121;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009_data\" (\n \"rank\" real,\n \"airport\" text,\n \"total_passengers\" real,\n \"pct_change_2008_2009\" text,\n \"international_passengers\" real,\n \"domestic_passengers\" real,\n \"transit_passengers\" real,\n \"aircraft_movements\" real,\n \"freight_metric_tonnes\" real\n);\n\nQuestion: What is the rank of the airport with a freight ( metric tonnes ) of 23791?" }, { "role": "assistant", "content": "SELECT \"rank\" FROM \"2009_data\" WHERE \"freight_metric_tonnes\"=23791;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_2009_data\" (\n \"rank\" real,\n \"airport\" text,\n \"total_passengers_2008\" real,\n \"total_passengers_2009\" real,\n \"change_2008_09\" text,\n \"aircraft_movements_2009\" real\n);\n\nQuestion: what's the\u00a0airport\u00a0with\u00a0total passengers 2009\u00a0being 157933" }, { "role": "assistant", "content": "SELECT \"airport\" FROM \"2008_2009_data\" WHERE \"total_passengers_2009\"=157933;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_2009_data\" (\n \"rank\" real,\n \"airport\" text,\n \"total_passengers_2008\" real,\n \"total_passengers_2009\" real,\n \"change_2008_09\" text,\n \"aircraft_movements_2009\" real\n);\n\nQuestion: what being the maximum\u00a0total passengers 2008\u00a0with\u00a0change 2008/09\u00a0being 6.5%" }, { "role": "assistant", "content": "SELECT MAX(\"total_passengers_2008\") FROM \"2008_2009_data\" WHERE \"change_2008_09\"='6.5%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_2009_data\" (\n \"rank\" real,\n \"airport\" text,\n \"total_passengers_2008\" real,\n \"total_passengers_2009\" real,\n \"change_2008_09\" text,\n \"aircraft_movements_2009\" real\n);\n\nQuestion: what's the\u00a0airport\u00a0with\u00a0aircraft movements 2009\u00a0being smaller than 238223.1659471435 and\u00a0change 2008/09\u00a0being 0.5%" }, { "role": "assistant", "content": "SELECT \"airport\" FROM \"2008_2009_data\" WHERE \"aircraft_movements_2009\"<238223.1659471435 AND \"change_2008_09\"='0.5%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_2009_data\" (\n \"rank\" real,\n \"airport\" text,\n \"total_passengers_2008\" real,\n \"total_passengers_2009\" real,\n \"change_2008_09\" text,\n \"aircraft_movements_2009\" real\n);\n\nQuestion: what is the maximum\u00a0aircraft movements 2009\u00a0with\u00a0change 2008/09\u00a0being 18.2%" }, { "role": "assistant", "content": "SELECT MAX(\"aircraft_movements_2009\") FROM \"2008_2009_data\" WHERE \"change_2008_09\"='18.2%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_2009_data\" (\n \"rank\" real,\n \"airport\" text,\n \"total_passengers_2008\" real,\n \"total_passengers_2009\" real,\n \"change_2008_09\" text,\n \"aircraft_movements_2009\" real\n);\n\nQuestion: what's the\u00a0total passengers 2008\u00a0with\u00a0change 2008/09\u00a0being 6.5%" }, { "role": "assistant", "content": "SELECT \"total_passengers_2008\" FROM \"2008_2009_data\" WHERE \"change_2008_09\"='6.5%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_data\" (\n \"rank\" real,\n \"airport\" text,\n \"total_passengers\" real,\n \"pct_change_2006_2007\" text,\n \"international_passengers\" real,\n \"domestic_passengers\" real,\n \"transit_passengers\" real,\n \"aircraft_movements\" real,\n \"freight_metric_tonnes\" real\n);\n\nQuestion: Name the rank of birmingham airport" }, { "role": "assistant", "content": "SELECT MAX(\"rank\") FROM \"2007_data\" WHERE \"airport\"='Birmingham Airport';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_data\" (\n \"rank\" real,\n \"airport\" text,\n \"total_passengers\" real,\n \"pct_change_2006_2007\" text,\n \"international_passengers\" real,\n \"domestic_passengers\" real,\n \"transit_passengers\" real,\n \"aircraft_movements\" real,\n \"freight_metric_tonnes\" real\n);\n\nQuestion: Name the transit passengers for 171078" }, { "role": "assistant", "content": "SELECT MAX(\"transit_passengers\") FROM \"2007_data\" WHERE \"freight_metric_tonnes\"=171078;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Beata syta is the minimum year for womens singles." }, { "role": "assistant", "content": "SELECT MIN(\"year\") FROM \"past_winners\" WHERE \"womens_singles\"='Beata Syta';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2006_data\" (\n \"rank\" real,\n \"airport\" text,\n \"total_passengers\" real,\n \"pct_change_2005_2006\" text,\n \"international_passengers\" real,\n \"domestic_passengers\" real,\n \"transit_passengers\" real,\n \"aircraft_movements\" real,\n \"freight_metric_tonnes\" real\n);\n\nQuestion: what is the maximum\u00a0aircraft movements\u00a0with\u00a0international passengers\u00a0being 21002260" }, { "role": "assistant", "content": "SELECT MAX(\"aircraft_movements\") FROM \"2006_data\" WHERE \"international_passengers\"=21002260;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2006_data\" (\n \"rank\" real,\n \"airport\" text,\n \"total_passengers\" real,\n \"pct_change_2005_2006\" text,\n \"international_passengers\" real,\n \"domestic_passengers\" real,\n \"transit_passengers\" real,\n \"aircraft_movements\" real,\n \"freight_metric_tonnes\" real\n);\n\nQuestion: what is the maximum\u00a0freight (metric tonnes)\u00a0with\u00a0airport\u00a0being liverpool" }, { "role": "assistant", "content": "SELECT MAX(\"freight_metric_tonnes\") FROM \"2006_data\" WHERE \"airport\"='Liverpool';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2006_data\" (\n \"rank\" real,\n \"airport\" text,\n \"total_passengers\" real,\n \"pct_change_2005_2006\" text,\n \"international_passengers\" real,\n \"domestic_passengers\" real,\n \"transit_passengers\" real,\n \"aircraft_movements\" real,\n \"freight_metric_tonnes\" real\n);\n\nQuestion: what's the\u00a0airport\u00a0with\u00a0% change 2005/2006\u00a0being 13.0%" }, { "role": "assistant", "content": "SELECT \"airport\" FROM \"2006_data\" WHERE \"pct_change_2005_2006\"='13.0%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2006_data\" (\n \"rank\" real,\n \"airport\" text,\n \"total_passengers\" real,\n \"pct_change_2005_2006\" text,\n \"international_passengers\" real,\n \"domestic_passengers\" real,\n \"transit_passengers\" real,\n \"aircraft_movements\" real,\n \"freight_metric_tonnes\" real\n);\n\nQuestion: what is the maximum\u00a0aircraft movements\u00a0with\u00a0airport\u00a0being liverpool" }, { "role": "assistant", "content": "SELECT MAX(\"aircraft_movements\") FROM \"2006_data\" WHERE \"airport\"='Liverpool';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2006_data\" (\n \"rank\" real,\n \"airport\" text,\n \"total_passengers\" real,\n \"pct_change_2005_2006\" text,\n \"international_passengers\" real,\n \"domestic_passengers\" real,\n \"transit_passengers\" real,\n \"aircraft_movements\" real,\n \"freight_metric_tonnes\" real\n);\n\nQuestion: what's the\u00a0total passengers\u00a0with\u00a0freight (metric tonnes)\u00a0being 827" }, { "role": "assistant", "content": "SELECT \"total_passengers\" FROM \"2006_data\" WHERE \"freight_metric_tonnes\"=827;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2006_data\" (\n \"rank\" real,\n \"airport\" text,\n \"total_passengers\" real,\n \"pct_change_2005_2006\" text,\n \"international_passengers\" real,\n \"domestic_passengers\" real,\n \"transit_passengers\" real,\n \"aircraft_movements\" real,\n \"freight_metric_tonnes\" real\n);\n\nQuestion: how many\u00a0airport\u00a0with\u00a0rank\u00a0being 4" }, { "role": "assistant", "content": "SELECT COUNT(\"airport\") FROM \"2006_data\" WHERE \"rank\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: how many\u00a0mens singles\u00a0with\u00a0mens doubles\u00a0being pontus jantti lasse lindel\u00f6f" }, { "role": "assistant", "content": "SELECT COUNT(\"mens_singles\") FROM \"past_winners\" WHERE \"mens_doubles\"='Pontus Jantti Lasse Lindel\u00f6f';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: who is the the\u00a0mens doubles\u00a0with\u00a0mixed doubles\u00a0being jimm aalto nina sarnesto" }, { "role": "assistant", "content": "SELECT \"mens_doubles\" FROM \"past_winners\" WHERE \"mixed_doubles\"='Jimm Aalto Nina Sarnesto';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: who is the the\u00a0mixed doubles\u00a0with\u00a0year\u00a0being 1972" }, { "role": "assistant", "content": "SELECT \"mixed_doubles\" FROM \"past_winners\" WHERE \"year\"=1972;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: who is the the\u00a0mens doubles\u00a0with\u00a0year\u00a0being 1978" }, { "role": "assistant", "content": "SELECT \"mens_doubles\" FROM \"past_winners\" WHERE \"year\"=1978;" } ]