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 \"nominees\" (\n \"year_ceremony\" text,\n \"actor_actress\" text,\n \"category\" text,\n \"film_title_used_in_nomination\" text,\n \"result\" text\n);\n\nQuestion: Who was nominated for best supporting actor in the movie Going My Way?" }, { "role": "assistant", "content": "SELECT \"actor_actress\" FROM \"nominees\" WHERE \"film_title_used_in_nomination\"='Going My Way' AND \"category\"='Best Supporting Actor';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"duration\" (\n \"term_abroad\" text,\n \"2000_01\" text,\n \"2001_02\" text,\n \"2002_03\" text,\n \"2003_04\" text,\n \"2004_05\" text,\n \"2005_06\" text,\n \"2006_07\" text,\n \"2007_08\" text,\n \"2008_09\" text\n);\n\nQuestion: When in 2003 to 2004 the January team is 5.7 what is it through 2001 through 2002?" }, { "role": "assistant", "content": "SELECT \"2001_02\" FROM \"duration\" WHERE \"2003_04\"='5.7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"duration\" (\n \"term_abroad\" text,\n \"2000_01\" text,\n \"2001_02\" text,\n \"2002_03\" text,\n \"2003_04\" text,\n \"2004_05\" text,\n \"2005_06\" text,\n \"2006_07\" text,\n \"2007_08\" text,\n \"2008_09\" text\n);\n\nQuestion: When through 2005 to 2006 it is 5.4 what team is it?" }, { "role": "assistant", "content": "SELECT \"term_abroad\" FROM \"duration\" WHERE \"2005_06\"='5.4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"duration\" (\n \"term_abroad\" text,\n \"2000_01\" text,\n \"2001_02\" text,\n \"2002_03\" text,\n \"2003_04\" text,\n \"2004_05\" text,\n \"2005_06\" text,\n \"2006_07\" text,\n \"2007_08\" text,\n \"2008_09\" text\n);\n\nQuestion: When through 2006 to 2007 the duration of one quarter is 3.4 what is it through 2007 to 2008?" }, { "role": "assistant", "content": "SELECT \"2007_08\" FROM \"duration\" WHERE \"2006_07\"='3.4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"duration\" (\n \"term_abroad\" text,\n \"2000_01\" text,\n \"2001_02\" text,\n \"2002_03\" text,\n \"2003_04\" text,\n \"2004_05\" text,\n \"2005_06\" text,\n \"2006_07\" text,\n \"2007_08\" text,\n \"2008_09\" text\n);\n\nQuestion: When through 2005 to 2006 the duration of the academic year is 5.3 what is it through 2000 to 2001?" }, { "role": "assistant", "content": "SELECT \"2000_01\" FROM \"duration\" WHERE \"2005_06\"='5.3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"duration\" (\n \"term_abroad\" text,\n \"2000_01\" text,\n \"2001_02\" text,\n \"2002_03\" text,\n \"2003_04\" text,\n \"2004_05\" text,\n \"2005_06\" text,\n \"2006_07\" text,\n \"2007_08\" text,\n \"2008_09\" text\n);\n\nQuestion: When through 2001 to 2002 the duration is 0.5 what is the term abroad?" }, { "role": "assistant", "content": "SELECT \"term_abroad\" FROM \"duration\" WHERE \"2001_02\"='0.5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18646432_1\" (\n \"series_num\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" real\n);\n\nQuestion: Name the series number that aired on november 11, 1996" }, { "role": "assistant", "content": "SELECT \"series_num\" FROM \"table1_18646432_1\" WHERE \"original_air_date\"='November 11, 1996';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18646432_4\" (\n \"series_num\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" real\n);\n\nQuestion: Who wrote the episode originally aired on September 29, 1999?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_18646432_4\" WHERE \"original_air_date\"='September 29, 1999';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18646432_4\" (\n \"series_num\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" real\n);\n\nQuestion: What is the name of the episode originally aired on September 29, 1999?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_18646432_4\" WHERE \"original_air_date\"='September 29, 1999';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18646432_4\" (\n \"series_num\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" real\n);\n\nQuestion: What is the production code number for episode named \"chilly scenes of winter golf\"?" }, { "role": "assistant", "content": "SELECT MIN(\"prod_code\") FROM \"table1_18646432_4\" WHERE \"title\"='\\\"Chilly Scenes of Winter Golf\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18660332_2\" (\n \"ethnic_group\" text,\n \"2001_pct\" text,\n \"2001_people\" text,\n \"2006_pct\" text,\n \"2006_people\" real\n);\n\nQuestion: How many percentages were recorded under 2006 when in 2001 was 14.6%?" }, { "role": "assistant", "content": "SELECT COUNT(\"2006_pct\") FROM \"table1_18660332_2\" WHERE \"2001_pct\"='14.6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18660332_2\" (\n \"ethnic_group\" text,\n \"2001_pct\" text,\n \"2001_people\" text,\n \"2006_pct\" text,\n \"2006_people\" real\n);\n\nQuestion: What is the ethnic group that in 2001 had 117,513?" }, { "role": "assistant", "content": "SELECT \"ethnic_group\" FROM \"table1_18660332_2\" WHERE \"2001_people\"='117,513';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18660332_2\" (\n \"ethnic_group\" text,\n \"2001_pct\" text,\n \"2001_people\" text,\n \"2006_pct\" text,\n \"2006_people\" real\n);\n\nQuestion: How many numbers were recorded under 2001 when 2006 was 18.9?" }, { "role": "assistant", "content": "SELECT COUNT(\"2001_pct\") FROM \"table1_18660332_2\" WHERE \"2006_pct\"='18.9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18660332_2\" (\n \"ethnic_group\" text,\n \"2001_pct\" text,\n \"2001_people\" text,\n \"2006_pct\" text,\n \"2006_people\" real\n);\n\nQuestion: What was the percentage in 2006 when in 2001 was 66.9 %?" }, { "role": "assistant", "content": "SELECT \"2006_pct\" FROM \"table1_18660332_2\" WHERE \"2001_pct\"='66.9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_8_teams_qualified_for_team_finals\" (\n \"position\" text,\n \"country\" text,\n \"floor\" text,\n \"pommel_horse\" text,\n \"rings\" text,\n \"vault\" text,\n \"parallel_bars\" text,\n \"horizontal_bar\" text,\n \"team_total\" text\n);\n\nQuestion: If the rings is 58.975, what is the number for the horizontal bar?" }, { "role": "assistant", "content": "SELECT \"horizontal_bar\" FROM \"top_8_teams_qualified_for_team_finals\" WHERE \"rings\"='58.975';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_8_teams_qualified_for_team_finals\" (\n \"position\" text,\n \"country\" text,\n \"floor\" text,\n \"pommel_horse\" text,\n \"rings\" text,\n \"vault\" text,\n \"parallel_bars\" text,\n \"horizontal_bar\" text,\n \"team_total\" text\n);\n\nQuestion: How many positions was the United States in?" }, { "role": "assistant", "content": "SELECT COUNT(\"position\") FROM \"top_8_teams_qualified_for_team_finals\" WHERE \"country\"='United States';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_8_teams_qualified_for_team_finals\" (\n \"position\" text,\n \"country\" text,\n \"floor\" text,\n \"pommel_horse\" text,\n \"rings\" text,\n \"vault\" text,\n \"parallel_bars\" text,\n \"horizontal_bar\" text,\n \"team_total\" text\n);\n\nQuestion: If the rings are 60.500, what is the parallel bars number?" }, { "role": "assistant", "content": "SELECT \"parallel_bars\" FROM \"top_8_teams_qualified_for_team_finals\" WHERE \"rings\"='60.500';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_8_teams_qualified_for_team_finals\" (\n \"position\" text,\n \"country\" text,\n \"floor\" text,\n \"pommel_horse\" text,\n \"rings\" text,\n \"vault\" text,\n \"parallel_bars\" text,\n \"horizontal_bar\" text,\n \"team_total\" text\n);\n\nQuestion: If the rings number is 60.000, what is the number for the vault?" }, { "role": "assistant", "content": "SELECT COUNT(\"vault\") FROM \"top_8_teams_qualified_for_team_finals\" WHERE \"rings\"='60.000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_8_teams_qualified_for_team_finals\" (\n \"position\" text,\n \"country\" text,\n \"floor\" text,\n \"pommel_horse\" text,\n \"rings\" text,\n \"vault\" text,\n \"parallel_bars\" text,\n \"horizontal_bar\" text,\n \"team_total\" text\n);\n\nQuestion: If the parallel bars numbers is 61.500, what is the total number for the flood?" }, { "role": "assistant", "content": "SELECT COUNT(\"floor\") FROM \"top_8_teams_qualified_for_team_finals\" WHERE \"parallel_bars\"='61.500';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"per_country\" (\n \"rank\" text,\n \"country\" text,\n \"jerseys\" real,\n \"vuelta_wins\" real,\n \"points\" real,\n \"ko_m\" real,\n \"combo\" real,\n \"most_recent_cyclist\" text,\n \"most_recent_date\" text,\n \"different_holders\" real\n);\n\nQuestion: When united kingdom is the country what is the most recent date?" }, { "role": "assistant", "content": "SELECT \"most_recent_date\" FROM \"per_country\" WHERE \"country\"='United Kingdom';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"per_country\" (\n \"rank\" text,\n \"country\" text,\n \"jerseys\" real,\n \"vuelta_wins\" real,\n \"points\" real,\n \"ko_m\" real,\n \"combo\" real,\n \"most_recent_cyclist\" text,\n \"most_recent_date\" text,\n \"different_holders\" real\n);\n\nQuestion: When 3 is the rank what is the highest combo?" }, { "role": "assistant", "content": "SELECT MAX(\"combo\") FROM \"per_country\" WHERE \"rank\"='3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"per_country\" (\n \"rank\" text,\n \"country\" text,\n \"jerseys\" real,\n \"vuelta_wins\" real,\n \"points\" real,\n \"ko_m\" real,\n \"combo\" real,\n \"most_recent_cyclist\" text,\n \"most_recent_date\" text,\n \"different_holders\" real\n);\n\nQuestion: When 12 is the rank who is the most recent cyclist?" }, { "role": "assistant", "content": "SELECT \"most_recent_cyclist\" FROM \"per_country\" WHERE \"rank\"='12';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"per_country\" (\n \"rank\" text,\n \"country\" text,\n \"jerseys\" real,\n \"vuelta_wins\" real,\n \"points\" real,\n \"ko_m\" real,\n \"combo\" real,\n \"most_recent_cyclist\" text,\n \"most_recent_date\" text,\n \"different_holders\" real\n);\n\nQuestion: When 155 is the jersey what is the highest amount of different holders?" }, { "role": "assistant", "content": "SELECT MAX(\"different_holders\") FROM \"per_country\" WHERE \"jerseys\"=155;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wobbe_index_of_common_fuel_gases\" (\n \"fuel_gas\" text,\n \"upper_index_kcal_nm_3\" real,\n \"lower_index_kcal_nm_3\" real,\n \"upper_index_mj_nm_3\" text,\n \"lower_index_mj_nm_3\" text\n);\n\nQuestion: Name the upper index kcal/nm3 for 62.47" }, { "role": "assistant", "content": "SELECT \"upper_index_kcal_nm_3\" FROM \"wobbe_index_of_common_fuel_gases\" WHERE \"lower_index_mj_nm_3\"='62.47';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wobbe_index_of_common_fuel_gases\" (\n \"fuel_gas\" text,\n \"upper_index_kcal_nm_3\" real,\n \"lower_index_kcal_nm_3\" real,\n \"upper_index_mj_nm_3\" text,\n \"lower_index_mj_nm_3\" text\n);\n\nQuestion: Name the fuel gas for upper index mj/nm3 for 92.32" }, { "role": "assistant", "content": "SELECT \"fuel_gas\" FROM \"wobbe_index_of_common_fuel_gases\" WHERE \"upper_index_mj_nm_3\"='92.32';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wobbe_index_of_common_fuel_gases\" (\n \"fuel_gas\" text,\n \"upper_index_kcal_nm_3\" real,\n \"lower_index_kcal_nm_3\" real,\n \"upper_index_mj_nm_3\" text,\n \"lower_index_mj_nm_3\" text\n);\n\nQuestion: Name the lower index kcal/ nm3 for 61.32" }, { "role": "assistant", "content": "SELECT \"lower_index_kcal_nm_3\" FROM \"wobbe_index_of_common_fuel_gases\" WHERE \"upper_index_mj_nm_3\"='61.32';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"all_time_professional_quarterback_passin\" (\n \"rank\" real,\n \"name\" text,\n \"tenure\" text,\n \"leagues\" text,\n \"attempts\" real,\n \"completions\" real,\n \"comp_pct\" text,\n \"touchdowns\" real,\n \"interceptions\" real,\n \"yardage\" real,\n \"qb_rating\" text\n);\n\nQuestion: What is the Quarterback rating of the player who got a comp percentage of 62.0?" }, { "role": "assistant", "content": "SELECT \"qb_rating\" FROM \"all_time_professional_quarterback_passin\" WHERE \"comp_pct\"='62.0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"all_time_professional_quarterback_passin\" (\n \"rank\" real,\n \"name\" text,\n \"tenure\" text,\n \"leagues\" text,\n \"attempts\" real,\n \"completions\" real,\n \"comp_pct\" text,\n \"touchdowns\" real,\n \"interceptions\" real,\n \"yardage\" real,\n \"qb_rating\" text\n);\n\nQuestion: What is the rank of the player who got 58179 in yardage?" }, { "role": "assistant", "content": "SELECT \"rank\" FROM \"all_time_professional_quarterback_passin\" WHERE \"yardage\"=58179;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"all_time_professional_quarterback_passin\" (\n \"rank\" real,\n \"name\" text,\n \"tenure\" text,\n \"leagues\" text,\n \"attempts\" real,\n \"completions\" real,\n \"comp_pct\" text,\n \"touchdowns\" real,\n \"interceptions\" real,\n \"yardage\" real,\n \"qb_rating\" text\n);\n\nQuestion: In which league would you find the player with a comp percentage of 54.0?" }, { "role": "assistant", "content": "SELECT \"leagues\" FROM \"all_time_professional_quarterback_passin\" WHERE \"comp_pct\"='54.0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18666752_3\" (\n \"nation\" text,\n \"rider\" text,\n \"horse\" text,\n \"cross_country_penalties\" text,\n \"total_penalties\" text,\n \"total_team_penalties\" text,\n \"team_rank\" real\n);\n\nQuestion: Which nation is where rider phillip dutton from?" }, { "role": "assistant", "content": "SELECT \"nation\" FROM \"table1_18666752_3\" WHERE \"rider\"='Phillip Dutton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18666752_3\" (\n \"nation\" text,\n \"rider\" text,\n \"horse\" text,\n \"cross_country_penalties\" text,\n \"total_penalties\" text,\n \"total_team_penalties\" text,\n \"team_rank\" real\n);\n\nQuestion: Which nation is where the horse parkmore ed is?" }, { "role": "assistant", "content": "SELECT \"nation\" FROM \"table1_18666752_3\" WHERE \"horse\"='Parkmore Ed';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18666752_3\" (\n \"nation\" text,\n \"rider\" text,\n \"horse\" text,\n \"cross_country_penalties\" text,\n \"total_penalties\" text,\n \"total_team_penalties\" text,\n \"team_rank\" real\n);\n\nQuestion: How many total team penalties are there when cross country penalties is 30.40?" }, { "role": "assistant", "content": "SELECT \"total_team_penalties\" FROM \"table1_18666752_3\" WHERE \"cross_country_penalties\"='30.40';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18666752_3\" (\n \"nation\" text,\n \"rider\" text,\n \"horse\" text,\n \"cross_country_penalties\" text,\n \"total_penalties\" text,\n \"total_team_penalties\" text,\n \"team_rank\" real\n);\n\nQuestion: Who is the rider where the horse is galan de sauvagere?" }, { "role": "assistant", "content": "SELECT \"rider\" FROM \"table1_18666752_3\" WHERE \"horse\"='Galan De Sauvagere';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18666752_3\" (\n \"nation\" text,\n \"rider\" text,\n \"horse\" text,\n \"cross_country_penalties\" text,\n \"total_penalties\" text,\n \"total_team_penalties\" text,\n \"team_rank\" real\n);\n\nQuestion: How many penalties are there when Eric Vigeanel is the rider?" }, { "role": "assistant", "content": "SELECT COUNT(\"total_penalties\") FROM \"table1_18666752_3\" WHERE \"rider\"='Eric Vigeanel';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"date\" real,\n \"single\" text,\n \"backed_with\" text,\n \"record_label\" text,\n \"format\" text,\n \"other_details\" text\n);\n\nQuestion: What record label corresponds to the single \"I can't stay\"?" }, { "role": "assistant", "content": "SELECT \"record_label\" FROM \"singles\" WHERE \"single\"='I Can''t Stay';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"date\" real,\n \"single\" text,\n \"backed_with\" text,\n \"record_label\" text,\n \"format\" text,\n \"other_details\" text\n);\n\nQuestion: What format for the release that had 2000 copies?" }, { "role": "assistant", "content": "SELECT \"format\" FROM \"singles\" WHERE \"other_details\"='2000 copies';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"date\" real,\n \"single\" text,\n \"backed_with\" text,\n \"record_label\" text,\n \"format\" text,\n \"other_details\" text\n);\n\nQuestion: What single(s) released in 2008 and had 4000 copies?" }, { "role": "assistant", "content": "SELECT \"single\" FROM \"singles\" WHERE \"date\"=2008 AND \"other_details\"='4000 copies';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"date\" real,\n \"single\" text,\n \"backed_with\" text,\n \"record_label\" text,\n \"format\" text,\n \"other_details\" text\n);\n\nQuestion: What were the \"other details\" (number released) for \"is my love will follow me\"?" }, { "role": "assistant", "content": "SELECT \"other_details\" FROM \"singles\" WHERE \"single\"='My Love Will Follow Me';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"date\" real,\n \"single\" text,\n \"backed_with\" text,\n \"record_label\" text,\n \"format\" text,\n \"other_details\" text\n);\n\nQuestion: What year was \"moped girls\" released?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"singles\" WHERE \"single\"='Moped Girls';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"date\" real,\n \"single\" text,\n \"backed_with\" text,\n \"record_label\" text,\n \"format\" text,\n \"other_details\" text\n);\n\nQuestion: What were the \"other details\" (number released) for \"is my love will follow me\"?" }, { "role": "assistant", "content": "SELECT \"other_details\" FROM \"singles\" WHERE \"single\"='My Love Will Follow Me';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"torneo_apertura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws_p_k_wins_p_k_losses\" text,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: Name the least amount of losses for 23 points" }, { "role": "assistant", "content": "SELECT MIN(\"losses\") FROM \"torneo_apertura\" WHERE \"points\"=23;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"torneo_apertura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws_p_k_wins_p_k_losses\" text,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: Name the most wins for sport colombia" }, { "role": "assistant", "content": "SELECT MAX(\"wins\") FROM \"torneo_apertura\" WHERE \"team\"='Sport Colombia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"torneo_apertura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws_p_k_wins_p_k_losses\" text,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: Namr the total number of played for 5 losses" }, { "role": "assistant", "content": "SELECT COUNT(\"played\") FROM \"torneo_apertura\" WHERE \"losses\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"torneo_apertura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws_p_k_wins_p_k_losses\" text,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: Name the wins for draws pk is 3/0" }, { "role": "assistant", "content": "SELECT \"wins\" FROM \"torneo_apertura\" WHERE \"draws_p_k_wins_p_k_losses\"='3/0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"torneo_clausura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws_p_k_wins_p_k_losses\" text,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: What is scored with the position of 6?" }, { "role": "assistant", "content": "SELECT MIN(\"scored\") FROM \"torneo_clausura\" WHERE \"position\"=6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"torneo_clausura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws_p_k_wins_p_k_losses\" text,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: How many losses are there for team tembetary?" }, { "role": "assistant", "content": "SELECT \"losses\" FROM \"torneo_clausura\" WHERE \"team\"='Tembetary';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"torneo_clausura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws_p_k_wins_p_k_losses\" text,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: How many wins have 24 points?" }, { "role": "assistant", "content": "SELECT \"wins\" FROM \"torneo_clausura\" WHERE \"points\"=24;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"torneo_clausura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws_p_k_wins_p_k_losses\" text,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: How many wins?" }, { "role": "assistant", "content": "SELECT MAX(\"wins\") FROM \"torneo_clausura\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18712423_3\" (\n \"series_episode\" real,\n \"season_episode\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"viewers_millions\" text\n);\n\nQuestion: What is the original air date of the episode directed by Ian Barry and written by Philip Dalkin?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_18712423_3\" WHERE \"directed_by\"='Ian Barry' AND \"written_by\"='Philip Dalkin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18712423_3\" (\n \"series_episode\" real,\n \"season_episode\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"viewers_millions\" text\n);\n\nQuestion: What is the show episode number of the episode that reached 1.215 millions views?" }, { "role": "assistant", "content": "SELECT MIN(\"series_episode\") FROM \"table1_18712423_3\" WHERE \"viewers_millions\"='1.215';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18712423_3\" (\n \"series_episode\" real,\n \"season_episode\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"viewers_millions\" text\n);\n\nQuestion: Who directed the episode written by Matt Ford?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_18712423_3\" WHERE \"written_by\"='Matt Ford';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18733480_1\" (\n \"episode_num\" real,\n \"air_date\" text,\n \"team_1\" text,\n \"players_left_after_round_1\" text,\n \"team_2\" text\n);\n\nQuestion: How many times was team 1 the wykeham wonderers?" }, { "role": "assistant", "content": "SELECT COUNT(\"players_left_after_round_1\") FROM \"table1_18733480_1\" WHERE \"team_1\"='Wykeham Wonderers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18733480_1\" (\n \"episode_num\" real,\n \"air_date\" text,\n \"team_1\" text,\n \"players_left_after_round_1\" text,\n \"team_2\" text\n);\n\nQuestion: What is the original air date that had the wykeham wonderers as team 1?" }, { "role": "assistant", "content": "SELECT \"air_date\" FROM \"table1_18733480_1\" WHERE \"team_1\"='Wykeham Wonderers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18733480_1\" (\n \"episode_num\" real,\n \"air_date\" text,\n \"team_1\" text,\n \"players_left_after_round_1\" text,\n \"team_2\" text\n);\n\nQuestion: Who was team 1 when the chalkheads were team 2?" }, { "role": "assistant", "content": "SELECT \"team_1\" FROM \"table1_18733480_1\" WHERE \"team_2\"='Chalkheads';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18734298_1\" (\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 \"production_code\" text\n);\n\nQuestion: What is the title of the production code 1acx09?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_18734298_1\" WHERE \"production_code\"='1ACX09';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18734298_1\" (\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 \"production_code\" text\n);\n\nQuestion: How many series were directed by Rob Renzetti?" }, { "role": "assistant", "content": "SELECT COUNT(\"no_in_series\") FROM \"table1_18734298_1\" WHERE \"directed_by\"='Rob Renzetti';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18734298_1\" (\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 \"production_code\" text\n);\n\nQuestion: Who wrote the series number 14?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_18734298_1\" WHERE \"no_in_series\"=14;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nascar_sprint_cup_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: Did this driver have any winnings the season he had 32 starts" }, { "role": "assistant", "content": "SELECT COUNT(\"winnings\") FROM \"nascar_sprint_cup_series\" WHERE \"starts\"=32;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nascar_sprint_cup_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: How many wins in the season he finished 33rd" }, { "role": "assistant", "content": "SELECT \"winnings\" FROM \"nascar_sprint_cup_series\" WHERE \"position\"='33rd';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nascar_sprint_cup_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: What is the lowest number of top 10 finishes" }, { "role": "assistant", "content": "SELECT MIN(\"top_10\") FROM \"nascar_sprint_cup_series\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nascar_sprint_cup_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: How many poles in the year 2000" }, { "role": "assistant", "content": "SELECT MAX(\"poles\") FROM \"nascar_sprint_cup_series\" WHERE \"year\"=2000;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nascar_nationwide_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: What is the average finish for winnings of $1,400?" }, { "role": "assistant", "content": "SELECT \"avg_finish\" FROM \"nascar_nationwide_series\" WHERE \"winnings\"='$1,400';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nascar_nationwide_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: What is the maximum starts that result in an average finish of 16.5?" }, { "role": "assistant", "content": "SELECT MAX(\"starts\") FROM \"nascar_nationwide_series\" WHERE \"avg_finish\"='16.5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nascar_nationwide_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: How many starts were there when the winnings are $690,321?" }, { "role": "assistant", "content": "SELECT MIN(\"starts\") FROM \"nascar_nationwide_series\" WHERE \"winnings\"='$690,321';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"usage_share_data_from_wikimedia_visitor_\" (\n \"period\" text,\n \"internet_explorer\" text,\n \"firefox\" text,\n \"chrome\" text,\n \"safari\" text,\n \"opera\" text,\n \"other_mozilla\" text,\n \"mobile\" text\n);\n\nQuestion: If Safari is 3.76%, what is the other Mozilla amount?" }, { "role": "assistant", "content": "SELECT \"other_mozilla\" FROM \"usage_share_data_from_wikimedia_visitor_\" WHERE \"safari\"='3.76%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"usage_share_data_from_wikimedia_visitor_\" (\n \"period\" text,\n \"internet_explorer\" text,\n \"firefox\" text,\n \"chrome\" text,\n \"safari\" text,\n \"opera\" text,\n \"other_mozilla\" text,\n \"mobile\" text\n);\n\nQuestion: If Firefox is 30.45%, what is the other Mozilla amount?" }, { "role": "assistant", "content": "SELECT \"other_mozilla\" FROM \"usage_share_data_from_wikimedia_visitor_\" WHERE \"firefox\"='30.45%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"usage_share_data_from_wikimedia_visitor_\" (\n \"period\" text,\n \"internet_explorer\" text,\n \"firefox\" text,\n \"chrome\" text,\n \"safari\" text,\n \"opera\" text,\n \"other_mozilla\" text,\n \"mobile\" text\n);\n\nQuestion: If Internet Explorer is 47.22%, what is the Safari total?" }, { "role": "assistant", "content": "SELECT \"safari\" FROM \"usage_share_data_from_wikimedia_visitor_\" WHERE \"internet_explorer\"='47.22%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"usage_share_data_from_wikimedia_visitor_\" (\n \"period\" text,\n \"internet_explorer\" text,\n \"firefox\" text,\n \"chrome\" text,\n \"safari\" text,\n \"opera\" text,\n \"other_mozilla\" text,\n \"mobile\" text\n);\n\nQuestion: For period September 2009, what is the other Mozilla total number?" }, { "role": "assistant", "content": "SELECT COUNT(\"other_mozilla\") FROM \"usage_share_data_from_wikimedia_visitor_\" WHERE \"period\"='September 2009';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1876825_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Name the total number of production code by david richardson and todd holland" }, { "role": "assistant", "content": "SELECT COUNT(\"production_code\") FROM \"table1_1876825_2\" WHERE \"written_by\"='David Richardson' AND \"directed_by\"='Todd Holland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1876825_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Name the total number of series for march 19, 2000" }, { "role": "assistant", "content": "SELECT COUNT(\"no_in_series\") FROM \"table1_1876825_2\" WHERE \"original_air_date\"='March 19, 2000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1876825_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 \"production_code\" text\n);\n\nQuestion: What is the production code for episode \"surgery\"?" }, { "role": "assistant", "content": "SELECT \"production_code\" FROM \"table1_1876825_3\" WHERE \"title\"='\\\"Surgery\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1876825_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 \"production_code\" text\n);\n\nQuestion: What episode number in the series originally aired on February 25, 2001?" }, { "role": "assistant", "content": "SELECT \"no_in_series\" FROM \"table1_1876825_3\" WHERE \"original_air_date\"='February 25, 2001';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1876825_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 \"production_code\" text\n);\n\nQuestion: What is the name of the episode with the production code of 06-00-218?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_1876825_3\" WHERE \"production_code\"='06-00-218';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1876825_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 \"production_code\" text\n);\n\nQuestion: What is the production code for episode 26 in the series?" }, { "role": "assistant", "content": "SELECT \"production_code\" FROM \"table1_1876825_3\" WHERE \"no_in_series\"=26;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1876825_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 \"production_code\" text\n);\n\nQuestion: What is the production code for episode 6 in the season?" }, { "role": "assistant", "content": "SELECT \"production_code\" FROM \"table1_1876825_3\" WHERE \"no_in_season\"=6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1876825_8\" (\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 \"production_code\" text\n);\n\nQuestion: what is the title no in season 2?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_1876825_8\" WHERE \"no_in_season\"=2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: What date did Micky Adams vacate his position?" }, { "role": "assistant", "content": "SELECT \"date_of_vacancy\" FROM \"managerial_changes\" WHERE \"outgoing_manager\"='Micky Adams';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: Which vacancy happened on 4 November 2008?" }, { "role": "assistant", "content": "SELECT \"position_in_table\" FROM \"managerial_changes\" WHERE \"date_of_vacancy\"='4 November 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: How many times did Keith Downing depart a position?" }, { "role": "assistant", "content": "SELECT COUNT(\"position_in_table\") FROM \"managerial_changes\" WHERE \"outgoing_manager\"='Keith Downing';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: Which team appointed a person on 23 December 2008?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"managerial_changes\" WHERE \"date_of_appointment\"='23 December 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: What date did the Milton Keynes Dons appoint?" }, { "role": "assistant", "content": "SELECT \"date_of_appointment\" FROM \"managerial_changes\" WHERE \"team\"='Milton Keynes Dons';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: Which vacancy occurred on 16 February 2009?" }, { "role": "assistant", "content": "SELECT \"position_in_table\" FROM \"managerial_changes\" WHERE \"date_of_vacancy\"='16 February 2009';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1876825_5\" (\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 \"production_code\" text\n);\n\nQuestion: What is title of episode 06-02-407?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_1876825_5\" WHERE \"production_code\"='06-02-407';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1876825_5\" (\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 \"production_code\" text\n);\n\nQuestion: What is title of episode 06-02-406?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_1876825_5\" WHERE \"production_code\"='06-02-406';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1876825_5\" (\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 \"production_code\" text\n);\n\nQuestion: What is title of episode aired on March 2, 2003?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_1876825_5\" WHERE \"original_air_date\"='March 2, 2003';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1876825_5\" (\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 \"production_code\" text\n);\n\nQuestion: Who wrote episode 74?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_1876825_5\" WHERE \"no_in_series\"=74;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1876825_5\" (\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 \"production_code\" text\n);\n\nQuestion: Who wrote \"Academic Octathalon\"?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_1876825_5\" WHERE \"title\"='\\\"Academic Octathalon\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: Which position in the table is the team watford?" }, { "role": "assistant", "content": "SELECT \"position_in_table\" FROM \"managerial_changes\" WHERE \"team\"='Watford';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1876825_7\" (\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 \"production_code\" text\n);\n\nQuestion: Name the number of number in series for production code of 06-04-621" }, { "role": "assistant", "content": "SELECT COUNT(\"no_in_series\") FROM \"table1_1876825_7\" WHERE \"production_code\"='06-04-621';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1876825_7\" (\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 \"production_code\" text\n);\n\nQuestion: Name the total number of written by for original air date for may 8, 2005" }, { "role": "assistant", "content": "SELECT COUNT(\"written_by\") FROM \"table1_1876825_7\" WHERE \"original_air_date\"='May 8, 2005';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the place and how many people attended the game on July 11?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"regular_season\" WHERE \"date\"='July 11';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who had the most assist and how many on July 26?" }, { "role": "assistant", "content": "SELECT \"high_assists\" FROM \"regular_season\" WHERE \"date\"='July 26';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"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 assist in the game where the record is 13-11?" }, { "role": "assistant", "content": "SELECT \"high_assists\" FROM \"regular_season\" WHERE \"record\"='13-11';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: At what date did the 23rd manager vacate the position?" }, { "role": "assistant", "content": "SELECT \"date_of_vacancy\" FROM \"managerial_changes\" WHERE \"position_in_table\"='23rd';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: What was the date of appointment for the manager that replaced Simon Davies? " }, { "role": "assistant", "content": "SELECT \"date_of_appointment\" FROM \"managerial_changes\" WHERE \"outgoing_manager\"='Simon Davies';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: What was the date of appointment for the manager of the 23rd team?" }, { "role": "assistant", "content": "SELECT \"date_of_appointment\" FROM \"managerial_changes\" WHERE \"position_in_table\"='23rd';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: How many categories for, replaced by, exist when the outgoing manager is Alan Buckley? " }, { "role": "assistant", "content": "SELECT COUNT(\"replaced_by\") FROM \"managerial_changes\" WHERE \"outgoing_manager\"='Alan Buckley';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"drivers\" (\n \"pos\" real,\n \"driver\" text,\n \"starts\" real,\n \"finishes\" real,\n \"wins\" real,\n \"podiums\" real,\n \"stage_wins\" real,\n \"points\" real\n);\n\nQuestion: Which driver starts 3?" }, { "role": "assistant", "content": "SELECT \"driver\" FROM \"drivers\" WHERE \"starts\"=3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"drivers\" (\n \"pos\" real,\n \"driver\" text,\n \"starts\" real,\n \"finishes\" real,\n \"wins\" real,\n \"podiums\" real,\n \"stage_wins\" real,\n \"points\" real\n);\n\nQuestion: How many podiums for the driver with 18 stage wins?" }, { "role": "assistant", "content": "SELECT COUNT(\"podiums\") FROM \"drivers\" WHERE \"stage_wins\"=18;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"drivers\" (\n \"pos\" real,\n \"driver\" text,\n \"starts\" real,\n \"finishes\" real,\n \"wins\" real,\n \"podiums\" real,\n \"stage_wins\" real,\n \"points\" real\n);\n\nQuestion: What is the highest pos for a driver with 1 podium?" }, { "role": "assistant", "content": "SELECT MAX(\"pos\") FROM \"drivers\" WHERE \"podiums\"=1;" } ]