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 \"by_access_to_electricity\" (\n \"region\" text,\n \"public_network\" text,\n \"own_community_generator\" text,\n \"solar_panel\" text,\n \"other_source\" text,\n \"none\" text\n);\n\nQuestion: How many regions have 0.5% solar panels?" }, { "role": "assistant", "content": "SELECT COUNT(\"public_network\") FROM \"by_access_to_electricity\" WHERE \"solar_panel\"='0.5%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25046766_3\" (\n \"episode_no\" text,\n \"prod_no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_airdate_uk\" text\n);\n\nQuestion: Who directed \"you are not in any trouble, are you?\"" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_25046766_3\" WHERE \"title\"='\\\"You Are Not in Any Trouble, Are You?\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25046766_3\" (\n \"episode_no\" text,\n \"prod_no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_airdate_uk\" text\n);\n\nQuestion: What is the production number of 3-04?" }, { "role": "assistant", "content": "SELECT MAX(\"prod_no\") FROM \"table1_25046766_3\" WHERE \"episode_no\"='3-04';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25046766_3\" (\n \"episode_no\" text,\n \"prod_no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_airdate_uk\" text\n);\n\nQuestion: What was the title of the episode that aired on October 7, 1965?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_25046766_3\" WHERE \"original_airdate_uk\"='October 7, 1965';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25046766_1\" (\n \"episode_no\" text,\n \"prod_no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_uk_airdate\" text\n);\n\nQuestion: When don inglis and ralph smart are the writers how many episode numbers are there?" }, { "role": "assistant", "content": "SELECT COUNT(\"episode_no\") FROM \"table1_25046766_1\" WHERE \"written_by\"='Don Inglis and Ralph Smart';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qs_world_university_rankings_top_50\" (\n \"2013_14\" real,\n \"2012_13\" real,\n \"2011_12\" real,\n \"2010_11\" real,\n \"institute\" text,\n \"region\" text\n);\n\nQuestion: Name the number of schools for 1011/12 is 26" }, { "role": "assistant", "content": "SELECT COUNT(\"institute\") FROM \"qs_world_university_rankings_top_50\" WHERE \"2011_12\"=26;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qs_world_university_rankings_top_50\" (\n \"2013_14\" real,\n \"2012_13\" real,\n \"2011_12\" real,\n \"2010_11\" real,\n \"institute\" text,\n \"region\" text\n);\n\nQuestion: Name the 2013/14 for 2012/13 is 36" }, { "role": "assistant", "content": "SELECT \"2013_14\" FROM \"qs_world_university_rankings_top_50\" WHERE \"2012_13\"=36;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qs_world_university_rankings_top_50\" (\n \"2013_14\" real,\n \"2012_13\" real,\n \"2011_12\" real,\n \"2010_11\" real,\n \"institute\" text,\n \"region\" text\n);\n\nQuestion: Name the number of regions for 2013/14 being 27" }, { "role": "assistant", "content": "SELECT COUNT(\"region\") FROM \"qs_world_university_rankings_top_50\" WHERE \"2013_14\"=27;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qs_world_university_rankings_top_50\" (\n \"2013_14\" real,\n \"2012_13\" real,\n \"2011_12\" real,\n \"2010_11\" real,\n \"institute\" text,\n \"region\" text\n);\n\nQuestion: Name the most 2012/13 for university of cambridge" }, { "role": "assistant", "content": "SELECT MAX(\"2012_13\") FROM \"qs_world_university_rankings_top_50\" WHERE \"institute\"='University of Cambridge';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_squad\" (\n \"shirt_no\" real,\n \"nationality\" text,\n \"player\" text,\n \"birth_date\" text,\n \"height\" real,\n \"position\" text\n);\n\nQuestion: Name the birth date for taavi sadam" }, { "role": "assistant", "content": "SELECT \"birth_date\" FROM \"current_squad\" WHERE \"player\"='Taavi Sadam';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_squad\" (\n \"shirt_no\" real,\n \"nationality\" text,\n \"player\" text,\n \"birth_date\" text,\n \"height\" real,\n \"position\" text\n);\n\nQuestion: Name the height for asko esna" }, { "role": "assistant", "content": "SELECT \"height\" FROM \"current_squad\" WHERE \"player\"='Asko Esna';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_squad\" (\n \"shirt_no\" real,\n \"nationality\" text,\n \"player\" text,\n \"birth_date\" text,\n \"height\" real,\n \"position\" text\n);\n\nQuestion: Name the birth date for estonia for spiker and height of 189" }, { "role": "assistant", "content": "SELECT \"birth_date\" FROM \"current_squad\" WHERE \"nationality\"='Estonia' AND \"position\"='Spiker' AND \"height\"=189;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_squad\" (\n \"shirt_no\" real,\n \"nationality\" text,\n \"player\" text,\n \"birth_date\" text,\n \"height\" real,\n \"position\" text\n);\n\nQuestion: Name the player for 199 height" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"current_squad\" WHERE \"height\"=199;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25084227_1\" (\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_in_millions\" text\n);\n\nQuestion: if the 2.09 million US viewers watched this episode, who was it written by" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_25084227_1\" WHERE \"u_s_viewers_in_millions\"='2.09';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25084227_1\" (\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_in_millions\" text\n);\n\nQuestion: If the episode was directed by Michael Offer, what was the episode number?" }, { "role": "assistant", "content": "SELECT MIN(\"no\") FROM \"table1_25084227_1\" WHERE \"directed_by\"='Michael Offer';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25084227_1\" (\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_in_millions\" text\n);\n\nQuestion: How many directors directed the episode titled \"Incoming\"?" }, { "role": "assistant", "content": "SELECT COUNT(\"directed_by\") FROM \"table1_25084227_1\" WHERE \"title\"='\\\"Incoming\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25084227_1\" (\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_in_millions\" text\n);\n\nQuestion: If the episode was directed by Michael Offer, how many US Viewers watched it?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_in_millions\" FROM \"table1_25084227_1\" WHERE \"directed_by\"='Michael Offer';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25084227_1\" (\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_in_millions\" text\n);\n\nQuestion: How many US viewers watched the episode titled \"The Way through\"?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_in_millions\" FROM \"table1_25084227_1\" WHERE \"title\"='\\\"The Way Through\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_three\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What draft pick number was the player with the position DL?" }, { "role": "assistant", "content": "SELECT \"pick_num\" FROM \"round_three\" WHERE \"position\"='DL';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_three\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: How many draft picks were for Winnipeg blue bombers?" }, { "role": "assistant", "content": "SELECT COUNT(\"pick_num\") FROM \"round_three\" WHERE \"cfl_team\"='Winnipeg Blue Bombers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_three\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: How many colleges provided players with positions LB?" }, { "role": "assistant", "content": "SELECT COUNT(\"college\") FROM \"round_three\" WHERE \"position\"='LB';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_three\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What college did the player come from whose position is DL?" }, { "role": "assistant", "content": "SELECT \"college\" FROM \"round_three\" WHERE \"position\"='DL';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_three\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What team got a draft pick player from McGill?" }, { "role": "assistant", "content": "SELECT \"cfl_team\" FROM \"round_three\" WHERE \"college\"='McGill';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What number draft pick was Oklahoma State's Greg Hill in 1983?" }, { "role": "assistant", "content": "SELECT \"pick_num\" FROM \"round_four\" WHERE \"college\"='Oklahoma State' AND \"player\"='Greg Hill';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What number pick was Danny Walters in the 1983 NFL draft?" }, { "role": "assistant", "content": "SELECT COUNT(\"pick_num\") FROM \"round_four\" WHERE \"player\"='Danny Walters';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What were the pick numbers of the defensive tackles chosen by the New Orleans Saints in the 1983 draft?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_four\" WHERE \"nfl_team\"='New Orleans Saints';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What number draft pick was linebacker Steve Maidlow in the 1983 NFL Draft?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_four\" WHERE \"player\"='Steve Maidlow';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_eleven\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: In which colleges is the NFL Team New York Giants and with the position defensive back?" }, { "role": "assistant", "content": "SELECT \"college\" FROM \"round_eleven\" WHERE \"nfl_team\"='New York Giants' AND \"position\"='Defensive back';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_eleven\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What NFL Team has the player Danny Triplett with the position linebacker?" }, { "role": "assistant", "content": "SELECT \"nfl_team\" FROM \"round_eleven\" WHERE \"position\"='Linebacker' AND \"player\"='Danny Triplett';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_eleven\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What are the NFL Teams in College North Texas State?" }, { "role": "assistant", "content": "SELECT \"nfl_team\" FROM \"round_eleven\" WHERE \"college\"='North Texas State';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_eleven\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: How many colleges have the NFL Team Buffalo Bills?" }, { "role": "assistant", "content": "SELECT COUNT(\"college\") FROM \"round_eleven\" WHERE \"nfl_team\"='Buffalo Bills';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_eleven\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Who are the all the players whose position is guard in college Clemson?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_eleven\" WHERE \"college\"='Clemson' AND \"position\"='Guard';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_eleven\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What NFL Teams have the player Aaron Williams?" }, { "role": "assistant", "content": "SELECT \"nfl_team\" FROM \"round_eleven\" WHERE \"player\"='Aaron Williams';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Name the least pick number for the denver broncos" }, { "role": "assistant", "content": "SELECT MIN(\"pick_num\") FROM \"round_two\" WHERE \"nfl_team\"='Denver Broncos';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Name the position for pick number 39" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_two\" WHERE \"pick_num\"=39;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Name the total number of pick number being henry ellard" }, { "role": "assistant", "content": "SELECT COUNT(\"pick_num\") FROM \"round_two\" WHERE \"player\"='Henry Ellard';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Name the player for new orleans saints" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_two\" WHERE \"nfl_team\"='New Orleans Saints';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Name the number of players for georgia tech" }, { "role": "assistant", "content": "SELECT COUNT(\"player\") FROM \"round_two\" WHERE \"college\"='Georgia Tech';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Name the most pick number for guard and kansas city chiefs" }, { "role": "assistant", "content": "SELECT MAX(\"pick_num\") FROM \"round_two\" WHERE \"position\"='Guard' AND \"nfl_team\"='Kansas City Chiefs';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_six\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Name the nfl team for pick number 151" }, { "role": "assistant", "content": "SELECT \"nfl_team\" FROM \"round_six\" WHERE \"pick_num\"=151;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_six\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Name the college for houston oilers" }, { "role": "assistant", "content": "SELECT \"college\" FROM \"round_six\" WHERE \"nfl_team\"='Houston Oilers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_six\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Name the most pick number for illinois" }, { "role": "assistant", "content": "SELECT MAX(\"pick_num\") FROM \"round_six\" WHERE \"college\"='Illinois';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_six\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Name the total number for nfl team for ellis gardner" }, { "role": "assistant", "content": "SELECT COUNT(\"nfl_team\") FROM \"round_six\" WHERE \"player\"='Ellis Gardner';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_six\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Name the position for delaware" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_six\" WHERE \"college\"='Delaware';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_six\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Name the nfl team for eric williams" }, { "role": "assistant", "content": "SELECT \"nfl_team\" FROM \"round_six\" WHERE \"player\"='Eric Williams';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sortable_table\" (\n \"core\" text,\n \"processor\" text,\n \"model\" text,\n \"clock_speed\" text,\n \"l2_cache\" text,\n \"voltage\" text,\n \"tdp\" text,\n \"clock_speed_to_tdp_ratio_m_hz_w\" text\n);\n\nQuestion: how many l2 cache has a clock speed to tdp ratio of 46.7?" }, { "role": "assistant", "content": "SELECT COUNT(\"l2_cache\") FROM \"sortable_table\" WHERE \"clock_speed_to_tdp_ratio_m_hz_w\"='46.7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_nine\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What NFL team picked a player from Jackson State?" }, { "role": "assistant", "content": "SELECT \"nfl_team\" FROM \"round_nine\" WHERE \"college\"='Jackson State';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_nine\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What position was the draft pick that came from Langston?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_nine\" WHERE \"college\"='Langston';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_nine\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: How many players were the running back draft pick for the New England Patriots?" }, { "role": "assistant", "content": "SELECT COUNT(\"player\") FROM \"round_nine\" WHERE \"nfl_team\"='New England Patriots' AND \"position\"='Running back';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_nine\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Who was the draft pick for Kansas City Chiefs?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_nine\" WHERE \"nfl_team\"='Kansas City Chiefs';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_nine\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What college did the tight end draft pick for New England Patriots come from?" }, { "role": "assistant", "content": "SELECT \"college\" FROM \"round_nine\" WHERE \"nfl_team\"='New England Patriots' AND \"position\"='Tight end';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"languages\" (\n \"language\" text,\n \"punata_municipality\" real,\n \"villa_rivero_municipality\" real,\n \"san_benito_municipality\" real,\n \"tacachi_municipality\" real,\n \"cuchumuela_municipality\" real\n);\n\nQuestion: What is the Cuchumela Municipality minimum?" }, { "role": "assistant", "content": "SELECT MIN(\"cuchumuela_municipality\") FROM \"languages\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"languages\" (\n \"language\" text,\n \"punata_municipality\" real,\n \"villa_rivero_municipality\" real,\n \"san_benito_municipality\" real,\n \"tacachi_municipality\" real,\n \"cuchumuela_municipality\" real\n);\n\nQuestion: If Villa Rivero Municipality if 7, what is the language?" }, { "role": "assistant", "content": "SELECT \"language\" FROM \"languages\" WHERE \"villa_rivero_municipality\"=7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"languages\" (\n \"language\" text,\n \"punata_municipality\" real,\n \"villa_rivero_municipality\" real,\n \"san_benito_municipality\" real,\n \"tacachi_municipality\" real,\n \"cuchumuela_municipality\" real\n);\n\nQuestion: What is the language total number if the Tacachi Municipality is 3?" }, { "role": "assistant", "content": "SELECT COUNT(\"language\") FROM \"languages\" WHERE \"tacachi_municipality\"=3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"languages\" (\n \"language\" text,\n \"punata_municipality\" real,\n \"villa_rivero_municipality\" real,\n \"san_benito_municipality\" real,\n \"tacachi_municipality\" real,\n \"cuchumuela_municipality\" real\n);\n\nQuestion: If the language is another native, what is the San Benito Municipality total number?" }, { "role": "assistant", "content": "SELECT COUNT(\"san_benito_municipality\") FROM \"languages\" WHERE \"language\"='Another native';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"languages\" (\n \"language\" text,\n \"quillacollo_municipality\" real,\n \"sipe_sipe_municipality\" real,\n \"tiquipaya_municipality\" real,\n \"vinto_municipality\" real,\n \"colcapirhua_municipality\" real\n);\n\nQuestion: If the language is Spanish, what is the Vinto Municipality minimum?" }, { "role": "assistant", "content": "SELECT MIN(\"vinto_municipality\") FROM \"languages\" WHERE \"language\"='Spanish';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"languages\" (\n \"language\" text,\n \"quillacollo_municipality\" real,\n \"sipe_sipe_municipality\" real,\n \"tiquipaya_municipality\" real,\n \"vinto_municipality\" real,\n \"colcapirhua_municipality\" real\n);\n\nQuestion: If the Vinto Municipality is 18630, what is the Quillacollo Municipality?" }, { "role": "assistant", "content": "SELECT MAX(\"quillacollo_municipality\") FROM \"languages\" WHERE \"vinto_municipality\"=18630;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"languages\" (\n \"language\" text,\n \"quillacollo_municipality\" real,\n \"sipe_sipe_municipality\" real,\n \"tiquipaya_municipality\" real,\n \"vinto_municipality\" real,\n \"colcapirhua_municipality\" real\n);\n\nQuestion: What is the Sipe Sipe Municipality minimum if the language is Quechua?" }, { "role": "assistant", "content": "SELECT MIN(\"sipe_sipe_municipality\") FROM \"languages\" WHERE \"language\"='Quechua';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"languages\" (\n \"language\" text,\n \"quillacollo_municipality\" real,\n \"sipe_sipe_municipality\" real,\n \"tiquipaya_municipality\" real,\n \"vinto_municipality\" real,\n \"colcapirhua_municipality\" real\n);\n\nQuestion: If the language is Native and Spanish, what is the Vinto Municipality minimum?" }, { "role": "assistant", "content": "SELECT MIN(\"vinto_municipality\") FROM \"languages\" WHERE \"language\"='Native and Spanish';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"languages\" (\n \"language\" text,\n \"quillacollo_municipality\" real,\n \"sipe_sipe_municipality\" real,\n \"tiquipaya_municipality\" real,\n \"vinto_municipality\" real,\n \"colcapirhua_municipality\" real\n);\n\nQuestion: If the Quillacollo Municipality is 93131, what is the Vinto Municipality minimum?" }, { "role": "assistant", "content": "SELECT MIN(\"vinto_municipality\") FROM \"languages\" WHERE \"quillacollo_municipality\"=93131;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"languages\" (\n \"language\" text,\n \"padilla_municipality\" real,\n \"tomina_municipality\" real,\n \"sopachuy_municipality\" real,\n \"villa_alcal_municipality\" real,\n \"el_villar_municipality\" real\n);\n\nQuestion: Name the language for villa 1167" }, { "role": "assistant", "content": "SELECT \"language\" FROM \"languages\" WHERE \"villa_alcal_municipality\"=1167;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"languages\" (\n \"language\" text,\n \"padilla_municipality\" real,\n \"tomina_municipality\" real,\n \"sopachuy_municipality\" real,\n \"villa_alcal_municipality\" real,\n \"el_villar_municipality\" real\n);\n\nQuestion: Name the most padilla municipality for quechua" }, { "role": "assistant", "content": "SELECT MAX(\"padilla_municipality\") FROM \"languages\" WHERE \"language\"='Quechua';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"languages\" (\n \"language\" text,\n \"padilla_municipality\" real,\n \"tomina_municipality\" real,\n \"sopachuy_municipality\" real,\n \"villa_alcal_municipality\" real,\n \"el_villar_municipality\" real\n);\n\nQuestion: Name the language for sopachuy 10" }, { "role": "assistant", "content": "SELECT \"language\" FROM \"languages\" WHERE \"sopachuy_municipality\"=10;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"languages\" (\n \"language\" text,\n \"padilla_municipality\" real,\n \"tomina_municipality\" real,\n \"sopachuy_municipality\" real,\n \"villa_alcal_municipality\" real,\n \"el_villar_municipality\" real\n);\n\nQuestion: Name the number of tomina for villa alcala for 176" }, { "role": "assistant", "content": "SELECT COUNT(\"tomina_municipality\") FROM \"languages\" WHERE \"villa_alcal_municipality\"=176;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"languages\" (\n \"language\" text,\n \"padilla_municipality\" real,\n \"tomina_municipality\" real,\n \"sopachuy_municipality\" real,\n \"villa_alcal_municipality\" real,\n \"el_villar_municipality\" real\n);\n\nQuestion: Name the least tomina for el villar being 4" }, { "role": "assistant", "content": "SELECT MIN(\"tomina_municipality\") FROM \"languages\" WHERE \"el_villar_municipality\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"languages\" (\n \"language\" text,\n \"padilla_municipality\" real,\n \"tomina_municipality\" real,\n \"sopachuy_municipality\" real,\n \"villa_alcal_municipality\" real,\n \"el_villar_municipality\" real\n);\n\nQuestion: Name the language for el villar 1264" }, { "role": "assistant", "content": "SELECT \"language\" FROM \"languages\" WHERE \"el_villar_municipality\"=1264;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"season\" text,\n \"games\" real,\n \"won\" real,\n \"lost\" real,\n \"tied\" real,\n \"points\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"standing\" text\n);\n\nQuestion: Name the total number of games for goals against being 352" }, { "role": "assistant", "content": "SELECT COUNT(\"games\") FROM \"regular_season\" WHERE \"goals_against\"=352;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"season\" text,\n \"games\" real,\n \"won\" real,\n \"lost\" real,\n \"tied\" real,\n \"points\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"standing\" text\n);\n\nQuestion: Name the total number of games for lost being 41" }, { "role": "assistant", "content": "SELECT COUNT(\"games\") FROM \"regular_season\" WHERE \"lost\"=41;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"season\" text,\n \"games\" real,\n \"won\" real,\n \"lost\" real,\n \"tied\" real,\n \"points\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"standing\" text\n);\n\nQuestion: Name the most goals for 56 points" }, { "role": "assistant", "content": "SELECT MAX(\"goals_for\") FROM \"regular_season\" WHERE \"points\"=56;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"season\" text,\n \"games\" real,\n \"won\" real,\n \"lost\" real,\n \"tied\" real,\n \"points\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"standing\" text\n);\n\nQuestion: Name the number of won for goals for being 274" }, { "role": "assistant", "content": "SELECT COUNT(\"won\") FROM \"regular_season\" WHERE \"goals_for\"=274;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"languages\" (\n \"language\" text,\n \"sorata_municipality\" text,\n \"guanay_municipality\" text,\n \"tacacoma_municipality\" text,\n \"quiabaya_municipality\" text,\n \"combaya_municipality\" text,\n \"tipuani_municipality\" text,\n \"mapiri_municipality\" text,\n \"teoponte_municipality\" text\n);\n\nQuestion: When the quiabaya municipality is 2 what is the combaya municipality?" }, { "role": "assistant", "content": "SELECT \"combaya_municipality\" FROM \"languages\" WHERE \"quiabaya_municipality\"='2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"languages\" (\n \"language\" text,\n \"sorata_municipality\" text,\n \"guanay_municipality\" text,\n \"tacacoma_municipality\" text,\n \"quiabaya_municipality\" text,\n \"combaya_municipality\" text,\n \"tipuani_municipality\" text,\n \"mapiri_municipality\" text,\n \"teoponte_municipality\" text\n);\n\nQuestion: What is the guanay municipality when the tacacoma municipality is 4.321?" }, { "role": "assistant", "content": "SELECT \"guanay_municipality\" FROM \"languages\" WHERE \"tacacoma_municipality\"='4.321';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"languages\" (\n \"language\" text,\n \"sorata_municipality\" text,\n \"guanay_municipality\" text,\n \"tacacoma_municipality\" text,\n \"quiabaya_municipality\" text,\n \"combaya_municipality\" text,\n \"tipuani_municipality\" text,\n \"mapiri_municipality\" text,\n \"teoponte_municipality\" text\n);\n\nQuestion: How many people in the sorata municipality when the quiabaya municipality has 33?" }, { "role": "assistant", "content": "SELECT \"sorata_municipality\" FROM \"languages\" WHERE \"quiabaya_municipality\"='33';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"languages\" (\n \"language\" text,\n \"sorata_municipality\" text,\n \"guanay_municipality\" text,\n \"tacacoma_municipality\" text,\n \"quiabaya_municipality\" text,\n \"combaya_municipality\" text,\n \"tipuani_municipality\" text,\n \"mapiri_municipality\" text,\n \"teoponte_municipality\" text\n);\n\nQuestion: What is the number for combaya municipality when quiabaya municipality is 33?" }, { "role": "assistant", "content": "SELECT \"combaya_municipality\" FROM \"languages\" WHERE \"quiabaya_municipality\"='33';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"languages\" (\n \"language\" text,\n \"sorata_municipality\" text,\n \"guanay_municipality\" text,\n \"tacacoma_municipality\" text,\n \"quiabaya_municipality\" text,\n \"combaya_municipality\" text,\n \"tipuani_municipality\" text,\n \"mapiri_municipality\" text,\n \"teoponte_municipality\" text\n);\n\nQuestion: tipuani municipality when tacacoma municipality is 6?" }, { "role": "assistant", "content": "SELECT \"tipuani_municipality\" FROM \"languages\" WHERE \"tacacoma_municipality\"='6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"languages\" (\n \"language\" text,\n \"sorata_municipality\" text,\n \"guanay_municipality\" text,\n \"tacacoma_municipality\" text,\n \"quiabaya_municipality\" text,\n \"combaya_municipality\" text,\n \"tipuani_municipality\" text,\n \"mapiri_municipality\" text,\n \"teoponte_municipality\" text\n);\n\nQuestion: What is the number for the guanay municipality when combaya municipality is 0?" }, { "role": "assistant", "content": "SELECT \"guanay_municipality\" FROM \"languages\" WHERE \"combaya_municipality\"='0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_251272_4\" (\n \"year\" real,\n \"date\" text,\n \"intended_victim_s\" text,\n \"title_at_the_time\" text,\n \"location\" text,\n \"would_be_assassin_s\" text,\n \"method\" text,\n \"initial_outcome_notes\" text\n);\n\nQuestion: What is the first year where the assassination attempt was at Martyrs' Mausoleum, Rangoon, Burma?" }, { "role": "assistant", "content": "SELECT MIN(\"year\") FROM \"table1_251272_4\" WHERE \"location\"='Martyrs'' Mausoleum, Rangoon, Burma';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_251272_4\" (\n \"year\" real,\n \"date\" text,\n \"intended_victim_s\" text,\n \"title_at_the_time\" text,\n \"location\" text,\n \"would_be_assassin_s\" text,\n \"method\" text,\n \"initial_outcome_notes\" text\n);\n\nQuestion: Where was the attempt on the Prime Minister of Sri Lanka's life made?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"table1_251272_4\" WHERE \"title_at_the_time\"='Prime Minister of Sri Lanka';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"between_50_million_and_100_million_copie\" (\n \"book_series\" text,\n \"author\" text,\n \"original_language\" text,\n \"no_of_installments\" text,\n \"first_published\" text,\n \"approximate_sales\" text\n);\n\nQuestion: What is every original language for book series Little House on the Prairie?" }, { "role": "assistant", "content": "SELECT \"original_language\" FROM \"between_50_million_and_100_million_copie\" WHERE \"book_series\"='Little House on the Prairie';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"between_50_million_and_100_million_copie\" (\n \"book_series\" text,\n \"author\" text,\n \"original_language\" text,\n \"no_of_installments\" text,\n \"first_published\" text,\n \"approximate_sales\" text\n);\n\nQuestion: What are all approximate sales for the author Laura Ingalls Wilder?" }, { "role": "assistant", "content": "SELECT \"approximate_sales\" FROM \"between_50_million_and_100_million_copie\" WHERE \"author\"='Laura Ingalls Wilder';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"name\" text,\n \"num\" real,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"year\" text,\n \"former_school\" text,\n \"hometown\" text\n);\n\nQuestion: Name the most number for notre dame prep" }, { "role": "assistant", "content": "SELECT MAX(\"num\") FROM \"roster\" WHERE \"former_school\"='Notre Dame Prep';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"country\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" real\n);\n\nQuestion: Name the ends won for blank ends for 0" }, { "role": "assistant", "content": "SELECT \"ends_won\" FROM \"standings\" WHERE \"blank_ends\"=0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"country\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" real\n);\n\nQuestion: Name the stolen ends for germany" }, { "role": "assistant", "content": "SELECT MIN(\"stolen_ends\") FROM \"standings\" WHERE \"country\"='Germany';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"country\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" real\n);\n\nQuestion: Name the least ends won for pf being 78" }, { "role": "assistant", "content": "SELECT MIN(\"ends_won\") FROM \"standings\" WHERE \"pf\"=78;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team_summaries\" (\n \"club\" text,\n \"location\" text,\n \"stadium\" text,\n \"capacity\" real,\n \"manager\" text,\n \"kitmaker\" text\n);\n\nQuestion: What is the stadium in Kuopio?" }, { "role": "assistant", "content": "SELECT \"stadium\" FROM \"team_summaries\" WHERE \"location\"='Kuopio';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team_summaries\" (\n \"club\" text,\n \"location\" text,\n \"stadium\" text,\n \"capacity\" real,\n \"manager\" text,\n \"kitmaker\" text\n);\n\nQuestion: Who is the kitmaker for TPS?" }, { "role": "assistant", "content": "SELECT \"kitmaker\" FROM \"team_summaries\" WHERE \"club\"='TPS';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team_summaries\" (\n \"club\" text,\n \"location\" text,\n \"stadium\" text,\n \"capacity\" real,\n \"manager\" text,\n \"kitmaker\" text\n);\n\nQuestion: What is the largest capacity for a stadium?" }, { "role": "assistant", "content": "SELECT MAX(\"capacity\") FROM \"team_summaries\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team_summaries\" (\n \"club\" text,\n \"location\" text,\n \"stadium\" text,\n \"capacity\" real,\n \"manager\" text,\n \"kitmaker\" text\n);\n\nQuestion: Which stadium is managed by Kari Martonen?" }, { "role": "assistant", "content": "SELECT \"stadium\" FROM \"team_summaries\" WHERE \"manager\"='Kari Martonen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team_summaries\" (\n \"club\" text,\n \"location\" text,\n \"stadium\" text,\n \"capacity\" real,\n \"manager\" text,\n \"kitmaker\" text\n);\n\nQuestion: How many capacities are given for FF Jaro club?" }, { "role": "assistant", "content": "SELECT COUNT(\"capacity\") FROM \"team_summaries\" WHERE \"club\"='FF Jaro';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team_summaries\" (\n \"club\" text,\n \"location\" text,\n \"stadium\" text,\n \"capacity\" real,\n \"manager\" text,\n \"kitmaker\" text\n);\n\nQuestion: How many managers for club in Turku where kitmaker is Puma?" }, { "role": "assistant", "content": "SELECT COUNT(\"manager\") FROM \"team_summaries\" WHERE \"kitmaker\"='Puma' AND \"location\"='Turku';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25131572_2\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_canadian_air_date\" text,\n \"fox_int_channels_air_date\" text\n);\n\nQuestion: How many times was episode 5 in the series aired on Fox int.?" }, { "role": "assistant", "content": "SELECT COUNT(\"fox_int_channels_air_date\") FROM \"table1_25131572_2\" WHERE \"series_num\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"competitive_history\" (\n \"year\" real,\n \"competition_description\" text,\n \"location\" text,\n \"apparatus\" text,\n \"rank_final\" real,\n \"score_final\" text,\n \"rank_qualifying\" real,\n \"score_qualifying\" text\n);\n\nQuestion: What was the qualifying score of the competition whose final score was 12.200?" }, { "role": "assistant", "content": "SELECT \"score_qualifying\" FROM \"competitive_history\" WHERE \"score_final\"='12.200';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"competitive_history\" (\n \"year\" real,\n \"competition_description\" text,\n \"location\" text,\n \"apparatus\" text,\n \"rank_final\" real,\n \"score_final\" text,\n \"rank_qualifying\" real,\n \"score_qualifying\" text\n);\n\nQuestion: Where was the competition with a qualifying score of 58.425?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"competitive_history\" WHERE \"score_qualifying\"='58.425';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"competitive_history\" (\n \"year\" real,\n \"competition_description\" text,\n \"location\" text,\n \"apparatus\" text,\n \"rank_final\" real,\n \"score_final\" text,\n \"rank_qualifying\" real,\n \"score_qualifying\" text\n);\n\nQuestion: How many competitions had a final score of 15.650?" }, { "role": "assistant", "content": "SELECT COUNT(\"competition_description\") FROM \"competitive_history\" WHERE \"score_final\"='15.650';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_7_5_titles_2_runners_up\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: In what year was the score 7\u20135, 7\u20136 (7\u20135)?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"doubles_7_5_titles_2_runners_up\" WHERE \"score\"='7\u20135, 7\u20136 (7\u20135)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_7_5_titles_2_runners_up\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: When the opponent was Yan Zi Jie Zheng, what was the outcome?" }, { "role": "assistant", "content": "SELECT \"outcome\" FROM \"doubles_7_5_titles_2_runners_up\" WHERE \"opponents\"='Yan Zi Jie Zheng';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_7_5_titles_2_runners_up\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: In the year 2013, what was the outcome?" }, { "role": "assistant", "content": "SELECT \"outcome\" FROM \"doubles_7_5_titles_2_runners_up\" WHERE \"year\"=2013;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_7_5_titles_2_runners_up\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: Who was the partner when the score was 7\u20135, 7\u20136 (7\u20135)?" }, { "role": "assistant", "content": "SELECT \"partner\" FROM \"doubles_7_5_titles_2_runners_up\" WHERE \"score\"='7\u20135, 7\u20136 (7\u20135)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_7_5_titles_2_runners_up\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: When the surface was Hard (i), what was the score?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"doubles_7_5_titles_2_runners_up\" WHERE \"surface\"='Hard (i)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_7_5_titles_2_runners_up\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: In which championship was the partner Jie Zheng?" }, { "role": "assistant", "content": "SELECT \"championship\" FROM \"doubles_7_5_titles_2_runners_up\" WHERE \"partner\"='Jie Zheng';" } ]