question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
How many floors are in little Italy?
CREATE TABLE "projects_as_of_march_2013" ( "building" text, "location" text, "height" text, "floors" real, "status" text );
SELECT COUNT("floors") FROM "projects_as_of_march_2013" WHERE "location"='little italy';
2-1722347-2
What is Country, when Class is "15 meters", and when Qualifying Grand Prix is "Soaring Grand Prix Of United Kingdom"?
CREATE TABLE "qualifying_races" ( "place" text, "country" text, "qualifying_grand_prix" text, "class" text, "dates" text );
SELECT "country" FROM "qualifying_races" WHERE "class"='15 meters' AND "qualifying_grand_prix"='soaring grand prix of united kingdom';
2-17277703-2
What is Class, when Dates is "22 April - 3 May 2009"?
CREATE TABLE "qualifying_races" ( "place" text, "country" text, "qualifying_grand_prix" text, "class" text, "dates" text );
SELECT "class" FROM "qualifying_races" WHERE "dates"='22 april - 3 may 2009';
2-17277703-2
What is Country, when Class is "club"?
CREATE TABLE "qualifying_races" ( "place" text, "country" text, "qualifying_grand_prix" text, "class" text, "dates" text );
SELECT "country" FROM "qualifying_races" WHERE "class"='club';
2-17277703-2
What is Country, when Place is "Torino"?
CREATE TABLE "qualifying_races" ( "place" text, "country" text, "qualifying_grand_prix" text, "class" text, "dates" text );
SELECT "country" FROM "qualifying_races" WHERE "place"='torino';
2-17277703-2
WHAT IS THE AVERAGE SQUAD NUMBER WITH MARTIN SMITH, AND LEAGUE GOALS LESS THAN 17?
CREATE TABLE "appearances_and_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 AVG("squad_no") FROM "appearances_and_goals" WHERE "name"='martin smith' AND "league_goals"<17;
2-17148188-1
What is No. 5, when No. 9 is Michael, and when Region (Year) is New Hampshire (2010)?
CREATE TABLE "male_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text );
SELECT "no_5" FROM "male_names" WHERE "no_9"='michael' AND "region_year"='new hampshire (2010)';
2-16304563-5
What is Region (Year), when No. 7 is William, and when No. 2 is Alexander?
CREATE TABLE "male_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text );
SELECT "region_year" FROM "male_names" WHERE "no_7"='william' AND "no_2"='alexander';
2-16304563-5
What is No. 10, when No. 1 is Noah, and when No. 9 is Carter?
CREATE TABLE "male_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text );
SELECT "no_10" FROM "male_names" WHERE "no_1"='noah' AND "no_9"='carter';
2-16304563-5
What is No. 7, when Region (Year) is Arizona (2010)?
CREATE TABLE "male_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text );
SELECT "no_7" FROM "male_names" WHERE "region_year"='arizona (2010)';
2-16304563-5
What is No. 1, when Region (Year) is Mississippi (2010)?
CREATE TABLE "male_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text );
SELECT "no_1" FROM "male_names" WHERE "region_year"='mississippi (2010)';
2-16304563-5
What is No. 8, when No. 10 is Hunter?
CREATE TABLE "male_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text );
SELECT "no_8" FROM "male_names" WHERE "no_10"='hunter';
2-16304563-5
How much did Larry Nelson win?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "money" FROM "final_leaderboard" WHERE "player"='larry nelson';
2-16488662-1
What is Tournament, when Date is "Sep 12, 1976"?
CREATE TABLE "lpga_tour_wins_27" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "tournament" FROM "lpga_tour_wins_27" WHERE "date"='sep 12, 1976';
2-1694616-1
What is Tournament, when Date is "Sep 25, 1977"?
CREATE TABLE "lpga_tour_wins_27" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "tournament" FROM "lpga_tour_wins_27" WHERE "date"='sep 25, 1977';
2-1694616-1
What is Margin of Victory, when Tournament is "Women's Kemper Open"?
CREATE TABLE "lpga_tour_wins_27" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "margin_of_victory" FROM "lpga_tour_wins_27" WHERE "tournament"='women''s kemper open';
2-1694616-1
What is the No. 8 of the person with a No. 4 of Noah?
CREATE TABLE "male_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text );
SELECT "no_8" FROM "male_names" WHERE "no_4"='noah';
2-16304563-1
What is the No. 8 of the person with a No. 4 of Matthew and a No. 7 of Anthony?
CREATE TABLE "male_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text );
SELECT "no_8" FROM "male_names" WHERE "no_4"='matthew' AND "no_7"='anthony';
2-16304563-1
What is the No. 1 of the person with a No. 2 of John?
CREATE TABLE "male_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text );
SELECT "no_1" FROM "male_names" WHERE "no_2"='john';
2-16304563-1
What is the No. 6 of the person with a No. 10 of Joshua and a No. 8 of Andrew?
CREATE TABLE "male_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text );
SELECT "no_6" FROM "male_names" WHERE "no_10"='joshua' AND "no_8"='andrew';
2-16304563-1
What is the No. 2 of the person with a No. 5 of Ethan and NO. 7 of Jackson?
CREATE TABLE "male_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text );
SELECT "no_2" FROM "male_names" WHERE "no_4"='ethan' AND "no_7"='jackson';
2-16304563-1
What is the No 1 from the Maryland (2008) Region (year)?
CREATE TABLE "male_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text );
SELECT "no_1" FROM "male_names" WHERE "region_year"='maryland (2008)';
2-16304563-1
What was the draw of Maggie Toal?
CREATE TABLE "national_final" ( "draw" real, "artist" text, "song" text, "points" real, "place" text );
SELECT AVG("draw") FROM "national_final" WHERE "artist"='maggie toal';
2-16729685-1
What is the highest point total that placed 3rd and has a draw larger than 5?
CREATE TABLE "national_final" ( "draw" real, "artist" text, "song" text, "points" real, "place" text );
SELECT MAX("points") FROM "national_final" WHERE "place"='3rd' AND "draw">5;
2-16729685-1
Who won the gold in 1958?
CREATE TABLE "champions" ( "year" text, "gold" text, "silver" text, "bronze" text, "host_city_cities" text, "host_country_countries" text );
SELECT "gold" FROM "champions" WHERE "year"='1958';
2-17378548-2
What was the host country when the silver was [[|]] (2) and bronze is czechoslovakia (3)?
CREATE TABLE "champions" ( "year" text, "gold" text, "silver" text, "bronze" text, "host_city_cities" text, "host_country_countries" text );
SELECT "host_country_countries" FROM "champions" WHERE "silver"='[[|]] (2)' AND "bronze"='czechoslovakia (3)';
2-17378548-2
Who was the host country in 2007?
CREATE TABLE "champions" ( "year" text, "gold" text, "silver" text, "bronze" text, "host_city_cities" text, "host_country_countries" text );
SELECT "host_country_countries" FROM "champions" WHERE "year"='2007';
2-17378548-2
Who was the host country when bronze is [[|]] (1) and host city is Krynica?
CREATE TABLE "champions" ( "year" text, "gold" text, "silver" text, "bronze" text, "host_city_cities" text, "host_country_countries" text );
SELECT "host_country_countries" FROM "champions" WHERE "bronze"='[[|]] (1)' AND "host_city_cities"='krynica';
2-17378548-2
What is the result for Boston's road team in game 4?
CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );
SELECT "result" FROM "nba_finals" WHERE "road_team"='boston' AND "game"='game 4';
2-17063036-4
Which road team has a result of 117-114?
CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );
SELECT "road_team" FROM "nba_finals" WHERE "result"='117-114';
2-17063036-4
What is the road team playing against Boston on April 16?
CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );
SELECT "road_team" FROM "nba_finals" WHERE "home_team"='boston' AND "date"='april 16';
2-17063036-4
Which home team is on April 21?
CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );
SELECT "home_team" FROM "nba_finals" WHERE "date"='april 21';
2-17063036-4
Which game has a result of 113-106?
CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );
SELECT "game" FROM "nba_finals" WHERE "result"='113-106';
2-17063036-4
Which home team played against Los Angeles in game 1?
CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );
SELECT "home_team" FROM "nba_finals" WHERE "road_team"='los angeles' AND "game"='game 1';
2-17063036-4
What is the lowest rank of 5-year peak bobby fischer, 2841?
CREATE TABLE "chessmetrics" ( "rank" real, "1_year_peak" text, "5_year_peak" text, "10_year_peak" text, "15_year_peak" text, "20_year_peak" text );
SELECT MIN("rank") FROM "chessmetrics" WHERE "5_year_peak"='bobby fischer, 2841';
2-1710426-1
What is the 1-year peak with anatoly karpov, 2821 as the 10-year peak?
CREATE TABLE "chessmetrics" ( "rank" real, "1_year_peak" text, "5_year_peak" text, "10_year_peak" text, "15_year_peak" text, "20_year_peak" text );
SELECT "1_year_peak" FROM "chessmetrics" WHERE "10_year_peak"='anatoly karpov, 2821';
2-1710426-1
What is the 20-year peak with emanuel lasker, 2816 as the 15-year peak?
CREATE TABLE "chessmetrics" ( "rank" real, "1_year_peak" text, "5_year_peak" text, "10_year_peak" text, "15_year_peak" text, "20_year_peak" text );
SELECT "20_year_peak" FROM "chessmetrics" WHERE "15_year_peak"='emanuel lasker, 2816';
2-1710426-1
What percentage of other candidates did the county which voted 52.1% for Kerry vote for?
CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real, "2000_result" text );
SELECT MAX("othersnum") FROM "by_county" WHERE "kerrypct"='52.1%';
2-1756284-1
How many votes did Kerry get in the county that gave Bush 189,605 votes?
CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real, "2000_result" text );
SELECT AVG("kerrynum") FROM "by_county" WHERE "bushnum"='189,605';
2-1756284-1
How many votes went to other candidates in the county that gave 1.9% votes to them, and 160,390 total votes to Bush?
CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real, "2000_result" text );
SELECT MIN("othersnum") FROM "by_county" WHERE "otherspct"='1.9%' AND "bushnum"<'160,390';
2-1756284-1
How many Seats 2005 has a Percentage in/de-crease of 50.0%, and a Governorate of dhi qar governorate, and a In/de-creased by larger than 6?
CREATE TABLE "seat_allocation" ( "governorate" text, "seats_2010" real, "seats_2005" real, "in_de_creased_by" real, "percentage_in_de_crease" text );
SELECT SUM("seats_2005") FROM "seat_allocation" WHERE "percentage_in_de_crease"='50.0%' AND "governorate"='dhi qar governorate' AND "in_de_creased_by">6;
2-16823208-1
Name the lowest Seats 2010 which has Seats 2005 smaller than 9, and a Governorate of al muthanna governorate, and an In/de-creased by larger than 2?
CREATE TABLE "seat_allocation" ( "governorate" text, "seats_2010" real, "seats_2005" real, "in_de_creased_by" real, "percentage_in_de_crease" text );
SELECT MIN("seats_2010") FROM "seat_allocation" WHERE "seats_2005"<9 AND "governorate"='al muthanna governorate' AND "in_de_creased_by">2;
2-16823208-1
Name the average In/de-creased by which has a Governorate of al anbar governorate, and Seats 2005 smaller than 9?
CREATE TABLE "seat_allocation" ( "governorate" text, "seats_2010" real, "seats_2005" real, "in_de_creased_by" real, "percentage_in_de_crease" text );
SELECT AVG("in_de_creased_by") FROM "seat_allocation" WHERE "governorate"='al anbar governorate' AND "seats_2005"<9;
2-16823208-1
Name the highest In/de-creased which has a Percentage in/de-crease of 100%, and Seats 2010 larger than 8?
CREATE TABLE "seat_allocation" ( "governorate" text, "seats_2010" real, "seats_2005" real, "in_de_creased_by" real, "percentage_in_de_crease" text );
SELECT MAX("in_de_creased_by") FROM "seat_allocation" WHERE "percentage_in_de_crease"='100%' AND "seats_2010">8;
2-16823208-1
What player has a score larger than 67?
CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );
SELECT "player" FROM "first_round" WHERE "score">67;
2-17231086-3
What is the celtics record after game 33 when they score of the game was 111-108?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text );
SELECT "record" FROM "game_log" WHERE "game">33 AND "score"='111-108';
2-17344651-6
Which Rider is grid 7?
CREATE TABLE "supersport_race_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real );
SELECT "rider" FROM "supersport_race_classification" WHERE "grid"=7;
2-17271053-3
What is the total number of laps done by Massimo Roccoli when his grid was smaller than 4?
CREATE TABLE "supersport_race_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real );
SELECT COUNT("laps") FROM "supersport_race_classification" WHERE "rider"='massimo roccoli' AND "grid"<4;
2-17271053-3
What is the time recorded by David Salom on his Yamaha yzf-r6 when his grid was larger than 1?
CREATE TABLE "supersport_race_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real );
SELECT "time" FROM "supersport_race_classification" WHERE "bike"='yamaha yzf-r6' AND "grid">1 AND "rider"='david salom';
2-17271053-3
What is Stop No., when Destination is [2778] Claisebrook Station Platforms?
CREATE TABLE "platforms" ( "stop_no" text, "platform" text, "line" text, "stopping_pattern" text, "destination" text );
SELECT "stop_no" FROM "platforms" WHERE "destination"='[2778] claisebrook station platforms';
2-1623096-1
What is Stopping Pattern, when Platform is 4?
CREATE TABLE "platforms" ( "stop_no" text, "platform" text, "line" text, "stopping_pattern" text, "destination" text );
SELECT "stopping_pattern" FROM "platforms" WHERE "platform"='4';
2-1623096-1
What is Stop No., when Destination is Perth, and when Line is Midland?
CREATE TABLE "platforms" ( "stop_no" text, "platform" text, "line" text, "stopping_pattern" text, "destination" text );
SELECT "stop_no" FROM "platforms" WHERE "destination"='perth' AND "line"='midland';
2-1623096-1
What year did the Turku Airport have a total of 116,631 domestic passengers and a total of 308,782 passengers?
CREATE TABLE "annual_passenger_statistics_for_turku_ai" ( "year" real, "domestic_passengers" real, "international_passengers" real, "total_passengers" real, "change" text );
SELECT MAX("year") FROM "annual_passenger_statistics_for_turku_ai" WHERE "domestic_passengers">'116,631' AND "total_passengers"='308,782';
2-1754531-3
Which coach founded the Western Strikers team after 1963?
CREATE TABLE "south_australia" ( "team" text, "coach" text, "home_ground" text, "location" text, "founded" real );
SELECT "coach" FROM "south_australia" WHERE "founded">1963 AND "team"='western strikers';
2-1742186-14
Who is the coach located in Oakden?
CREATE TABLE "south_australia" ( "team" text, "coach" text, "home_ground" text, "location" text, "founded" real );
SELECT "coach" FROM "south_australia" WHERE "location"='oakden';
2-1742186-14
Which team has coach John Kosmina?
CREATE TABLE "south_australia" ( "team" text, "coach" text, "home_ground" text, "location" text, "founded" real );
SELECT "team" FROM "south_australia" WHERE "coach"='john kosmina';
2-1742186-14
Who is the coach for the Adelaide Galaxy team?
CREATE TABLE "south_australia" ( "team" text, "coach" text, "home_ground" text, "location" text, "founded" real );
SELECT "coach" FROM "south_australia" WHERE "team"='adelaide galaxy';
2-1742186-14
Count the average Wins which has a Class of 250cc, and a Year of 1972?
CREATE TABLE "grand_prix_motorcycle_racing_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real );
SELECT AVG("wins") FROM "grand_prix_motorcycle_racing_results" WHERE "class"='250cc' AND "year"=1972;
2-16431762-2
Name the lowest Wins which has Points of 28, and a Year smaller than 1972?
CREATE TABLE "grand_prix_motorcycle_racing_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real );
SELECT MIN("wins") FROM "grand_prix_motorcycle_racing_results" WHERE "points"=28 AND "year"<1972;
2-16431762-2
Name the Team which has Points larger than 9, and a Year larger than 1971, and a Class of 250cc?
CREATE TABLE "grand_prix_motorcycle_racing_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real );
SELECT "team" FROM "grand_prix_motorcycle_racing_results" WHERE "points">9 AND "year">1971 AND "class"='250cc';
2-16431762-2
Name the Wins which has a Class of 350cc, and a Year smaller than 1973?
CREATE TABLE "grand_prix_motorcycle_racing_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real );
SELECT SUM("wins") FROM "grand_prix_motorcycle_racing_results" WHERE "class"='350cc' AND "year"<1973;
2-16431762-2
How many Points has Wins larger than 0?
CREATE TABLE "grand_prix_motorcycle_racing_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real );
SELECT COUNT("points") FROM "grand_prix_motorcycle_racing_results" WHERE "wins">0;
2-16431762-2
SHOW THE Name who has a 2013 club of voléro zürich?
CREATE TABLE "current_roster" ( "name" text, "height" text, "weight" text, "spike" text, "2013_club" text );
SELECT "name" FROM "current_roster" WHERE "2013_club"='voléro zürich';
2-16224411-1
Name the Height which has a 2013 club of wvc dynamo moscow?
CREATE TABLE "current_roster" ( "name" text, "height" text, "weight" text, "spike" text, "2013_club" text );
SELECT "height" FROM "current_roster" WHERE "2013_club"='wvc dynamo moscow';
2-16224411-1
What kind of Spike has a Name of mia jerkov category:articles with hcards?
CREATE TABLE "current_roster" ( "name" text, "height" text, "weight" text, "spike" text, "2013_club" text );
SELECT "spike" FROM "current_roster" WHERE "name"='mia jerkov category:articles with hcards';
2-16224411-1
Name the 2013 club which has a Name of ana grbac category:articles with hcards?
CREATE TABLE "current_roster" ( "name" text, "height" text, "weight" text, "spike" text, "2013_club" text );
SELECT "2013_club" FROM "current_roster" WHERE "name"='ana grbac category:articles with hcards';
2-16224411-1
Name the Spike which has a Name of senna ušić-jogunica category:articles with hcards?
CREATE TABLE "current_roster" ( "name" text, "height" text, "weight" text, "spike" text, "2013_club" text );
SELECT "spike" FROM "current_roster" WHERE "name"='senna ušić-jogunica category:articles with hcards';
2-16224411-1
What was the Overall number for the player with a position of C and a round greater than 7?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT SUM("overall") FROM "washington_redskins_draft_history" WHERE "round">7 AND "position"='c';
2-17100961-7
What was the Overall number that is the lowest, and has a pick greater than 9?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT MIN("overall") FROM "washington_redskins_draft_history" WHERE "pick">9;
2-17100961-7
Which team after 2008, with less than 2 podium finished and more than 0 FLAPS, had the lowest numberof races?
CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text );
SELECT MIN("races") FROM "career_summary" WHERE "podiums"<2 AND "f_laps">0 AND "season">2008;
2-17246160-1
what is the points when the entrant is brabham racing organisation, the year is 1964 and the chassis is brabham bt7?
CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" text );
SELECT "points" FROM "complete_formula_one_world_championship_" WHERE "entrant"='brabham racing organisation' AND "year"=1964 AND "chassis"='brabham bt7';
2-16564-1
who is the entrant when the points is 42 (45) and the chassis is brabham bt20?
CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" text );
SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "points"='42 (45)' AND "chassis"='brabham bt20';
2-16564-1
how many times is the chassis brabham bt33?
CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" text );
SELECT COUNT("year") FROM "complete_formula_one_world_championship_" WHERE "chassis"='brabham bt33';
2-16564-1
Who was the winner in 2013?
CREATE TABLE "tour_de_france_stages_with_summit_finish" ( "year" real, "stage" real, "start_of_stage" text, "distance_km" text, "category" text, "stage_winner" text, "yellow_jersey" text );
SELECT "stage_winner" FROM "tour_de_france_stages_with_summit_finish" WHERE "year"=2013;
2-162439-1
Who was the opponent at Ullevi?
CREATE TABLE "matches" ( "date" text, "venue" text, "opponents" text, "score" text, "comp" text, "attendance" text );
SELECT "opponents" FROM "matches" WHERE "venue"='ullevi';
2-16514823-2
When was Göteborg the opponent with a score of 3-1?
CREATE TABLE "matches" ( "date" text, "venue" text, "opponents" text, "score" text, "comp" text, "attendance" text );
SELECT "date" FROM "matches" WHERE "opponents"='göteborg' AND "score"='3-1';
2-16514823-2
Which Finish had a To par of +10?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "finish" FROM "made_the_cut" WHERE "to_par"='+10';
2-17129548-1
Which years was there a To par of +1?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "year_s_won" FROM "made_the_cut" WHERE "to_par"='+1';
2-17129548-1
What were Sébastien Bourdais' lowest points when there were less than 63 laps?
CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real );
SELECT MIN("points") FROM "race" WHERE "driver"='sébastien bourdais' AND "laps"<63;
2-17048525-2
What is Position, when Event is 60 m, and when Venue is Budapest , Hungary?
CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text );
SELECT "position" FROM "achievements" WHERE "event"='60 m' AND "venue"='budapest , hungary';
2-16198032-1
What is Event, when Position is 6th, and when Year is after 2006?
CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text );
SELECT "event" FROM "achievements" WHERE "position"='6th' AND "year">2006;
2-16198032-1
What is the average Year, when Position is 9th, when Event is 100 m, and when Venue is Munich, Germany?
CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text );
SELECT AVG("year") FROM "achievements" WHERE "position"='9th' AND "event"='100 m' AND "venue"='munich, germany';
2-16198032-1
What is the Event, when Year is 2002, and when Competition is European Indoor Championships?
CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text );
SELECT "event" FROM "achievements" WHERE "year"=2002 AND "competition"='european indoor championships';
2-16198032-1
What is Nation, when Bronze is 1, when Gold is greater than 0, and when Rank is 2?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT "nation" FROM "medal_table" WHERE "bronze"=1 AND "gold">0 AND "rank"='2';
2-16864127-1
What is the average Total, when Bronze is greater than 0, when Silver is greater than 0, when Gold is greater than 2, and when Nation is Soviet Union?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("total") FROM "medal_table" WHERE "bronze">0 AND "silver">0 AND "gold">2 AND "nation"='soviet union';
2-16864127-1
What is the average Gold, when Nation is Yugoslavia, and when Silver is greater than 0?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("gold") FROM "medal_table" WHERE "nation"='yugoslavia' AND "silver">0;
2-16864127-1
What is the average Bronze, when Total is 4, and when Silver is less than 2?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("bronze") FROM "medal_table" WHERE "total"=4 AND "silver"<2;
2-16864127-1
What is the aggregate for the tie with a team 2 of Irtysh?
CREATE TABLE "first_qualifying_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "agg" FROM "first_qualifying_round" WHERE "team_2"='irtysh';
2-16623894-7
What was the aggregate in the match with a team 1 of Dinamo Minsk?
CREATE TABLE "first_qualifying_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "agg" FROM "first_qualifying_round" WHERE "team_1"='dinamo minsk';
2-16623894-7
What is the Java EE compatibility of the 5.2.4 edition?
CREATE TABLE "java" ( "product" text, "vendor" text, "edition" text, "release_date" text, "java_ee_compatibility" text, "license" text );
SELECT "java_ee_compatibility" FROM "java" WHERE "edition"='5.2.4';
2-1699556-1
What is the release date for Eclipse Foundation?
CREATE TABLE "java" ( "product" text, "vendor" text, "edition" text, "release_date" text, "java_ee_compatibility" text, "license" text );
SELECT "release_date" FROM "java" WHERE "vendor"='eclipse foundation';
2-1699556-1
Which Oracle Corporation product has a Java EE compatibility of 1.4?
CREATE TABLE "java" ( "product" text, "vendor" text, "edition" text, "release_date" text, "java_ee_compatibility" text, "license" text );
SELECT "product" FROM "java" WHERE "java_ee_compatibility"='1.4' AND "vendor"='oracle corporation';
2-1699556-1
Which edition released on 2007-06-07 has a Java EE compatibility of 5?
CREATE TABLE "java" ( "product" text, "vendor" text, "edition" text, "release_date" text, "java_ee_compatibility" text, "license" text );
SELECT "edition" FROM "java" WHERE "java_ee_compatibility"='5' AND "release_date"='2007-06-07';
2-1699556-1
When was Glassfish released?
CREATE TABLE "java" ( "product" text, "vendor" text, "edition" text, "release_date" text, "java_ee_compatibility" text, "license" text );
SELECT "release_date" FROM "java" WHERE "product"='glassfish';
2-1699556-1
Which licence has a release date of 2009-08?
CREATE TABLE "java" ( "product" text, "vendor" text, "edition" text, "release_date" text, "java_ee_compatibility" text, "license" text );
SELECT "license" FROM "java" WHERE "release_date"='2009-08';
2-1699556-1
WHO ARE THE SEMIFINALISTS FOR TOURNAMENT OF PARIS?
CREATE TABLE "singles" ( "tournament" text, "surface" text, "week" text, "winner" text, "finalist" text, "semifinalists" text );
SELECT "semifinalists" FROM "singles" WHERE "tournament"='paris';
2-16779508-1
WHO WAS THE SEMIFINALISTS FOR THE HAMBURG TOURNAMENT?
CREATE TABLE "singles" ( "tournament" text, "surface" text, "week" text, "winner" text, "finalist" text, "semifinalists" text );
SELECT "semifinalists" FROM "singles" WHERE "tournament"='hamburg';
2-16779508-1
Which opponent had a round of SF?
CREATE TABLE "scottish_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real );
SELECT "opponent" FROM "scottish_cup" WHERE "round"='sf';
2-16649424-5
What was the result when the opponent was Celtic?
CREATE TABLE "scottish_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real );
SELECT "result" FROM "scottish_cup" WHERE "opponent"='celtic';
2-16649424-5
What was the result for round r3?
CREATE TABLE "scottish_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real );
SELECT "result" FROM "scottish_cup" WHERE "round"='r3';
2-16649424-5