question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
Which tyre is on the car driven by Pedro de la Rosa?
CREATE TABLE "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text );
SELECT "tyre" FROM "drivers_and_constructors" WHERE "driver"='pedro de la rosa';
2-1215894-1
Which constructor made the car with a rb1 chassis and which is driven by David Coulthard?
CREATE TABLE "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text );
SELECT "constructor" FROM "drivers_and_constructors" WHERE "chassis"='rb1' AND "driver"='david coulthard';
2-1215894-1
Which constructor manufactured the car with a c24 chassis and which is driven by Jacques Villeneuve?
CREATE TABLE "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text );
SELECT "engine" FROM "drivers_and_constructors" WHERE "chassis"='c24' AND "driver"='jacques villeneuve';
2-1215894-1
What Region is the MHCL-20004 Catalog?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );
SELECT "region" FROM "release_history" WHERE "catalog"='mhcl-20004';
2-12694869-2
What region is the ALCA-272 Catalog?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );
SELECT "region" FROM "release_history" WHERE "catalog"='alca-272';
2-12694869-2
What label is the ALCA-9197 Catalog?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );
SELECT "label" FROM "release_history" WHERE "catalog"='alca-9197';
2-12694869-2
What date is the MHCL-20004 Catalog?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );
SELECT "date" FROM "release_history" WHERE "catalog"='mhcl-20004';
2-12694869-2
On what date was the Ed Remaster CD and TOCT-24365 Catalog released?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );
SELECT "date" FROM "release_history" WHERE "format"='ed remaster cd' AND "catalog"='toct-24365';
2-12694869-2
What identities have more than 5 DVD volumes?
CREATE TABLE "season_2_1989" ( "episode_title" text, "villain_s" text, "identity_ies" text, "reason_s" text, "original_airdate" text, "dvd_volume" real );
SELECT "identity_ies" FROM "season_2_1989" WHERE "dvd_volume">5;
2-13070422-3
How many DVD volumes was identified by Skippy Johnson?
CREATE TABLE "season_2_1989" ( "episode_title" text, "villain_s" text, "identity_ies" text, "reason_s" text, "original_airdate" text, "dvd_volume" real );
SELECT "dvd_volume" FROM "season_2_1989" WHERE "identity_ies"='skippy johnson';
2-13070422-3
What was the score when St. Louis was the visiting team?
CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "score" FROM "december" WHERE "visitor"='st. louis';
2-13135264-5
What was the decision when Chicago was the visiting team?
CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "decision" FROM "december" WHERE "visitor"='chicago';
2-13135264-5
What was the score on December 3 when Detroit was the home team and Legace took the decision?
CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "score" FROM "december" WHERE "home"='detroit' AND "decision"='legace' AND "date"='december 3';
2-13135264-5
What was the record when Minnesota was the visiting team?
CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "record" FROM "december" WHERE "visitor"='minnesota';
2-13135264-5
On what date was the record with catalog ALCA-275 released?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );
SELECT "date" FROM "release_history" WHERE "catalog"='alca-275';
2-12703052-3
What label released a record on March 25, 1984?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );
SELECT "label" FROM "release_history" WHERE "date"='march 25, 1984';
2-12703052-3
What label released a record on December 19, 2001?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );
SELECT "label" FROM "release_history" WHERE "date"='december 19, 2001';
2-12703052-3
What is the catalog of the record released on May 27, 2009?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );
SELECT "catalog" FROM "release_history" WHERE "date"='may 27, 2009';
2-12703052-3
On what date was a record from Village Records with catalog VRCL-2205 released?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );
SELECT "date" FROM "release_history" WHERE "label"='village records' AND "catalog"='vrcl-2205';
2-12703052-3
On what date was the record with catalog ALCA-275 released?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );
SELECT "date" FROM "release_history" WHERE "catalog"='alca-275';
2-12703052-3
What was the earliest year that Yvette Alexander took office and was up for reelection after 2016?
CREATE TABLE "current_members" ( "name" text, "position" text, "party" text, "took_office" real, "up_for_reelection" real );
SELECT MIN("took_office") FROM "current_members" WHERE "name"='yvette alexander' AND "up_for_reelection">2016;
2-1301511-1
What is the earliest year a Chairman who took office after 2011 is up for reelection?
CREATE TABLE "current_members" ( "name" text, "position" text, "party" text, "took_office" real, "up_for_reelection" real );
SELECT MIN("up_for_reelection") FROM "current_members" WHERE "took_office">2011 AND "position"='chairman';
2-1301511-1
What year had less than 36 laps?
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT "year" FROM "indy_500_results" WHERE "laps"<36;
2-1252058-1
What was the most laps with a finish of 10 and qualification of 106.185?
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT MAX("laps") FROM "indy_500_results" WHERE "finish"='10' AND "qual"='106.185';
2-1252058-1
What is the most laps with a qualification of 106.185?
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT MAX("laps") FROM "indy_500_results" WHERE "qual"='106.185';
2-1252058-1
In what year were laps less than 64 and the finish at 25?
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT "year" FROM "indy_500_results" WHERE "laps"<64 AND "finish"='25';
2-1252058-1
What was the qualification in 1932?
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT "qual" FROM "indy_500_results" WHERE "year"='1932';
2-1252058-1
What was the start with a rank of 3 in 1936?
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT "start" FROM "indy_500_results" WHERE "rank"='3' AND "year"='1936';
2-1252058-1
Which 2nd leg came after a 1st leg of 0-3?
CREATE TABLE "round_16" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "2nd_leg" FROM "round_16" WHERE "1st_leg"='0-3';
2-12699826-2
For a Team 1 of Al-Merrikh, what was the aggregate?
CREATE TABLE "round_16" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "agg" FROM "round_16" WHERE "team_1"='al-merrikh';
2-12699826-2
Who was the Team 1 for a 2nd leg of 1-4?
CREATE TABLE "round_16" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "team_1" FROM "round_16" WHERE "2nd_leg"='1-4';
2-12699826-2
For an aggregate of 1-3, what was the 2nd leg?
CREATE TABLE "round_16" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "2nd_leg" FROM "round_16" WHERE "agg"='1-3';
2-12699826-2
For a team 2 of Al-Faisaly, what was the 2nd leg?
CREATE TABLE "round_16" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "2nd_leg" FROM "round_16" WHERE "team_2"='al-faisaly';
2-12699826-2
What years is the private school in upper hutt?
CREATE TABLE "upper_hutt_city" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" text );
SELECT "years" FROM "upper_hutt_city" WHERE "area"='upper hutt' AND "authority"='private';
2-12214488-4
What school with a decile of 7 is in upper hutt?
CREATE TABLE "upper_hutt_city" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" text );
SELECT "name" FROM "upper_hutt_city" WHERE "decile"='7' AND "area"='upper hutt';
2-12214488-4
What authority is the coed school in pinehaven?
CREATE TABLE "upper_hutt_city" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" text );
SELECT "authority" FROM "upper_hutt_city" WHERE "gender"='coed' AND "area"='pinehaven';
2-12214488-4
What years does plateau school serve?
CREATE TABLE "upper_hutt_city" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" text );
SELECT "years" FROM "upper_hutt_city" WHERE "name"='plateau school';
2-12214488-4
Is Upper valley middle school public or private?
CREATE TABLE "upper_hutt_city" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" text );
SELECT "authority" FROM "upper_hutt_city" WHERE "name"='upper valley middle school';
2-12214488-4
What is the record on June 13?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT "record" FROM "game_log" WHERE "date"='june 13';
2-12206243-7
Name the most lot number with notes of b4 bogies and diagram of 185
CREATE TABLE "orders" ( "lot_no" real, "diagram" real, "mark" text, "builder" text, "fleet_numbers" text, "notes" text );
SELECT MAX("lot_no") FROM "orders" WHERE "notes"='b4 bogies' AND "diagram"=185;
2-12992801-1
Name the fleet numbers for diagram of 186 and lot number of 30798
CREATE TABLE "orders" ( "lot_no" real, "diagram" real, "mark" text, "builder" text, "fleet_numbers" text, "notes" text );
SELECT "fleet_numbers" FROM "orders" WHERE "diagram"=186 AND "lot_no"=30798;
2-12992801-1
What line is 24.7 km and head towards Toyohashi East?
CREATE TABLE "lines" ( "direction" text, "name" text, "japanese" text, "terminals" text, "length_km" real );
SELECT "name" FROM "lines" WHERE "direction"='toyohashi east' AND "length_km"=24.7;
2-1299019-1
What is the record on November 18?
CREATE TABLE "schedule" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "attendance" real );
SELECT "record" FROM "schedule" WHERE "date"='november 18';
2-12150068-2
What is the record when attendance is more than 19,658 and Los Angeles Rams are the visiting team?
CREATE TABLE "schedule" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "attendance" real );
SELECT "record" FROM "schedule" WHERE "attendance">'19,658' AND "visitor"='los angeles rams';
2-12150068-2
What was the average attendance when Chicago Bears were the home team?
CREATE TABLE "schedule" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "attendance" real );
SELECT AVG("attendance") FROM "schedule" WHERE "home"='chicago bears';
2-12150068-2
What is the score when the record is 5-4-1?
CREATE TABLE "schedule" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "attendance" real );
SELECT "score" FROM "schedule" WHERE "record"='5-4-1';
2-12150068-2
What is the largest number in attendance when the record is 1-1-0?
CREATE TABLE "schedule" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "attendance" real );
SELECT MAX("attendance") FROM "schedule" WHERE "record"='1-1-0';
2-12150068-2
What is the GDP of the nation with 56,210,000 people?
CREATE TABLE "1973_enlargement" ( "member_countries" text, "population" text, "area_km" text, "gdp_billion_us" text, "gdp_per_capita_us" text );
SELECT "gdp_per_capita_us" FROM "1973_enlargement" WHERE "population"='56,210,000';
2-1307842-2
What is the area of the nation with GDP per capita (US$) of 11,929?
CREATE TABLE "1973_enlargement" ( "member_countries" text, "population" text, "area_km" text, "gdp_billion_us" text, "gdp_per_capita_us" text );
SELECT "area_km" FROM "1973_enlargement" WHERE "gdp_per_capita_us"='11,929';
2-1307842-2
What is the population of the nation that has a GDP per capita (US$) of 11,929?
CREATE TABLE "1973_enlargement" ( "member_countries" text, "population" text, "area_km" text, "gdp_billion_us" text, "gdp_per_capita_us" text );
SELECT "population" FROM "1973_enlargement" WHERE "gdp_per_capita_us"='11,929';
2-1307842-2
What is the Population of the nation that has an Area (km²) of 70,273?
CREATE TABLE "1973_enlargement" ( "member_countries" text, "population" text, "area_km" text, "gdp_billion_us" text, "gdp_per_capita_us" text );
SELECT "population" FROM "1973_enlargement" WHERE "area_km"='70,273';
2-1307842-2
What is the Population of the nation that has a Member countries consisting of existing members (1973)?
CREATE TABLE "1973_enlargement" ( "member_countries" text, "population" text, "area_km" text, "gdp_billion_us" text, "gdp_per_capita_us" text );
SELECT "population" FROM "1973_enlargement" WHERE "member_countries"='existing members (1973)';
2-1307842-2
What television network, founded in 2002, has a community type of network?
CREATE TABLE "table_of_broadcast_networks" ( "television_network" text, "founded" text, "pct_of_venezuelan_households_reached" text, "num_of_households_viewable" text, "type_of_network" text, "num_of_full_power_affiliates" text, "num_of_low_power_class_a_affiliates_transmitters" text );
SELECT "television_network" FROM "table_of_broadcast_networks" WHERE "type_of_network"='community' AND "founded"='2002';
2-12638599-1
At what stadium did the Green Bay Packers play an away game?
CREATE TABLE "1992" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );
SELECT "stadium" FROM "1992" WHERE "visiting_team"='green bay packers';
2-13193466-7
At what stadium was the final score 31-28?
CREATE TABLE "1992" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );
SELECT "stadium" FROM "1992" WHERE "final_score"='31-28';
2-13193466-7
Which team hosted the Kansas City Chiefs?
CREATE TABLE "1992" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );
SELECT "host_team" FROM "1992" WHERE "visiting_team"='kansas city chiefs';
2-13193466-7
What team hosted at Tampa Stadium?
CREATE TABLE "1992" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );
SELECT "host_team" FROM "1992" WHERE "stadium"='tampa stadium';
2-13193466-7
With a record of 43-26, what was the score that game?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );
SELECT "score" FROM "game_log" WHERE "record"='43-26';
2-12207474-4
On June 8, what's the loss when the Blue Jays played the Tigers?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );
SELECT "loss" FROM "game_log" WHERE "opponent"='tigers' AND "date"='june 8';
2-12207474-4
What date was the record 38-22?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );
SELECT "date" FROM "game_log" WHERE "record"='38-22';
2-12207474-4
The game that had a record of 39-25, what was the score?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );
SELECT "score" FROM "game_log" WHERE "record"='39-25';
2-12207474-4
Which runner-up has a 10 strokes margin of victory?
CREATE TABLE "epd_tour_6" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_up" text );
SELECT "runner_up" FROM "epd_tour_6" WHERE "margin_of_victory"='10 strokes';
2-12821159-8
Which of the events only lasted no more than 0:55?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "event" FROM "mixed_martial_arts_record" WHERE "time"='0:55';
2-12747624-2
Which event only lasted for 3 rounds against Fernando Terere?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "event" FROM "mixed_martial_arts_record" WHERE "round"=3 AND "opponent"='fernando terere';
2-12747624-2
What is the Primary Sponsor for the team owned by Randy Humphrey?
CREATE TABLE "part_time_teams" ( "team" text, "car_s" text, "driver_s" text, "primary_sponsor_s" text, "owner_s" text, "crew_chief" text, "rounds" real );
SELECT "primary_sponsor_s" FROM "part_time_teams" WHERE "owner_s"='randy humphrey';
2-1266602-2
Who is the Driver on Bob Keselowski's team?
CREATE TABLE "part_time_teams" ( "team" text, "car_s" text, "driver_s" text, "primary_sponsor_s" text, "owner_s" text, "crew_chief" text, "rounds" real );
SELECT "driver_s" FROM "part_time_teams" WHERE "owner_s"='bob keselowski';
2-1266602-2
Walter Giles is Crew Chief of what team?
CREATE TABLE "part_time_teams" ( "team" text, "car_s" text, "driver_s" text, "primary_sponsor_s" text, "owner_s" text, "crew_chief" text, "rounds" real );
SELECT "team" FROM "part_time_teams" WHERE "crew_chief"='walter giles';
2-1266602-2
What club does the stadium stc krymteplitsia belong to?
CREATE TABLE "stadia" ( "rank" real, "stadium" text, "capacity" real, "club" text, "region" text );
SELECT "club" FROM "stadia" WHERE "stadium"='stc krymteplitsia';
2-12331289-3
What was Tony Bettenhausen's qualifying time in 1947?
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT "qual" FROM "indy_500_results" WHERE "year"='1947';
2-1236063-1
Which year did Tony Bettenhausen complete more than 200 laps?
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT "year" FROM "indy_500_results" WHERE "laps">200;
2-1236063-1
What was the value in 2006 when 2003 was not held and 2012 was A?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );
SELECT "2006" FROM "singles_performance_timeline" WHERE "2003"='not held' AND "2012"='a';
2-12485560-6
What was the 2008 value when 2012 was Grand Slam Tournaments?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );
SELECT "2008" FROM "singles_performance_timeline" WHERE "2012"='grand slam tournaments';
2-12485560-6
What was the value in 2008 when 2012 was 1R, 2010 was A, and 2005 was A?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );
SELECT "2008" FROM "singles_performance_timeline" WHERE "2012"='1r' AND "2010"='a' AND "2005"='a';
2-12485560-6
What was the value in 2003 when 2006 was WTA Premier Mandatory Tournaments?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );
SELECT "2003" FROM "singles_performance_timeline" WHERE "2006"='wta premier mandatory tournaments';
2-12485560-6
What was the value in 2009 when 2005 was A for the Australian Open?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );
SELECT "2009" FROM "singles_performance_timeline" WHERE "2005"='a' AND "tournament"='australian open';
2-12485560-6
What was the value in 2012 when 2002 was Q1 and 2010 was 1R?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );
SELECT "2012" FROM "singles_performance_timeline" WHERE "2002"='q1' AND "2010"='1r';
2-12485560-6
What type has a GNIS ID of 1139805
CREATE TABLE "see_also" ( "name" text, "type" text, "elevation" text, "usgs_map" text, "gnis_id" real );
SELECT "type" FROM "see_also" WHERE "gnis_id"=1139805;
2-12484336-1
Which name has a USGS Map of clear lake?
CREATE TABLE "see_also" ( "name" text, "type" text, "elevation" text, "usgs_map" text, "gnis_id" real );
SELECT "name" FROM "see_also" WHERE "usgs_map"='clear lake';
2-12484336-1
What is the status of Norris?
CREATE TABLE "out" ( "name" text, "country" text, "status" text, "transfer_window" text, "transfer_fee" text, "source" text );
SELECT "status" FROM "out" WHERE "name"='norris';
2-12666456-7
What is the source for Laird?
CREATE TABLE "out" ( "name" text, "country" text, "status" text, "transfer_window" text, "transfer_fee" text, "source" text );
SELECT "source" FROM "out" WHERE "name"='laird';
2-12666456-7
What 1958 CIE is class s?
CREATE TABLE "great_northern_railway" ( "class" text, "type" text, "fleet_numbers" text, "quantity_made" real, "date_made" text, "1958_ci" text, "1958_uta" text, "date_withdrawn" text );
SELECT "1958_ci" FROM "great_northern_railway" WHERE "class"='s';
2-1290024-8
What day withdrawn is associated with fleet numbers of 12, 25, 42–46, 50, 70–71, 74–77, 106–107, 129?
CREATE TABLE "great_northern_railway" ( "class" text, "type" text, "fleet_numbers" text, "quantity_made" real, "date_made" text, "1958_ci" text, "1958_uta" text, "date_withdrawn" text );
SELECT "date_withdrawn" FROM "great_northern_railway" WHERE "fleet_numbers"='12, 25, 42–46, 50, 70–71, 74–77, 106–107, 129';
2-1290024-8
Which player has a score of 74-74-73-70=291?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "earnings" real );
SELECT "player" FROM "final_leaderboard" WHERE "score"='74-74-73-70=291';
2-13129239-1
What is the average earnings of a United States player who had a score of 72-68-74-72=286?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "earnings" real );
SELECT AVG("earnings") FROM "final_leaderboard" WHERE "country"='united states' AND "score"='72-68-74-72=286';
2-13129239-1
What was the attendance at the game that had a loss of Mercker (3-1)?
CREATE TABLE "september" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text );
SELECT "attendance" FROM "september" WHERE "loss"='mercker (3-1)';
2-12164513-6
What was the attendance at the game that had a loss of Ayala (6-12)?
CREATE TABLE "september" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text );
SELECT "attendance" FROM "september" WHERE "loss"='ayala (6-12)';
2-12164513-6
What was the loss of the game that had a score of 9-7?
CREATE TABLE "september" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text );
SELECT "loss" FROM "september" WHERE "score"='9-7';
2-12164513-6
What was the loss of the game attended by 14,691?
CREATE TABLE "september" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text );
SELECT "loss" FROM "september" WHERE "attendance"='14,691';
2-12164513-6
What was the loss of the game attended by 29,704?
CREATE TABLE "september" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text );
SELECT "loss" FROM "september" WHERE "attendance"='29,704';
2-12164513-6
What is the Winner, when the Location is Clemson, SC, and when the Date is November 17, 2012?
CREATE TABLE "game_results" ( "date" text, "winner" text, "score" text, "location" text, "series" text );
SELECT "winner" FROM "game_results" WHERE "location"='clemson, sc' AND "date"='november 17, 2012';
2-13113805-2
What is the Location, when the Score is 38-29?
CREATE TABLE "game_results" ( "date" text, "winner" text, "score" text, "location" text, "series" text );
SELECT "location" FROM "game_results" WHERE "score"='38-29';
2-13113805-2
What is the Location, when the Score is 35-31?
CREATE TABLE "game_results" ( "date" text, "winner" text, "score" text, "location" text, "series" text );
SELECT "location" FROM "game_results" WHERE "score"='35-31';
2-13113805-2
What is the Score, when the Location is Clemson, SC, when the Winner is Clemson, and when the Date is November 11, 2006?
CREATE TABLE "game_results" ( "date" text, "winner" text, "score" text, "location" text, "series" text );
SELECT "score" FROM "game_results" WHERE "location"='clemson, sc' AND "winner"='clemson' AND "date"='november 11, 2006';
2-13113805-2
What year did finish 1st in LMP1 class?
CREATE TABLE "complete_24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text );
SELECT AVG("year") FROM "complete_24_hours_of_le_mans_results" WHERE "class"='lmp1' AND "class_pos"='1st';
2-1219777-1
What was the game result on November 16, 1969?
CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT "result" FROM "regular_season" WHERE "date"='november 16, 1969';
2-12828987-1
What is the general classification of stage 3
CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "trofeo_fast_team" text );
SELECT "general_classification" FROM "classification_leadership_by_stage" WHERE "stage"='3';
2-12247789-2
How many points did lech piasecki, stephen roche, and carrera jeans-vagabond have?
CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "trofeo_fast_team" text );
SELECT "points_classification" FROM "classification_leadership_by_stage" WHERE "young_rider_classification"='lech piasecki' AND "general_classification"='stephen roche' AND "winner"='carrera jeans-vagabond';
2-12247789-2
What venue was the 11 September 2012 game?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "venue" FROM "international_goals" WHERE "date"='11 september 2012';
2-12480870-2
What is the lowest Decile for a school with a roll smaller than 3?
CREATE TABLE "kaikoura_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real );
SELECT MIN("decile") FROM "kaikoura_district" WHERE "roll"<3;
2-12256602-1
What is the Gender of students at a school with a Decile of 5 and a Roll of 90?
CREATE TABLE "kaikoura_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real );
SELECT "gender" FROM "kaikoura_district" WHERE "decile"=5 AND "roll"=90;
2-12256602-1