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