output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT COUNT("porphyria") FROM "biosynthesis" WHERE "substrate"='δ-Aminolevulinic acid';
## Task Generate a SQL query to answer the following question: `how many porphyria have substrate δ-aminolevulinic acid` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "biosynthesis" ( "enzyme" text, "location" text, "substrate" text, "product" text, "chromosome" text, "ec" text, "omim" real, "porphyria" text ); ### SQL Given the database schema, here is the SQL query that answers `how many porphyria have substrate δ-aminolevulinic acid`: ```sql
SELECT "location" FROM "biosynthesis" WHERE "substrate"='Coproporphyrinogen III';
## Task Generate a SQL query to answer the following question: `give the location of subtrate coproporphyrinogen iii` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "biosynthesis" ( "enzyme" text, "location" text, "substrate" text, "product" text, "chromosome" text, "ec" text, "omim" real, "porphyria" text ); ### SQL Given the database schema, here is the SQL query that answers `give the location of subtrate coproporphyrinogen iii`: ```sql
SELECT "written_by" FROM "table1_18274425_1" WHERE "production_code"='3T7573';
## Task Generate a SQL query to answer the following question: `Who were the authors of episode having production code 3t7573?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18274425_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the authors of episode having production code 3t7573?`: ```sql
SELECT COUNT("no_in_season") FROM "table1_18274425_1" WHERE "u_s_viewers_millions"='2.65';
## Task Generate a SQL query to answer the following question: `How many episodes had a viewership of 2.65 million?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18274425_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many episodes had a viewership of 2.65 million?`: ```sql
SELECT "directed_by" FROM "table1_18274425_1" WHERE "written_by"='Mike Daniels';
## Task Generate a SQL query to answer the following question: `Who were the director/s of episodes written by Mike Daniels?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18274425_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the director/s of episodes written by Mike Daniels?`: ```sql
SELECT COUNT("binibining_pilipinas_international") FROM "title_holders_from_2000_until_2010" WHERE "miss_universe_philippines"='Nina Ricci Alagao';
## Task Generate a SQL query to answer the following question: `How many winners of Binibining Pilipinas-International when Nina Ricci Alagao?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "title_holders_from_2000_until_2010" ( "year" real, "miss_universe_philippines" text, "binibining_pilipinas_world" text, "binibining_pilipinas_international" text, "binibining_pilipinas_tourism" text, "first_runner_up" text, "second_runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `How many winners of Binibining Pilipinas-International when Nina Ricci Alagao?`: ```sql
SELECT "second_runner_up" FROM "title_holders_from_2000_until_2010" WHERE "binibining_pilipinas_world"='Janina San Miguel';
## Task Generate a SQL query to answer the following question: `Who was second runner up when Janina San Miguel won Binibining Pilipinas-World?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "title_holders_from_2000_until_2010" ( "year" real, "miss_universe_philippines" text, "binibining_pilipinas_world" text, "binibining_pilipinas_international" text, "binibining_pilipinas_tourism" text, "first_runner_up" text, "second_runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was second runner up when Janina San Miguel won Binibining Pilipinas-World?`: ```sql
SELECT "binibining_pilipinas_international" FROM "title_holders_from_2000_until_2010" WHERE "miss_universe_philippines"='Gionna Cabrera';
## Task Generate a SQL query to answer the following question: `Who was the winner of binibining pilipinas-International wheh Gionna Cabrera won Miss Universe Philippines?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "title_holders_from_2000_until_2010" ( "year" real, "miss_universe_philippines" text, "binibining_pilipinas_world" text, "binibining_pilipinas_international" text, "binibining_pilipinas_tourism" text, "first_runner_up" text, "second_runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the winner of binibining pilipinas-International wheh Gionna Cabrera won Miss Universe Philippines?`: ```sql
SELECT COUNT("binibining_pilipinas_international") FROM "title_holders_from_2000_until_2010" WHERE "binibining_pilipinas_world"='Maria Karla Bautista';
## Task Generate a SQL query to answer the following question: `How many winners of binibining pilipinas-International when Maria Karla Bautista won binibining pilipinas-world?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "title_holders_from_2000_until_2010" ( "year" real, "miss_universe_philippines" text, "binibining_pilipinas_world" text, "binibining_pilipinas_international" text, "binibining_pilipinas_tourism" text, "first_runner_up" text, "second_runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `How many winners of binibining pilipinas-International when Maria Karla Bautista won binibining pilipinas-world?`: ```sql
SELECT COUNT("second_runner_up") FROM "title_holders_from_2000_until_2010" WHERE "binibining_pilipinas_world"='Janina San Miguel';
## Task Generate a SQL query to answer the following question: `Who is the second runner up when Janina San Miguel won binibining pilipinas-world?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "title_holders_from_2000_until_2010" ( "year" real, "miss_universe_philippines" text, "binibining_pilipinas_world" text, "binibining_pilipinas_international" text, "binibining_pilipinas_tourism" text, "first_runner_up" text, "second_runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the second runner up when Janina San Miguel won binibining pilipinas-world?`: ```sql
SELECT COUNT("miss_universe_philippines") FROM "title_holders_from_2000_until_2010" WHERE "binibining_pilipinas_international"='Margaret Ann Bayot';
## Task Generate a SQL query to answer the following question: `When Margaret Ann Bayot won binibining pilipinas-international, how many winners of Miss Universe Philippines were there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "title_holders_from_2000_until_2010" ( "year" real, "miss_universe_philippines" text, "binibining_pilipinas_world" text, "binibining_pilipinas_international" text, "binibining_pilipinas_tourism" text, "first_runner_up" text, "second_runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `When Margaret Ann Bayot won binibining pilipinas-international, how many winners of Miss Universe Philippines were there?`: ```sql
SELECT MIN("population_served") FROM "plants";
## Task Generate a SQL query to answer the following question: `What's the minimal number of population served?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "plants" ( "location" text, "partner" text, "construction_start" text, "inauguration_date" text, "population_served" real, "design_flow_lpm" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the minimal number of population served?`: ```sql
SELECT "partner" FROM "plants" WHERE "location"='Tamara, HON';
## Task Generate a SQL query to answer the following question: `Who's the partner at Tamara, Hon?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "plants" ( "location" text, "partner" text, "construction_start" text, "inauguration_date" text, "population_served" real, "design_flow_lpm" real ); ### SQL Given the database schema, here is the SQL query that answers `Who's the partner at Tamara, Hon?`: ```sql
SELECT MIN("votes_khuzestan") FROM "table1_1827900_1" WHERE "pct_of_votes_khuzestan"='34.50';
## Task Generate a SQL query to answer the following question: `How many votes Khuzestan were there when the percentage was 34.50?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1827900_1" ( "candidates" text, "votes_khuzestan" real, "pct_of_votes_khuzestan" text, "votes_nationally" real, "pct_of_votes_nationally" text ); ### SQL Given the database schema, here is the SQL query that answers `How many votes Khuzestan were there when the percentage was 34.50?`: ```sql
SELECT COUNT("votes_khuzestan") FROM "table1_1827900_1" WHERE "pct_of_votes_khuzestan"='34.50';
## Task Generate a SQL query to answer the following question: `How many figures for votes Khuzestan were there when the percentage was 34.50?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1827900_1" ( "candidates" text, "votes_khuzestan" real, "pct_of_votes_khuzestan" text, "votes_nationally" real, "pct_of_votes_nationally" text ); ### SQL Given the database schema, here is the SQL query that answers `How many figures for votes Khuzestan were there when the percentage was 34.50?`: ```sql
SELECT "pct_of_votes_nationally" FROM "table1_1827900_1" WHERE "candidates"='Mahmoud Ahmadinejad';
## Task Generate a SQL query to answer the following question: `What was the percentage of national votes for Mahmoud Ahmadinejad?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1827900_1" ( "candidates" text, "votes_khuzestan" real, "pct_of_votes_khuzestan" text, "votes_nationally" real, "pct_of_votes_nationally" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the percentage of national votes for Mahmoud Ahmadinejad?`: ```sql
SELECT "revenue_million" FROM "senior_plc_financial_results" WHERE "earnings_per_share_p"='8.9';
## Task Generate a SQL query to answer the following question: `Name the revenue for eps being 8.9` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senior_plc_financial_results" ( "year_to_april" real, "revenue_million" text, "ebit_m" text, "net_profit_m" text, "earnings_per_share_p" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the revenue for eps being 8.9`: ```sql
SELECT COUNT("year_to_april") FROM "senior_plc_financial_results" WHERE "ebit_m"='24.5';
## Task Generate a SQL query to answer the following question: `Name the total number of year to april for ebit being 24.5` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senior_plc_financial_results" ( "year_to_april" real, "revenue_million" text, "ebit_m" text, "net_profit_m" text, "earnings_per_share_p" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of year to april for ebit being 24.5`: ```sql
SELECT "earnings_per_share_p" FROM "senior_plc_financial_results" WHERE "net_profit_m"='39.2';
## Task Generate a SQL query to answer the following question: `Name the eps for net profit being 39.2` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senior_plc_financial_results" ( "year_to_april" real, "revenue_million" text, "ebit_m" text, "net_profit_m" text, "earnings_per_share_p" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the eps for net profit being 39.2`: ```sql
SELECT "ebit_m" FROM "senior_plc_financial_results" WHERE "earnings_per_share_p"='10.6';
## Task Generate a SQL query to answer the following question: `Name the ebit for eps being 10.6` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senior_plc_financial_results" ( "year_to_april" real, "revenue_million" text, "ebit_m" text, "net_profit_m" text, "earnings_per_share_p" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the ebit for eps being 10.6`: ```sql
SELECT "pop_density_km_2" FROM "communes" WHERE "area_km_2"='28.3';
## Task Generate a SQL query to answer the following question: `What are the population densities of all communes with an are of 28.3 sq.km.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "communes" ( "commune" text, "area_km_2" text, "2002_population" real, "pop_density_km_2" text, "municipality_website" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the population densities of all communes with an are of 28.3 sq.km.?`: ```sql
SELECT "commune" FROM "communes" WHERE "area_km_2"='12.4';
## Task Generate a SQL query to answer the following question: `What commune has an area of 12.4 sq.km.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "communes" ( "commune" text, "area_km_2" text, "2002_population" real, "pop_density_km_2" text, "municipality_website" text ); ### SQL Given the database schema, here is the SQL query that answers `What commune has an area of 12.4 sq.km.?`: ```sql
SELECT "commune" FROM "communes" WHERE "2002_population"=130394;
## Task Generate a SQL query to answer the following question: `What commune had a 2002 population of 130394?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "communes" ( "commune" text, "area_km_2" text, "2002_population" real, "pop_density_km_2" text, "municipality_website" text ); ### SQL Given the database schema, here is the SQL query that answers `What commune had a 2002 population of 130394?`: ```sql
SELECT "city" FROM "references" WHERE "resolution"='Negotiated exile in Austria';
## Task Generate a SQL query to answer the following question: `Which city has a resolution that is negotiated exile in Austria?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "name" text, "notability" text, "reason_for_seeking_refuge" text, "country" text, "city" text, "missions_country" text, "start_date" text, "end_date" text, "resolution" text ); ### SQL Given the database schema, here is the SQL query that answers `Which city has a resolution that is negotiated exile in Austria?`: ```sql
SELECT "city" FROM "references" WHERE "missions_country"='Australia';
## Task Generate a SQL query to answer the following question: `Which city has the missions city of Australia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "name" text, "notability" text, "reason_for_seeking_refuge" text, "country" text, "city" text, "missions_country" text, "start_date" text, "end_date" text, "resolution" text ); ### SQL Given the database schema, here is the SQL query that answers `Which city has the missions city of Australia?`: ```sql
SELECT COUNT("missions_country") FROM "references" WHERE "notability"='President of Burundi';
## Task Generate a SQL query to answer the following question: `How many missions countries have notability with president of burundi?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "name" text, "notability" text, "reason_for_seeking_refuge" text, "country" text, "city" text, "missions_country" text, "start_date" text, "end_date" text, "resolution" text ); ### SQL Given the database schema, here is the SQL query that answers `How many missions countries have notability with president of burundi?`: ```sql
SELECT "nickname_s" FROM "cooperative_programs" WHERE "enrollment_2013_14"=436;
## Task Generate a SQL query to answer the following question: `What is the nickname of the team whose 2013/2014 enrollment is 436? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cooperative_programs" ( "team_name" text, "schools" text, "sports" text, "host" text, "nickname_s" text, "colors" text, "enrollment_2013_14" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the nickname of the team whose 2013/2014 enrollment is 436? `: ```sql
SELECT "team_name" FROM "cooperative_programs" WHERE "sports"='Football' AND "schools"='Elverado Trico';
## Task Generate a SQL query to answer the following question: `What is the name of the team from the Elverado Trico school in football? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cooperative_programs" ( "team_name" text, "schools" text, "sports" text, "host" text, "nickname_s" text, "colors" text, "enrollment_2013_14" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the team from the Elverado Trico school in football? `: ```sql
SELECT "years_of_kindergarten_provided" FROM "cantonal_school_systems" WHERE "canton"='Ticino';
## Task Generate a SQL query to answer the following question: `How many years of kindergarten is provided in Ticino?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cantonal_school_systems" ( "canton" text, "years_of_kindergarten" real, "years_of_kindergarten_provided" text, "years_of_kindergarten_legally_required" text, "length_of_primary_school" real, "length_of_mandatory_secondary_school" real, "separate_secondary_schools" text, "cooperative_secondary_schools" text, "integrated_secondary_schools" text ); ### SQL Given the database schema, here is the SQL query that answers `How many years of kindergarten is provided in Ticino?`: ```sql
SELECT "years_of_kindergarten_legally_required" FROM "cantonal_school_systems" WHERE "canton"='Zug';
## Task Generate a SQL query to answer the following question: `How many years is kindergarten legally requited in Zug?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cantonal_school_systems" ( "canton" text, "years_of_kindergarten" real, "years_of_kindergarten_provided" text, "years_of_kindergarten_legally_required" text, "length_of_primary_school" real, "length_of_mandatory_secondary_school" real, "separate_secondary_schools" text, "cooperative_secondary_schools" text, "integrated_secondary_schools" text ); ### SQL Given the database schema, here is the SQL query that answers `How many years is kindergarten legally requited in Zug?`: ```sql
SELECT "integrated_secondary_schools" FROM "cantonal_school_systems" WHERE "canton"='Uri';
## Task Generate a SQL query to answer the following question: `Are there integrated secondary schools in Uri?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cantonal_school_systems" ( "canton" text, "years_of_kindergarten" real, "years_of_kindergarten_provided" text, "years_of_kindergarten_legally_required" text, "length_of_primary_school" real, "length_of_mandatory_secondary_school" real, "separate_secondary_schools" text, "cooperative_secondary_schools" text, "integrated_secondary_schools" text ); ### SQL Given the database schema, here is the SQL query that answers `Are there integrated secondary schools in Uri?`: ```sql
SELECT MAX("length_of_mandatory_secondary_school") FROM "cantonal_school_systems";
## Task Generate a SQL query to answer the following question: `What is the longest length of mandatory secondary school?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cantonal_school_systems" ( "canton" text, "years_of_kindergarten" real, "years_of_kindergarten_provided" text, "years_of_kindergarten_legally_required" text, "length_of_primary_school" real, "length_of_mandatory_secondary_school" real, "separate_secondary_schools" text, "cooperative_secondary_schools" text, "integrated_secondary_schools" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the longest length of mandatory secondary school?`: ```sql
SELECT "integrated_secondary_schools" FROM "cantonal_school_systems" WHERE "canton"='Basel-Stadt';
## Task Generate a SQL query to answer the following question: `Are there integrated secondary schools in Basel-Stadt?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cantonal_school_systems" ( "canton" text, "years_of_kindergarten" real, "years_of_kindergarten_provided" text, "years_of_kindergarten_legally_required" text, "length_of_primary_school" real, "length_of_mandatory_secondary_school" real, "separate_secondary_schools" text, "cooperative_secondary_schools" text, "integrated_secondary_schools" text ); ### SQL Given the database schema, here is the SQL query that answers `Are there integrated secondary schools in Basel-Stadt?`: ```sql
SELECT "writer_s" FROM "table1_18305523_2" WHERE "cover_date"='19 October 1985';
## Task Generate a SQL query to answer the following question: `Who wrote the story that is cover date 19 October 1985?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18305523_2" ( "num" real, "cover_date" text, "story_title" text, "writer_s" text, "artist_s" text, "letterer_s" text, "colourist_s" text, "editor_s" text, "comments" text ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote the story that is cover date 19 October 1985?`: ```sql
SELECT COUNT("cover_date") FROM "table1_18305523_2" WHERE "story_title"='DEVASTATION DERBY! (Part 1)';
## Task Generate a SQL query to answer the following question: `How many cover dates does the story "Devastation Derby! (part 1)" have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18305523_2" ( "num" real, "cover_date" text, "story_title" text, "writer_s" text, "artist_s" text, "letterer_s" text, "colourist_s" text, "editor_s" text, "comments" text ); ### SQL Given the database schema, here is the SQL query that answers `How many cover dates does the story "Devastation Derby! (part 1)" have?`: ```sql
SELECT "comments" FROM "table1_18305523_2" WHERE "cover_date"='14 March 1987';
## Task Generate a SQL query to answer the following question: `What is the comment on the issue dated 14 March 1987?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18305523_2" ( "num" real, "cover_date" text, "story_title" text, "writer_s" text, "artist_s" text, "letterer_s" text, "colourist_s" text, "editor_s" text, "comments" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the comment on the issue dated 14 March 1987?`: ```sql
SELECT "story_title" FROM "table1_18305523_2" WHERE "artist_s"='Barry Kitson and Farmer';
## Task Generate a SQL query to answer the following question: `What is the title of the issue where the art was done by Barry Kitson and Farmer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18305523_2" ( "num" real, "cover_date" text, "story_title" text, "writer_s" text, "artist_s" text, "letterer_s" text, "colourist_s" text, "editor_s" text, "comments" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the title of the issue where the art was done by Barry Kitson and Farmer?`: ```sql
SELECT MIN("num") FROM "table1_18305523_1";
## Task Generate a SQL query to answer the following question: `What is the minimum number which is for title The Enemy Within part 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18305523_1" ( "num" real, "cover_date" text, "story_title" text, "writer_s" text, "artist_s" text, "letterer_s" text, "colourist_s" text, "editor_s" text, "comments" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the minimum number which is for title The Enemy Within part 1?`: ```sql
SELECT "hydroxymatairesinol" FROM "food_sources" WHERE "sesamin"='62724';
## Task Generate a SQL query to answer the following question: `what is the number of hydroxymatairesinol where sesamin is 62724?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "food_sources" ( "foodstuff" text, "pinoresinol" real, "syringaresinol" real, "sesamin" text, "lariciresinol" real, "secoisolariciresinol" real, "matairesinol" real, "hydroxymatairesinol" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the number of hydroxymatairesinol where sesamin is 62724?`: ```sql
SELECT "sesamin" FROM "food_sources" WHERE "secoisolariciresinol"=240;
## Task Generate a SQL query to answer the following question: `what is the total number of sesamin were secoisolariciresinol is 240?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "food_sources" ( "foodstuff" text, "pinoresinol" real, "syringaresinol" real, "sesamin" text, "lariciresinol" real, "secoisolariciresinol" real, "matairesinol" real, "hydroxymatairesinol" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the total number of sesamin were secoisolariciresinol is 240?`: ```sql
SELECT MAX("pinoresinol") FROM "food_sources" WHERE "foodstuff"='Wheat bran';
## Task Generate a SQL query to answer the following question: `what is the maximum number of pinorinol in wheat bran?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "food_sources" ( "foodstuff" text, "pinoresinol" real, "syringaresinol" real, "sesamin" text, "lariciresinol" real, "secoisolariciresinol" real, "matairesinol" real, "hydroxymatairesinol" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the maximum number of pinorinol in wheat bran?`: ```sql
SELECT "sesamin" FROM "food_sources" WHERE "foodstuff"='Sesame seed';
## Task Generate a SQL query to answer the following question: `how much sesamin is in sesame seed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "food_sources" ( "foodstuff" text, "pinoresinol" real, "syringaresinol" real, "sesamin" text, "lariciresinol" real, "secoisolariciresinol" real, "matairesinol" real, "hydroxymatairesinol" real ); ### SQL Given the database schema, here is the SQL query that answers `how much sesamin is in sesame seed?`: ```sql
SELECT MIN("lariciresinol") FROM "food_sources" WHERE "matairesinol"=440;
## Task Generate a SQL query to answer the following question: `what is the minimum number is lariciresinol where matairesinol number is 440?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "food_sources" ( "foodstuff" text, "pinoresinol" real, "syringaresinol" real, "sesamin" text, "lariciresinol" real, "secoisolariciresinol" real, "matairesinol" real, "hydroxymatairesinol" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the minimum number is lariciresinol where matairesinol number is 440?`: ```sql
SELECT "calling_at" FROM "table1_18332845_2" WHERE "arrival"='18.42';
## Task Generate a SQL query to answer the following question: `What was the calling for the 18.42 arrival time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18332845_2" ( "departure" text, "going_to" text, "calling_at" text, "arrival" text, "operator" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the calling for the 18.42 arrival time?`: ```sql
SELECT "arrival" FROM "table1_18332845_2" WHERE "calling_at"='Wansford, Peterborough East';
## Task Generate a SQL query to answer the following question: `What was the arrival for Wansford, Peterborough East?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18332845_2" ( "departure" text, "going_to" text, "calling_at" text, "arrival" text, "operator" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the arrival for Wansford, Peterborough East?`: ```sql
SELECT "departure" FROM "table1_18332845_2" WHERE "arrival"='14.40';
## Task Generate a SQL query to answer the following question: `What was the departure time when the arrival was 14.40?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18332845_2" ( "departure" text, "going_to" text, "calling_at" text, "arrival" text, "operator" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the departure time when the arrival was 14.40?`: ```sql
SELECT "departure" FROM "table1_18332845_2" WHERE "going_to"='Peterborough East' AND "arrival"='12.40';
## Task Generate a SQL query to answer the following question: `What is the departure for Peterborough East whose arrival time is 12.40?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18332845_2" ( "departure" text, "going_to" text, "calling_at" text, "arrival" text, "operator" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the departure for Peterborough East whose arrival time is 12.40?`: ```sql
SELECT "calling_at" FROM "table1_18332845_2" WHERE "departure"='09.50';
## Task Generate a SQL query to answer the following question: `What is the calling at for the 09.50 departure?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18332845_2" ( "departure" text, "going_to" text, "calling_at" text, "arrival" text, "operator" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the calling at for the 09.50 departure?`: ```sql
SELECT "going_to" FROM "table1_18332845_2" WHERE "departure"='20.35';
## Task Generate a SQL query to answer the following question: `Where is the train going to when departing at 20.35?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18332845_2" ( "departure" text, "going_to" text, "calling_at" text, "arrival" text, "operator" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is the train going to when departing at 20.35?`: ```sql
SELECT MAX("played") FROM "statistics" WHERE "140"=13;
## Task Generate a SQL query to answer the following question: `Name the most played for 140 plus is 13` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "lwat" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the most played for 140 plus is 13`: ```sql
SELECT "3_dart_average" FROM "statistics" WHERE "player"='Michael van Gerwen';
## Task Generate a SQL query to answer the following question: `Name the 3 dart average for michael van gerwen` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "lwat" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the 3 dart average for michael van gerwen`: ```sql
SELECT COUNT("calling_at") FROM "table1_18333678_2" WHERE "arrival"='09.06';
## Task Generate a SQL query to answer the following question: `how many callings of trains arriving at 09.06` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18333678_2" ( "departure" text, "going_to" text, "calling_at" text, "arrival" text, "operator" text ); ### SQL Given the database schema, here is the SQL query that answers `how many callings of trains arriving at 09.06`: ```sql
SELECT "operator" FROM "table1_18333678_2" WHERE "arrival"='13.39';
## Task Generate a SQL query to answer the following question: `what is the operator of trains arriving at 13.39 ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18333678_2" ( "departure" text, "going_to" text, "calling_at" text, "arrival" text, "operator" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the operator of trains arriving at 13.39 `: ```sql
SELECT "arrival" FROM "table1_18333678_2" WHERE "departure"='11.35';
## Task Generate a SQL query to answer the following question: `when does the train departuring at 11.35 arrive` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18333678_2" ( "departure" text, "going_to" text, "calling_at" text, "arrival" text, "operator" text ); ### SQL Given the database schema, here is the SQL query that answers `when does the train departuring at 11.35 arrive`: ```sql
SELECT "departure" FROM "table1_18333678_2" WHERE "going_to"='Bourne' AND "arrival"='11.45';
## Task Generate a SQL query to answer the following question: `when does the train arriving at bourne at 11.45 departure ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18333678_2" ( "departure" text, "going_to" text, "calling_at" text, "arrival" text, "operator" text ); ### SQL Given the database schema, here is the SQL query that answers `when does the train arriving at bourne at 11.45 departure `: ```sql
SELECT "departure" FROM "table1_18333678_2" WHERE "arrival"='11.45' AND "going_to"='Stamford East';
## Task Generate a SQL query to answer the following question: `when does the train arriving at stamford east at 11.45 departure ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18333678_2" ( "departure" text, "going_to" text, "calling_at" text, "arrival" text, "operator" text ); ### SQL Given the database schema, here is the SQL query that answers `when does the train arriving at stamford east at 11.45 departure `: ```sql
SELECT "clubs_remaining" FROM "teams" WHERE "winners_from_previous_round"='4';
## Task Generate a SQL query to answer the following question: `How many clubs are remaining when the winners from the previous round totals 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "round" text, "clubs_remaining" real, "clubs_involved" real, "winners_from_previous_round" text, "new_entries_this_round" text, "leagues_entering_at_this_round" text ); ### SQL Given the database schema, here is the SQL query that answers `How many clubs are remaining when the winners from the previous round totals 4?`: ```sql
SELECT "round" FROM "teams" WHERE "winners_from_previous_round"='8';
## Task Generate a SQL query to answer the following question: `What is the round where winners from the previous round totals 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "round" text, "clubs_remaining" real, "clubs_involved" real, "winners_from_previous_round" text, "new_entries_this_round" text, "leagues_entering_at_this_round" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the round where winners from the previous round totals 8?`: ```sql
SELECT MIN("clubs_remaining") FROM "teams" WHERE "round"='Fourth round';
## Task Generate a SQL query to answer the following question: `How many clubs remain in the fourth round?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "round" text, "clubs_remaining" real, "clubs_involved" real, "winners_from_previous_round" text, "new_entries_this_round" text, "leagues_entering_at_this_round" text ); ### SQL Given the database schema, here is the SQL query that answers `How many clubs remain in the fourth round?`: ```sql
SELECT "new_entries_this_round" FROM "teams" WHERE "winners_from_previous_round"='32';
## Task Generate a SQL query to answer the following question: `How many new entries started in the round where winners from the previous round is 32?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "round" text, "clubs_remaining" real, "clubs_involved" real, "winners_from_previous_round" text, "new_entries_this_round" text, "leagues_entering_at_this_round" text ); ### SQL Given the database schema, here is the SQL query that answers `How many new entries started in the round where winners from the previous round is 32?`: ```sql
SELECT "new_entries_this_round" FROM "teams" WHERE "round"='Quarter finals';
## Task Generate a SQL query to answer the following question: `How many new entries started in the quarter finals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "round" text, "clubs_remaining" real, "clubs_involved" real, "winners_from_previous_round" text, "new_entries_this_round" text, "leagues_entering_at_this_round" text ); ### SQL Given the database schema, here is the SQL query that answers `How many new entries started in the quarter finals?`: ```sql
SELECT "new_entries_this_round" FROM "teams" WHERE "winners_from_previous_round"='16';
## Task Generate a SQL query to answer the following question: `How many new entries started in the round where winners from the previous round is 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "round" text, "clubs_remaining" real, "clubs_involved" real, "winners_from_previous_round" text, "new_entries_this_round" text, "leagues_entering_at_this_round" text ); ### SQL Given the database schema, here is the SQL query that answers `How many new entries started in the round where winners from the previous round is 16?`: ```sql
SELECT "writer" FROM "table1_18335117_4" WHERE "title"='\"Episode 10\"';
## Task Generate a SQL query to answer the following question: `Who wrote "episode 10"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18335117_4" ( "no_overall" real, "no_in_series" real, "title" text, "director" text, "writer" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote "episode 10"?`: ```sql
SELECT "writer" FROM "table1_18335117_4" WHERE "title"='\"Episode 4\"';
## Task Generate a SQL query to answer the following question: `Who wrote "episode 4"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18335117_4" ( "no_overall" real, "no_in_series" real, "title" text, "director" text, "writer" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote "episode 4"?`: ```sql
SELECT "director" FROM "table1_18335117_4" WHERE "title"='\"Episode 5\"';
## Task Generate a SQL query to answer the following question: `Who directed "episode 5"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18335117_4" ( "no_overall" real, "no_in_series" real, "title" text, "director" text, "writer" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `Who directed "episode 5"?`: ```sql
SELECT "operator" FROM "table1_18365784_3" WHERE "departure"='11.02';
## Task Generate a SQL query to answer the following question: `Who was the train operator when the train departed at 11.02 in 1922?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18365784_3" ( "departure" text, "going_to" text, "calling_at" text, "arrival" text, "operator" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the train operator when the train departed at 11.02 in 1922?`: ```sql
SELECT "going_to" FROM "table1_18365784_3" WHERE "calling_at"='Boston, Sleaford, Nottingham Victoria';
## Task Generate a SQL query to answer the following question: `What was the train destination when it has a calling at Boston, Sleaford, Nottingham Victoria?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18365784_3" ( "departure" text, "going_to" text, "calling_at" text, "arrival" text, "operator" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the train destination when it has a calling at Boston, Sleaford, Nottingham Victoria?`: ```sql
SELECT "departure" FROM "table1_18365784_3" WHERE "going_to"='Boston';
## Task Generate a SQL query to answer the following question: `What was the departure time of the train going to Boston?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18365784_3" ( "departure" text, "going_to" text, "calling_at" text, "arrival" text, "operator" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the departure time of the train going to Boston?`: ```sql
SELECT "arrival" FROM "table1_18365784_3" WHERE "departure"='18.16';
## Task Generate a SQL query to answer the following question: `What was the arrival time of the train that departed at 18.16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18365784_3" ( "departure" text, "going_to" text, "calling_at" text, "arrival" text, "operator" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the arrival time of the train that departed at 18.16?`: ```sql
SELECT "departure" FROM "table1_18365784_3" WHERE "arrival"='21.26';
## Task Generate a SQL query to answer the following question: `What was the departure time of the train that arrived at 21.26?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18365784_3" ( "departure" text, "going_to" text, "calling_at" text, "arrival" text, "operator" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the departure time of the train that arrived at 21.26?`: ```sql
SELECT "calling_at" FROM "table1_18365784_3" WHERE "departure"='18.16';
## Task Generate a SQL query to answer the following question: `What was the 'calling at' station of the train that departed on 18.16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18365784_3" ( "departure" text, "going_to" text, "calling_at" text, "arrival" text, "operator" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the 'calling at' station of the train that departed on 18.16?`: ```sql
SELECT "original_air_date" FROM "table1_18335117_5" WHERE "director"='Barnaby Southcomb' AND "writer"='Charlie Martin';
## Task Generate a SQL query to answer the following question: `Name the original air date for barnaby southcomb for charlie martin` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18335117_5" ( "no_overall" real, "no_in_series" real, "title" text, "director" text, "writer" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the original air date for barnaby southcomb for charlie martin`: ```sql
SELECT MIN("no_in_series") FROM "table1_18335117_5" WHERE "no_overall"=38;
## Task Generate a SQL query to answer the following question: `Name the number in series for number 38` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18335117_5" ( "no_overall" real, "no_in_series" real, "title" text, "director" text, "writer" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the number in series for number 38`: ```sql
SELECT "original_air_date" FROM "table1_18367694_2" WHERE "production_code"=1115;
## Task Generate a SQL query to answer the following question: `What is the original air date of the episode with the production code 1115? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18367694_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the original air date of the episode with the production code 1115? `: ```sql
SELECT "directed_by" FROM "table1_18367694_2" WHERE "original_air_date"='November 22, 1989';
## Task Generate a SQL query to answer the following question: `who directed the episode with the original air date of November 22, 1989? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18367694_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `who directed the episode with the original air date of November 22, 1989? `: ```sql
SELECT "mlb_team" FROM "florida_league_alumni_top_5_round_picks_" WHERE "years_played"='2008' AND "fcsl_team"='DeLand';
## Task Generate a SQL query to answer the following question: `when deland is the fcsl team and 2008 is the year played who is the mlb team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "florida_league_alumni_top_5_round_picks_" ( "player" text, "fcsl_team" text, "years_played" text, "year_drafted" real, "round" text, "mlb_team" text ); ### SQL Given the database schema, here is the SQL query that answers `when deland is the fcsl team and 2008 is the year played who is the mlb team?`: ```sql
SELECT "fcsl_team" FROM "florida_league_alumni_top_5_round_picks_" WHERE "mlb_team"='Toronto Blue Jays';
## Task Generate a SQL query to answer the following question: `When toronto blue jays are the mlb team who are the fscl team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "florida_league_alumni_top_5_round_picks_" ( "player" text, "fcsl_team" text, "years_played" text, "year_drafted" real, "round" text, "mlb_team" text ); ### SQL Given the database schema, here is the SQL query that answers `When toronto blue jays are the mlb team who are the fscl team?`: ```sql
SELECT MIN("year_drafted") FROM "florida_league_alumni_top_5_round_picks_" WHERE "years_played"='2005';
## Task Generate a SQL query to answer the following question: `When 2005 is the year played what is the lowest year drafted?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "florida_league_alumni_top_5_round_picks_" ( "player" text, "fcsl_team" text, "years_played" text, "year_drafted" real, "round" text, "mlb_team" text ); ### SQL Given the database schema, here is the SQL query that answers `When 2005 is the year played what is the lowest year drafted?`: ```sql
SELECT COUNT("mlb_team") FROM "florida_league_alumni_top_5_round_picks_" WHERE "fcsl_team"='Winter Pines';
## Task Generate a SQL query to answer the following question: `When winter pines is the fcsl team how many mlb teams are there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "florida_league_alumni_top_5_round_picks_" ( "player" text, "fcsl_team" text, "years_played" text, "year_drafted" real, "round" text, "mlb_team" text ); ### SQL Given the database schema, here is the SQL query that answers `When winter pines is the fcsl team how many mlb teams are there?`: ```sql
SELECT "player" FROM "florida_league_alumni_top_5_round_picks_" WHERE "fcsl_team"='Winter Park' AND "years_played"='2006';
## Task Generate a SQL query to answer the following question: `When 2006 is the year played and winter park is the fcsl team who is the player?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "florida_league_alumni_top_5_round_picks_" ( "player" text, "fcsl_team" text, "years_played" text, "year_drafted" real, "round" text, "mlb_team" text ); ### SQL Given the database schema, here is the SQL query that answers `When 2006 is the year played and winter park is the fcsl team who is the player?`: ```sql
SELECT "operator" FROM "table1_1837570_1" WHERE "genre"='music';
## Task Generate a SQL query to answer the following question: `Which operators offer a genre of music?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1837570_1" ( "frequency_in_kuala_lumpur_selangor_putrajaya_and_environs" text, "station" text, "operator" text, "language" text, "genre" text, "coverage_area" text ); ### SQL Given the database schema, here is the SQL query that answers `Which operators offer a genre of music?`: ```sql
SELECT "language" FROM "table1_1837570_1" WHERE "coverage_area"='Klang Petaling Jaya Shah Alam';
## Task Generate a SQL query to answer the following question: `Which languages are offered in the coverage area of klang petaling jaya shah alam?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1837570_1" ( "frequency_in_kuala_lumpur_selangor_putrajaya_and_environs" text, "station" text, "operator" text, "language" text, "genre" text, "coverage_area" text ); ### SQL Given the database schema, here is the SQL query that answers `Which languages are offered in the coverage area of klang petaling jaya shah alam?`: ```sql
SELECT "macedonian" FROM "table_of_forms" WHERE "french"='il/elle avait entendu';
## Task Generate a SQL query to answer the following question: `Name the macedonian for il/elle avait entendu` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_of_forms" ( "english" text, "german" text, "dutch" text, "latin" text, "romanian" text, "portuguese" text, "spanish" text, "italian" text, "french" text, "greek_modern" text, "bulgarian" text, "macedonian" text, "polish_extinct" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the macedonian for il/elle avait entendu`: ```sql
SELECT "greek_modern" FROM "table_of_forms" WHERE "polish_extinct"='słyszałeś był / słyszałaś była';
## Task Generate a SQL query to answer the following question: `Name the greek modern for słyszałeś był / słyszałaś była` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_of_forms" ( "english" text, "german" text, "dutch" text, "latin" text, "romanian" text, "portuguese" text, "spanish" text, "italian" text, "french" text, "greek_modern" text, "bulgarian" text, "macedonian" text, "polish_extinct" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the greek modern for słyszałeś był / słyszałaś była`: ```sql
SELECT "bulgarian" FROM "table_of_forms" WHERE "dutch"='jullie hadden gehoord';
## Task Generate a SQL query to answer the following question: `Name the bulgarian for jullie hadden gehoord` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_of_forms" ( "english" text, "german" text, "dutch" text, "latin" text, "romanian" text, "portuguese" text, "spanish" text, "italian" text, "french" text, "greek_modern" text, "bulgarian" text, "macedonian" text, "polish_extinct" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the bulgarian for jullie hadden gehoord`: ```sql
SELECT "english" FROM "table_of_forms" WHERE "french"='j''avais entendu';
## Task Generate a SQL query to answer the following question: `Name the english for j'avais entendu` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_of_forms" ( "english" text, "german" text, "dutch" text, "latin" text, "romanian" text, "portuguese" text, "spanish" text, "italian" text, "french" text, "greek_modern" text, "bulgarian" text, "macedonian" text, "polish_extinct" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the english for j'avais entendu`: ```sql
SELECT "u_s_air_date" FROM "table1_18424435_4" WHERE "canadian_viewers_million"='1.452';
## Task Generate a SQL query to answer the following question: `What was the air date in the U.S. for the episode that had 1.452 million Canadian viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18424435_4" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "canadian_air_date" text, "u_s_air_date" text, "production_code" real, "canadian_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the air date in the U.S. for the episode that had 1.452 million Canadian viewers?`: ```sql
SELECT "no" FROM "table1_18424435_4" WHERE "directed_by"='Kelly Makin' AND "written_by"='Mark Ellis & Stephanie Morgenstern';
## Task Generate a SQL query to answer the following question: `What number episode in the series was directed by Kelly Makin and written by Mark Ellis & Stephanie Morgenstern?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18424435_4" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "canadian_air_date" text, "u_s_air_date" text, "production_code" real, "canadian_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `What number episode in the series was directed by Kelly Makin and written by Mark Ellis & Stephanie Morgenstern?`: ```sql
SELECT MAX("no") FROM "table1_18424435_4";
## Task Generate a SQL query to answer the following question: `What is the maximum number of episodes in the series listed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18424435_4" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "canadian_air_date" text, "u_s_air_date" text, "production_code" real, "canadian_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the maximum number of episodes in the series listed?`: ```sql
SELECT COUNT("num") FROM "table1_18424435_4" WHERE "production_code"=306;
## Task Generate a SQL query to answer the following question: `What is the total number of episodes listed with a production code of 306?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18424435_4" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "canadian_air_date" text, "u_s_air_date" text, "production_code" real, "canadian_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of episodes listed with a production code of 306?`: ```sql
SELECT "directed_by" FROM "table1_18424435_4" WHERE "production_code"=301;
## Task Generate a SQL query to answer the following question: `Who directed the episode with a production code of 301?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18424435_4" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "canadian_air_date" text, "u_s_air_date" text, "production_code" real, "canadian_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the episode with a production code of 301?`: ```sql
SELECT "written_by" FROM "table1_18424435_3" WHERE "canadian_viewers_million"='1.816';
## Task Generate a SQL query to answer the following question: `Who wrote the episodes watched by 1.816 million people in Canada?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18424435_3" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "canadian_air_date" text, "u_s_air_date" text, "production_code" real, "canadian_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote the episodes watched by 1.816 million people in Canada?`: ```sql
SELECT "written_by" FROM "table1_18424435_3" WHERE "canadian_viewers_million"='1.575';
## Task Generate a SQL query to answer the following question: `Who wrote the episodes watched by 1.575 million people in Canada?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18424435_3" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "canadian_air_date" text, "u_s_air_date" text, "production_code" real, "canadian_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote the episodes watched by 1.575 million people in Canada?`: ```sql
SELECT "directed_by" FROM "table1_18424435_3" WHERE "u_s_air_date"='February 27, 2009';
## Task Generate a SQL query to answer the following question: `Who directed the episode aired on February 27, 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18424435_3" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "canadian_air_date" text, "u_s_air_date" text, "production_code" real, "canadian_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the episode aired on February 27, 2009?`: ```sql
SELECT "title" FROM "table1_18424435_3" WHERE "production_code"=217;
## Task Generate a SQL query to answer the following question: `Which episodes had production code 217?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18424435_3" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "canadian_air_date" text, "u_s_air_date" text, "production_code" real, "canadian_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Which episodes had production code 217?`: ```sql
SELECT "median_house_hold_income" FROM "ohio_locations_ranked_by_per_capita_inco" WHERE "place"='Upper Arlington';
## Task Generate a SQL query to answer the following question: `For upper Arlington, what was the median household income?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ohio_locations_ranked_by_per_capita_inco" ( "rank" real, "place" text, "county" text, "per_capita_income" text, "median_house_hold_income" text, "population" real, "number_of_households" real ); ### SQL Given the database schema, here is the SQL query that answers `For upper Arlington, what was the median household income?`: ```sql
SELECT COUNT("number_of_households") FROM "ohio_locations_ranked_by_per_capita_inco" WHERE "per_capita_income"='$30,298';
## Task Generate a SQL query to answer the following question: `With a per capita income of $30,298, what was the total number of households?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ohio_locations_ranked_by_per_capita_inco" ( "rank" real, "place" text, "county" text, "per_capita_income" text, "median_house_hold_income" text, "population" real, "number_of_households" real ); ### SQL Given the database schema, here is the SQL query that answers `With a per capita income of $30,298, what was the total number of households?`: ```sql
SELECT "median_house_hold_income" FROM "ohio_locations_ranked_by_per_capita_inco" WHERE "population"=2188;
## Task Generate a SQL query to answer the following question: `If the population is 2188, what was the median household income?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ohio_locations_ranked_by_per_capita_inco" ( "rank" real, "place" text, "county" text, "per_capita_income" text, "median_house_hold_income" text, "population" real, "number_of_households" real ); ### SQL Given the database schema, here is the SQL query that answers `If the population is 2188, what was the median household income?`: ```sql
SELECT "per_capita_income" FROM "ohio_locations_ranked_by_per_capita_inco" WHERE "place"='Pigeon Creek';
## Task Generate a SQL query to answer the following question: `For Pigeon Creek what is the per capita income?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ohio_locations_ranked_by_per_capita_inco" ( "rank" real, "place" text, "county" text, "per_capita_income" text, "median_house_hold_income" text, "population" real, "number_of_households" real ); ### SQL Given the database schema, here is the SQL query that answers `For Pigeon Creek what is the per capita income?`: ```sql
SELECT "per_capita_income" FROM "ohio_locations_ranked_by_per_capita_inco" WHERE "median_house_hold_income"='$57,407';
## Task Generate a SQL query to answer the following question: `If the median income is $57,407, what is the per capita income?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ohio_locations_ranked_by_per_capita_inco" ( "rank" real, "place" text, "county" text, "per_capita_income" text, "median_house_hold_income" text, "population" real, "number_of_households" real ); ### SQL Given the database schema, here is the SQL query that answers `If the median income is $57,407, what is the per capita income?`: ```sql