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" ...
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" tex...
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"...
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, "di...
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" te...
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_...
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...
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_20...
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_unt...
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, "m...
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...
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_...
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, ...
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...
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" ...
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...
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...
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,...
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, ...
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_p...
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_popu...
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" te...
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_...
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_ref...
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, "coun...
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_seeki...
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...
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, "s...
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_o...
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...
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_kinde...
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, "yea...
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_...
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, "wri...
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_tit...
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, "write...
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, ...
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_titl...
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, "syringaresino...
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, "syringare...
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, ...
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, "...
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, "s...
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...
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, "ar...
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, "...
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, "call...
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"...
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, "arr...
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...
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, "lwa...
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" t...
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, "arriva...
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"...
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, ...
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"...
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_...
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...
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_previ...
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, ...
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_f...
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, ...
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,...
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, ...
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" tex...
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_...
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, "g...
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, ...
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" te...
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" t...
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, "callin...
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, "titl...
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, ...
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, "...
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, "di...
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, ...
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" te...
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" tex...
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" ...
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...
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" ...
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...
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, "roman...
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" tex...
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, "romani...
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...
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, ...
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"...
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"...
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, ...
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...
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, "directe...
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, "directe...
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, ...
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"...
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, "cou...
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, "...
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, ...
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, ...
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, ...