text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_robin" ( "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: How many times is a score for stolen ends recorded for France? <|assistant|> SELECT COUNT("stolen_ends") FROM "round_robin" WHERE "country"='France';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_robin" ( "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: How many ends were lost by the country whose points for (PF) was 87? <|assistant|> SELECT MAX("ends_lost") FROM "round_robin" WHERE "pf"=87;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1_ethnic_russians" ( "children_women_over_15" real, "oblast_age_of_women" text, "15_to_17" real, "18_to_19" real, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real, "70" real ); Question: What is the 25 to 29 maximum if 30 to 34 is 1357? <|assistant|> SELECT MIN("25_to_29") FROM "1_ethnic_russians" WHERE "30_to_34"=1357;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1_ethnic_russians" ( "children_women_over_15" real, "oblast_age_of_women" text, "15_to_17" real, "18_to_19" real, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real, "70" real ); Question: If 70+ is 2554, what is the 25 to 29 amount? <|assistant|> SELECT "25_to_29" FROM "1_ethnic_russians" WHERE "70"=2554;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "executive_committee" ( "season" text, "president" text, "general_sec" text, "treasurer" text, "fixtures_sec" text, "social_sec_bradford" text, "social_sec_leeds" text, "media_officer" text ); Question: How many seasons was Dave Reid treasurer? <|assistant|> SELECT COUNT("season") FROM "executive_committee" WHERE "treasurer"='Dave Reid';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "executive_committee" ( "season" text, "president" text, "general_sec" text, "treasurer" text, "fixtures_sec" text, "social_sec_bradford" text, "social_sec_leeds" text, "media_officer" text ); Question: When was Jonny Leadbeater President? <|assistant|> SELECT "season" FROM "executive_committee" WHERE "president"='Jonny Leadbeater';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_robin" ( "locale" 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" text ); Question: Who was the skip with 14 stolen ends? <|assistant|> SELECT "skip" FROM "round_robin" WHERE "stolen_ends"=14;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_robin" ( "locale" 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" text ); Question: What is the fewest number of losses? <|assistant|> SELECT MIN("l") FROM "round_robin";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_robin" ( "locale" 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" text ); Question: What are the shot percentages for teams that played in switzerland? <|assistant|> SELECT "shot_pct" FROM "round_robin" WHERE "locale"='Switzerland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_robin" ( "locale" 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" text ); Question: What is the lowest number of losses for teams that lost 52 ends? <|assistant|> SELECT MIN("l") FROM "round_robin" WHERE "ends_lost"=52;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2_ukrainians" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" text, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real, "70" real ); Question: When 1509 is the c/w 15+ how many results of 15 to 17 are there? <|assistant|> SELECT COUNT("15_to_17") FROM "2_ukrainians" WHERE "c_w_15"=1509;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2_ukrainians" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" text, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real, "70" real ); Question: When 2275 is 70+ how many results of 40 to 44 are there? <|assistant|> SELECT COUNT("40_to_44") FROM "2_ukrainians" WHERE "70"=2275;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2_ukrainians" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" text, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real, "70" real ); Question: When pskov is oblast\age what is the result of 18 to 19? <|assistant|> SELECT "18_to_19" FROM "2_ukrainians" WHERE "oblast_age"='Pskov';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2_ukrainians" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" text, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real, "70" real ); Question: When 2073 is 65 to 69 how many results of 25 to 29 are there? <|assistant|> SELECT COUNT("25_to_29") FROM "2_ukrainians" WHERE "65_to_69"=2073;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2_ukrainians" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" text, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real, "70" real ); Question: When 2054 is the result of 50 to 54 what is the oblast\age? <|assistant|> SELECT "oblast_age" FROM "2_ukrainians" WHERE "50_to_54"=2054;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2_ukrainians" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" text, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real, "70" real ); Question: When voronezh is the oblast\age what is the lowest result of 65 to 69? <|assistant|> SELECT MIN("65_to_69") FROM "2_ukrainians" WHERE "oblast_age"='Voronezh';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "4_tatars" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" real, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real, "70" real ); Question: what is the number for 65-69 where 50-54 is 1571? <|assistant|> SELECT "65_to_69" FROM "4_tatars" WHERE "50_to_54"=1571;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "4_tatars" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" real, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real, "70" real ); Question: what is the minimum of 60 -64? <|assistant|> SELECT MIN("60_to_64") FROM "4_tatars";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "4_tatars" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" real, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real, "70" real ); Question: what is the maximum 18 to 19 and 30-34 is 1203? <|assistant|> SELECT MAX("18_to_19") FROM "4_tatars" WHERE "30_to_34"=1203;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "4_tatars" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" real, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real, "70" real ); Question: what is the maximum 65-69 and 35-39 is 1606? <|assistant|> SELECT MAX("65_to_69") FROM "4_tatars" WHERE "35_to_39"=1606;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "china_prc" ( "city" text, "chinese" text, "pinyin" text, "province" text, "urban_population_2010" real, "administrative_population_2010" real ); Question: What province has the Chinese translation 重庆? <|assistant|> SELECT COUNT("province") FROM "china_prc" WHERE "chinese"='重庆';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "china_prc" ( "city" text, "chinese" text, "pinyin" text, "province" text, "urban_population_2010" real, "administrative_population_2010" real ); Question: What is the total administrative population of Shanghai? <|assistant|> SELECT COUNT("administrative_population_2010") FROM "china_prc" WHERE "city"='Shanghai';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "china_prc" ( "city" text, "chinese" text, "pinyin" text, "province" text, "urban_population_2010" real, "administrative_population_2010" real ); Question: What is the maximum administrative population of the city with Chinese translation 昆明? <|assistant|> SELECT MAX("administrative_population_2010") FROM "china_prc" WHERE "chinese"='昆明';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "china_prc" ( "city" text, "chinese" text, "pinyin" text, "province" text, "urban_population_2010" real, "administrative_population_2010" real ); Question: What is the total urban population of the city with the pinyin translation chángchūn? <|assistant|> SELECT COUNT("urban_population_2010") FROM "china_prc" WHERE "pinyin"='Chángchūn';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a" ( "player" text, "no" text, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); Question: What player was on the Grizzlies from 2009-2013? <|assistant|> SELECT "player" FROM "a" WHERE "years_for_grizzlies"='2009-2013';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a" ( "player" text, "no" text, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); Question: What nationality is the player who went to school at South Florida? <|assistant|> SELECT "nationality" FROM "a" WHERE "school_club_team"='South Florida';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a" ( "player" text, "no" text, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); Question: What position is the player who was on the Grizzlies from 1995-1996? <|assistant|> SELECT "position" FROM "a" WHERE "years_for_grizzlies"='1995-1996';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a" ( "player" text, "no" text, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); Question: How may players played for the Grizzlies from 2000-2002? <|assistant|> SELECT COUNT("no") FROM "a" WHERE "years_for_grizzlies"='2000-2002';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16493961_1" ( "year" real, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); Question: Name the miles for june 7 <|assistant|> SELECT "miles_km" FROM "table1_16493961_1" WHERE "date"='June 7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16493961_1" ( "year" real, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); Question: Name the driver for race time being 2:34:21 <|assistant|> SELECT "driver" FROM "table1_16493961_1" WHERE "race_time"='2:34:21';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16493961_1" ( "year" real, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); Question: Name the driver for june 23 and team of penske racing <|assistant|> SELECT "driver" FROM "table1_16493961_1" WHERE "date"='June 23' AND "team"='Penske Racing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_3_1998_99" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: Who was the director for the episode in season #50? <|assistant|> SELECT "directed_by" FROM "season_3_1998_99" WHERE "series_num"=50;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_3_1998_99" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: How many directors were there in total for the episode with series #62? <|assistant|> SELECT COUNT("directed_by") FROM "season_3_1998_99" WHERE "series_num"=62;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_3_1998_99" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: What season was the episode titled "Harlequin" in? <|assistant|> SELECT MAX("season_num") FROM "season_3_1998_99" WHERE "title"='\"Harlequin\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "j" ( "player" text, "no" real, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); Question: What are the nationalities of players who attended duke? <|assistant|> SELECT COUNT("nationality") FROM "j" WHERE "school_club_team"='Duke';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "j" ( "player" text, "no" real, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); Question: How many nationalities does athlete Casey Jacobsen have? <|assistant|> SELECT COUNT("nationality") FROM "j" WHERE "player"='Casey Jacobsen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "j" ( "player" text, "no" real, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); Question: Who are the players that have attended Stanford? <|assistant|> SELECT "player" FROM "j" WHERE "school_club_team"='Stanford';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "j" ( "player" text, "no" real, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); Question: How many athletes play the position of guard? <|assistant|> SELECT COUNT("player") FROM "j" WHERE "position"='Guard';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "j" ( "player" text, "no" real, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); Question: During what years did athletes who attended school in Minnesota play for the Grizzlies? <|assistant|> SELECT "years_for_grizzlies" FROM "j" WHERE "school_club_team"='Minnesota';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "b" ( "player" text, "no" real, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); Question: How many players went to depaul? <|assistant|> SELECT COUNT("player") FROM "b" WHERE "school_club_team"='DePaul';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "c" ( "player" text, "no" real, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); Question: What school did the player who was with the grizzles in 2011 attend? <|assistant|> SELECT "school_club_team" FROM "c" WHERE "years_for_grizzlies"='2011';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "c" ( "player" text, "no" real, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); Question: What players attended missouri? <|assistant|> SELECT "player" FROM "c" WHERE "school_club_team"='Missouri';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "d" ( "player" text, "no" real, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); Question: What position(s) does the player from seton hall play? <|assistant|> SELECT "position" FROM "d" WHERE "school_club_team"='Seton Hall';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "d" ( "player" text, "no" real, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); Question: What number does the player who was with the grizzles in 1999 wear? <|assistant|> SELECT MIN("no") FROM "d" WHERE "years_for_grizzlies"='1999';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "d" ( "player" text, "no" real, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); Question: What players play guard? <|assistant|> SELECT "player" FROM "d" WHERE "position"='Guard';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "d" ( "player" text, "no" real, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); Question: What position(s) do players from bowling green play? <|assistant|> SELECT "position" FROM "d" WHERE "school_club_team"='Bowling Green';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16512618_1" ( "year_affiliation" text, "wins" real, "losses" real, "winning_pct" text, "gb_division_standing" text, "manager" text ); Question: Name the most losses for leslie mann <|assistant|> SELECT MAX("losses") FROM "table1_16512618_1" WHERE "manager"='Leslie Mann';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1651764_3" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); Question: who is the vacator whre the district is new jersey 2nd? <|assistant|> SELECT "vacator" FROM "table1_1651764_3" WHERE "district"='New Jersey 2nd';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1652224_5" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); Question: what is the date the successor seated because the person died august 17, 1954? <|assistant|> SELECT "date_successor_seated" FROM "table1_1652224_5" WHERE "reason_for_change"='Died August 17, 1954';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1652224_5" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); Question: who was the successor for district ohio 15th? <|assistant|> SELECT "successor" FROM "table1_1652224_5" WHERE "district"='Ohio 15th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1652224_5" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); Question: what is the total number for reason for change is district michigan 3rd? <|assistant|> SELECT COUNT("reason_for_change") FROM "table1_1652224_5" WHERE "district"='Michigan 3rd';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16527640_3" ( "player" text, "vfl_games" real, "vfl_club_s" text, "rank_held_at_time_of_death" text, "date_of_death" text, "location" text ); Question: What day did ARchie Roberts die? <|assistant|> SELECT "date_of_death" FROM "table1_16527640_3" WHERE "player"='Archie Roberts';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16527640_3" ( "player" text, "vfl_games" real, "vfl_club_s" text, "rank_held_at_time_of_death" text, "date_of_death" text, "location" text ); Question: What location had a VFL Game number of 9? <|assistant|> SELECT "location" FROM "table1_16527640_3" WHERE "vfl_games"=9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16527640_3" ( "player" text, "vfl_games" real, "vfl_club_s" text, "rank_held_at_time_of_death" text, "date_of_death" text, "location" text ); Question: How many VFL games were located off Goodenough Island Milne Bay? <|assistant|> SELECT "vfl_games" FROM "table1_16527640_3" WHERE "location"='off Goodenough Island Milne Bay';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "specifications" ( "parameter" text, "1st_stage" text, "2nd_stage" text, "3rd_stage" text, "4th_stage" text ); Question: Name the 3rd stage for parameter of thrust <|assistant|> SELECT "3rd_stage" FROM "specifications" WHERE "parameter"='Thrust';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "specifications" ( "parameter" text, "1st_stage" text, "2nd_stage" text, "3rd_stage" text, "4th_stage" text ); Question: Name the parameter for 2.67 m <|assistant|> SELECT "parameter" FROM "specifications" WHERE "1st_stage"='2.67 m';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "specifications" ( "parameter" text, "1st_stage" text, "2nd_stage" text, "3rd_stage" text, "4th_stage" text ); Question: Name the paarameter for 1.0 m 3rd stage <|assistant|> SELECT "parameter" FROM "specifications" WHERE "3rd_stage"='1.0 m';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "specifications" ( "parameter" text, "1st_stage" text, "2nd_stage" text, "3rd_stage" text, "4th_stage" text ); Question: Name the 1st stage for parameter being diameter <|assistant|> SELECT "1st_stage" FROM "specifications" WHERE "parameter"='Diameter';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_1_2005" ( "episode_num" text, "original_airdate_uk" text, "episode_title" text, "doctor_who_episode" text, "webcast_link" text ); Question: How many episodes have the title "the world of who"? <|assistant|> SELECT COUNT("episode_num") FROM "series_1_2005" WHERE "episode_title"='\"The World of Who\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_1_2005" ( "episode_num" text, "original_airdate_uk" text, "episode_title" text, "doctor_who_episode" text, "webcast_link" text ); Question: What episode number is the episode "bringing back the doctor"? <|assistant|> SELECT "episode_num" FROM "series_1_2005" WHERE "episode_title"='\"Bringing Back the Doctor\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_1_2005" ( "episode_num" text, "original_airdate_uk" text, "episode_title" text, "doctor_who_episode" text, "webcast_link" text ); Question: What is the episode number for the episode "a new dimension"? <|assistant|> SELECT "episode_num" FROM "series_1_2005" WHERE "episode_title"='\"A New Dimension\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "archbishops" ( "archbishop" text, "born" text, "ordained_priest" text, "ordained_bishop" text, "appointed_archbishop" text, "vacated_throne" text, "died" text ); Question: Which archbishop was ordained as bishop November 30, 1925? <|assistant|> SELECT "archbishop" FROM "archbishops" WHERE "ordained_bishop"='November 30, 1925';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "archbishops" ( "archbishop" text, "born" text, "ordained_priest" text, "ordained_bishop" text, "appointed_archbishop" text, "vacated_throne" text, "died" text ); Question: What is the death date of the archbishop who was ordained as bishop April 26, 1927? <|assistant|> SELECT "died" FROM "archbishops" WHERE "ordained_bishop"='April 26, 1927';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "archbishops" ( "archbishop" text, "born" text, "ordained_priest" text, "ordained_bishop" text, "appointed_archbishop" text, "vacated_throne" text, "died" text ); Question: How many appointed archbishops were ordained as priests on December 20, 1959 <|assistant|> SELECT COUNT("appointed_archbishop") FROM "archbishops" WHERE "ordained_priest"='December 20, 1959';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "archbishops" ( "archbishop" text, "born" text, "ordained_priest" text, "ordained_bishop" text, "appointed_archbishop" text, "vacated_throne" text, "died" text ); Question: What date was the person ordained as a priest in December 1838 ordained as a bishop? <|assistant|> SELECT "ordained_bishop" FROM "archbishops" WHERE "ordained_priest"='December 1838';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "archbishops" ( "archbishop" text, "born" text, "ordained_priest" text, "ordained_bishop" text, "appointed_archbishop" text, "vacated_throne" text, "died" text ); Question: When was the archbishop who vacated the throne on August 18, 1885 ordained as a priest? <|assistant|> SELECT "ordained_priest" FROM "archbishops" WHERE "vacated_throne"='August 18, 1885';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_bowling_averages" ( "player" text, "team" text, "matches" real, "wickets" real, "average" text, "best_bowling" text ); Question: How many players Bowled 4/125? <|assistant|> SELECT COUNT("player") FROM "best_bowling_averages" WHERE "best_bowling"='4/125';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_bowling_averages" ( "player" text, "team" text, "matches" real, "wickets" real, "average" text, "best_bowling" text ); Question: What number of wickets were there when the average was 22.66? <|assistant|> SELECT MAX("wickets") FROM "best_bowling_averages" WHERE "average"='22.66';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_bowling_averages" ( "player" text, "team" text, "matches" real, "wickets" real, "average" text, "best_bowling" text ); Question: How many wickets were there when average was 22.66? <|assistant|> SELECT "wickets" FROM "best_bowling_averages" WHERE "average"='22.66';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_bowling_averages" ( "player" text, "team" text, "matches" real, "wickets" real, "average" text, "best_bowling" text ); Question: What was the best bowling score when the average was 23.33? <|assistant|> SELECT "best_bowling" FROM "best_bowling_averages" WHERE "average"='23.33';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_bowling_averages" ( "player" text, "team" text, "matches" real, "wickets" real, "average" text, "best_bowling" text ); Question: How many matches had 11 wickets? <|assistant|> SELECT MAX("matches") FROM "best_bowling_averages" WHERE "wickets"=11;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_bowling_averages" ( "player" text, "team" text, "matches" real, "wickets" real, "average" text, "best_bowling" text ); Question: How many wickets did Alec bedser have? <|assistant|> SELECT MAX("wickets") FROM "best_bowling_averages" WHERE "player"='Alec Bedser';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: Who picked dimitri tsoumpas? <|assistant|> SELECT "cfl_team" FROM "round_one" WHERE "player"='Dimitri Tsoumpas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What position did the winnipeg blue bombers draft? <|assistant|> SELECT "position" FROM "round_one" 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_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: Where did Brendon Labatte get picked? <|assistant|> SELECT MIN("pick_num") FROM "round_one" WHERE "player"='Brendon LaBatte';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: Who picked a player from Weber State? <|assistant|> SELECT "cfl_team" FROM "round_one" WHERE "college"='Weber State';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What position was taken out of Louisiana-Lafayette? <|assistant|> SELECT "position" FROM "round_one" WHERE "college"='Louisiana-Lafayette';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: Name the college for calgary stampeders <|assistant|> SELECT "college" FROM "round_four" WHERE "cfl_team"='Calgary Stampeders';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: Name the most pick number for cfl team being edmonton eskimos <|assistant|> SELECT MAX("pick_num") FROM "round_four" WHERE "cfl_team"='Edmonton Eskimos';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16581695_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_airdate" text, "production_code" real ); Question: How many days are associated with production code 210? <|assistant|> SELECT COUNT("original_airdate") FROM "table1_16581695_3" WHERE "production_code"=210;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16581695_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_airdate" text, "production_code" real ); Question: How many titles have a production code of 211? <|assistant|> SELECT COUNT("title") FROM "table1_16581695_3" WHERE "production_code"=211;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16581695_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_airdate" text, "production_code" real ); Question: How many seasons have a production code of 204? <|assistant|> SELECT COUNT("no_in_season") FROM "table1_16581695_3" WHERE "production_code"=204;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16581695_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_airdate" text, "production_code" real ); Question: What title was written by Matt Wayne? <|assistant|> SELECT "title" FROM "table1_16581695_3" WHERE "written_by"='Matt Wayne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16581695_4" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_airdate" text, "production_code" text ); Question: What is the series episode number of the episode with production code 303? <|assistant|> SELECT "no_in_series" FROM "table1_16581695_4" WHERE "production_code"='303';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16581695_4" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_airdate" text, "production_code" text ); Question: What is the production code for episode 15 in season 3? <|assistant|> SELECT "production_code" FROM "table1_16581695_4" WHERE "no_in_season"='15';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16581695_4" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_airdate" text, "production_code" text ); Question: Who directed episode 12 in season 3? <|assistant|> SELECT "directed_by" FROM "table1_16581695_4" WHERE "no_in_season"='12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_protected_forests" ( "central_forest_reserve" text, "size_in_km" real, "total_plant_species" real, "tree_species" real, "endemic" real, "threatened_cr_vu_en" real ); Question: How many tree species are listed when the total plant species is 258? <|assistant|> SELECT "tree_species" FROM "list_of_protected_forests" WHERE "total_plant_species"=258;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_protected_forests" ( "central_forest_reserve" text, "size_in_km" real, "total_plant_species" real, "tree_species" real, "endemic" real, "threatened_cr_vu_en" real ); Question: How many tree species are there when the total plant species is 113? <|assistant|> SELECT COUNT("tree_species") FROM "list_of_protected_forests" WHERE "total_plant_species"=113;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_protected_forests" ( "central_forest_reserve" text, "size_in_km" real, "total_plant_species" real, "tree_species" real, "endemic" real, "threatened_cr_vu_en" real ); Question: What is the size of Itwara central forest reserve? <|assistant|> SELECT MIN("size_in_km") FROM "list_of_protected_forests" WHERE "central_forest_reserve"='Itwara';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_protected_forests" ( "central_forest_reserve" text, "size_in_km" real, "total_plant_species" real, "tree_species" real, "endemic" real, "threatened_cr_vu_en" real ); Question: How many tree species are in the kitechura reserve? <|assistant|> SELECT "tree_species" FROM "list_of_protected_forests" WHERE "central_forest_reserve"='Kitechura';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16617025_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: What episode titles have 17.93 million U.S. viewers? <|assistant|> SELECT "title" FROM "table1_16617025_1" WHERE "u_s_viewers_millions"='17.93';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16617025_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: What episode titles have 20.94 million U.S. viewers? <|assistant|> SELECT "title" FROM "table1_16617025_1" WHERE "u_s_viewers_millions"='20.94';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16617025_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: In what seasons did Kate Woods direct Without A Trace? <|assistant|> SELECT "season_num" FROM "table1_16617025_1" WHERE "directed_by"='Kate Woods';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16617025_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: Who wrote Season 8? <|assistant|> SELECT "written_by" FROM "table1_16617025_1" WHERE "season_num"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_166346_1" ( "country" text, "region" text, "joined_opec" real, "population_july_2012" real, "area_km" real, "production_bbl_day" text ); Question: When did the country that produced 1,213,000 (21st) bbl/day join Opec? <|assistant|> SELECT "joined_opec" FROM "table1_166346_1" WHERE "production_bbl_day"='1,213,000 (21st)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_166346_1" ( "country" text, "region" text, "joined_opec" real, "population_july_2012" real, "area_km" real, "production_bbl_day" text ); Question: What was the minimum area in square kilometers that produced 3,200,000 (12th) bbl/day? <|assistant|> SELECT MIN("area_km") FROM "table1_166346_1" WHERE "production_bbl_day"='3,200,000 (12th)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_166346_1" ( "country" text, "region" text, "joined_opec" real, "population_july_2012" real, "area_km" real, "production_bbl_day" text ); Question: What is the highest poplulation in July 2012 in the country with an area of 2149690 square kilometers? <|assistant|> SELECT MAX("population_july_2012") FROM "table1_166346_1" WHERE "area_km"=2149690;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_166346_1" ( "country" text, "region" text, "joined_opec" real, "population_july_2012" real, "area_km" real, "production_bbl_day" text ); Question: Which regions had a production (bbl/day) of 1,213,000 (21st)? <|assistant|> SELECT "region" FROM "table1_166346_1" WHERE "production_bbl_day"='1,213,000 (21st)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_166346_1" ( "country" text, "region" text, "joined_opec" real, "population_july_2012" real, "area_km" real, "production_bbl_day" text ); Question: Which country had a production (bbl/day) of 2,494,000 (10th)? <|assistant|> SELECT "country" FROM "table1_166346_1" WHERE "production_bbl_day"='2,494,000 (10th)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cancer_immunotherapy_monoclonal_antibodi" ( "antibody" text, "brand_name" text, "approval_date" real, "type" text, "target" text, "approved_treatment_s" text ); Question: What are all the approved treatments for the target CD30? <|assistant|> SELECT "approved_treatment_s" FROM "cancer_immunotherapy_monoclonal_antibodi" WHERE "target"='CD30';<|endoftext|>