output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT COUNT("director") FROM "table1_10470082_4" WHERE "num"=1;
## Task Generate a SQL query to answer the following question: `Who is the director and what number is the episode for episode #1 of Are You Afraid of the Dark season 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10470082_4" ( "no" real, ...
SELECT "director" FROM "table1_10470082_4" WHERE "writer"='Scott Peters';
## Task Generate a SQL query to answer the following question: `Who is the director of the episode whom Scott Peters is the writer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10470082_4" ( "no" real, "num" real, "title" text, "direc...
SELECT "villains" FROM "table1_10470082_4" WHERE "num"=7;
## Task Generate a SQL query to answer the following question: `Who is the villain in episode #7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10470082_4" ( "no" real, "num" real, "title" text, "director" text, "writer" text, "us_...
SELECT COUNT("writer") FROM "table1_10470082_8" WHERE "num"=1;
## Task Generate a SQL query to answer the following question: `Who wrote episode #1 in season 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10470082_8" ( "no" real, "num" real, "title" text, "director" text, "writer" text, "us_...
SELECT "us_air_date" FROM "table1_10470082_8" WHERE "writer"='Jim Morris';
## Task Generate a SQL query to answer the following question: `When did the episode written by Jim Morris air?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10470082_8" ( "no" real, "num" real, "title" text, "director" text, "writer...
SELECT "fastest_lap" FROM "race_results" WHERE "name"='Datsun Twin 200';
## Task Generate a SQL query to answer the following question: `What was Datsun Twin 200's fastest lap?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_results" ( "rd" real, "name" text, "pole_position" text, "fastest_lap" text, "winning...
SELECT "fastest_lap" FROM "race_results" WHERE "name"='Datsun Twin 200';
## Task Generate a SQL query to answer the following question: `In the Datsun Twin 200 race, what was the fastest lap?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_results" ( "rd" real, "name" text, "pole_position" text, "fastest_lap" t...
SELECT "report" FROM "race_results" WHERE "name"='True Value 500';
## Task Generate a SQL query to answer the following question: `What's the report for the True Value 500?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_results" ( "rd" real, "name" text, "pole_position" text, "fastest_lap" text, "winni...
SELECT "fastest_lap" FROM "race_results" WHERE "winning_driver"='Johnny Rutherford' AND "pole_position"='Al Unser';
## Task Generate a SQL query to answer the following question: `What was Johnny Rutherford's fastest lap while Al Unser was the pole position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_results" ( "rd" real, "name" text, "pole_position"...
SELECT COUNT("report") FROM "race_results" WHERE "pole_position"='Al Unser' AND "winning_team"='Penske Racing';
## Task Generate a SQL query to answer the following question: `What's the report on Penske Racing winning while the pole position was Al Unser?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_results" ( "rd" real, "name" text, "pole_positio...
SELECT "country" FROM "table_of_world_organization_of_the_scout" WHERE "year_current_scouting_organization_joined_wosm"='1930' AND "year_member_organization_was_founded"='1926';
## Task Generate a SQL query to answer the following question: `Which countries have a scouting organization that was founded in 1926, and joined WOSM in 1930?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_of_world_organization_of_the_scout" ( ...
SELECT "admits_boys_girls" FROM "table_of_world_organization_of_the_scout" WHERE "country"='Venezuela';
## Task Generate a SQL query to answer the following question: `Does Venezuela admit only boys, only girls, or both?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_of_world_organization_of_the_scout" ( "country" text, "membership_from_2010" ...
SELECT "name_of_member_organization" FROM "table_of_world_organization_of_the_scout" WHERE "year_member_organization_was_founded"='1972' AND "year_current_scouting_organization_joined_wosm"='1977';
## Task Generate a SQL query to answer the following question: `Which organizations were founded in 1972, but became WOSM members until 1977?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_of_world_organization_of_the_scout" ( "country" text, ...
SELECT "admits_boys_girls" FROM "table_of_world_organization_of_the_scout" WHERE "name_of_member_organization"='The Scout Association of Hong Kong';
## Task Generate a SQL query to answer the following question: `Does the Scout Association of Hong Kong admit boys, girls, or both?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_of_world_organization_of_the_scout" ( "country" text, "members...
SELECT "admits_boys_girls" FROM "table_of_world_organization_of_the_scout" WHERE "year_member_organization_was_founded"='1912' AND "name_of_member_organization"='The Ghana Scout Association';
## Task Generate a SQL query to answer the following question: `Does the Ghana Scout Association (founded in 1912) admit boys, girls, or both?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_of_world_organization_of_the_scout" ( "country" text,...
SELECT MAX("model") FROM "comparison_table_of_hp_laser_jet_4000_mo" WHERE "introduction"='May 1999';
## Task Generate a SQL query to answer the following question: `What is the model number introduced May 1999?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparison_table_of_hp_laser_jet_4000_mo" ( "model" real, "introduction" text, "disconti...
SELECT "print_resolution_dpi_resolution_is_given_in_dots_per_inch_dpi" FROM "comparison_table_of_hp_laser_jet_4000_mo" WHERE "introduction"='December 2002';
## Task Generate a SQL query to answer the following question: `What is the print resolution (FPI) for December 2002?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparison_table_of_hp_laser_jet_4000_mo" ( "model" real, "introduction" text, "...
SELECT "maximum_memory" FROM "comparison_table_of_hp_laser_jet_4000_mo" WHERE "discontinued"='November 2001';
## Task Generate a SQL query to answer the following question: `What is the maximum memory for the model discontinued in November 2001?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparison_table_of_hp_laser_jet_4000_mo" ( "model" real, "intro...
SELECT "main_presenters" FROM "table1_1053802_1" WHERE "local_title"='La Granja';
## Task Generate a SQL query to answer the following question: `What is main presenters of La Granja?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1053802_1" ( "region_country" text, "local_title" text, "network" text, "winners" text,...
SELECT "main_presenters" FROM "table1_1053802_1" WHERE "region_country"='Bulgaria';
## Task Generate a SQL query to answer the following question: `What is the main presenter of bulgaria?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1053802_1" ( "region_country" text, "local_title" text, "network" text, "winners" tex...
SELECT COUNT("winners") FROM "table1_1053802_1" WHERE "local_title"='Farma';
## Task Generate a SQL query to answer the following question: `How many winners are there of farma?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1053802_1" ( "region_country" text, "local_title" text, "network" text, "winners" text, ...
SELECT MAX("cup_goals") FROM "swindon_town_career_details" WHERE "season"='1911-12';
## Task Generate a SQL query to answer the following question: `What is the most cup goals for seasson 1911-12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "swindon_town_career_details" ( "season" text, "team" text, "league_apps" real, "leag...
SELECT "league_apps" FROM "swindon_town_career_details" WHERE "season"='1923-24';
## Task Generate a SQL query to answer the following question: `What is the league apps for season 1923-24?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "swindon_town_career_details" ( "season" text, "team" text, "league_apps" real, "league_g...
SELECT "team" FROM "swindon_town_career_details" WHERE "season"='1911-12';
## Task Generate a SQL query to answer the following question: `What is the team for season 1911-12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "swindon_town_career_details" ( "season" text, "team" text, "league_apps" real, "league_goals" r...
SELECT MIN("attendance") FROM "trivia_and_statistics" WHERE "score"='10.16 (76) – 9.22 (76)';
## Task Generate a SQL query to answer the following question: `what's the minimum attendance with score  10.16 (76) – 9.22 (76)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "trivia_and_statistics" ( "season" real, "premier" text, "runner_up" t...
SELECT "premier" FROM "trivia_and_statistics" WHERE "season"=1970;
## Task Generate a SQL query to answer the following question: `who's the premier with in 1970` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "trivia_and_statistics" ( "season" real, "premier" text, "runner_up" text, "score" text, "margin" re...
SELECT "runner_up" FROM "trivia_and_statistics" WHERE "premier"='Richmond';
## Task Generate a SQL query to answer the following question: `who are all the runner-up for premier in richmond` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "trivia_and_statistics" ( "season" real, "premier" text, "runner_up" text, "score" ...
SELECT MIN("attendance") FROM "trivia_and_statistics" WHERE "score"='8.16 (64) – 8.12 (60)';
## Task Generate a SQL query to answer the following question: `what is the minimum attendance with score 8.16 (64) – 8.12 (60)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "trivia_and_statistics" ( "season" real, "premier" text, "runner_up" te...
SELECT COUNT("milepost") FROM "table1_10568553_1" WHERE "street_names"='Anne Street';
## Task Generate a SQL query to answer the following question: `How many mileposts are there on Anne Street?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10568553_1" ( "county" text, "location" text, "street_names" text, "milepost" te...
SELECT "street_names" FROM "table1_10568553_1" WHERE "milepost"='12.2';
## Task Generate a SQL query to answer the following question: `Which street is 12.2 miles long?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10568553_1" ( "county" text, "location" text, "street_names" text, "milepost" text, "roads...
SELECT "location" FROM "table1_10568553_1" WHERE "roads_intersected"='Route 24';
## Task Generate a SQL query to answer the following question: `Where does Route 24 intersect?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10568553_1" ( "county" text, "location" text, "street_names" text, "milepost" text, "roads_i...
SELECT "location" FROM "table1_10568553_1" WHERE "milepost"='12.8';
## Task Generate a SQL query to answer the following question: `Where is milepost 12.8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10568553_1" ( "county" text, "location" text, "street_names" text, "milepost" text, "roads_intersec...
SELECT MIN("2001_02") FROM "major_agricultural_products" WHERE "commodity"='Wool';
## Task Generate a SQL query to answer the following question: `What is the minimum amount for wool for 2001-02?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "major_agricultural_products" ( "commodity" text, "2001_02" real, "2002_03" real, "2...
SELECT "operational_owner_s" FROM "table1_1057316_1" WHERE "build_date"='April 1892';
## Task Generate a SQL query to answer the following question: `Who were the operational owners during the construction date of April 1892?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1057316_1" ( "serial_number" text, "wheel_arrangement...
SELECT "disposition" FROM "table1_1057316_1" WHERE "operational_owner_s"='Colorado and Southern Railway #9';
## Task Generate a SQL query to answer the following question: `Where can you find Colorado and Southern Railway #9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1057316_1" ( "serial_number" text, "wheel_arrangement_whyte_notation" text, ...
SELECT "wheel_arrangement_whyte_notation" FROM "table1_1057316_1" WHERE "disposition"='Riverdale, Georgia';
## Task Generate a SQL query to answer the following question: `What is the wheel arrangement for the train in Riverdale, Georgia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1057316_1" ( "serial_number" text, "wheel_arrangement_whyte_no...
SELECT "build_date" FROM "table1_1057316_1" WHERE "serial_number"='2053';
## Task Generate a SQL query to answer the following question: `When was the train 2053 built?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1057316_1" ( "serial_number" text, "wheel_arrangement_whyte_notation" text, "build_date" text, ...
SELECT COUNT("wheel_arrangement_whyte_notation") FROM "table1_1057316_1" WHERE "operational_owner_s"='Texas and New Orleans Railroad #319';
## Task Generate a SQL query to answer the following question: `How many wheels does the train owned by Texas and New Orleans Railroad #319 have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1057316_1" ( "serial_number" text, "wheel_arran...
SELECT "institution" FROM "former_members" WHERE "men_s_nickname"='Blazers';
## Task Generate a SQL query to answer the following question: `Which college has the men's nickname of the blazers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "institution" text, "location" text, "men_s_nickname" text, "...
SELECT "joined" FROM "former_members" WHERE "women_s_nickname"='Wolfpack';
## Task Generate a SQL query to answer the following question: `Name the joined for the wolfpack women's nickname` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "institution" text, "location" text, "men_s_nickname" text, "wom...
SELECT "left" FROM "former_members" WHERE "women_s_nickname"='Lady Pilots';
## Task Generate a SQL query to answer the following question: `Name the left of the Lady Pilots.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "institution" text, "location" text, "men_s_nickname" text, "women_s_nickname" t...
SELECT "women_s_nickname" FROM "former_members" WHERE "enrollment"=1500 AND "location"='Mobile, Alabama';
## Task Generate a SQL query to answer the following question: `Name the women's nickname when the enrollment is 1500 in mobile, Alabama.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "institution" text, "location" text, "men_...
SELECT "current_conference" FROM "former_members" WHERE "location"='Jackson, Mississippi';
## Task Generate a SQL query to answer the following question: `Which conference is in Jackson, Mississippi?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "institution" text, "location" text, "men_s_nickname" text, "women_s_...
SELECT "men_s_nickname" FROM "former_members" WHERE "women_s_nickname"='Lady Wildcats';
## Task Generate a SQL query to answer the following question: `What is the men's nickname at the school that has the lady wildcats women's nickname?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "institution" text, "location" t...
SELECT "mens_nickname" FROM "current_members" WHERE "location"='Jacksonville, Florida';
## Task Generate a SQL query to answer the following question: `What is the Mens Nickname for the member location of Jacksonville, florida?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_members" ( "institution" text, "location" text, "m...
SELECT MAX("enrollment") FROM "current_members" WHERE "founded"=1866 AND "type"='Private/(African Methodist)';
## Task Generate a SQL query to answer the following question: `What is the enrollment for the institution that was founded in 1866 and is a private/(african methodist) type?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_members" ( "institu...
SELECT MIN("founded") FROM "current_members" WHERE "location"='Nashville, Tennessee';
## Task Generate a SQL query to answer the following question: `That is the year founded for the institution location of Nashville, Tennessee?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_members" ( "institution" text, "location" text, ...
SELECT "joined" FROM "current_members" WHERE "institution"='Tougaloo College';
## Task Generate a SQL query to answer the following question: `What is the year the institution Tougaloo College joined?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_members" ( "institution" text, "location" text, "mens_nickname" text...
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "date_of_appointment"='28 November 2007' AND "replaced_by"='Alex McLeish';
## Task Generate a SQL query to answer the following question: `What is the date of vacancy when the date of appointment is 28 november 2007 and replaced by is alex mcleish?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team"...
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "date_of_vacancy"='21 December 2007';
## Task Generate a SQL query to answer the following question: `What is the date of appointment when the date of vacancy is 21 december 2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text...
SELECT "replaced_by" FROM "managerial_changes" WHERE "team"='Wigan Athletic';
## Task Generate a SQL query to answer the following question: `Who replaced when team is wigan athletic?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "d...
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "team"='Manchester City' AND "replaced_by"='Mark Hughes';
## Task Generate a SQL query to answer the following question: `What is the date of vacancy when the team is manchester city and replaced by is mark hughes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoin...
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "replaced_by"='Roy Hodgson';
## Task Generate a SQL query to answer the following question: `What is the date of appointment when replaced by is roy hodgson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_o...
SELECT "replaced_by" FROM "managerial_changes" WHERE "position_in_table"='Pre-season';
## Task Generate a SQL query to answer the following question: `Who replaced when position in table is pre-season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" t...
SELECT COUNT("play_off") FROM "table1_1059743_1" WHERE "points"='813.5';
## Task Generate a SQL query to answer the following question: `How many games had a score value of 813.5 in post-season play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1059743_1" ( "rank" real, "member_association" text, "points" te...
SELECT "play_off" FROM "table1_1059743_1" WHERE "points"='860.5';
## Task Generate a SQL query to answer the following question: `Did any team score games that totaled up to 860.5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1059743_1" ( "rank" real, "member_association" text, "points" text, "group...
SELECT "score" FROM "2009_season_schedule" WHERE "record"='6-9';
## Task Generate a SQL query to answer the following question: `What was the score of the game when the team reached a record of 6-9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_season_schedule" ( "date" text, "opponent" text, "home_away...
SELECT "type" FROM "current_members" WHERE "institution"='Point Park University';
## Task Generate a SQL query to answer the following question: `What type institution is point park university` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_members" ( "institution" text, "nickname" text, "location" text, "founded" re...
SELECT MAX("founded") FROM "current_members" WHERE "type"='Private' AND "location"='Wilmore, Kentucky';
## Task Generate a SQL query to answer the following question: `How many institutions are located in wilmore, kentucky and private` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_members" ( "institution" text, "nickname" text, "location" ...
SELECT "type" FROM "current_members" WHERE "institution"='Point Park University';
## Task Generate a SQL query to answer the following question: `point park university is what type of institution` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_members" ( "institution" text, "nickname" text, "location" text, "founded"...
SELECT COUNT("founded") FROM "current_members" WHERE "institution"='Carlow University 1';
## Task Generate a SQL query to answer the following question: `how many founded dates are listed for carlow university 1` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_members" ( "institution" text, "nickname" text, "location" text, "...
SELECT "written_by" FROM "table1_10610087_6" WHERE "title"='\"Black\"';
## Task Generate a SQL query to answer the following question: `Who wrote the episode titled "black"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10610087_6" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" tex...
SELECT "written_by" FROM "table1_10610087_6" WHERE "title"='\"Solo\"';
## Task Generate a SQL query to answer the following question: `Who are the writers for the episode "solo"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10610087_6" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_b...
SELECT "original_air_date" FROM "table1_10610087_3" WHERE "no_in_season"=9;
## Task Generate a SQL query to answer the following question: `what is the original air date of the episode no in season 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10610087_3" ( "no_in_series" real, "no_in_season" real, "title" te...
SELECT "title" FROM "table1_10610087_3" WHERE "written_by"='Denis Leary, Peter Tolan and Evan Reilly';
## Task Generate a SQL query to answer the following question: `What is the title of the episode written by denis leary, peter tolan and evan reilly?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10610087_3" ( "no_in_series" real, "no_in_s...
SELECT COUNT("directed_by") FROM "table1_10610087_3" WHERE "title"='\"Voicemail\"';
## Task Generate a SQL query to answer the following question: `How many episodes were titles "voicemail"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10610087_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by...
SELECT "dates_active" FROM "season_effects" WHERE "name"='Kamba';
## Task Generate a SQL query to answer the following question: `When was Kamba active?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_effects" ( "name" text, "dates_active" text, "peak_classification" text, "windspeeds" text, "pressur...
SELECT "pressure" FROM "season_effects" WHERE "deaths"='95km/h (60mph)';
## Task Generate a SQL query to answer the following question: `What was the cyclone's pressure in the storm that death was equal to 95km/h (60mph)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_effects" ( "name" text, "dates_active" text,...
SELECT "dates_active" FROM "season_effects" WHERE "deaths"='185km/h (115mph)';
## Task Generate a SQL query to answer the following question: `What were the active dates for the storm that had 185km/h (115mph) deaths?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_effects" ( "name" text, "dates_active" text, "peak_c...
SELECT "damage_usd" FROM "season_effects" WHERE "pressure"='1003hPa (29.62inHg)';
## Task Generate a SQL query to answer the following question: `What was the damage (usd) from the cyclones that measured 1003hPa (29.62inHg) pressure?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_effects" ( "name" text, "dates_active" te...
SELECT "average" FROM "batting_averages" WHERE "high_score"=120;
## Task Generate a SQL query to answer the following question: ` what's the average where high score is 120` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "batting_averages" ( "player" text, "matches" real, "inns" real, "n_o" real, "runs" rea...
SELECT "player" FROM "batting_averages" WHERE "50"=2 AND "n_o"=0;
## Task Generate a SQL query to answer the following question: ` what's the player where 50 is 2 and n/o is 0` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "batting_averages" ( "player" text, "matches" real, "inns" real, "n_o" real, "runs" r...
SELECT "player" FROM "batting_averages" WHERE "inns"=21;
## Task Generate a SQL query to answer the following question: ` what's the player where inns is 21` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "batting_averages" ( "player" text, "matches" real, "inns" real, "n_o" real, "runs" real, "hi...
SELECT "general_election" FROM "general_election_results" WHERE "result"='PQ majority' AND "pct_of_popular_vote"='44.75%';
## Task Generate a SQL query to answer the following question: `Which general election had a pq majority and a 44.75% of the popular vote?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "general_election_results" ( "general_election" real, "num_of_...
SELECT MIN("num_of_candidates") FROM "general_election_results" WHERE "num_of_seats_won"=80;
## Task Generate a SQL query to answer the following question: `What is the least number of candidates running were there when 80 seats were won?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "general_election_results" ( "general_election" real, "...
SELECT COUNT("num_of_seats_won") FROM "general_election_results" WHERE "num_of_candidates"=125;
## Task Generate a SQL query to answer the following question: `How many seats were won in the election with 125 candidates?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "general_election_results" ( "general_election" real, "num_of_candidates" re...
SELECT MAX("week") FROM "regular_season";
## Task Generate a SQL query to answer the following question: `How many weeks are there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record"...
SELECT COUNT("attendance") FROM "regular_season" WHERE "opponent"='Indianapolis Colts';
## Task Generate a SQL query to answer the following question: `How many people attended the game against the indianapolis colts?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "resu...
SELECT "record" FROM "regular_season" WHERE "date"='December 16, 1985';
## Task Generate a SQL query to answer the following question: `On december 16, 1985, all the records were what?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game...
SELECT COUNT("result") FROM "game_by_game_results" WHERE "record"='0-4';
## Task Generate a SQL query to answer the following question: `How many results are there for the 0-4 record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_by_game_results" ( "week" real, "date" text, "opponent" text, "result" text, "...
SELECT COUNT("week") FROM "game_by_game_results" WHERE "date"='October 11, 1969';
## Task Generate a SQL query to answer the following question: `How many weeks are there that include the date October 11, 1969.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_by_game_results" ( "week" real, "date" text, "opponent" text, ...
SELECT COUNT("week") FROM "game_by_game_results" WHERE "date"='November 9, 1969';
## Task Generate a SQL query to answer the following question: `How many weeks are there that include the date November 9, 1969.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_by_game_results" ( "week" real, "date" text, "opponent" text, ...
SELECT COUNT("record") FROM "game_by_game_results" WHERE "stadium"='War Memorial Stadium';
## Task Generate a SQL query to answer the following question: `How many records are there at the War Memorial Stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_by_game_results" ( "week" real, "date" text, "opponent" text, "result" ...
SELECT MIN("attendance") FROM "game_by_game_results" WHERE "date"='December 7, 1969';
## Task Generate a SQL query to answer the following question: `What was the minimum attendance on December 7, 1969?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_by_game_results" ( "week" real, "date" text, "opponent" text, "result" tex...
SELECT MAX("week") FROM "schedule" WHERE "stadium"='Memorial Stadium';
## Task Generate a SQL query to answer the following question: `What week corresponds to the last one to be played at the memorial stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "opponent" text, "result" text, ...
SELECT "stadium" FROM "schedule" WHERE "week"=5;
## Task Generate a SQL query to answer the following question: `In which stadium is the week 5 game played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "opponent" text, "result" text, "stadium" text, "record" text...
SELECT "probability_1st_player_wins" FROM "variation_with_playing_cards" WHERE "probability_of_a_draw"='8.28%' AND "2nd_players_choice"='B BR';
## Task Generate a SQL query to answer the following question: `In Penney's game what is the probability where the 1st player wins if the probability of a draw is 8.28% and the 2nd player chooses B BR?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "va...
SELECT "2nd_players_choice" FROM "variation_with_playing_cards" WHERE "1st_players_choice"='RB B';
## Task Generate a SQL query to answer the following question: `If the first player chooses RB B, what is the second player's choices?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "variation_with_playing_cards" ( "1st_players_choice" text, "2nd_p...
SELECT "probability_2nd_player_wins" FROM "variation_with_playing_cards" WHERE "2nd_players_choice"='R RB' AND "probability_1st_player_wins"='5.18%';
## Task Generate a SQL query to answer the following question: `What is the probability where the second player wins where their choice is R RB and the first player has a 5.18% chance of winning?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "variatio...
SELECT "probability_1st_player_wins" FROM "variation_with_playing_cards" WHERE "probability_2nd_player_wins"='80.11%' AND "2nd_players_choice"='R RB';
## Task Generate a SQL query to answer the following question: `What are the chances the first player will win if the 2nd player has an 80.11% chance of winning with the choice of R RB?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "variation_with_pla...
SELECT "probability_2nd_player_wins" FROM "variation_with_playing_cards" WHERE "1st_players_choice"='BB R';
## Task Generate a SQL query to answer the following question: `What are the chances that player 2 wins if player 1's choice is BB R?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "variation_with_playing_cards" ( "1st_players_choice" text, "2nd_pl...
SELECT "probability_1st_player_wins" FROM "variation_with_playing_cards" WHERE "probability_2nd_player_wins"='88.29%' AND "2nd_players_choice"='R RB';
## Task Generate a SQL query to answer the following question: `How high is the chance that player 1 wins if player 2 has an 88.29% chance of winning with the choice of R RB?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "variation_with_playing_cards"...
SELECT "nfl_team" FROM "nfl_draft" WHERE "player"='Thane Gash';
## Task Generate a SQL query to answer the following question: ` what is the nfl team where player is thane gash` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "c...
SELECT MAX("pick_num") FROM "nfl_draft" WHERE "player"='Anthony Blaylock';
## Task Generate a SQL query to answer the following question: `what is the maximum pick # where player is anthony blaylock` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position"...
SELECT "nfl_team" FROM "nfl_draft" WHERE "player"='Clifford Charlton';
## Task Generate a SQL query to answer the following question: ` what's the nfl team where player is clifford charlton` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text...
SELECT "position" FROM "nfl_draft" WHERE "player"='Anthony Blaylock';
## Task Generate a SQL query to answer the following question: ` what's the position where player is anthony blaylock` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text,...
SELECT MIN("pick_num") FROM "nfl_draft" WHERE "position"='Defensive Tackle';
## Task Generate a SQL query to answer the following question: `what is the minimum pick # where position is defensive tackle` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "positio...
SELECT "province" FROM "population_area_and_density_sortable_on_" WHERE "density"='971.4';
## Task Generate a SQL query to answer the following question: `Which province has a density of 971.4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population_area_and_density_sortable_on_" ( "province" text, "population_2004_estimate" real, "...
SELECT MIN("gdp_per_cap_2003_in") FROM "population_area_and_density_sortable_on_" WHERE "province"='Friesland';
## Task Generate a SQL query to answer the following question: `What is Friesland's gdp per capita?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population_area_and_density_sortable_on_" ( "province" text, "population_2004_estimate" real, "are...
SELECT MAX("area_km") FROM "population_area_and_density_sortable_on_" WHERE "density"='331.4';
## Task Generate a SQL query to answer the following question: `What is the area of the place that has a population density of 331.4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population_area_and_density_sortable_on_" ( "province" text, "popu...