text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "growth_personnel" ( "date" text, "total_usaaf" real, "tot_officers" real, "tot_enlisted" real, "num_overseas" real, "officers_o_s" real, "enlisted_o_s" real ); Question: How many different numbers of Tot enlisted are there on the dates when the number of Enlisted o/s was 801471? <|assistant|> SELECT COUNT("tot_enlisted") FROM "growth_personnel" WHERE "enlisted_o_s"=801471;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "growth_personnel" ( "date" text, "total_usaaf" real, "tot_officers" real, "tot_enlisted" real, "num_overseas" real, "officers_o_s" real, "enlisted_o_s" real ); Question: How many tot officers were there on the date when the number of tot enlisted was 329640? <|assistant|> SELECT "tot_officers" FROM "growth_personnel" WHERE "tot_enlisted"=329640;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "growth_personnel" ( "date" text, "total_usaaf" real, "tot_officers" real, "tot_enlisted" real, "num_overseas" real, "officers_o_s" real, "enlisted_o_s" real ); Question: How many Tot enlisted were there on the day when the number of total USAAF was 2329534? <|assistant|> SELECT MAX("tot_enlisted") FROM "growth_personnel" WHERE "total_usaaf"=2329534;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "official_delegates" ( "represent" text, "contestant" text, "age" real, "height_ft" text, "height_mtr" text, "hometown" text ); Question: How many contestants where from mitteldeutschland? <|assistant|> SELECT COUNT("age") FROM "official_delegates" WHERE "represent"='Mitteldeutschland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "official_delegates" ( "represent" text, "contestant" text, "age" real, "height_ft" text, "height_mtr" text, "hometown" text ); Question: How many meters tall is Ulrike Wolful? <|assistant|> SELECT "height_mtr" FROM "official_delegates" WHERE "contestant"='Ulrike Wolful';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "official_delegates" ( "represent" text, "contestant" text, "age" real, "height_ft" text, "height_mtr" text, "hometown" text ); Question: Which country had a contestant that was 1.76 meters tall? <|assistant|> SELECT "represent" FROM "official_delegates" WHERE "height_mtr"='1.76';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "official_delegates" ( "represent" text, "contestant" text, "age" real, "height_ft" text, "height_mtr" text, "hometown" text ); Question: What country had a contestant that was 1.70 meters tall? <|assistant|> SELECT "represent" FROM "official_delegates" WHERE "height_mtr"='1.70';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_wimbledon_championships" ( "seed" real, "rank" real, "player" text, "points" real, "points_defending" text, "points_won" real, "new_points" real, "status" text ); Question: If seed number is 2, what is the maximum amount of points? <|assistant|> SELECT MAX("points") FROM "2010_wimbledon_championships" WHERE "seed"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_wimbledon_championships" ( "seed" real, "rank" real, "player" text, "points" real, "points_defending" text, "points_won" real, "new_points" real, "status" text ); Question: If new points is 1720, what is the status? <|assistant|> SELECT "status" FROM "2010_wimbledon_championships" WHERE "new_points"=1720;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23512864_4" ( "election_year" real, "assembly" text, "winning_party_coalition" text, "chief_minister" text, "speaker" text ); Question: Who is the winning party/coalition name in election year 1980? <|assistant|> SELECT "winning_party_coalition" FROM "table1_23512864_4" WHERE "election_year"=1980;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23512864_4" ( "election_year" real, "assembly" text, "winning_party_coalition" text, "chief_minister" text, "speaker" text ); Question: If the speaker is Munu Adhi (2) K. Rajaram, what is the election year maximum? <|assistant|> SELECT MAX("election_year") FROM "table1_23512864_4" WHERE "speaker"='Munu Adhi (2) K. Rajaram';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23512864_4" ( "election_year" real, "assembly" text, "winning_party_coalition" text, "chief_minister" text, "speaker" text ); Question: If the speaker is R. Muthiah, what is the election year maximum? <|assistant|> SELECT MAX("election_year") FROM "table1_23512864_4" WHERE "speaker"='R. Muthiah';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23512864_4" ( "election_year" real, "assembly" text, "winning_party_coalition" text, "chief_minister" text, "speaker" text ); Question: What is the name of the speaker if the chief minister is M.G. Ramachandran? <|assistant|> SELECT "speaker" FROM "table1_23512864_4" WHERE "chief_minister"='M.G. Ramachandran';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23512864_4" ( "election_year" real, "assembly" text, "winning_party_coalition" text, "chief_minister" text, "speaker" text ); Question: If the assembly is the sixth assembly, what is the maximum election year? <|assistant|> SELECT MAX("election_year") FROM "table1_23512864_4" WHERE "assembly"='Sixth Assembly';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tactical_organization" ( "type_of_unit" text, "type_of_aircraft" text, "number_of_aircraft" text, "number_of_crews" text, "men_per_crew" text, "total_personnel" real, "officers" real, "enlisted" real ); Question: Name the number of crews for light bombardment group <|assistant|> SELECT "number_of_crews" FROM "tactical_organization" WHERE "type_of_unit"='Light bombardment group';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tactical_organization" ( "type_of_unit" text, "type_of_aircraft" text, "number_of_aircraft" text, "number_of_crews" text, "men_per_crew" text, "total_personnel" real, "officers" real, "enlisted" real ); Question: What is the aircraft for 21 crews? <|assistant|> SELECT "type_of_aircraft" FROM "tactical_organization" WHERE "number_of_crews"='21';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tactical_organization" ( "type_of_unit" text, "type_of_aircraft" text, "number_of_aircraft" text, "number_of_crews" text, "men_per_crew" text, "total_personnel" real, "officers" real, "enlisted" real ); Question: Nam ethe enlisted for troop carrier group <|assistant|> SELECT "enlisted" FROM "tactical_organization" WHERE "type_of_unit"='Troop carrier group';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23513241_5" ( "series_episode" real, "season_episode" real, "title" text, "u_s_viewers_millions" text, "original_u_s_airdate" text, "prod_code" real ); Question: What was the title when 1.121 million US people watched it? <|assistant|> SELECT "title" FROM "table1_23513241_5" WHERE "u_s_viewers_millions"='1.121';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23513241_5" ( "series_episode" real, "season_episode" real, "title" text, "u_s_viewers_millions" text, "original_u_s_airdate" text, "prod_code" real ); Question: What is the lowest series episode with a production code of 406? <|assistant|> SELECT MIN("series_episode") FROM "table1_23513241_5" WHERE "prod_code"=406;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23513241_5" ( "series_episode" real, "season_episode" real, "title" text, "u_s_viewers_millions" text, "original_u_s_airdate" text, "prod_code" real ); Question: List the title of series episode 38. <|assistant|> SELECT "title" FROM "table1_23513241_5" WHERE "series_episode"=38;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23513241_5" ( "series_episode" real, "season_episode" real, "title" text, "u_s_viewers_millions" text, "original_u_s_airdate" text, "prod_code" real ); Question: How many millions of U.S. viewers watched the episode "Here Comes the Neighborhood"? <|assistant|> SELECT "u_s_viewers_millions" FROM "table1_23513241_5" WHERE "title"='\"Here Comes the Neighborhood\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_of_the_danish_grand_prix" ( "year" real, "driver" text, "constructor" text, "location" text, "formula" text, "report" text ); Question: What type of formula did Stirling Moss drive? <|assistant|> SELECT "formula" FROM "winners_of_the_danish_grand_prix" WHERE "driver"='Stirling Moss';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_of_the_danish_grand_prix" ( "year" real, "driver" text, "constructor" text, "location" text, "formula" text, "report" text ); Question: What year did Randy Lewis drive? <|assistant|> SELECT "year" FROM "winners_of_the_danish_grand_prix" WHERE "driver"='Randy Lewis';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_of_the_danish_grand_prix" ( "year" real, "driver" text, "constructor" text, "location" text, "formula" text, "report" text ); Question: What was the constructor in 1975? <|assistant|> SELECT "constructor" FROM "winners_of_the_danish_grand_prix" WHERE "year"=1975;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "smartphones" ( "code_name" text, "market_name" text, "platform" text, "release_date" text, "android_version" text, "system_on_chip" text, "ram" text, "rom" text, "display" text, "weight" text, "battery_m_ah" real, "bluetooth" text, "wi_fi" text, "nfc" text, "camera" text, "network" text ); Question: If the market name is Xperia U, what is the weight? <|assistant|> SELECT "weight" FROM "smartphones" WHERE "market_name"='Xperia U';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "smartphones" ( "code_name" text, "market_name" text, "platform" text, "release_date" text, "android_version" text, "system_on_chip" text, "ram" text, "rom" text, "display" text, "weight" text, "battery_m_ah" real, "bluetooth" text, "wi_fi" text, "nfc" text, "camera" text, "network" text ); Question: What is the release date if the code name is Aoba? <|assistant|> SELECT "release_date" FROM "smartphones" WHERE "code_name"='Aoba';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "smartphones" ( "code_name" text, "market_name" text, "platform" text, "release_date" text, "android_version" text, "system_on_chip" text, "ram" text, "rom" text, "display" text, "weight" text, "battery_m_ah" real, "bluetooth" text, "wi_fi" text, "nfc" text, "camera" text, "network" text ); Question: If the weight is 126g and the NFC is yes, what is the battery (MAH)? <|assistant|> SELECT "battery_m_ah" FROM "smartphones" WHERE "nfc"='Yes' AND "weight"='126g';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "smartphones" ( "code_name" text, "market_name" text, "platform" text, "release_date" text, "android_version" text, "system_on_chip" text, "ram" text, "rom" text, "display" text, "weight" text, "battery_m_ah" real, "bluetooth" text, "wi_fi" text, "nfc" text, "camera" text, "network" text ); Question: What is the platform if the weight is 131.5g? <|assistant|> SELECT "platform" FROM "smartphones" WHERE "weight"='131.5g';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "smartphones" ( "code_name" text, "market_name" text, "platform" text, "release_date" text, "android_version" text, "system_on_chip" text, "ram" text, "rom" text, "display" text, "weight" text, "battery_m_ah" real, "bluetooth" text, "wi_fi" text, "nfc" text, "camera" text, "network" text ); Question: What is the Android version is the code name is Lotus? <|assistant|> SELECT "android_version" FROM "smartphones" WHERE "code_name"='Lotus';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23537091_1" ( "copper_age" text, "chalcolithic_4500_bc_3300_bc" text, "early_chalcolithic" text, "4500_bc_4000_bc" text, "ubaid_period_in_mesopotamia" text ); Question: When middle assyrian empire is the ubaid period in mesopotamia what is the copper age? <|assistant|> SELECT "copper_age" FROM "table1_23537091_1" WHERE "ubaid_period_in_mesopotamia"='Middle Assyrian Empire';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23537091_1" ( "copper_age" text, "chalcolithic_4500_bc_3300_bc" text, "early_chalcolithic" text, "4500_bc_4000_bc" text, "ubaid_period_in_mesopotamia" text ); Question: When hittite old kingdom , minoan eruption is the ubaid period in mesopotamia what is the copper age? <|assistant|> SELECT "copper_age" FROM "table1_23537091_1" WHERE "ubaid_period_in_mesopotamia"='Hittite Old Kingdom , Minoan eruption';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23537091_1" ( "copper_age" text, "chalcolithic_4500_bc_3300_bc" text, "early_chalcolithic" text, "4500_bc_4000_bc" text, "ubaid_period_in_mesopotamia" text ); Question: When hittite middle kingdom , new kingdom of egypt is the ubaid period in mesopotamia how many early chalcolithics are there? <|assistant|> SELECT COUNT("early_chalcolithic") FROM "table1_23537091_1" WHERE "ubaid_period_in_mesopotamia"='Hittite Middle Kingdom , New Kingdom of Egypt';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23537091_1" ( "copper_age" text, "chalcolithic_4500_bc_3300_bc" text, "early_chalcolithic" text, "4500_bc_4000_bc" text, "ubaid_period_in_mesopotamia" text ); Question: When the second intermediate period of egypt is the ubaid period in mesopotamia how many early calcolithics are there? <|assistant|> SELECT COUNT("early_chalcolithic") FROM "table1_23537091_1" WHERE "ubaid_period_in_mesopotamia"='Second Intermediate Period of Egypt';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_14" ( "edition" text, "round" text, "date" text, "against" text, "surface" text, "opponent" text, "w_l" text, "result" text ); Question: What was the score against Loic Didavi? <|assistant|> SELECT "result" FROM "singles_14" WHERE "opponent"='Loic Didavi';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_14" ( "edition" text, "round" text, "date" text, "against" text, "surface" text, "opponent" text, "w_l" text, "result" text ); Question: Who was played against when there was a loss and in the gi po round? <|assistant|> SELECT "against" FROM "singles_14" WHERE "w_l"='Loss' AND "round"='GI PO';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_14" ( "edition" text, "round" text, "date" text, "against" text, "surface" text, "opponent" text, "w_l" text, "result" text ); Question: What were the w/l when the final score was 2–6, 5–7, 7–6 (11–9) , 1–6? <|assistant|> SELECT "w_l" FROM "singles_14" WHERE "result"='2–6, 5–7, 7–6 (11–9) , 1–6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: When Cleveland was 2nd, great lakes in the regular season what did they get to in the playoffs? <|assistant|> SELECT "playoffs" FROM "year_by_year" WHERE "regular_season"='2nd, Great Lakes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: What is the lowest numbered division Cleveland played in? <|assistant|> SELECT MIN("division") FROM "year_by_year";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: How did Cleveland do in the regular season in 2006? <|assistant|> SELECT "regular_season" FROM "year_by_year" WHERE "year"=2006;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: How did Cleveland do in the Open Cup in 2009? <|assistant|> SELECT "open_cup" FROM "year_by_year" WHERE "year"=2009;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23575917_6" ( "episode" text, "first_broadcast" text, "davids_team" text, "lees_team" text, "scores" text ); Question: When victoria coren and rhod gilbert are both on the lees team what is the score? <|assistant|> SELECT "scores" FROM "table1_23575917_6" WHERE "lees_team"='Victoria Coren and Rhod Gilbert';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23575917_6" ( "episode" text, "first_broadcast" text, "davids_team" text, "lees_team" text, "scores" text ); Question: When david o'doherty and katherine parkinson are both on the davids team when is the first broadcast? <|assistant|> SELECT "first_broadcast" FROM "table1_23575917_6" WHERE "davids_team"='David O''Doherty and Katherine Parkinson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23575917_6" ( "episode" text, "first_broadcast" text, "davids_team" text, "lees_team" text, "scores" text ); Question: When bill oddie and frank skinner are both on the davids team what is the episode? <|assistant|> SELECT "episode" FROM "table1_23575917_6" WHERE "davids_team"='Bill Oddie and Frank Skinner';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23575917_6" ( "episode" text, "first_broadcast" text, "davids_team" text, "lees_team" text, "scores" text ); Question: When kevin bridges and katy wix are both on the less team what is the score? <|assistant|> SELECT "scores" FROM "table1_23575917_6" WHERE "lees_team"='Kevin Bridges and Katy Wix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23575917_8" ( "episode" text, "first_broadcast" text, "davids_team" text, "lees_team" text, "scores" text ); Question: How many shows did team David consist of vernon kay and dara Γ³ briain <|assistant|> SELECT COUNT("episode") FROM "table1_23575917_8" WHERE "davids_team"='Vernon Kay and Dara Γ“ Briain';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "contestants" ( "represented" text, "contestant" text, "age" real, "height_in" text, "height_cm" real, "hometown" text ); Question: If the hometown is Windhoek, what is the represented? <|assistant|> SELECT "represented" FROM "contestants" WHERE "hometown"='Windhoek';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "contestants" ( "represented" text, "contestant" text, "age" real, "height_in" text, "height_cm" real, "hometown" text ); Question: If the height in inches is 5'7", what is the represented? <|assistant|> SELECT "represented" FROM "contestants" WHERE "height_in"='5''7\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "contestants" ( "represented" text, "contestant" text, "age" real, "height_in" text, "height_cm" real, "hometown" text ); Question: If the hometown is Omuthiya, what is the contestant name? <|assistant|> SELECT "contestant" FROM "contestants" WHERE "hometown"='Omuthiya';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "contestants" ( "represented" text, "contestant" text, "age" real, "height_in" text, "height_cm" real, "hometown" text ); Question: What is the height in inches if the represented is Erongo? <|assistant|> SELECT "height_in" FROM "contestants" WHERE "represented"='Erongo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text ); Question: What week did September 29 fall in? <|assistant|> SELECT COUNT("week") FROM "schedule" WHERE "date"='September 29';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text ); Question: What was the score on the October 28 game? <|assistant|> SELECT "final_score" FROM "schedule" WHERE "date"='October 28';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text ); Question: What was the score on September 20? <|assistant|> SELECT "final_score" FROM "schedule" WHERE "date"='September 20';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_ironclad_of_chile_and_peru_at_the_begi" ( "warship" text, "tons_l_ton" real, "horse_power" real, "speed_knots" text, "armour_inch" text, "main_artillery" text, "built_year" real ); Question: What's Blanco Encalada's main artillery? <|assistant|> SELECT "main_artillery" FROM "s_ironclad_of_chile_and_peru_at_the_begi" WHERE "warship"='Blanco Encalada';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_ironclad_of_chile_and_peru_at_the_begi" ( "warship" text, "tons_l_ton" real, "horse_power" real, "speed_knots" text, "armour_inch" text, "main_artillery" text, "built_year" real ); Question: How many different horse-powers does the Cochrane have? <|assistant|> SELECT COUNT("horse_power") FROM "s_ironclad_of_chile_and_peru_at_the_begi" WHERE "warship"='Cochrane';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_ironclad_of_chile_and_peru_at_the_begi" ( "warship" text, "tons_l_ton" real, "horse_power" real, "speed_knots" text, "armour_inch" text, "main_artillery" text, "built_year" real ); Question: What warship has horse-power of 1500? <|assistant|> SELECT "warship" FROM "s_ironclad_of_chile_and_peru_at_the_begi" WHERE "horse_power"=1500;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_ironclad_of_chile_and_peru_at_the_begi" ( "warship" text, "tons_l_ton" real, "horse_power" real, "speed_knots" text, "armour_inch" text, "main_artillery" text, "built_year" real ); Question: How much does the Independencia weight? <|assistant|> SELECT MIN("tons_l_ton") FROM "s_ironclad_of_chile_and_peru_at_the_begi" WHERE "warship"='Independencia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_ironclad_of_chile_and_peru_at_the_begi" ( "warship" text, "tons_l_ton" real, "horse_power" real, "speed_knots" text, "armour_inch" text, "main_artillery" text, "built_year" real ); Question: In how many different years was the warship that weights 1130 tons built? <|assistant|> SELECT COUNT("built_year") FROM "s_ironclad_of_chile_and_peru_at_the_begi" WHERE "tons_l_ton"=1130;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "external_links" ( "neighbourhood" text, "pct_0_19" text, "pct_20_39" text, "pct_40_59" text, "pct_60_74" text, "pct_75" text ); Question: What is every value for % 20-39 if % 60-74 is 10,46%? <|assistant|> SELECT "pct_20_39" FROM "external_links" WHERE "pct_60_74"='10,46%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "external_links" ( "neighbourhood" text, "pct_0_19" text, "pct_20_39" text, "pct_40_59" text, "pct_60_74" text, "pct_75" text ); Question: What is every value for % 40-59 if % 60-74 is 12,42%? <|assistant|> SELECT "pct_40_59" FROM "external_links" WHERE "pct_60_74"='12,42%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "external_links" ( "neighbourhood" text, "pct_0_19" text, "pct_20_39" text, "pct_40_59" text, "pct_60_74" text, "pct_75" text ); Question: What is every value for % 75 + if % 0-19 is 19,75%? <|assistant|> SELECT "pct_75" FROM "external_links" WHERE "pct_0_19"='19,75%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "external_links" ( "neighbourhood" text, "pct_0_19" text, "pct_20_39" text, "pct_40_59" text, "pct_60_74" text, "pct_75" text ); Question: What is every value for % 20-39 if % 0-19 is 21,11%? <|assistant|> SELECT "pct_20_39" FROM "external_links" WHERE "pct_0_19"='21,11%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "external_links" ( "neighbourhood" text, "pct_0_19" text, "pct_20_39" text, "pct_40_59" text, "pct_60_74" text, "pct_75" text ); Question: What is every value for % 20-39 if % 0-19 is 21,11%? <|assistant|> SELECT "pct_20_39" FROM "external_links" WHERE "pct_0_19"='21,11%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "external_links" ( "neighbourhood" text, "pct_0_19" text, "pct_20_39" text, "pct_40_59" text, "pct_60_74" text, "pct_75" text ); Question: What is every value for % 40-59 if % 60-74 is 12,40%? <|assistant|> SELECT "pct_40_59" FROM "external_links" WHERE "pct_60_74"='12,40%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wooden_s_steamboat_of_chile_and_peru_at_" ( "warship" text, "tons_l_ton" text, "horse_power" real, "speed_knots" real, "main_artillery" text, "built_year" real ); Question: How man horse power did the ship covadonga have? <|assistant|> SELECT "horse_power" FROM "wooden_s_steamboat_of_chile_and_peru_at_" WHERE "warship"='Covadonga';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wooden_s_steamboat_of_chile_and_peru_at_" ( "warship" text, "tons_l_ton" text, "horse_power" real, "speed_knots" real, "main_artillery" text, "built_year" real ); Question: What is the primary artillery for the 1,051 ships? <|assistant|> SELECT "main_artillery" FROM "wooden_s_steamboat_of_chile_and_peru_at_" WHERE "tons_l_ton"='1,051';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wooden_s_steamboat_of_chile_and_peru_at_" ( "warship" text, "tons_l_ton" text, "horse_power" real, "speed_knots" real, "main_artillery" text, "built_year" real ); Question: List the maximum speed for the 1.150 ton ships? <|assistant|> SELECT "speed_knots" FROM "wooden_s_steamboat_of_chile_and_peru_at_" WHERE "tons_l_ton"='1.150';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wooden_s_steamboat_of_chile_and_peru_at_" ( "warship" text, "tons_l_ton" text, "horse_power" real, "speed_knots" real, "main_artillery" text, "built_year" real ); Question: List the ship with 1x115-2x70-2x12-pounders for primary artillery. <|assistant|> SELECT "warship" FROM "wooden_s_steamboat_of_chile_and_peru_at_" WHERE "main_artillery"='1x115-2x70-2x12-pounders';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text ); Question: Which location has the date of October 28? <|assistant|> SELECT "location" FROM "schedule" WHERE "date"='October 28';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text ); Question: What is the final score when 22210 is the attendance? <|assistant|> SELECT "final_score" FROM "schedule" WHERE "attendance"=22210;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text ); Question: Which opponents are on the date July 22? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "date"='July 22';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text ); Question: Which opponents are on the date September 5? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "date"='September 5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text ); Question: What is the final score when July 16 is the date? <|assistant|> SELECT "final_score" FROM "schedule" WHERE "date"='July 16';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text ); Question: On which date is Taylor Field the location? <|assistant|> SELECT "date" FROM "schedule" WHERE "location"='Taylor Field';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: Name the number of regular season for 2007 <|assistant|> SELECT COUNT("regular_season") FROM "year_by_year" WHERE "year"=2007;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: Name the most year for conference finals <|assistant|> SELECT MAX("year") FROM "year_by_year" WHERE "playoffs"='Conference Finals';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: Name the regular season for final playoffs <|assistant|> SELECT "regular_season" FROM "year_by_year" WHERE "playoffs"='Final';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: Name the least division <|assistant|> SELECT MIN("division") FROM "year_by_year";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: Name the regular season for usisl d-3 pro league did not qualify <|assistant|> SELECT "regular_season" FROM "year_by_year" WHERE "league"='USISL D-3 Pro League' AND "playoffs"='Did not qualify';<|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, "school" text ); Question: What was the position of the player from Saskatchewan Roughriders? <|assistant|> SELECT "position" FROM "round_three" WHERE "cfl_team"='Saskatchewan Roughriders';<|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, "school" text ); Question: What CFL team was the player playing on SB position drafted for? <|assistant|> SELECT "cfl_team" FROM "round_three" WHERE "position"='SB';<|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, "school" text ); Question: What was Michael Shaver's position? <|assistant|> SELECT "position" FROM "round_three" WHERE "player"='Michael Shaver';<|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, "school" text ); Question: How many different players got drafted for the Ottawa Renegades? <|assistant|> SELECT COUNT("player") FROM "round_three" WHERE "cfl_team"='Ottawa Renegades';<|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, "school" text ); Question: What's Doug Borden's position? <|assistant|> SELECT "position" FROM "round_three" WHERE "player"='Doug Borden';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_country" ( "country" text, "pct_of_all_immigrants_2008" text, "pct_of_all_immigrants_2007" text, "pct_of_all_immigrants_2006" text, "pct_of_all_immigrants_2005" text, "pct_of_all_immigrants_2004" text ); Question: What's the percentage of all immigrants in 2007 in the country with 1.7% of all immigrants in 2008? <|assistant|> SELECT "pct_of_all_immigrants_2007" FROM "by_country" WHERE "pct_of_all_immigrants_2008"='1.7%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_country" ( "country" text, "pct_of_all_immigrants_2008" text, "pct_of_all_immigrants_2007" text, "pct_of_all_immigrants_2006" text, "pct_of_all_immigrants_2005" text, "pct_of_all_immigrants_2004" text ); Question: How many different percentages of immigrants in 2006 can there be for Morocco? <|assistant|> SELECT COUNT("pct_of_all_immigrants_2006") FROM "by_country" WHERE "country"='Morocco';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_country" ( "country" text, "pct_of_all_immigrants_2008" text, "pct_of_all_immigrants_2007" text, "pct_of_all_immigrants_2006" text, "pct_of_all_immigrants_2005" text, "pct_of_all_immigrants_2004" text ); Question: What's the percentage of immigrants in 2004 in the country with 2.1% of the immigrants in 2006? <|assistant|> SELECT "pct_of_all_immigrants_2004" FROM "by_country" WHERE "pct_of_all_immigrants_2006"='2.1%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_country" ( "country" text, "pct_of_all_immigrants_2008" text, "pct_of_all_immigrants_2007" text, "pct_of_all_immigrants_2006" text, "pct_of_all_immigrants_2005" text, "pct_of_all_immigrants_2004" text ); Question: What's the percentage of the immigrants in 2007 in the country with 14.1% of the immigrants in 2006? <|assistant|> SELECT "pct_of_all_immigrants_2007" FROM "by_country" WHERE "pct_of_all_immigrants_2006"='14.1%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_country" ( "country" text, "pct_of_all_immigrants_2008" text, "pct_of_all_immigrants_2007" text, "pct_of_all_immigrants_2006" text, "pct_of_all_immigrants_2005" text, "pct_of_all_immigrants_2004" text ); Question: How many different percentages of immigrants are there for the year of 2007 in the countries with 1.2% of the immigrants in the year of 2005? <|assistant|> SELECT COUNT("pct_of_all_immigrants_2007") FROM "by_country" WHERE "pct_of_all_immigrants_2005"='1.2%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men_s_doubles_6_4_titles_2_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: What was the outcome in the championship where the final score was 6–7(1), 2–6, 6–4, 7–5, 6–7(2)? <|assistant|> SELECT "outcome" FROM "men_s_doubles_6_4_titles_2_runner_ups" WHERE "score_in_the_final"='6–7(1), 2–6, 6–4, 7–5, 6–7(2)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men_s_doubles_6_4_titles_2_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: Who were the opponents in the final where the score was 6–4, 2–6, 6–4, 7–6(3)? <|assistant|> SELECT "opponents_in_the_final" FROM "men_s_doubles_6_4_titles_2_runner_ups" WHERE "score_in_the_final"='6–4, 2–6, 6–4, 7–6(3)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men_s_doubles_6_4_titles_2_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: Which championship had a final score of 6–4, 2–6, 6–4, 7–6(3)? <|assistant|> SELECT "championship" FROM "men_s_doubles_6_4_titles_2_runner_ups" WHERE "score_in_the_final"='6–4, 2–6, 6–4, 7–6(3)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_4" ( "outcome" text, "year" real, "championship" text, "partnering" text, "opponents_in_final" text, "score_in_final" text ); Question: What was the score in the final in 1988? <|assistant|> SELECT "score_in_final" FROM "wins_4" WHERE "year"=1988;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "records" ( "world_record" text, "paula_radcliffe_gbr" text, "2_15_25" text, "london_great_britain" text, "13_april_2003" text ); Question: Name the london, great britain for 2:20:57 <|assistant|> SELECT "london_great_britain" FROM "records" WHERE "2_15_25"='2:20:57';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "records" ( "world_record" text, "paula_radcliffe_gbr" text, "2_15_25" text, "london_great_britain" text, "13_april_2003" text ); Question: Name the world record for 26 april 2009 <|assistant|> SELECT "world_record" FROM "records" WHERE "13_april_2003"='26 April 2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "records" ( "world_record" text, "paula_radcliffe_gbr" text, "2_15_25" text, "london_great_britain" text, "13_april_2003" text ); Question: Name the london great britain for championship record <|assistant|> SELECT "london_great_britain" FROM "records" WHERE "world_record"='Championship record';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "records" ( "world_record" text, "paula_radcliffe_gbr" text, "2_15_25" text, "london_great_britain" text, "13_april_2003" text ); Question: Name the total number of african record <|assistant|> SELECT COUNT("paula_radcliffe_gbr") FROM "records" WHERE "world_record"='African record';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23649244_1" ( "song_1_title" text, "artist_1" text, "song_2_title" text, "artist_2" text, "mix_artist" text, "guitar_part" text, "level" text ); Question: Who are thebmix artists when tears for fears is artist 1 and eric prydz is artist 2? <|assistant|> SELECT "mix_artist" FROM "table1_23649244_1" WHERE "artist_1"='Tears for Fears' AND "artist_2"='Eric Prydz';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23649244_1" ( "song_1_title" text, "artist_1" text, "song_2_title" text, "artist_2" text, "mix_artist" text, "guitar_part" text, "level" text ); Question: Which level has marvin gaye as artist 1 and david bowie as artist 2? <|assistant|> SELECT "level" FROM "table1_23649244_1" WHERE "artist_1"='Marvin Gaye' AND "artist_2"='David Bowie';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23649244_1" ( "song_1_title" text, "artist_1" text, "song_2_title" text, "artist_2" text, "mix_artist" text, "guitar_part" text, "level" text ); Question: Which level has grandmaster flash as artist 1? <|assistant|> SELECT "level" FROM "table1_23649244_1" WHERE "artist_1"='Grandmaster Flash';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23649244_1" ( "song_1_title" text, "artist_1" text, "song_2_title" text, "artist_2" text, "mix_artist" text, "guitar_part" text, "level" text ); Question: Which level has wale as artist 1? <|assistant|> SELECT "level" FROM "table1_23649244_1" WHERE "artist_1"='Wale';<|endoftext|>