output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT MAX("no_in_series") FROM "table1_14724369_1" WHERE "production_code"='1ACX03';
## Task Generate a SQL query to answer the following question: `What is the first number in series that had the production code 1ACX03?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_14724369_1" ( "no_in_series" real, "title" text, "direc...
SELECT "title" FROM "table1_14724369_1" WHERE "production_code"='1ACX04';
## Task Generate a SQL query to answer the following question: `Which title had the production code 1ACX04?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_14724369_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by"...
SELECT "original_air_date" FROM "table1_14724369_1" WHERE "directed_by"='Michael DiMartino';
## Task Generate a SQL query to answer the following question: `When did the show directed by Michael Dimartino first air?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_14724369_1" ( "no_in_series" real, "title" text, "directed_by" text,...
SELECT "no_in_series" FROM "table1_14724369_1" WHERE "directed_by"='Monte Young';
## Task Generate a SQL query to answer the following question: `Which series numbers were directed by Monte Young?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_14724369_1" ( "no_in_series" real, "title" text, "directed_by" text, "writ...
SELECT COUNT("directed_by") FROM "table1_14724369_1" WHERE "written_by"='Chris Sheridan';
## Task Generate a SQL query to answer the following question: `How many people directed the show written by Chris Sheridan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_14724369_1" ( "no_in_series" real, "title" text, "directed_by" tex...
SELECT "regular_season" FROM "year_by_year" WHERE "year"=2011;
## Task Generate a SQL query to answer the following question: `What regular seasons occurred in 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playof...
SELECT MAX("division") FROM "year_by_year";
## Task Generate a SQL query to answer the following question: `What is the largest numbered?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text,...
SELECT COUNT("position") FROM "round_two" WHERE "player"='Rene Villemure';
## Task Generate a SQL query to answer the following question: `How many positions does rene villemure play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nh...
SELECT MIN("pick_num") FROM "round_two" WHERE "college_junior_club_team"='Medicine Hat Tigers (WCHL)';
## Task Generate a SQL query to answer the following question: `What is the pick# for the medicine hat tigers (wchl)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" real, "player" text, "position" text, "nationality" te...
SELECT "nhl_team" FROM "round_two" WHERE "player"='Stan Weir';
## Task Generate a SQL query to answer the following question: `What nhl team does stan weir play for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team...
SELECT "nhl_team" FROM "round_two" WHERE "player"='Dwight Bialowas';
## Task Generate a SQL query to answer the following question: `What nhl team does dwight bialowas play for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nh...
SELECT MIN("pick_num") FROM "round_two";
## Task Generate a SQL query to answer the following question: `Lorne Henning has the lowest pick# of?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team...
SELECT "nhl_team" FROM "round_two" WHERE "college_junior_club_team"='Oshawa Generals (OMJHL)';
## Task Generate a SQL query to answer the following question: `Jack Lynch played for the oshawa generals (omjhl) before playing for what nhl team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" real, "player" text, "posi...
SELECT "college_junior_club_team" FROM "round_three" WHERE "player"='Michel Boudreau';
## Task Generate a SQL query to answer the following question: `Which colle/junior/club team did Michel Boudreau play for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_three" ( "pick_num" real, "player" text, "position" text, "national...
SELECT "player" FROM "round_three" WHERE "position"='Right Wing';
## Task Generate a SQL query to answer the following question: `Which players played right wing?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_three" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" te...
SELECT "nationality" FROM "round_three" WHERE "nhl_team"='Philadelphia Flyers';
## Task Generate a SQL query to answer the following question: `Which nationality is the player from the Philadelphia Flyers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_three" ( "pick_num" real, "player" text, "position" text, "natio...
SELECT "position" FROM "round_three" WHERE "nhl_team"='Philadelphia Flyers';
## Task Generate a SQL query to answer the following question: `Which position did the player hold that played for the Philadelphia Flyers in NHL?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_three" ( "pick_num" real, "player" text, "pos...
SELECT "college_junior_club_team" FROM "round_three" WHERE "nhl_team"='Buffalo Sabres';
## Task Generate a SQL query to answer the following question: `Which college/junior/club team did the player play on that played for the Buffalo Sabres in NHL?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_three" ( "pick_num" real, "player...
SELECT COUNT("college_junior_club_team") FROM "round_four" WHERE "nhl_team"='Philadelphia Flyers';
## Task Generate a SQL query to answer the following question: `Name the number of teams for college/junior club for philadelphia flyers` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_four" ( "pick_num" real, "player" text, "position" text...
SELECT "position" FROM "round_four" WHERE "player"='Ron Lalonde';
## Task Generate a SQL query to answer the following question: `Name the position for ron lalonde` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_four" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" te...
SELECT "college_junior_club_team" FROM "round_four" WHERE "pick_num"=63;
## Task Generate a SQL query to answer the following question: `Name the college/junior club team for pick number 63` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_four" ( "pick_num" real, "player" text, "position" text, "nationality" te...
SELECT COUNT("position") FROM "round_ten" WHERE "player"='Rene Lambert';
## Task Generate a SQL query to answer the following question: `How many positions did 1972 NHL Draft pick Rene Lambert play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_ten" ( "pick_num" real, "player" text, "position" text, "nationa...
SELECT "college_junior_club_team" FROM "round_nine" WHERE "nhl_team"='California Golden Seals';
## Task Generate a SQL query to answer the following question: `what's the college/junior/club team with nhl team being california golden seals` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_nine" ( "pick_num" real, "player" text, "positio...
SELECT "nhl_team" FROM "round_nine" WHERE "college_junior_club_team"='Brandon Wheat Kings (WCHL)';
## Task Generate a SQL query to answer the following question: `what's the nhl team with college/junior/club team being brandon wheat kings (wchl)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_nine" ( "pick_num" real, "player" text, "posi...
SELECT "player" FROM "round_nine" WHERE "pick_num"=132;
## Task Generate a SQL query to answer the following question: `who is the the player with pick # being 132` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_nine" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nh...
SELECT COUNT("player") FROM "round_nine" WHERE "nhl_team"='Vancouver Canucks';
## Task Generate a SQL query to answer the following question: ` how many player with nhl team being vancouver canucks` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_nine" ( "pick_num" real, "player" text, "position" text, "nationality" ...
SELECT "position" FROM "round_nine" WHERE "player"='Ray Boutin';
## Task Generate a SQL query to answer the following question: `what's the position with player being ray boutin` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_nine" ( "pick_num" real, "player" text, "position" text, "nationality" text, ...
SELECT "borough" FROM "railway_stations_currently_in_use" WHERE "station_users_2008_9"='28702';
## Task Generate a SQL query to answer the following question: `what is the name of the borough where station uses is 28702?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "railway_stations_currently_in_use" ( "station_and_code" text, "managed_by" ...
SELECT "lines_served" FROM "railway_stations_currently_in_use" WHERE "station_users_2008_9"='210076';
## Task Generate a SQL query to answer the following question: `what are the lines served where station users is 210076?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "railway_stations_currently_in_use" ( "station_and_code" text, "managed_by" text...
SELECT "station_and_code" FROM "railway_stations_currently_in_use" WHERE "station_users_2008_9"='130368';
## Task Generate a SQL query to answer the following question: `whatis hte station code where users are 130368?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "railway_stations_currently_in_use" ( "station_and_code" text, "managed_by" text, "line...
SELECT "class_a" FROM "list_of_prior_winners" WHERE "class_aaaaa"='Weslaco' AND "class_aaaa"='Brownwood';
## Task Generate a SQL query to answer the following question: `Which is the class A when Weslaco was the class AAAAA and brownwood was the class AAAA` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_prior_winners" ( "school_year" text, "cla...
SELECT "class_a" FROM "list_of_prior_winners" WHERE "class_aa"='Marion';
## Task Generate a SQL query to answer the following question: `Which is the class A when Marion was the class AA` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_prior_winners" ( "school_year" text, "class_a" text, "class_aa" text, "cla...
SELECT "class_aa" FROM "list_of_prior_winners" WHERE "class_a"='Graford';
## Task Generate a SQL query to answer the following question: `Which is the class AA when graford was the class A` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_prior_winners" ( "school_year" text, "class_a" text, "class_aa" text, "cl...
SELECT COUNT("class_aa") FROM "list_of_prior_winners" WHERE "school_year"='2002-03';
## Task Generate a SQL query to answer the following question: `How many class AA in the year 2002-03` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_prior_winners" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text...
SELECT "class_aaaa" FROM "list_of_prior_winners" WHERE "class_aaaaa"='Weslaco' AND "school_year"='1994-95';
## Task Generate a SQL query to answer the following question: `Who was the class AAAA when class AAAAA was Weslaco in 1994-95` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_prior_winners" ( "school_year" text, "class_a" text, "class_aa"...
SELECT "class_aaaaa" FROM "list_of_prior_winners" WHERE "class_aaaa"='San Angelo Lake View';
## Task Generate a SQL query to answer the following question: `What was the class AAAA when San Angelo Lake View was the class AAAA` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_prior_winners" ( "school_year" text, "class_a" text, "cla...
SELECT "change_2009_to_2010" FROM "africa" WHERE "country"='Tunisia';
## Task Generate a SQL query to answer the following question: `What are the changes from 2009 to 2010 in Tunisia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "africa" ( "rank" real, "country" text, "international_tourist_arrivals_2011" text, ...
SELECT "international_tourist_arrivals_2010" FROM "africa" WHERE "change_2010_to_2011"='+11.2%';
## Task Generate a SQL query to answer the following question: `What are the international tourist arrivals in 2010 where change from 2010 to 2011 is +11.2% ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "africa" ( "rank" real, "country" text, ...
SELECT "change_2010_to_2011" FROM "africa" WHERE "international_tourist_arrivals_2011"='1.7 million';
## Task Generate a SQL query to answer the following question: `What are the changes (2010 to 2011) where the International Tourist Arrivals is 1.7 million?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "africa" ( "rank" real, "country" text, "i...
SELECT "international_tourist_arrivals_2010" FROM "africa" WHERE "change_2009_to_2010"='+11.1%';
## Task Generate a SQL query to answer the following question: `What are the international tourist arrivals(2010) where change from 2009 to 2010 is +11.1%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "africa" ( "rank" real, "country" text, "in...
SELECT "international_tourist_arrivals_2010" FROM "africa" WHERE "change_2010_to_2011"='+15%';
## Task Generate a SQL query to answer the following question: `What are the International tourist arrivals (2010) where change from 2010 to 2011 is +15%` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "africa" ( "rank" real, "country" text, "inte...
SELECT "international_tourist_arrivals_2011" FROM "africa" WHERE "country"='Senegal';
## Task Generate a SQL query to answer the following question: `How many international tourist arrivals were in Senegal in 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "africa" ( "rank" real, "country" text, "international_tourist_arrival...
SELECT "change_2011_to_2012" FROM "europe" WHERE "change_2010_to_2011"='+1.0%';
## Task Generate a SQL query to answer the following question: `When the change (2010 to 2011) is +1.0% what is the change (2011 to 2012)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "europe" ( "rank" real, "country" text, "international_touri...
SELECT "country" FROM "europe" WHERE "change_2011_to_2012"='-0.1%';
## Task Generate a SQL query to answer the following question: `When the change (2011 to 2012) is -0.1% what is the country?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "europe" ( "rank" real, "country" text, "international_tourist_arrivals_20...
SELECT "country" FROM "europe" WHERE "change_2011_to_2012"='+13.4%';
## Task Generate a SQL query to answer the following question: `When the change (2011 to 2012) is +13.4% what is the country?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "europe" ( "rank" real, "country" text, "international_tourist_arrivals_2...
SELECT "change_2010_to_2011" FROM "europe" WHERE "international_tourist_arrivals_2012"='24.1 million';
## Task Generate a SQL query to answer the following question: `When 24.1 million is international tourist arrivals (2012) what is the change (2010 to 2011) ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "europe" ( "rank" real, "country" text, ...
SELECT "change_2011_to_2012" FROM "europe" WHERE "country"='United Kingdom';
## Task Generate a SQL query to answer the following question: `United kingdom is the country what is the change (2011 to 2012)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "europe" ( "rank" real, "country" text, "international_tourist_arrival...
SELECT COUNT("international_tourist_arrivals_2012") FROM "europe" WHERE "rank"=1;
## Task Generate a SQL query to answer the following question: `When the 1 is the rank what is the overall amount of international tourist arrivals in 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "europe" ( "rank" real, "country" text, "...
SELECT "enrollment" FROM "enrollment_racial_demographics_and_free_" WHERE "hispanic_pct"='3.6';
## Task Generate a SQL query to answer the following question: `What is the enrollment amount where Hispanic (%) is 3.6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "enrollment_racial_demographics_and_free_" ( "year" real, "enrollment" real, "...
SELECT "asian_pct" FROM "enrollment_racial_demographics_and_free_" WHERE "year"=2009;
## Task Generate a SQL query to answer the following question: `What percentage of Asians are there in the year 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "enrollment_racial_demographics_and_free_" ( "year" real, "enrollment" real, "bla...
SELECT "asian_pct" FROM "enrollment_racial_demographics_and_free_" WHERE "year"=2004;
## Task Generate a SQL query to answer the following question: `What percentage of Asians are there in the year 2004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "enrollment_racial_demographics_and_free_" ( "year" real, "enrollment" real, "bla...
SELECT "hispanic_pct" FROM "enrollment_racial_demographics_and_free_" WHERE "free_reduced_lunch_pct"='81.4';
## Task Generate a SQL query to answer the following question: `What percentage of hispanics are there when the free/reduced lunch percentage is 81.4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "enrollment_racial_demographics_and_free_" ( "year" ...
SELECT "free_reduced_lunch_pct" FROM "enrollment_racial_demographics_and_free_" WHERE "hispanic_pct"='3.7';
## Task Generate a SQL query to answer the following question: `What percentage of free/reduced lunch are there when the hispanic percentage is 3.7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "enrollment_racial_demographics_and_free_" ( "year" r...
SELECT "arranger" FROM "track_listing" WHERE "writer"='Nizar Francis';
## Task Generate a SQL query to answer the following question: `Who was the arranger for the track written by Nizar Francis ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "track_listing" ( "num" real, "title" text, "length" text, "writer" tex...
SELECT "writer" FROM "track_listing" WHERE "length"='4:29';
## Task Generate a SQL query to answer the following question: `Who was the writer for the song 4:29 in length?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "track_listing" ( "num" real, "title" text, "length" text, "writer" text, "composer...
SELECT "num" FROM "track_listing" WHERE "length"='4:29';
## Task Generate a SQL query to answer the following question: `What track number is 4:29 in length?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "track_listing" ( "num" real, "title" text, "length" text, "writer" text, "composer" text, "...
SELECT "females_rank" FROM "nfhs_data" WHERE "states"='Karnataka';
## Task Generate a SQL query to answer the following question: `What is the female rank in Karnataka?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfhs_data" ( "states" text, "males_pct" text, "males_rank" real, "females_pct" text, "female...
SELECT "title_english" FROM "season_1" WHERE "title_original"='Die Qual der Wahl';
## Task Generate a SQL query to answer the following question: `What is the English title when the original title is Die Qual Der Wahl?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_1" ( "number_of_episode" real, "number_of_season" real, ...
SELECT "number_of_episode" FROM "season_1" WHERE "title_english"='Pilot';
## Task Generate a SQL query to answer the following question: `What is the episode number where the English title is Pilot?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_1" ( "number_of_episode" real, "number_of_season" real, "title_ori...
SELECT "original_air_date" FROM "season_1" WHERE "number_of_episode"=6;
## Task Generate a SQL query to answer the following question: `What was the original air date for episode number 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_1" ( "number_of_episode" real, "number_of_season" real, "title_original" t...
SELECT "title_original" FROM "season_1" WHERE "number_of_season"=3;
## Task Generate a SQL query to answer the following question: `What is the original title of season number 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_1" ( "number_of_episode" real, "number_of_season" real, "title_original" text, ...
SELECT "municipality" FROM "references" WHERE "human_development_index_2000"='0.7827';
## Task Generate a SQL query to answer the following question: `What municipality where the human development index in the year 2000 was 0.7827?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "inegi_code" real, "municipality" text, ...
SELECT COUNT("population_2005") FROM "references" WHERE "population_density_km_2"='35.9';
## Task Generate a SQL query to answer the following question: `What is the total number of population in the year 2005 where the population density 35.9 (/km 2)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "inegi_code" real, "mun...
SELECT "human_development_index_2000" FROM "references" WHERE "inegi_code"=10;
## Task Generate a SQL query to answer the following question: `What is the human development index for the year 2000 where the ingei code is 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "inegi_code" real, "municipality" text, ...
SELECT "area_km_2" FROM "references" WHERE "population_density_km_2"='84.3';
## Task Generate a SQL query to answer the following question: `What is the area (km 2) where the population density (/mk2) is 84.3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "inegi_code" real, "municipality" text, "municipal_...
SELECT "mandate" FROM "election_results" WHERE "list_pct"='12.39%';
## Task Generate a SQL query to answer the following question: `Name the mandate for list pct 12.39%` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "election_results" ( "year" real, "candidate" text, "hare_quota" real, "mandate" text, "list_v...
SELECT COUNT("list_votes") FROM "election_results" WHERE "list_pct"='20.95%';
## Task Generate a SQL query to answer the following question: `Name the total number of list votes for 20.95%` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "election_results" ( "year" real, "candidate" text, "hare_quota" real, "mandate" text,...
SELECT "scoring_rank" FROM "lpga_tour_career_summary" WHERE "year"=2009;
## Task Generate a SQL query to answer the following question: `What was the scoring rank for Angela Stanford in 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made"...
SELECT MAX("money_list_rank") FROM "lpga_tour_career_summary";
## Task Generate a SQL query to answer the following question: `What was the highest number on money list rank for Angela Stanford's career?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_playe...
SELECT COUNT("2nd") FROM "lpga_tour_career_summary" WHERE "scoring_average"='71.62';
## Task Generate a SQL query to answer the following question: `In the year where Angela Stanford had a scoring average of 71.62, how many times did she take second place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_career_summary" ( "y...
SELECT "player" FROM "statistics" WHERE "3_dart_average"='89.57';
## Task Generate a SQL query to answer the following question: `who is hte player with a 3 dart avg of 89.57?` ### 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, "100"...
SELECT "played" FROM "statistics" WHERE "3_dart_average"='92.06';
## Task Generate a SQL query to answer the following question: `what are all played with a 3 dart avg is 92.06?` ### 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, "10...
SELECT MIN("production_code") FROM "table1_14845640_1" WHERE "u_s_viewers_millions"='16.04';
## Task Generate a SQL query to answer the following question: `Namw the minimum production code for 16.04 million viewers` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_14845640_1" ( "series_num" real, "season_num" real, "title" text, ...
SELECT "written_by" FROM "table1_14845640_1" WHERE "u_s_viewers_millions"='16.32';
## Task Generate a SQL query to answer the following question: `Name the written by for 16.32 million viewers` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_14845640_1" ( "series_num" real, "season_num" real, "title" text, "directed_by"...
SELECT MAX("cuts_made") FROM "lpga_tour_career_summary" WHERE "best_finish"='T4';
## Task Generate a SQL query to answer the following question: `What is the highest number of cuts made when her best finish is t4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, ...
SELECT COUNT("earnings") FROM "lpga_tour_career_summary" WHERE "best_finish"='T2' AND "scoring_average"='71.25';
## Task Generate a SQL query to answer the following question: `How many total earnings are recorded when her best finish is t2 with a 71.25 scoring average?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_career_summary" ( "year" real, "...
SELECT MIN("cuts_made") FROM "lpga_tour_career_summary" WHERE "best_finish"='T4';
## Task Generate a SQL query to answer the following question: `What is the lowest number of cuts made when her best finish is t4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, ...
SELECT COUNT("year") FROM "lpga_tour_career_summary" WHERE "money_list_rank"='56';
## Task Generate a SQL query to answer the following question: `How many years has she ranked 56 on the money list?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" re...
SELECT MIN("wins") FROM "lpga_tour_career_summary";
## Task Generate a SQL query to answer the following question: `What is the lowest number of wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real...
SELECT "written_by" FROM "table1_14847258_1" WHERE "directed_by"='Steve Gomer';
## Task Generate a SQL query to answer the following question: `When steve gomer is the director who is the writer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_14847258_1" ( "series_num" real, "title" text, "directed_by" text, "writt...
SELECT "original_air_date" FROM "table1_14847258_1" WHERE "title"='\"There Goes the Bride\"';
## Task Generate a SQL query to answer the following question: `What is the air date for "there goes the bride"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_14847258_1" ( "series_num" real, "title" text, "directed_by" text, "written_...
SELECT "title" FROM "table1_14847258_1" WHERE "u_s_viewers_millions"='15.03';
## Task Generate a SQL query to answer the following question: `15.03 million u.s viewers seen what episode?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_14847258_1" ( "series_num" real, "title" text, "directed_by" text, "written_by" ...
SELECT MIN("3_credits") FROM "deuces_wild";
## Task Generate a SQL query to answer the following question: `Name the most 3 credits` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "deuces_wild" ( "hand" text, "1_credit" real, "2_credits" real, "3_credits" real, "4_credits" real, "5_cr...
SELECT MIN("2_credits") FROM "deuces_wild" WHERE "hand"='Straight';
## Task Generate a SQL query to answer the following question: `Name the least 2 credits for straight hand` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "deuces_wild" ( "hand" text, "1_credit" real, "2_credits" real, "3_credits" real, "4_cre...
SELECT MIN("2_credits") FROM "deuces_wild" WHERE "hand"='Flush';
## Task Generate a SQL query to answer the following question: `Name the least 2 credits for flush` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "deuces_wild" ( "hand" text, "1_credit" real, "2_credits" real, "3_credits" real, "4_credits" re...
SELECT "hand" FROM "deuces_wild" WHERE "1_credit"=200;
## Task Generate a SQL query to answer the following question: `Name the hand for 1 credit 200` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "deuces_wild" ( "hand" text, "1_credit" real, "2_credits" real, "3_credits" real, "4_credits" real, ...
SELECT MAX("1_credit") FROM "deuces_wild" WHERE "hand"='Three of a Kind';
## Task Generate a SQL query to answer the following question: `Name the most 1 credit for three of a kind` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "deuces_wild" ( "hand" text, "1_credit" real, "2_credits" real, "3_credits" real, "4_cre...
SELECT "points_classification" FROM "classification_leadership" WHERE "general_classification"='Mark Renshaw' AND "team_classification"='Team CSC';
## Task Generate a SQL query to answer the following question: `Name the points classification for mark renshaw and team csc` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage_winner" text, "general_classification" ...
SELECT "episodes" FROM "table1_14855908_3" WHERE "region_1_us"='October 13, 2009';
## Task Generate a SQL query to answer the following question: `How many episodes were released on DVD in the US on October 13, 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_14855908_3" ( "dvd_name" text, "episodes" real, "region_1...
SELECT MAX("episodes") FROM "table1_14855908_3" WHERE "region_4"='March 4, 2010';
## Task Generate a SQL query to answer the following question: `How many episodes were put out in Region 4 on March 4, 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_14855908_3" ( "dvd_name" text, "episodes" real, "region_1_can" tex...
SELECT MIN("episodes") FROM "table1_14855908_3" WHERE "dvd_name"='Season 1';
## Task Generate a SQL query to answer the following question: `How many episodes were released in the season 1 DVD?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_14855908_3" ( "dvd_name" text, "episodes" real, "region_1_can" text, "re...
SELECT "original_air_date" FROM "table1_14857583_1" WHERE "title"='\"Runaway\"';
## Task Generate a SQL query to answer the following question: `What is the original air date for "runaway"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_14857583_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_...
SELECT "altitude_km" FROM "list_of_artificial_radiation_belts" WHERE "explosion"='Hardtack Teak';
## Task Generate a SQL query to answer the following question: `What was the altitude of the explosion Hardtack Teak?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_artificial_radiation_belts" ( "explosion" text, "location" text, "date" ...
SELECT "altitude_km" FROM "list_of_artificial_radiation_belts" WHERE "date"='1962-07-09';
## Task Generate a SQL query to answer the following question: `What was the altitude of the event on 1962-07-09?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_artificial_radiation_belts" ( "explosion" text, "location" text, "date" text...
SELECT "altitude_km" FROM "list_of_artificial_radiation_belts" WHERE "yield_approximate"='1.4 megatons';
## Task Generate a SQL query to answer the following question: `What was the altitude of the yield of 1.4 megatons?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_artificial_radiation_belts" ( "explosion" text, "location" text, "date" te...
SELECT "yield_approximate" FROM "list_of_artificial_radiation_belts" WHERE "explosion"='K-4';
## Task Generate a SQL query to answer the following question: `What was the yield of the K-4 explosion?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_artificial_radiation_belts" ( "explosion" text, "location" text, "date" text, "yiel...
SELECT "explosion" FROM "list_of_artificial_radiation_belts" WHERE "altitude_km"='539';
## Task Generate a SQL query to answer the following question: `What explosion had an altitude of 539 km?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_artificial_radiation_belts" ( "explosion" text, "location" text, "date" text, "yie...
SELECT "opponent" FROM "schedule" WHERE "date"='September 23, 1984';
## Task Generate a SQL query to answer the following question: `List all opponents in the September 23, 1984 game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" ...
SELECT "record" FROM "schedule" WHERE "date"='December 2, 1984';
## Task Generate a SQL query to answer the following question: `What was the score in the game played on December 2, 1984?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "...
SELECT COUNT("record") FROM "schedule" WHERE "week"=11;
## Task Generate a SQL query to answer the following question: `How many scores were there in week 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "gam...