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 \"references\" (\n \"rank\" real,\n \"country\" text,\n \"miss_universe\" text,\n \"1st_runner_up\" real,\n \"2nd_runner_up\" real,\n \"3rd_runner_up\" real,\n \"4th_runner_up\" real,\n \"semifinalists\" real,\n \"total\" real\n);\n\nQuestion: Which country has had 6 miss universe's?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"references\" WHERE \"miss_universe\"='6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"rank\" real,\n \"country\" text,\n \"miss_universe\" text,\n \"1st_runner_up\" real,\n \"2nd_runner_up\" real,\n \"3rd_runner_up\" real,\n \"4th_runner_up\" real,\n \"semifinalists\" real,\n \"total\" real\n);\n\nQuestion: Which country has had 8 miss universes?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"references\" WHERE \"miss_universe\"='8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" text,\n \"points\" real,\n \"played\" real,\n \"2003_04\" text,\n \"2004_05\" text,\n \"2005_06\" text\n);\n\nQuestion: What is the minimum number of points for teams averaging 1.412?" }, { "role": "assistant", "content": "SELECT MIN(\"points\") FROM \"relegation\" WHERE \"average\"='1.412';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" text,\n \"points\" real,\n \"played\" real,\n \"2003_04\" text,\n \"2004_05\" text,\n \"2005_06\" text\n);\n\nQuestion: What is the 2004-2005 value associated with a 2005-2006 value of 56/38?" }, { "role": "assistant", "content": "SELECT \"2004_05\" FROM \"relegation\" WHERE \"2005_06\"='56/38';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" text,\n \"points\" real,\n \"played\" real,\n \"2003_04\" text,\n \"2004_05\" text,\n \"2005_06\" text\n);\n\nQuestion: How many averages are associated with a 2003-2004 value of 62/38?" }, { "role": "assistant", "content": "SELECT COUNT(\"average\") FROM \"relegation\" WHERE \"2003_04\"='62/38';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" text,\n \"points\" real,\n \"played\" real,\n \"2003_04\" text,\n \"2004_05\" text,\n \"2005_06\" text\n);\n\nQuestion: What 2003-2004 values are associated with an average of 1.377?" }, { "role": "assistant", "content": "SELECT \"2003_04\" FROM \"relegation\" WHERE \"average\"='1.377';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" text,\n \"points\" real,\n \"played\" real,\n \"2003_04\" text,\n \"2004_05\" text,\n \"2005_06\" text\n);\n\nQuestion: How many teams have a 2004-05 value of 49/38?" }, { "role": "assistant", "content": "SELECT COUNT(\"team\") FROM \"relegation\" WHERE \"2004_05\"='49/38';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" text,\n \"points\" real,\n \"played\" real,\n \"2003_04\" text,\n \"2004_05\" text,\n \"2005_06\" text\n);\n\nQuestion: How many 2003-04 values have a 2004-05 value of 73/38?" }, { "role": "assistant", "content": "SELECT COUNT(\"2003_04\") FROM \"relegation\" WHERE \"2004_05\"='73/38';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2866503_1\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many millions of viewers are listed where the writer is Matthew Okumura?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_million\" FROM \"table1_2866503_1\" WHERE \"written_by\"='Matthew Okumura';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2866503_1\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What is the U.S air date when the title is \"calling\"?" }, { "role": "assistant", "content": "SELECT \"u_s_air_date\" FROM \"table1_2866503_1\" WHERE \"title\"='\\\"Calling\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2866503_1\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What is the U.S. air date when the U.S. viewers are 7.5 million?" }, { "role": "assistant", "content": "SELECT \"u_s_air_date\" FROM \"table1_2866503_1\" WHERE \"u_s_viewers_million\"='7.5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2866456_1\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many u.s. viewers (million) have 6 as the #?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_million\" FROM \"table1_2866456_1\" WHERE \"num\"=6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2866456_1\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who is directed by when \"fade\" is the title?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_2866456_1\" WHERE \"title\"='\\\"Fade\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2866456_1\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who is the directed by when 2t6404 is the production code?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_2866456_1\" WHERE \"production_code\"='2T6404';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2866509_1\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: what is the number of the episode in the season that had 5.60 millions of north american spectors?" }, { "role": "assistant", "content": "SELECT \"no\" FROM \"table1_2866509_1\" WHERE \"u_s_viewers_million\"='5.60';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2866509_1\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: who are the writers of the episode whose production code is 176206? " }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_2866509_1\" WHERE \"production_code\"=176206;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"num\" real,\n \"stadium\" text,\n \"capacity\" real,\n \"opened\" text,\n \"city_town\" text,\n \"home_team\" text\n);\n\nQuestion: What stadium does FK Rudar play in?" }, { "role": "assistant", "content": "SELECT \"stadium\" FROM \"see_also\" WHERE \"home_team\"='FK Rudar';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"num\" real,\n \"stadium\" text,\n \"capacity\" real,\n \"opened\" text,\n \"city_town\" text,\n \"home_team\" text\n);\n\nQuestion: What town holds Stadion Zlatica?" }, { "role": "assistant", "content": "SELECT \"city_town\" FROM \"see_also\" WHERE \"stadium\"='Stadion Zlatica';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"num\" real,\n \"stadium\" text,\n \"capacity\" real,\n \"opened\" text,\n \"city_town\" text,\n \"home_team\" text\n);\n\nQuestion: What stadium does FK Jedinstvo play in?" }, { "role": "assistant", "content": "SELECT \"stadium\" FROM \"see_also\" WHERE \"home_team\"='FK Jedinstvo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_6\" (\n \"couple\" text,\n \"style\" text,\n \"music\" text,\n \"trine_dehli_cleve\" real,\n \"tor_fl_ysvik\" real,\n \"karianne_gulliksen\" real,\n \"christer_tornell\" real,\n \"total\" real\n);\n\nQuestion: What is listed in tor floysvik when karianne gulliksen is 6?" }, { "role": "assistant", "content": "SELECT MIN(\"tor_fl_ysvik\") FROM \"week_6\" WHERE \"karianne_gulliksen\"=6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_6\" (\n \"couple\" text,\n \"style\" text,\n \"music\" text,\n \"trine_dehli_cleve\" real,\n \"tor_fl_ysvik\" real,\n \"karianne_gulliksen\" real,\n \"christer_tornell\" real,\n \"total\" real\n);\n\nQuestion: How many music entries are there when tor floysvik is 3?" }, { "role": "assistant", "content": "SELECT COUNT(\"music\") FROM \"week_6\" WHERE \"tor_fl_ysvik\"=3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_6\" (\n \"couple\" text,\n \"style\" text,\n \"music\" text,\n \"trine_dehli_cleve\" real,\n \"tor_fl_ysvik\" real,\n \"karianne_gulliksen\" real,\n \"christer_tornell\" real,\n \"total\" real\n);\n\nQuestion: What is listed under chister tornell when karianne gulliksen is 7?" }, { "role": "assistant", "content": "SELECT MIN(\"christer_tornell\") FROM \"week_6\" WHERE \"karianne_gulliksen\"=7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_6\" (\n \"couple\" text,\n \"style\" text,\n \"music\" text,\n \"trine_dehli_cleve\" real,\n \"tor_fl_ysvik\" real,\n \"karianne_gulliksen\" real,\n \"christer_tornell\" real,\n \"total\" real\n);\n\nQuestion: What is listed under tor floysvik when couple is maria & asmund?" }, { "role": "assistant", "content": "SELECT MIN(\"tor_fl_ysvik\") FROM \"week_6\" WHERE \"couple\"='Maria & Asmund';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"installed_capacity\" (\n \"stage\" text,\n \"unit_number\" real,\n \"installed_capacity_mw\" text,\n \"date_of_commissioning\" text,\n \"status\" text,\n \"tg_set_provider\" text,\n \"boiler_provider\" text\n);\n\nQuestion: What are Unit 2's dates of commissioning?" }, { "role": "assistant", "content": "SELECT COUNT(\"date_of_commissioning\") FROM \"installed_capacity\" WHERE \"unit_number\"=2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"installed_capacity\" (\n \"stage\" text,\n \"unit_number\" real,\n \"installed_capacity_mw\" text,\n \"date_of_commissioning\" text,\n \"status\" text,\n \"tg_set_provider\" text,\n \"boiler_provider\" text\n);\n\nQuestion: What is the boiler provider for Bhel, India's TG Set provider?" }, { "role": "assistant", "content": "SELECT \"boiler_provider\" FROM \"installed_capacity\" WHERE \"tg_set_provider\"='BHEL, India';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_10\" (\n \"couple\" text,\n \"style\" text,\n \"music\" text,\n \"trine_dehli_cleve\" real,\n \"tor_fl_ysvik\" real,\n \"karianne_gulliksen\" real,\n \"christer_tornell\" real,\n \"total\" real\n);\n\nQuestion: Name the trine dehli cleve for english waltz" }, { "role": "assistant", "content": "SELECT MIN(\"trine_dehli_cleve\") FROM \"week_10\" WHERE \"style\"='English Waltz';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_10\" (\n \"couple\" text,\n \"style\" text,\n \"music\" text,\n \"trine_dehli_cleve\" real,\n \"tor_fl_ysvik\" real,\n \"karianne_gulliksen\" real,\n \"christer_tornell\" real,\n \"total\" real\n);\n\nQuestion: Name the style for 39 " }, { "role": "assistant", "content": "SELECT \"style\" FROM \"week_10\" WHERE \"total\"=39;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_10\" (\n \"couple\" text,\n \"style\" text,\n \"music\" text,\n \"trine_dehli_cleve\" real,\n \"tor_fl_ysvik\" real,\n \"karianne_gulliksen\" real,\n \"christer_tornell\" real,\n \"total\" real\n);\n\nQuestion: Name the style for 27" }, { "role": "assistant", "content": "SELECT \"style\" FROM \"week_10\" WHERE \"total\"=27;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_10\" (\n \"couple\" text,\n \"style\" text,\n \"music\" text,\n \"trine_dehli_cleve\" real,\n \"tor_fl_ysvik\" real,\n \"karianne_gulliksen\" real,\n \"christer_tornell\" real,\n \"total\" real\n);\n\nQuestion: Name the most for fl\u00f8ysvik for 8" }, { "role": "assistant", "content": "SELECT MAX(\"tor_fl_ysvik\") FROM \"week_10\" WHERE \"karianne_gulliksen\"=8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_7\" (\n \"couple\" text,\n \"style\" text,\n \"music\" text,\n \"trine_dehli_cleve\" real,\n \"tor_fl_ysvik\" real,\n \"karianne_gulliksen\" real,\n \"christer_tornell\" real,\n \"total\" real\n);\n\nQuestion: how many for floysvik and christer tornell is 7?" }, { "role": "assistant", "content": "SELECT COUNT(\"tor_fl_ysvik\") FROM \"week_7\" WHERE \"christer_tornell\"=7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_7\" (\n \"couple\" text,\n \"style\" text,\n \"music\" text,\n \"trine_dehli_cleve\" real,\n \"tor_fl_ysvik\" real,\n \"karianne_gulliksen\" real,\n \"christer_tornell\" real,\n \"total\" real\n);\n\nQuestion: how many for christer tornell where the total is 30?" }, { "role": "assistant", "content": "SELECT COUNT(\"christer_tornell\") FROM \"week_7\" WHERE \"total\"=30;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_12\" (\n \"couple\" text,\n \"style\" text,\n \"music\" text,\n \"trine_dehli_cleve\" real,\n \"tor_fl_ysvik\" real,\n \"karianne_gulliksen\" real,\n \"christer_tornell\" real,\n \"total\" real\n);\n\nQuestion: What score did Karianne Gulliksen give to the couple that danced to \" la cumparsita \"\u2014 tango argentino?" }, { "role": "assistant", "content": "SELECT \"karianne_gulliksen\" FROM \"week_12\" WHERE \"music\"='\\\" La Cumparsita \\\"\u2014 Tango Argentino';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_12\" (\n \"couple\" text,\n \"style\" text,\n \"music\" text,\n \"trine_dehli_cleve\" real,\n \"tor_fl_ysvik\" real,\n \"karianne_gulliksen\" real,\n \"christer_tornell\" real,\n \"total\" real\n);\n\nQuestion: What is the couple that received a total score of 38?" }, { "role": "assistant", "content": "SELECT \"couple\" FROM \"week_12\" WHERE \"total\"=38;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_12\" (\n \"couple\" text,\n \"style\" text,\n \"music\" text,\n \"trine_dehli_cleve\" real,\n \"tor_fl_ysvik\" real,\n \"karianne_gulliksen\" real,\n \"christer_tornell\" real,\n \"total\" real\n);\n\nQuestion: What is the greatest total score received by aylar & egor when karianne Gulliksen gave an 8?" }, { "role": "assistant", "content": "SELECT MAX(\"total\") FROM \"week_12\" WHERE \"couple\"='Aylar & Egor' AND \"karianne_gulliksen\"=8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_12\" (\n \"couple\" text,\n \"style\" text,\n \"music\" text,\n \"trine_dehli_cleve\" real,\n \"tor_fl_ysvik\" real,\n \"karianne_gulliksen\" real,\n \"christer_tornell\" real,\n \"total\" real\n);\n\nQuestion: What is the total score received by the couple that danced to \" ymca \"\u2014 village people?" }, { "role": "assistant", "content": "SELECT MAX(\"total\") FROM \"week_12\" WHERE \"music\"='\\\" YMCA \\\"\u2014 Village People';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_12\" (\n \"couple\" text,\n \"style\" text,\n \"music\" text,\n \"trine_dehli_cleve\" real,\n \"tor_fl_ysvik\" real,\n \"karianne_gulliksen\" real,\n \"christer_tornell\" real,\n \"total\" real\n);\n\nQuestion: How many different scores did Christer Tornell give to the couple that danced to \" song triste \"\u2014 charlie chaplin?" }, { "role": "assistant", "content": "SELECT COUNT(\"christer_tornell\") FROM \"week_12\" WHERE \"music\"='\\\" Song Triste \\\"\u2014 Charlie Chaplin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_1\" (\n \"couple\" text,\n \"style\" text,\n \"music\" text,\n \"trine_dehli_cleve\" real,\n \"tor_fl_ysvik\" real,\n \"karianne_gulliksen\" real,\n \"christer_tornell\" real,\n \"total\" real\n);\n\nQuestion: What is the largest number for trine dehli cleve?" }, { "role": "assistant", "content": "SELECT MAX(\"trine_dehli_cleve\") FROM \"week_1\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_1\" (\n \"couple\" text,\n \"style\" text,\n \"music\" text,\n \"trine_dehli_cleve\" real,\n \"tor_fl_ysvik\" real,\n \"karianne_gulliksen\" real,\n \"christer_tornell\" real,\n \"total\" real\n);\n\nQuestion: How many couples are there for the song \" i wonder why \"\u2014 curtis stigers?" }, { "role": "assistant", "content": "SELECT COUNT(\"couple\") FROM \"week_1\" WHERE \"music\"='\\\" I Wonder Why \\\"\u2014 Curtis Stigers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_1\" (\n \"couple\" text,\n \"style\" text,\n \"music\" text,\n \"trine_dehli_cleve\" real,\n \"tor_fl_ysvik\" real,\n \"karianne_gulliksen\" real,\n \"christer_tornell\" real,\n \"total\" real\n);\n\nQuestion: What is the largest number for karianne gulliksen?" }, { "role": "assistant", "content": "SELECT MAX(\"karianne_gulliksen\") FROM \"week_1\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_1\" (\n \"couple\" text,\n \"style\" text,\n \"music\" text,\n \"trine_dehli_cleve\" real,\n \"tor_fl_ysvik\" real,\n \"karianne_gulliksen\" real,\n \"christer_tornell\" real,\n \"total\" real\n);\n\nQuestion: How many entries arr there for christer tornell for the song \" you light up my life \"\u2014 whitney houston?" }, { "role": "assistant", "content": "SELECT COUNT(\"christer_tornell\") FROM \"week_1\" WHERE \"music\"='\\\" You Light Up My Life \\\"\u2014 Whitney Houston';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_5\" (\n \"couple\" text,\n \"style\" text,\n \"music\" text,\n \"trine_dehli_cleve\" real,\n \"tor_fl_ysvik\" real,\n \"karianne_gulliksen\" real,\n \"christer_tornell\" real,\n \"total\" real\n);\n\nQuestion: How many styles had a total score of exactly 33?" }, { "role": "assistant", "content": "SELECT COUNT(\"style\") FROM \"week_5\" WHERE \"total\"=33;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_5\" (\n \"couple\" text,\n \"style\" text,\n \"music\" text,\n \"trine_dehli_cleve\" real,\n \"tor_fl_ysvik\" real,\n \"karianne_gulliksen\" real,\n \"christer_tornell\" real,\n \"total\" real\n);\n\nQuestion: Which style led to a score given by Tor Floysvik of 8?" }, { "role": "assistant", "content": "SELECT \"style\" FROM \"week_5\" WHERE \"tor_fl_ysvik\"=8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_5\" (\n \"couple\" text,\n \"style\" text,\n \"music\" text,\n \"trine_dehli_cleve\" real,\n \"tor_fl_ysvik\" real,\n \"karianne_gulliksen\" real,\n \"christer_tornell\" real,\n \"total\" real\n);\n\nQuestion: What is the smallest total score for the Pasodoble style?" }, { "role": "assistant", "content": "SELECT MIN(\"total\") FROM \"week_5\" WHERE \"style\"='Pasodoble';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28680377_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who directed the episode titled \"Playing the Cancer Car\"?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_28680377_2\" WHERE \"title\"='\\\"Playing the Cancer Car\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28680377_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What is the title of the episode watched by 0.88 million U.S. viewers?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_28680377_2\" WHERE \"u_s_viewers_million\"='0.88';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28680377_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many millions of U.S. viewers watched the episode titled \"New Beginnings\"?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_million\" FROM \"table1_28680377_2\" WHERE \"title\"='\\\"New Beginnings\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28680377_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who directed the episode titled \"Everything That Rises Must Converge\"?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_28680377_2\" WHERE \"title\"='\\\"Everything That Rises Must Converge\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28680377_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What is the original air date of the episode that was watched by 0.88 million U.S. viewers? " }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_28680377_2\" WHERE \"u_s_viewers_million\"='0.88';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28680377_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many million U.S. viewers watched \"musical chairs\"?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_million\" FROM \"table1_28680377_3\" WHERE \"title\"='\\\"Musical Chairs\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28680377_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many episodes in the series were titled \"a little death\"?" }, { "role": "assistant", "content": "SELECT COUNT(\"no_in_series\") FROM \"table1_28680377_3\" WHERE \"title\"='\\\"A Little Death\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28680377_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many people directed \"a little death\"?" }, { "role": "assistant", "content": "SELECT COUNT(\"directed_by\") FROM \"table1_28680377_3\" WHERE \"title\"='\\\"A Little Death\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"single_game\" (\n \"rank\" real,\n \"player\" text,\n \"year\" real,\n \"opponent\" text,\n \"passing_yards\" real,\n \"rushing_yards\" real,\n \"total_offense\" real\n);\n\nQuestion: How may players have a passing yard score of 208?" }, { "role": "assistant", "content": "SELECT COUNT(\"player\") FROM \"single_game\" WHERE \"passing_yards\"=208;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"single_game\" (\n \"rank\" real,\n \"player\" text,\n \"year\" real,\n \"opponent\" text,\n \"passing_yards\" real,\n \"rushing_yards\" real,\n \"total_offense\" real\n);\n\nQuestion: What is the name of the player with total offense of 454?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"single_game\" WHERE \"total_offense\"=454;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"single_game\" (\n \"rank\" real,\n \"player\" text,\n \"year\" real,\n \"opponent\" text,\n \"passing_yards\" real,\n \"rushing_yards\" real,\n \"total_offense\" real\n);\n\nQuestion: What is the number of rushing yards when the opponentis Indiana and the player is Denard Robinson?" }, { "role": "assistant", "content": "SELECT MAX(\"rushing_yards\") FROM \"single_game\" WHERE \"opponent\"='Indiana' AND \"player\"='Denard Robinson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"single_game\" (\n \"rank\" real,\n \"player\" text,\n \"year\" real,\n \"opponent\" text,\n \"passing_yards\" real,\n \"rushing_yards\" real,\n \"total_offense\" real\n);\n\nQuestion: What is the number of total offense when the opponentis Penn State?" }, { "role": "assistant", "content": "SELECT MAX(\"total_offense\") FROM \"single_game\" WHERE \"opponent\"='Penn State';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"single_game\" (\n \"rank\" real,\n \"player\" text,\n \"year\" real,\n \"opponent\" text,\n \"passing_yards\" real,\n \"rushing_yards\" real,\n \"total_offense\" real\n);\n\nQuestion: How many rushing yards are listed when the passing yards are 244?" }, { "role": "assistant", "content": "SELECT \"rushing_yards\" FROM \"single_game\" WHERE \"passing_yards\"=244;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"reservoir\" text,\n \"basin\" text,\n \"location\" text,\n \"type\" text,\n \"height_m\" text,\n \"length_along_the_top_m\" text,\n \"drainage_basin_km\" text,\n \"reservoir_surface_ha\" text,\n \"volume_hm\" text\n);\n\nQuestion: What is listed in drainage basin when the type is gravity and the reservoir surface is 34.36?" }, { "role": "assistant", "content": "SELECT \"drainage_basin_km\" FROM \"see_also\" WHERE \"type\"='Gravity' AND \"reservoir_surface_ha\"='34.36';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"reservoir\" text,\n \"basin\" text,\n \"location\" text,\n \"type\" text,\n \"height_m\" text,\n \"length_along_the_top_m\" text,\n \"drainage_basin_km\" text,\n \"reservoir_surface_ha\" text,\n \"volume_hm\" text\n);\n\nQuestion: What is the drainage basin when the reservoir suface is 6.14?" }, { "role": "assistant", "content": "SELECT \"drainage_basin_km\" FROM \"see_also\" WHERE \"reservoir_surface_ha\"='6.14';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"reservoir\" text,\n \"basin\" text,\n \"location\" text,\n \"type\" text,\n \"height_m\" text,\n \"length_along_the_top_m\" text,\n \"drainage_basin_km\" text,\n \"reservoir_surface_ha\" text,\n \"volume_hm\" text\n);\n\nQuestion: What is the volume when the resrvoir is Tanes?" }, { "role": "assistant", "content": "SELECT \"volume_hm\" FROM \"see_also\" WHERE \"reservoir\"='Tanes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2869843_1\" (\n \"model\" text,\n \"in\" text,\n \"mm\" text,\n \"caliber\" text,\n \"standard\" real,\n \"w_sleeve\" text,\n \"black\" text,\n \"olive_drab\" text,\n \"bi_tone\" text,\n \"dark_earth\" text\n);\n\nQuestion: are there bi-tone is there's no olive drab and the caliber is 9\u00d719mm parabellum and model is xdm 5.25 competition" }, { "role": "assistant", "content": "SELECT \"bi_tone\" FROM \"table1_2869843_1\" WHERE \"olive_drab\"='No' AND \"caliber\"='9\u00d719mm Parabellum' AND \"model\"='XDM 5.25 Competition';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"modern_constellations\" (\n \"constellation\" text,\n \"iau_abbreviation\" text,\n \"other_abbreviation\" text,\n \"genitive\" text,\n \"family\" text,\n \"origin\" text,\n \"meaning\" text,\n \"brightest_star\" text\n);\n\nQuestion: What is the family of the constellation that has lyncis /\u02c8l\u026ans\u0268s/ as genitive?" }, { "role": "assistant", "content": "SELECT \"family\" FROM \"modern_constellations\" WHERE \"genitive\"='Lyncis /\u02c8l\u026ans\u0268s/';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"modern_constellations\" (\n \"constellation\" text,\n \"iau_abbreviation\" text,\n \"other_abbreviation\" text,\n \"genitive\" text,\n \"family\" text,\n \"origin\" text,\n \"meaning\" text,\n \"brightest_star\" text\n);\n\nQuestion: What is the origin of the constellation that can be abbreviated to tele?" }, { "role": "assistant", "content": "SELECT \"origin\" FROM \"modern_constellations\" WHERE \"other_abbreviation\"='Tele';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"modern_constellations\" (\n \"constellation\" text,\n \"iau_abbreviation\" text,\n \"other_abbreviation\" text,\n \"genitive\" text,\n \"family\" text,\n \"origin\" text,\n \"meaning\" text,\n \"brightest_star\" text\n);\n\nQuestion: What is the other abbreviation of the constellation that has \u03b2 trianguli as its brightest star?" }, { "role": "assistant", "content": "SELECT \"other_abbreviation\" FROM \"modern_constellations\" WHERE \"brightest_star\"='\u03b2 Trianguli';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"modern_constellations\" (\n \"constellation\" text,\n \"iau_abbreviation\" text,\n \"other_abbreviation\" text,\n \"genitive\" text,\n \"family\" text,\n \"origin\" text,\n \"meaning\" text,\n \"brightest_star\" text\n);\n\nQuestion: What is the brightest star of the constellation that means archer?" }, { "role": "assistant", "content": "SELECT \"brightest_star\" FROM \"modern_constellations\" WHERE \"meaning\"='archer';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"modern_constellations\" (\n \"constellation\" text,\n \"iau_abbreviation\" text,\n \"other_abbreviation\" text,\n \"genitive\" text,\n \"family\" text,\n \"origin\" text,\n \"meaning\" text,\n \"brightest_star\" text\n);\n\nQuestion: What is the other abbreviation of the constellation that has hydrae /\u02c8ha\u026adri\u02d0/ as genitive?" }, { "role": "assistant", "content": "SELECT \"other_abbreviation\" FROM \"modern_constellations\" WHERE \"genitive\"='Hydrae /\u02c8ha\u026adri\u02d0/';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"modern_constellations\" (\n \"constellation\" text,\n \"iau_abbreviation\" text,\n \"other_abbreviation\" text,\n \"genitive\" text,\n \"family\" text,\n \"origin\" text,\n \"meaning\" text,\n \"brightest_star\" text\n);\n\nQuestion: What is the meaning of the constellation that has puppis /\u02c8p\u028cp\u0268s/ as genitive?" }, { "role": "assistant", "content": "SELECT \"meaning\" FROM \"modern_constellations\" WHERE \"genitive\"='Puppis /\u02c8p\u028cp\u0268s/';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"out_of_the_blue_discography\" (\n \"track_no\" real,\n \"track\" text,\n \"original_artist\" text,\n \"soloist_s\" text,\n \"vocal_percussionist\" text,\n \"arranger_s\" text\n);\n\nQuestion: How many track numbers were called song 2?" }, { "role": "assistant", "content": "SELECT COUNT(\"track_no\") FROM \"out_of_the_blue_discography\" WHERE \"track\"='Song 2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"out_of_the_blue_discography\" (\n \"track_no\" real,\n \"track\" text,\n \"original_artist\" text,\n \"soloist_s\" text,\n \"vocal_percussionist\" text,\n \"arranger_s\" text\n);\n\nQuestion: Who was the vocal percussionist when stevie wonder was the original artist?" }, { "role": "assistant", "content": "SELECT \"vocal_percussionist\" FROM \"out_of_the_blue_discography\" WHERE \"original_artist\"='Stevie Wonder';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"out_of_the_blue_discography\" (\n \"track_no\" real,\n \"track\" text,\n \"original_artist\" text,\n \"soloist_s\" text,\n \"vocal_percussionist\" text,\n \"arranger_s\" text\n);\n\nQuestion: What track name had Terry Tamm as the soloist?" }, { "role": "assistant", "content": "SELECT \"track\" FROM \"out_of_the_blue_discography\" WHERE \"soloist_s\"='Terry Tamm';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bowl_games\" (\n \"bowl_game\" text,\n \"date\" text,\n \"stadium\" text,\n \"city\" text,\n \"television\" text,\n \"matchups_results\" text,\n \"attendance\" real,\n \"payout_us\" text\n);\n\nQuestion: What was the date of the game that had a result of Army 16, SMU 14?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"bowl_games\" WHERE \"matchups_results\"='Army 16, SMU 14';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bowl_games\" (\n \"bowl_game\" text,\n \"date\" text,\n \"stadium\" text,\n \"city\" text,\n \"television\" text,\n \"matchups_results\" text,\n \"attendance\" real,\n \"payout_us\" text\n);\n\nQuestion: What was the city whose stadium is Gerald J. Ford Stadium?" }, { "role": "assistant", "content": "SELECT \"city\" FROM \"bowl_games\" WHERE \"stadium\"='Gerald J. Ford Stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"width_wise_details_of_government_roads_a\" (\n \"sl_no\" real,\n \"category_wise\" text,\n \"single_lane\" real,\n \"intermediate_lane\" real,\n \"double_lane\" real,\n \"multi_lane\" real,\n \"total\" real\n);\n\nQuestion: What is every category wise when the multi lane is 677?" }, { "role": "assistant", "content": "SELECT \"category_wise\" FROM \"width_wise_details_of_government_roads_a\" WHERE \"multi_lane\"=677;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"width_wise_details_of_government_roads_a\" (\n \"sl_no\" real,\n \"category_wise\" text,\n \"single_lane\" real,\n \"intermediate_lane\" real,\n \"double_lane\" real,\n \"multi_lane\" real,\n \"total\" real\n);\n\nQuestion: What is the highest value for multi lane if category wise is major district roads?" }, { "role": "assistant", "content": "SELECT MAX(\"multi_lane\") FROM \"width_wise_details_of_government_roads_a\" WHERE \"category_wise\"='Major district roads';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"width_wise_details_of_government_roads_a\" (\n \"sl_no\" real,\n \"category_wise\" text,\n \"single_lane\" real,\n \"intermediate_lane\" real,\n \"double_lane\" real,\n \"multi_lane\" real,\n \"total\" real\n);\n\nQuestion: What is the least total?" }, { "role": "assistant", "content": "SELECT MIN(\"total\") FROM \"width_wise_details_of_government_roads_a\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"players\" (\n \"player\" text,\n \"nation\" text,\n \"te_be_career\" text,\n \"league_matches\" real,\n \"league_goals\" real,\n \"cup_matches\" real,\n \"cup_goals\" real\n);\n\nQuestion: What are the years of TeBe career for the players whose league matches are exactly 163?" }, { "role": "assistant", "content": "SELECT \"te_be_career\" FROM \"players\" WHERE \"league_matches\"=163;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"players\" (\n \"player\" text,\n \"nation\" text,\n \"te_be_career\" text,\n \"league_matches\" real,\n \"league_goals\" real,\n \"cup_matches\" real,\n \"cup_goals\" real\n);\n\nQuestion: What is the number of league goals for players with 10 league matches and a TeBe career of 2003?" }, { "role": "assistant", "content": "SELECT \"league_goals\" FROM \"players\" WHERE \"league_matches\"=10 AND \"te_be_career\"='2003';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28742659_2\" (\n \"first_air_date\" text,\n \"reward\" text,\n \"immunity\" text,\n \"eliminated\" text,\n \"vote\" text,\n \"finish\" text\n);\n\nQuestion: What is listed in eliminated when the finish is 15th voted out 9th jury Member Day 46?" }, { "role": "assistant", "content": "SELECT \"eliminated\" FROM \"table1_28742659_2\" WHERE \"finish\"='15th Voted Out 9th Jury Member Day 46';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28742659_2\" (\n \"first_air_date\" text,\n \"reward\" text,\n \"immunity\" text,\n \"eliminated\" text,\n \"vote\" text,\n \"finish\" text\n);\n\nQuestion: What is listed in reward when the finish is listed at 13th voted out 6th jury Member Day 43?" }, { "role": "assistant", "content": "SELECT \"reward\" FROM \"table1_28742659_2\" WHERE \"finish\"='13th Voted Out 6th Jury Member Day 43';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28742659_2\" (\n \"first_air_date\" text,\n \"reward\" text,\n \"immunity\" text,\n \"eliminated\" text,\n \"vote\" text,\n \"finish\" text\n);\n\nQuestion: What is the name of immunity when the finish is 3rd voted out day 9?" }, { "role": "assistant", "content": "SELECT \"immunity\" FROM \"table1_28742659_2\" WHERE \"finish\"='3rd Voted Out Day 9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28742659_2\" (\n \"first_air_date\" text,\n \"reward\" text,\n \"immunity\" text,\n \"eliminated\" text,\n \"vote\" text,\n \"finish\" text\n);\n\nQuestion: What is the vote number when immunity listed as David and reward is listed as none?" }, { "role": "assistant", "content": "SELECT \"vote\" FROM \"table1_28742659_2\" WHERE \"immunity\"='David' AND \"reward\"='None';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"division_two\" (\n \"athens_xi\" text,\n \"pifa_colaba_fc_u_17\" text,\n \"tata_power\" text,\n \"dadar_xi_b\" text,\n \"idbi\" text,\n \"world_network_services\" text,\n \"united_fc\" text,\n \"good_shepherd\" text\n);\n\nQuestion: what is the united fc wehre pifa colaba is maratha united?" }, { "role": "assistant", "content": "SELECT \"united_fc\" FROM \"division_two\" WHERE \"pifa_colaba_fc_u_17\"='Maratha United';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"division_two\" (\n \"athens_xi\" text,\n \"pifa_colaba_fc_u_17\" text,\n \"tata_power\" text,\n \"dadar_xi_b\" text,\n \"idbi\" text,\n \"world_network_services\" text,\n \"united_fc\" text,\n \"good_shepherd\" text\n);\n\nQuestion: what is the united fc where pifa colaba is sporting options?" }, { "role": "assistant", "content": "SELECT \"united_fc\" FROM \"division_two\" WHERE \"pifa_colaba_fc_u_17\"='Sporting Options';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"division_two\" (\n \"athens_xi\" text,\n \"pifa_colaba_fc_u_17\" text,\n \"tata_power\" text,\n \"dadar_xi_b\" text,\n \"idbi\" text,\n \"world_network_services\" text,\n \"united_fc\" text,\n \"good_shepherd\" text\n);\n\nQuestion: what is the dadar xi b where pifa colaba is sporting options?" }, { "role": "assistant", "content": "SELECT \"dadar_xi_b\" FROM \"division_two\" WHERE \"pifa_colaba_fc_u_17\"='Sporting Options';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"division_two\" (\n \"athens_xi\" text,\n \"pifa_colaba_fc_u_17\" text,\n \"tata_power\" text,\n \"dadar_xi_b\" text,\n \"idbi\" text,\n \"world_network_services\" text,\n \"united_fc\" text,\n \"good_shepherd\" text\n);\n\nQuestion: what is the athens xi where dada xi b is strikers fc?" }, { "role": "assistant", "content": "SELECT \"athens_xi\" FROM \"division_two\" WHERE \"dadar_xi_b\"='Strikers FC';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"division_two\" (\n \"athens_xi\" text,\n \"pifa_colaba_fc_u_17\" text,\n \"tata_power\" text,\n \"dadar_xi_b\" text,\n \"idbi\" text,\n \"world_network_services\" text,\n \"united_fc\" text,\n \"good_shepherd\" text\n);\n\nQuestion: what is the dadar xi b where the good shepherd is sea liner fc?" }, { "role": "assistant", "content": "SELECT \"dadar_xi_b\" FROM \"division_two\" WHERE \"good_shepherd\"='Sea Liner FC';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"coaches\" (\n \"team\" text,\n \"head_coach\" text,\n \"years_at_school\" real,\n \"overall_record\" text,\n \"record_at_school\" text,\n \"acc_record\" text\n);\n\nQuestion: What is the Record at School of Tom O'Brien's team?" }, { "role": "assistant", "content": "SELECT \"record_at_school\" FROM \"coaches\" WHERE \"head_coach\"='Tom O''Brien';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"coaches\" (\n \"team\" text,\n \"head_coach\" text,\n \"years_at_school\" real,\n \"overall_record\" text,\n \"record_at_school\" text,\n \"acc_record\" text\n);\n\nQuestion: How many values were used to express the years at school of the Maryland team?" }, { "role": "assistant", "content": "SELECT COUNT(\"years_at_school\") FROM \"coaches\" WHERE \"team\"='Maryland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"coaches\" (\n \"team\" text,\n \"head_coach\" text,\n \"years_at_school\" real,\n \"overall_record\" text,\n \"record_at_school\" text,\n \"acc_record\" text\n);\n\nQuestion: What is the record in the atlantic coast conference for the Miami team?" }, { "role": "assistant", "content": "SELECT \"acc_record\" FROM \"coaches\" WHERE \"team\"='Miami';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"coaches\" (\n \"team\" text,\n \"head_coach\" text,\n \"years_at_school\" real,\n \"overall_record\" text,\n \"record_at_school\" text,\n \"acc_record\" text\n);\n\nQuestion: How many values reflect the overall record of the team coached by Frank Beamer?" }, { "role": "assistant", "content": "SELECT COUNT(\"overall_record\") FROM \"coaches\" WHERE \"head_coach\"='Frank Beamer';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"member_schools\" (\n \"institution\" text,\n \"nickname\" text,\n \"location\" text,\n \"founded\" real,\n \"joined_acc\" real,\n \"school_type\" text,\n \"acc_football_titles\" real\n);\n\nQuestion: what type over school is Clemson?" }, { "role": "assistant", "content": "SELECT \"school_type\" FROM \"member_schools\" WHERE \"institution\"='Clemson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"member_schools\" (\n \"institution\" text,\n \"nickname\" text,\n \"location\" text,\n \"founded\" real,\n \"joined_acc\" real,\n \"school_type\" text,\n \"acc_football_titles\" real\n);\n\nQuestion: what year did north carolina institution join the acc?" }, { "role": "assistant", "content": "SELECT MAX(\"joined_acc\") FROM \"member_schools\" WHERE \"institution\"='North Carolina';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"member_schools\" (\n \"institution\" text,\n \"nickname\" text,\n \"location\" text,\n \"founded\" real,\n \"joined_acc\" real,\n \"school_type\" text,\n \"acc_football_titles\" real\n);\n\nQuestion: how many acc football titles have been won by the institution nicknamed tar heels?" }, { "role": "assistant", "content": "SELECT \"acc_football_titles\" FROM \"member_schools\" WHERE \"nickname\"='Tar Heels';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"member_schools\" (\n \"institution\" text,\n \"nickname\" text,\n \"location\" text,\n \"founded\" real,\n \"joined_acc\" real,\n \"school_type\" text,\n \"acc_football_titles\" real\n);\n\nQuestion: what type of school is the institution nicknamed seminoles?" }, { "role": "assistant", "content": "SELECT \"school_type\" FROM \"member_schools\" WHERE \"nickname\"='Seminoles';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"member_schools\" (\n \"institution\" text,\n \"nickname\" text,\n \"location\" text,\n \"founded\" real,\n \"joined_acc\" real,\n \"school_type\" text,\n \"acc_football_titles\" real\n);\n\nQuestion: when did the institution at chapel hill, North carolina join acc?" }, { "role": "assistant", "content": "SELECT \"joined_acc\" FROM \"member_schools\" WHERE \"location\"='Chapel Hill, North Carolina';" } ]
[ { "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 were the supersonics record at game 2?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"game\"=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 \"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 most amount of games played this season?" }, { "role": "assistant", "content": "SELECT MAX(\"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 highest assists in game against Utah?" }, { "role": "assistant", "content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"team\"='Utah';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tbm_regions\" (\n \"region_name\" text,\n \"state_name\" text,\n \"region_num\" real,\n \"page_count\" real,\n \"regional_page_num\" text\n);\n\nQuestion: In the North Central region, what are the regional page #'s?" }, { "role": "assistant", "content": "SELECT \"regional_page_num\" FROM \"tbm_regions\" WHERE \"region_name\"='North Central';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tbm_regions\" (\n \"region_name\" text,\n \"state_name\" text,\n \"region_num\" real,\n \"page_count\" real,\n \"regional_page_num\" text\n);\n\nQuestion: What states have a regional page # of 1, 5-7, 9-11, 13-15?" }, { "role": "assistant", "content": "SELECT \"state_name\" FROM \"tbm_regions\" WHERE \"regional_page_num\"='1, 5-7, 9-11, 13-15';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tbm_regions\" (\n \"region_name\" text,\n \"state_name\" text,\n \"region_num\" real,\n \"page_count\" real,\n \"regional_page_num\" text\n);\n\nQuestion: Which region has a regional page # of 1-3, 5-7, 9-11, 13-15?" }, { "role": "assistant", "content": "SELECT \"region_name\" FROM \"tbm_regions\" WHERE \"regional_page_num\"='1-3, 5-7, 9-11, 13-15';" } ]