question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
Which incumbent was first elected in 1987?
CREATE TABLE "connecticut" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text );
SELECT "incumbent" FROM "connecticut" WHERE "first_elected"=1987;
2-1805191-8
From which country is the player who made less than $216?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "country" FROM "final_leaderboard" WHERE "money"<216;
2-18007213-1
Where did the player place who is from the United States, who made more than $216, and whose score was 74-70-71-69=284?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "place" FROM "final_leaderboard" WHERE "country"='united states' AND "money">216 AND "score"='74-70-71-69=284';
2-18007213-1
Which player placed in t5 and had a score of 72-71-73-78=294?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "player" FROM "final_leaderboard" WHERE "place"='t5' AND "score"='72-71-73-78=294';
2-18007213-1
What is the year that a record was recorded with Libor Pesek as conductor?
CREATE TABLE "recordings" ( "pianist" text, "conductor" text, "record_company" text, "year_of_recording" real, "format" text );
SELECT SUM("year_of_recording") FROM "recordings" WHERE "conductor"='libor pesek';
2-17943770-1
What record company did pianist Solomon Cutner record for?
CREATE TABLE "recordings" ( "pianist" text, "conductor" text, "record_company" text, "year_of_recording" real, "format" text );
SELECT "record_company" FROM "recordings" WHERE "pianist"='solomon cutner';
2-17943770-1
What record company did conductor Mikhail Snitko record for after 1996?
CREATE TABLE "recordings" ( "pianist" text, "conductor" text, "record_company" text, "year_of_recording" real, "format" text );
SELECT "record_company" FROM "recordings" WHERE "year_of_recording">1996 AND "conductor"='mikhail snitko';
2-17943770-1
Which event had a total of 28?
CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text );
SELECT "event" FROM "qualification" WHERE "total"='28';
2-18351792-2
Who was the shooter when the rank points was 8 and the event was WC Kerrville?
CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text );
SELECT "shooter" FROM "qualification" WHERE "rank_points"='8' AND "event"='wc kerrville';
2-18351792-2
What was the total when the score points was 12 and the rank points was 15?
CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text );
SELECT "total" FROM "qualification" WHERE "score_points"='12' AND "rank_points"='15';
2-18351792-2
What is the score at the Champions League, when the result shows win?
CREATE TABLE "european_cup_goals" ( "date" text, "opponent" text, "score" text, "result" text, "competition" text );
SELECT "score" FROM "european_cup_goals" WHERE "competition"='champions league' AND "result"='win';
2-1765584-4
What was the competition when the opponent was the Randers?
CREATE TABLE "european_cup_goals" ( "date" text, "opponent" text, "score" text, "result" text, "competition" text );
SELECT "competition" FROM "european_cup_goals" WHERE "opponent"='randers';
2-1765584-4
What is the result of the UEFA Cup, against Palermo?
CREATE TABLE "european_cup_goals" ( "date" text, "opponent" text, "score" text, "result" text, "competition" text );
SELECT "result" FROM "european_cup_goals" WHERE "competition"='uefa cup' AND "opponent"='palermo';
2-1765584-4
What date was the UEFA Cup against Panathinaikos?
CREATE TABLE "european_cup_goals" ( "date" text, "opponent" text, "score" text, "result" text, "competition" text );
SELECT "date" FROM "european_cup_goals" WHERE "competition"='uefa cup' AND "opponent"='panathinaikos';
2-1765584-4
What is the total number of deaths of the attack with 0 Israelis or foreigners wounded, 0 other deaths, and a total casualty of 1?
CREATE TABLE "attacks_against_israeli_diplomatic_missi" ( "israeli_deaths" real, "other_deaths" text, "total_deaths" text, "israeli_and_or_foreigner_wounded" text, "total_casualties" text );
SELECT "total_deaths" FROM "attacks_against_israeli_diplomatic_missi" WHERE "israeli_and_or_foreigner_wounded"='0' AND "other_deaths"='0' AND "total_casualties"='1';
2-17796039-5
How many Israelis and or foreigners were wounded in the attack with more than 1 Israeli death?
CREATE TABLE "attacks_against_israeli_diplomatic_missi" ( "israeli_deaths" real, "other_deaths" text, "total_deaths" text, "israeli_and_or_foreigner_wounded" text, "total_casualties" text );
SELECT "israeli_and_or_foreigner_wounded" FROM "attacks_against_israeli_diplomatic_missi" WHERE "israeli_deaths">1;
2-17796039-5
How many other deaths were in the attack with 242 Israelis and/or foreigners wounded?
CREATE TABLE "attacks_against_israeli_diplomatic_missi" ( "israeli_deaths" real, "other_deaths" text, "total_deaths" text, "israeli_and_or_foreigner_wounded" text, "total_casualties" text );
SELECT "other_deaths" FROM "attacks_against_israeli_diplomatic_missi" WHERE "israeli_and_or_foreigner_wounded"='242';
2-17796039-5
What is the total number of Israeli deaths in the attack with 0 total casulaties and 0 total deaths?
CREATE TABLE "attacks_against_israeli_diplomatic_missi" ( "israeli_deaths" real, "other_deaths" text, "total_deaths" text, "israeli_and_or_foreigner_wounded" text, "total_casualties" text );
SELECT COUNT("israeli_deaths") FROM "attacks_against_israeli_diplomatic_missi" WHERE "total_casualties"='0' AND "total_deaths"='0';
2-17796039-5
What place did the golfer who had a score of 69-68-69-70=276 finish in?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "place" FROM "final_round" WHERE "score"='69-68-69-70=276';
2-17991356-7
What was the to par score for Mike Weir?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "to_par" FROM "final_round" WHERE "player"='mike weir';
2-17991356-7
What country was Jay Haas representing?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "country" FROM "final_round" WHERE "player"='jay haas';
2-17991356-7
What country has the t7 place, and player Peter Oosterhuis?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "country" FROM "second_round" WHERE "place"='t7' AND "player"='peter oosterhuis';
2-18166348-5
What is the score for Sandy Lyle?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "score" FROM "second_round" WHERE "player"='sandy lyle';
2-18166348-5
Who is the player that has scored more than 0 league cup goals, but has than 13 total goals, and 4 league cup appearances total?
CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "total_apps" text, "total_goals" real );
SELECT "name" FROM "appearances_and_goals" WHERE "league_cup_goals">0 AND "total_goals"<13 AND "league_cup_apps"='4';
2-17690581-1
Who has the lowest league total goals with 0 FA cup goals and no FA cup appearances, plays the DF position and has appeared in total of 3 times?
CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "total_apps" text, "total_goals" real );
SELECT MIN("league_goals") FROM "appearances_and_goals" WHERE "fa_cup_goals"=0 AND "fa_cup_apps"='0' AND "position"='df' AND "total_apps"='3';
2-17690581-1
What is the lowest # Of Episodes, when Date Released is "15 December 2011"?
CREATE TABLE "dvd_releases" ( "season" text, "date_released" text, "num_of_episodes" real, "num_of_discs" real, "special_features" text );
SELECT MIN("num_of_episodes") FROM "dvd_releases" WHERE "date_released"='15 december 2011';
2-17798548-4
What Date Released, when # Of Discs is greater than 4?
CREATE TABLE "dvd_releases" ( "season" text, "date_released" text, "num_of_episodes" real, "num_of_discs" real, "special_features" text );
SELECT "date_released" FROM "dvd_releases" WHERE "num_of_discs">4;
2-17798548-4
What is Season, when # Of Episodes is "10", and when Date Released is "1 April 2010"?
CREATE TABLE "dvd_releases" ( "season" text, "date_released" text, "num_of_episodes" real, "num_of_discs" real, "special_features" text );
SELECT "season" FROM "dvd_releases" WHERE "num_of_episodes"=10 AND "date_released"='1 april 2010';
2-17798548-4
What was the score when Sheffield United was the home team?
CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "score" FROM "first_round_proper" WHERE "home_team"='sheffield united';
2-17943933-2
Who was the away team against Newton Heath?
CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "away_team" FROM "first_round_proper" WHERE "home_team"='newton heath';
2-17943933-2
What is the home team when the tie is 11?
CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "home_team" FROM "first_round_proper" WHERE "tie_no"='11';
2-17943933-2
What is the sum of League Goals, when Position is "DF", when League Cup Apps is "0", when Total Apps is "7", and when FLT Goals is less than 0?
CREATE TABLE "appearances_goals" ( "squad_no" real, "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "flt_apps" text, "flt_goals" real, "total_apps" text, "total_goals" real );
SELECT SUM("league_goals") FROM "appearances_goals" WHERE "position"='df' AND "league_cup_apps"='0' AND "total_apps"='7' AND "flt_goals"<0;
2-17706737-1
What is the total number of FA Cup Goals, when FLT Goals is greater than 0?
CREATE TABLE "appearances_goals" ( "squad_no" real, "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "flt_apps" text, "flt_goals" real, "total_apps" text, "total_goals" real );
SELECT COUNT("fa_cup_goals") FROM "appearances_goals" WHERE "flt_goals">0;
2-17706737-1
What is the lowest FA Cup Goals, when Total Goals is greater than 0, when League Goals is "4", when FA Cup Apps is "1", and when League Cup Goals is greater than 0?
CREATE TABLE "appearances_goals" ( "squad_no" real, "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "flt_apps" text, "flt_goals" real, "total_apps" text, "total_goals" real );
SELECT MIN("fa_cup_goals") FROM "appearances_goals" WHERE "total_goals">0 AND "league_goals"=4 AND "fa_cup_apps"='1' AND "league_cup_goals">0;
2-17706737-1
What is on at 1:30PM with 12:30 local programs, and Pinky and the Brain shows at 4:00pm?
CREATE TABLE "fall_1997" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "4_00_pm" text, "5_00_pm" text, "6_30_pm" text );
SELECT "1_30_pm" FROM "fall_1997" WHERE "12_30_pm"='local programs' AND "4_00_pm"='pinky and the brain';
2-17871161-1
What is on at 4L00pm, with 1:00pm is All My Children?
CREATE TABLE "fall_1997" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "4_00_pm" text, "5_00_pm" text, "6_30_pm" text );
SELECT "4_00_pm" FROM "fall_1997" WHERE "1_00_pm"='all my children';
2-17871161-1
What is on at 11:00AM that shows Power Rangers: Turbo at 4:00pm?
CREATE TABLE "fall_1997" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "4_00_pm" text, "5_00_pm" text, "6_30_pm" text );
SELECT "11_00_am" FROM "fall_1997" WHERE "4_00_pm"='power rangers: turbo';
2-17871161-1
What is on at 7:00am, when the 1:00 is just local programs?
CREATE TABLE "fall_1997" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "4_00_pm" text, "5_00_pm" text, "6_30_pm" text );
SELECT "7_00_am" FROM "fall_1997" WHERE "1_00_pm"='local programs';
2-17871161-1
What is on at 8:00am, that has Another World playing at 2:00pm?
CREATE TABLE "fall_1997" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "4_00_pm" text, "5_00_pm" text, "6_30_pm" text );
SELECT "8_00_am" FROM "fall_1997" WHERE "2_00_pm"='another world';
2-17871161-1
How many points for Newman/Haas Racing with fewer than 40 laps?
CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real );
SELECT AVG("points") FROM "race" WHERE "team"='newman/haas racing' AND "laps"<40;
2-18357242-2
Which driver has fewer than 2 points, larger grid that 4 and is on American Spirit Team Johansson?
CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real );
SELECT "driver" FROM "race" WHERE "points"<2 AND "grid">4 AND "team"='american spirit team johansson';
2-18357242-2
What is the week 11 nov 16 standing with wisconsin (10-1) on week 13 Nov 30?
CREATE TABLE "bcs_standings" ( "week_8_oct_26" text, "week_10_nov_9" text, "week_11_nov_16" text, "week_12_nov_23" text, "week_13_nov_30" text, "week_14_final_dec_7" text );
SELECT "week_11_nov_16" FROM "bcs_standings" WHERE "week_13_nov_30"='wisconsin (10-1)';
2-17849134-3
What is the week 13 Nov 30 standing with USC (7-3) on week 11 Nov 16?
CREATE TABLE "bcs_standings" ( "week_8_oct_26" text, "week_10_nov_9" text, "week_11_nov_16" text, "week_12_nov_23" text, "week_13_nov_30" text, "week_14_final_dec_7" text );
SELECT "week_13_nov_30" FROM "bcs_standings" WHERE "week_11_nov_16"='usc (7-3)';
2-17849134-3
What is the week 8 Oct 26 standing with georgia tech (8-2) on week 12 Nov 23?
CREATE TABLE "bcs_standings" ( "week_8_oct_26" text, "week_10_nov_9" text, "week_11_nov_16" text, "week_12_nov_23" text, "week_13_nov_30" text, "week_14_final_dec_7" text );
SELECT "week_8_oct_26" FROM "bcs_standings" WHERE "week_12_nov_23"='georgia tech (8-2)';
2-17849134-3
What is the week 14 (final) dec 7 standing with Florida (6-1) on week 8 Oct 26?
CREATE TABLE "bcs_standings" ( "week_8_oct_26" text, "week_10_nov_9" text, "week_11_nov_16" text, "week_12_nov_23" text, "week_13_nov_30" text, "week_14_final_dec_7" text );
SELECT "week_14_final_dec_7" FROM "bcs_standings" WHERE "week_8_oct_26"='florida (6-1)';
2-17849134-3
What player is associated with soenderjyske.dk?
CREATE TABLE "out" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text, "transfer_fee" text, "source" text );
SELECT "name" FROM "out" WHERE "source"='soenderjyske.dk';
2-17637370-4
What is the transfer fee for Gravgaard?
CREATE TABLE "out" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text, "transfer_fee" text, "source" text );
SELECT "transfer_fee" FROM "out" WHERE "type"='transfer' AND "name"='gravgaard';
2-17637370-4
What's the result when there's more than 41 moves with an opening of c42 petrov's defence in 2007?
CREATE TABLE "classical_games" ( "white" text, "black" text, "year" real, "result" text, "moves" real, "tournament" text, "opening" text );
SELECT "result" FROM "classical_games" WHERE "moves">41 AND "year"=2007 AND "opening"='c42 petrov''s defence';
2-18043055-1
What's the total number of moves with a result of ½–½ and a black of Anand before 1999?
CREATE TABLE "classical_games" ( "white" text, "black" text, "year" real, "result" text, "moves" real, "tournament" text, "opening" text );
SELECT COUNT("moves") FROM "classical_games" WHERE "result"='½–½' AND "year"<1999 AND "black"='anand';
2-18043055-1
What's the black with 24 moves in the dortmund tournament?
CREATE TABLE "classical_games" ( "white" text, "black" text, "year" real, "result" text, "moves" real, "tournament" text, "opening" text );
SELECT "black" FROM "classical_games" WHERE "moves"=24 AND "tournament"='dortmund';
2-18043055-1
What's the opening when white is Anand with fewer than 61 moves for a result of ½–½?
CREATE TABLE "classical_games" ( "white" text, "black" text, "year" real, "result" text, "moves" real, "tournament" text, "opening" text );
SELECT "opening" FROM "classical_games" WHERE "white"='anand' AND "moves"<61 AND "result"='½–½';
2-18043055-1
What's the white for a black of Anand, a result of ½–½, 39 moves, and an opening of d37 queen's gambit declined?
CREATE TABLE "classical_games" ( "white" text, "black" text, "year" real, "result" text, "moves" real, "tournament" text, "opening" text );
SELECT "white" FROM "classical_games" WHERE "black"='anand' AND "result"='½–½' AND "moves"=39 AND "opening"='d37 queen''s gambit declined';
2-18043055-1
What is the lowest draw that has We The Lovers for the english translation, with a place greater than 1?
CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "song" text, "english_translation" text, "place" real, "points" real );
SELECT MIN("draw") FROM "results" WHERE "english_translation"='we the lovers' AND "place">1;
2-180719-1
How many draws have french as the language, with a place less than 1?
CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "song" text, "english_translation" text, "place" real, "points" real );
SELECT SUM("draw") FROM "results" WHERE "language"='french' AND "place"<1;
2-180719-1
What is the Fate of the HMS Manistee (f 104) with a Tonnage of 4,671 or more?
CREATE TABLE "ships_attacked" ( "date" text, "name_of_ship" text, "flag" text, "tonnage" real, "fate" text );
SELECT "fate" FROM "ships_attacked" WHERE "tonnage">'4,671' AND "name_of_ship"='hms manistee (f 104)';
2-17703338-1
What is the Tonnage of the ship from Canada?
CREATE TABLE "ships_attacked" ( "date" text, "name_of_ship" text, "flag" text, "tonnage" real, "fate" text );
SELECT MAX("tonnage") FROM "ships_attacked" WHERE "flag"='canada';
2-17703338-1
In what place did the golfer representing Zimbabwe finish?
CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );
SELECT "place" FROM "first_round" WHERE "country"='zimbabwe';
2-18166348-4
In what place did Des Smyth, who scored less than 71, finish?
CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );
SELECT "place" FROM "first_round" WHERE "score"<71 AND "player"='des smyth';
2-18166348-4
What is the spaceport location that houses the LC34 complex and uses the Saturn IB launcher?
CREATE TABLE "spaceports_with_achieved_vertical_launch" ( "spaceport" text, "launch_complex" text, "launcher" text, "spacecraft" text, "flights" text, "years" text );
SELECT "spaceport" FROM "spaceports_with_achieved_vertical_launch" WHERE "launcher"='saturn ib' AND "launch_complex"='lc34';
2-179174-2
Which spacecraft were launched by the Titan II?
CREATE TABLE "spaceports_with_achieved_vertical_launch" ( "spaceport" text, "launch_complex" text, "launcher" text, "spacecraft" text, "flights" text, "years" text );
SELECT "spacecraft" FROM "spaceports_with_achieved_vertical_launch" WHERE "launcher"='titan ii';
2-179174-2
What was the launcher vehicle for Apollo-Soyuz?
CREATE TABLE "spaceports_with_achieved_vertical_launch" ( "spaceport" text, "launch_complex" text, "launcher" text, "spacecraft" text, "flights" text, "years" text );
SELECT "launcher" FROM "spaceports_with_achieved_vertical_launch" WHERE "spacecraft"='apollo-soyuz';
2-179174-2
Which complex used the Soyuz (r) launcher to facilitate 14 orbital flights?
CREATE TABLE "spaceports_with_achieved_vertical_launch" ( "spaceport" text, "launch_complex" text, "launcher" text, "spacecraft" text, "flights" text, "years" text );
SELECT "launch_complex" FROM "spaceports_with_achieved_vertical_launch" WHERE "launcher"='soyuz (r)' AND "flights"='14 orbital';
2-179174-2
what is 2008 when the tournament is year end ranking?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );
SELECT "2008" FROM "singles_performance_timeline" WHERE "tournament"='year end ranking';
2-17679324-12
what is 2012 when the tournament is cincinnati masters?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );
SELECT "2012" FROM "singles_performance_timeline" WHERE "tournament"='cincinnati masters';
2-17679324-12
what is 2008 when 2012 is 3r and 2009 is 2r?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );
SELECT "2008" FROM "singles_performance_timeline" WHERE "2012"='3r' AND "2009"='2r';
2-17679324-12
What is the Winner's Prize at the 2009 Providence, RI Championship?
CREATE TABLE "past_winners" ( "year" real, "winners" text, "location" text, "event_director" text, "winner_s_prize" text );
SELECT "winner_s_prize" FROM "past_winners" WHERE "location"='providence, ri' AND "year"=2009;
2-17807586-1
How tall is the structure built in 1907?
CREATE TABLE "tallest_buildings" ( "rank" text, "name" text, "height_ft_m" text, "floors" real, "year" real );
SELECT "height_ft_m" FROM "tallest_buildings" WHERE "year"=1907;
2-17961233-1
Which building has more than 34 floors?
CREATE TABLE "tallest_buildings" ( "rank" text, "name" text, "height_ft_m" text, "floors" real, "year" real );
SELECT "name" FROM "tallest_buildings" WHERE "floors">34;
2-17961233-1
Which rank has 0 bronze and 2 silver?
CREATE TABLE "performances_by_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("gold") FROM "performances_by_nation" WHERE "bronze"=0 AND "silver"<2;
2-17838465-2
How much silver does the rank have that has gold smaller than 4, and a total of 1 and a rank larger than 6?
CREATE TABLE "performances_by_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("silver") FROM "performances_by_nation" WHERE "gold"<4 AND "total"=1 AND "rank">6;
2-17838465-2
Which rank has a more than 0 silver, 4 bronze, and a total smaller than 10?
CREATE TABLE "performances_by_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("rank") FROM "performances_by_nation" WHERE "silver">0 AND "bronze"=4 AND "total"<10;
2-17838465-2
How much gold does the tank have that has 3 silver and more than 3 bronze?
CREATE TABLE "performances_by_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("gold") FROM "performances_by_nation" WHERE "silver"=3 AND "bronze">3;
2-17838465-2
What is the total number that 0 silver?
CREATE TABLE "performances_by_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("total") FROM "performances_by_nation" WHERE "silver"<0;
2-17838465-2
Which Score has a To par larger than 17, and a Player of mike brady?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real );
SELECT "score" FROM "final_leaderboard" WHERE "to_par">17 AND "player"='mike brady';
2-18007068-1
Which Place that has Money of 150, and a Player of bobby cruickshank?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real );
SELECT "place" FROM "final_leaderboard" WHERE "money"=150 AND "player"='bobby cruickshank';
2-18007068-1
Which Place has a To par smaller than 15, and a Score of 74-74-74-75=297?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real );
SELECT "place" FROM "final_leaderboard" WHERE "to_par"<15 AND "score"='74-74-74-75=297';
2-18007068-1
What is the score when the tie number is 8?
CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "score" FROM "fifth_round_proper" WHERE "tie_no"='8';
2-17751846-5
What is the score when the tie number is 6?
CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "score" FROM "fifth_round_proper" WHERE "tie_no"='6';
2-17751846-5
What is the tie number for Middlesbrough?
CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "tie_no" FROM "fifth_round_proper" WHERE "home_team"='middlesbrough';
2-17751846-5
What status has 15/04/1967 as the date?
CREATE TABLE "1967" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text );
SELECT "status" FROM "1967" WHERE "date"='15/04/1967';
2-18179114-8
What venue has Scotland as the opposing teams?
CREATE TABLE "1967" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text );
SELECT "venue" FROM "1967" WHERE "opposing_teams"='scotland';
2-18179114-8
What status has France as the opposing teams?
CREATE TABLE "1967" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text );
SELECT "status" FROM "1967" WHERE "opposing_teams"='france';
2-18179114-8
What kind of Week 4 has a Week 9 of all housemates?
CREATE TABLE "nominations" ( "week_1" text, "week_2" text, "week_3" text, "week_4" text, "week_5" text, "week_6" text, "week_7" text, "week_8" text, "week_9" text, "week_10_final" text );
SELECT "week_4" FROM "nominations" WHERE "week_9"='all housemates';
2-18264110-2
Which Week 3 has a Week 9 of ejected (day 3)?
CREATE TABLE "nominations" ( "week_1" text, "week_2" text, "week_3" text, "week_4" text, "week_5" text, "week_6" text, "week_7" text, "week_8" text, "week_9" text, "week_10_final" text );
SELECT "week_3" FROM "nominations" WHERE "week_9"='ejected (day 3)';
2-18264110-2
What kind of Week 1 has a Week 8 of not eligible, and a Week 9 of no nominations, and a Week 3 of cyril? Question 3
CREATE TABLE "nominations" ( "week_1" text, "week_2" text, "week_3" text, "week_4" text, "week_5" text, "week_6" text, "week_7" text, "week_8" text, "week_9" text, "week_10_final" text );
SELECT "week_1" FROM "nominations" WHERE "week_8"='not eligible' AND "week_9"='no nominations' AND "week_3"='cyril';
2-18264110-2
What kind of Week 9 has a Week 1 of no nominations, and a Week 6 of not eligible, and a Week 2 of not eligible, and a Week 10 FINAL of evicted (day 57)?
CREATE TABLE "nominations" ( "week_1" text, "week_2" text, "week_3" text, "week_4" text, "week_5" text, "week_6" text, "week_7" text, "week_8" text, "week_9" text, "week_10_final" text );
SELECT "week_9" FROM "nominations" WHERE "week_1"='no nominations' AND "week_6"='not eligible' AND "week_2"='not eligible' AND "week_10_final"='evicted (day 57)';
2-18264110-2
What kind of Week 7 has a Week 5 of evicted (day 15)?
CREATE TABLE "nominations" ( "week_1" text, "week_2" text, "week_3" text, "week_4" text, "week_5" text, "week_6" text, "week_7" text, "week_8" text, "week_9" text, "week_10_final" text );
SELECT "week_7" FROM "nominations" WHERE "week_5"='evicted (day 15)';
2-18264110-2
What kind of Week 6 has a Week 2 of see notes 2 , 3 , 4?
CREATE TABLE "nominations" ( "week_1" text, "week_2" text, "week_3" text, "week_4" text, "week_5" text, "week_6" text, "week_7" text, "week_8" text, "week_9" text, "week_10_final" text );
SELECT "week_6" FROM "nominations" WHERE "week_2"='see notes 2 , 3 , 4';
2-18264110-2
Which Against has more than 11 wins, and a Geelong FL of st josephs?
CREATE TABLE "2012_ladder" ( "geelong_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT MIN("against") FROM "2012_ladder" WHERE "wins">11 AND "geelong_fl"='st josephs';
2-17982112-10
What is the Attendance of the game with a Loss of Hiller (3–2)?
CREATE TABLE "postseason" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text );
SELECT MAX("attendance") FROM "postseason" WHERE "loss"='hiller (3–2)';
2-17798130-10
Who is the away team that tottenham hotspur played?
CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "away_team" FROM "fourth_round_proper" WHERE "home_team"='tottenham hotspur';
2-17751846-4
What was the score of the game with away team chelsea on 29 january 1983?
CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "score" FROM "fourth_round_proper" WHERE "date"='29 january 1983' AND "away_team"='chelsea';
2-17751846-4
What date was the game that home team torquay united played?
CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "date" FROM "fourth_round_proper" WHERE "home_team"='torquay united';
2-17751846-4
Who is the team that played away team watford?
CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "home_team" FROM "fourth_round_proper" WHERE "away_team"='watford';
2-17751846-4
What date was the game when home team crystal palace played?
CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "date" FROM "fourth_round_proper" WHERE "home_team"='crystal palace';
2-17751846-4
What country is Retief Goosen from?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "country" FROM "second_round" WHERE "player"='retief goosen';
2-18009787-5
What is the number of high checkout with fewer than 13 legs won, a 180s lower than 2 and an LWAT of more than 1?
CREATE TABLE "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "lwat" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" real );
SELECT COUNT("high_checkout") FROM "statistics" WHERE "legs_won"<13 AND "180s"<2 AND "lwat">1;
2-18317531-1
What is the total 140+ with a high checkout of 74 and a 100+ higher than 17?
CREATE TABLE "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "lwat" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" real );
SELECT SUM("140") FROM "statistics" WHERE "high_checkout"=74 AND "100">17;
2-18317531-1
How many played are there with a 3-dart average of more than 90.8, an LWAT higher than 5 and fewer than 17 legs lost?
CREATE TABLE "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "lwat" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" real );
SELECT AVG("played") FROM "statistics" WHERE "3_dart_average">90.8 AND "lwat">5 AND "legs_lost"<17;
2-18317531-1
What Player is in Place 1?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "third_round" WHERE "place"='1';
2-18017347-6