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