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