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