question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
How many games for keith j. miller, who debuted after 1974 with less than 1 goal?
CREATE TABLE "players_who_made_their_debut_for_the_gee" ( "debut_year" real, "player" text, "date_of_birth" text, "games" real, "goals" real, "years_at_club" text );
SELECT AVG("games") FROM "players_who_made_their_debut_for_the_gee" WHERE "goals"<1 AND "player"='keith j. miller' AND "debut_year">1974;
2-11677694-10
What is the highest crowd when carlton is the away team?
CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT MAX("crowd") FROM "round_9" WHERE "away_team"='carlton';
2-10788451-9
What is the highest crowd at mcg?
CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT MAX("crowd") FROM "round_9" WHERE "venue"='mcg';
2-10788451-9
How many grids are associated with a Time/Retired of +1.837?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT COUNT("grid") FROM "classification" WHERE "time_retired"='+1.837';
2-1123407-2
What is the hometown of the player that attends UCLA?
CREATE TABLE "2011_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text );
SELECT "hometown" FROM "2011_boys_team" WHERE "college"='ucla';
2-11677760-30
What college is getting a player that attends Wichita Heights High School?
CREATE TABLE "2011_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text );
SELECT "college" FROM "2011_boys_team" WHERE "school"='wichita heights high school';
2-11677760-30
What is the hometown of Cody Zeller?
CREATE TABLE "2011_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text );
SELECT "hometown" FROM "2011_boys_team" WHERE "player"='cody zeller';
2-11677760-30
What player's hometown is Washington, IN?
CREATE TABLE "2011_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text );
SELECT "player" FROM "2011_boys_team" WHERE "hometown"='washington, in';
2-11677760-30
What is the %2006 that has fewer seats than 23 in Seats 2001, more seats than 4 in 2006 Seats, and a % in 2001 of 25.4?
CREATE TABLE "community_council" ( "parties_and_voter_communities" text, "pct_2006" real, "seats_2006" real, "pct_2001" real, "seats_2001" real );
SELECT "pct_2006" FROM "community_council" WHERE "seats_2001"<23 AND "seats_2006">4 AND "pct_2001"=25.4;
2-11410144-1
When the %2001 is more than 61.4, and the %2006 fewer than 54.1, how many Seats in 2001 were there?
CREATE TABLE "community_council" ( "parties_and_voter_communities" text, "pct_2006" real, "seats_2006" real, "pct_2001" real, "seats_2001" real );
SELECT SUM("seats_2001") FROM "community_council" WHERE "pct_2001">61.4 AND "pct_2006"<54.1;
2-11410144-1
What is the highest number of Seats 2006 held by the Christian Democratic Union of Germany Party/Voter Community, with a %2006 higher than 24.6?
CREATE TABLE "community_council" ( "parties_and_voter_communities" text, "pct_2006" real, "seats_2006" real, "pct_2001" real, "seats_2001" real );
SELECT MAX("seats_2006") FROM "community_council" WHERE "parties_and_voter_communities"='christian democratic union of germany' AND "pct_2006">24.6;
2-11410144-1
What is the highest number of Seats 2006 held by the communities of Bürger Für Groß-Rohrheim Party/Voter Community, with a %2006 less than 21.3?
CREATE TABLE "community_council" ( "parties_and_voter_communities" text, "pct_2006" real, "seats_2006" real, "pct_2001" real, "seats_2001" real );
SELECT MAX("seats_2006") FROM "community_council" WHERE "parties_and_voter_communities"='bürger für groß-rohrheim' AND "pct_2006"<21.3;
2-11410144-1
What is the %2006 when the %2001 was more than 62.5?
CREATE TABLE "community_council" ( "parties_and_voter_communities" text, "pct_2006" real, "seats_2006" real, "pct_2001" real, "seats_2001" real );
SELECT AVG("pct_2006") FROM "community_council" WHERE "pct_2001">62.5;
2-11410144-1
What is the sum of the losses by the Montreal Hockey Club, who have more than 15 Goals Against?
CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real );
SELECT SUM("losses") FROM "final_standing" WHERE "team"='montreal hockey club' AND "goals_against">15;
2-11753791-1
What is the largest Goals For by a team that has more than 0 ties?
CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real );
SELECT MAX("goals_for") FROM "final_standing" WHERE "ties">0;
2-11753791-1
How many ties do teams with 25 Goals For and more than 5 wins have?
CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real );
SELECT SUM("ties") FROM "final_standing" WHERE "goals_for"=25 AND "wins">5;
2-11753791-1
What is the lowest Goals Against by a team with more than 5 wins?
CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real );
SELECT MIN("goals_against") FROM "final_standing" WHERE "wins">5;
2-11753791-1
What is the total number of ties a team with less than 3 losses have?
CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real );
SELECT COUNT("ties") FROM "final_standing" WHERE "losses"<3;
2-11753791-1
Tell me the race name where stirling moss won on 16 april
CREATE TABLE "non_championship_races_review" ( "race_name" text, "circuit" text, "date" text, "winning_driver" text, "constructor" text, "report" text );
SELECT "race_name" FROM "non_championship_races_review" WHERE "winning_driver"='stirling moss' AND "date"='16 april';
2-1140105-6
Tell me the report for circuit of modena
CREATE TABLE "non_championship_races_review" ( "race_name" text, "circuit" text, "date" text, "winning_driver" text, "constructor" text, "report" text );
SELECT "report" FROM "non_championship_races_review" WHERE "circuit"='modena';
2-1140105-6
Tell me the race name for ferrari on 25 april
CREATE TABLE "non_championship_races_review" ( "race_name" text, "circuit" text, "date" text, "winning_driver" text, "constructor" text, "report" text );
SELECT "race_name" FROM "non_championship_races_review" WHERE "constructor"='ferrari' AND "date"='25 april';
2-1140105-6
Name the constructor for vii kanonloppet
CREATE TABLE "non_championship_races_review" ( "race_name" text, "circuit" text, "date" text, "winning_driver" text, "constructor" text, "report" text );
SELECT "constructor" FROM "non_championship_races_review" WHERE "race_name"='vii kanonloppet';
2-1140105-6
How many players from bethel?
CREATE TABLE "r" ( "player" text, "pos" text, "from" real, "school_country" text, "rebs" real, "asts" real );
SELECT COUNT("from") FROM "r" WHERE "school_country"='bethel';
2-11482079-17
I want the date for crowd larger than 12,425 for north melbourne
CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_14" WHERE "crowd">'12,425' AND "home_team"='north melbourne';
2-10826385-14
Who is the opponent on May 7?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "save" text );
SELECT "opponent" FROM "game_log" WHERE "date"='may 7';
2-12015554-4
When the Home team was Carlton, what was the Away team score?
CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team_score" FROM "round_2" WHERE "home_team"='carlton';
2-10809142-2
Who was the constructor for a FW20 chassis?
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"='fw20';
2-1137694-1
What engine did David Coulthard have in his mp4-13 chassis?
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"='mp4-13' AND "driver"='david coulthard';
2-1137694-1
Which date has an Outcome of runner-up, and an Opponent in the final of gilles simon?
CREATE TABLE "singles_5_2_titles_3_runners_up" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );
SELECT "date" FROM "singles_5_2_titles_3_runners_up" WHERE "outcome"='runner-up' AND "opponent_in_the_final"='gilles simon';
2-11983898-4
Who was the opponent on the 28 july 2013 final?
CREATE TABLE "singles_5_2_titles_3_runners_up" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );
SELECT "opponent_in_the_final" FROM "singles_5_2_titles_3_runners_up" WHERE "date"='28 july 2013';
2-11983898-4
Which date has a Score in the final of 4–6, 3–6?
CREATE TABLE "singles_5_2_titles_3_runners_up" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );
SELECT "date" FROM "singles_5_2_titles_3_runners_up" WHERE "score_in_the_final"='4–6, 3–6';
2-11983898-4
What is the prefix for the formula of Rsor'?
CREATE TABLE "groups_containing_sulfur" ( "chemical_class" text, "group" text, "formula" text, "prefix" text, "suffix" text );
SELECT "prefix" FROM "groups_containing_sulfur" WHERE "formula"='rsor''';
2-10911-5
Which group has the RNCS formula?
CREATE TABLE "groups_containing_sulfur" ( "chemical_class" text, "group" text, "formula" text, "prefix" text, "suffix" text );
SELECT "group" FROM "groups_containing_sulfur" WHERE "formula"='rncs';
2-10911-5
Which formula has a thial as a chemical class?
CREATE TABLE "groups_containing_sulfur" ( "chemical_class" text, "group" text, "formula" text, "prefix" text, "suffix" text );
SELECT "formula" FROM "groups_containing_sulfur" WHERE "chemical_class"='thial';
2-10911-5
Which suffix has the prefix of isothiocyanato- (-ncs)?
CREATE TABLE "groups_containing_sulfur" ( "chemical_class" text, "group" text, "formula" text, "prefix" text, "suffix" text );
SELECT "suffix" FROM "groups_containing_sulfur" WHERE "prefix"='isothiocyanato- (-ncs)';
2-10911-5
Which item has the suffix containing thiocyanato- (-scn) as a prefix?
CREATE TABLE "groups_containing_sulfur" ( "chemical_class" text, "group" text, "formula" text, "prefix" text, "suffix" text );
SELECT "suffix" FROM "groups_containing_sulfur" WHERE "prefix"='thiocyanato- (-scn)';
2-10911-5
Which formula has thial as a chemical class?
CREATE TABLE "groups_containing_sulfur" ( "chemical_class" text, "group" text, "formula" text, "prefix" text, "suffix" text );
SELECT "formula" FROM "groups_containing_sulfur" WHERE "chemical_class"='thial';
2-10911-5
If fitzroy is the Away team, what Date did they play?
CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_12" WHERE "away_team"='fitzroy';
2-10808681-12
When the Away team is fitzroy on the Date of 15 july 1967, what was the Home team playing?
CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team" FROM "round_12" WHERE "date"='15 july 1967' AND "away_team"='fitzroy';
2-10808681-12
Which Venue has an Away team of st kilda?
CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "venue" FROM "round_12" WHERE "away_team"='st kilda';
2-10808681-12
If the Away team scored 5.22 (52) on the Date of 15 july 1967, what was the Away team?
CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team" FROM "round_12" WHERE "date"='15 july 1967' AND "away_team_score"='5.22 (52)';
2-10808681-12
If the Home team had a score of 3.15 (33), what was the Date of the game played?
CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_12" WHERE "home_team_score"='3.15 (33)';
2-10808681-12
What place has a draw smaller than 2?
CREATE TABLE "festival_da_can_o_1999_8_march_1999" ( "draw" real, "artist" text, "song" text, "points" real, "place" real );
SELECT AVG("place") FROM "festival_da_can_o_1999_8_march_1999" WHERE "draw"<2;
2-11665326-1
What is the launch date of the satellite with a COSPAR ID of 1995-022a?
CREATE TABLE "satellites" ( "name" text, "cospar_id_satcat" text, "launch_date_utc" text, "launch_vehicle" text, "launch_site" text, "launch_designation" text, "longitude" text );
SELECT "launch_date_utc" FROM "satellites" WHERE "cospar_id_satcat"='1995-022a';
2-12054635-1
What is the COSPAR ID of the satellite with a titan iv(401)a launch vehicle?
CREATE TABLE "satellites" ( "name" text, "cospar_id_satcat" text, "launch_date_utc" text, "launch_vehicle" text, "launch_site" text, "launch_designation" text, "longitude" text );
SELECT "cospar_id_satcat" FROM "satellites" WHERE "launch_vehicle"='titan iv(401)a';
2-12054635-1
What is the launch designation of the satellite with a 2009-001a COSPAR ID?
CREATE TABLE "satellites" ( "name" text, "cospar_id_satcat" text, "launch_date_utc" text, "launch_vehicle" text, "launch_site" text, "launch_designation" text, "longitude" text );
SELECT "launch_designation" FROM "satellites" WHERE "cospar_id_satcat"='2009-001a';
2-12054635-1
What is the launch site of the satellite with a 2003-041a COSPAR ID?
CREATE TABLE "satellites" ( "name" text, "cospar_id_satcat" text, "launch_date_utc" text, "launch_vehicle" text, "launch_site" text, "launch_designation" text, "longitude" text );
SELECT "launch_site" FROM "satellites" WHERE "cospar_id_satcat"='2003-041a';
2-12054635-1
What construction has a CERCLIS ID of ard092916188?
CREATE TABLE "superfund_sites" ( "cerclis_id" text, "name" text, "county" text, "proposed" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text );
SELECT "construction_completed" FROM "superfund_sites" WHERE "cerclis_id"='ard092916188';
2-10834688-1
What CERCLIS ID is Deleted of 04/07/2008?
CREATE TABLE "superfund_sites" ( "cerclis_id" text, "name" text, "county" text, "proposed" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text );
SELECT "cerclis_id" FROM "superfund_sites" WHERE "deleted"='04/07/2008';
2-10834688-1
What construction has a Listed 09/08/1983, and a Deleted of –, and a Name of mid-south wood products?
CREATE TABLE "superfund_sites" ( "cerclis_id" text, "name" text, "county" text, "proposed" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text );
SELECT "construction_completed" FROM "superfund_sites" WHERE "listed"='09/08/1983' AND "deleted"='–' AND "name"='mid-south wood products';
2-10834688-1
What is the Construction that has a Listed 09/08/1983, and a Name of cecil lindsey?
CREATE TABLE "superfund_sites" ( "cerclis_id" text, "name" text, "county" text, "proposed" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text );
SELECT "construction_completed" FROM "superfund_sites" WHERE "listed"='09/08/1983' AND "name"='cecil lindsey';
2-10834688-1
What was the attendance at Kardinia Park?
CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT AVG("crowd") FROM "round_1" WHERE "venue"='kardinia park';
2-10809157-1
What was the Date of Week 16?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "time_et" text, "result" text, "game_site" text, "record" text, "match_report" text );
SELECT "date" FROM "schedule" WHERE "week"=16;
2-10966926-4
What date was Colorado the home team?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "date" FROM "game_log" WHERE "home"='colorado';
2-11739153-4
What was the record for the game on November 28 when the decision was Backstrom?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "record" FROM "game_log" WHERE "decision"='backstrom' AND "date"='november 28';
2-11739153-4
What team was the home team when the record was 11–8–2?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "home" FROM "game_log" WHERE "record"='11–8–2';
2-11739153-4
What was the score when Edmonton was the home team?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "score" FROM "game_log" WHERE "home"='edmonton';
2-11739153-4
Tell me the highest PI GP with pick # greater than 159 and reg GP more than 0
CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real );
SELECT MAX("pl_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "pick_num">159 AND "reg_gp">0;
2-11636955-36
In the match where the home team scored 9.13 (67) what was the crowd attendance?
CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "crowd" FROM "round_7" WHERE "home_team_score"='9.13 (67)';
2-10809142-7
In the match where south melbourne was the away team, who was the home team?
CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team" FROM "round_7" WHERE "away_team"='south melbourne';
2-10809142-7
What was the date of the match where the home team scored 14.13 (97)
CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_7" WHERE "home_team_score"='14.13 (97)';
2-10809142-7
Which Team 2 faced Team 1 from Barcelona?
CREATE TABLE "third_qualifying_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "team_2" FROM "third_qualifying_round" WHERE "team_1"='barcelona';
2-11399628-7
Which first leg had Galatasaray as Team 1?
CREATE TABLE "third_qualifying_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "1st_leg" FROM "third_qualifying_round" WHERE "team_1"='galatasaray';
2-11399628-7
What was the name of the Event with a time of 2:19?
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"='2:19';
2-11211178-2
Where was match which had Joe Lauzon as an opponent?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "location" FROM "mixed_martial_arts_record" WHERE "opponent"='joe lauzon';
2-11211178-2
What is the name of the building that was the tallest from 1990–1997 in Frankfurt?
CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "city" text, "height_m" real, "height_ft" real, "floors" real, "years_as_tallest" text );
SELECT "name" FROM "timeline_of_tallest_buildings" WHERE "city"='frankfurt' AND "years_as_tallest"='1990–1997';
2-11328656-3
For a height less than 122 meters, what is the greatest height in feet?
CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "city" text, "height_m" real, "height_ft" real, "floors" real, "years_as_tallest" text );
SELECT MAX("height_ft") FROM "timeline_of_tallest_buildings" WHERE "height_m"<122;
2-11328656-3
How high was the highest building in feet in the city of cologne?
CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "city" text, "height_m" real, "height_ft" real, "floors" real, "years_as_tallest" text );
SELECT MAX("height_ft") FROM "timeline_of_tallest_buildings" WHERE "city"='cologne';
2-11328656-3
What is the smallest height (ft) of a building in Frankfurt with a height (m) of 257 and less than 55 floors?
CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "city" text, "height_m" real, "height_ft" real, "floors" real, "years_as_tallest" text );
SELECT MIN("height_ft") FROM "timeline_of_tallest_buildings" WHERE "city"='frankfurt' AND "height_m"=257 AND "floors"<55;
2-11328656-3
What is the height in meters for a building in Frankfurt that is 850 feet tall?
CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "city" text, "height_m" real, "height_ft" real, "floors" real, "years_as_tallest" text );
SELECT "height_m" FROM "timeline_of_tallest_buildings" WHERE "city"='frankfurt' AND "height_ft"=850;
2-11328656-3
What is the mintage of the coin with a Toronto Maple Leafs theme and an issue price below 24.95?
CREATE TABLE "nhl_coins" ( "year" real, "theme" text, "artist" text, "mintage" text, "issue_price" real, "special_notes" text );
SELECT "mintage" FROM "nhl_coins" WHERE "theme"='toronto maple leafs' AND "issue_price"<24.95;
2-11916083-13
What was Collingwood's score in their away game?
CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team_score" FROM "round_17" WHERE "away_team"='collingwood';
2-10790099-17
Where did Geelong play as the away team?
CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "venue" FROM "round_17" WHERE "away_team"='geelong';
2-10790099-17
On what date was the I Dessau Autobahnspinne race?
CREATE TABLE "east_german_championship" ( "race_name" text, "circuit" text, "date" text, "winning_driver" text, "constructor" text, "report" text );
SELECT "date" FROM "east_german_championship" WHERE "race_name"='i dessau autobahnspinne';
2-1140116-6
Who was the winning driver in the Sachsenring circuit?
CREATE TABLE "east_german_championship" ( "race_name" text, "circuit" text, "date" text, "winning_driver" text, "constructor" text, "report" text );
SELECT "winning_driver" FROM "east_german_championship" WHERE "circuit"='sachsenring';
2-1140116-6
Where is Terry Mills from?
CREATE TABLE "1986_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text );
SELECT "hometown" FROM "1986_boys_team" WHERE "player"='terry mills';
2-11677760-8
When is the Mexican grand prix?
CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );
SELECT "date" FROM "season_review" WHERE "race"='mexican grand prix';
2-1140095-1
The person with a Height of 6-8 went to which School?
CREATE TABLE "2011_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text );
SELECT "school" FROM "2011_boys_team" WHERE "height"='6-8';
2-11677760-31
What College did Player Dorian Finney-Smith play for?
CREATE TABLE "2011_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text );
SELECT "college" FROM "2011_boys_team" WHERE "player"='dorian finney-smith';
2-11677760-31
Which Player has a height of 6-10, and went to College at LSU?
CREATE TABLE "2011_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text );
SELECT "player" FROM "2011_boys_team" WHERE "height"='6-10' AND "college"='lsu';
2-11677760-31
Which School did Player Tyrone Johnson attend?
CREATE TABLE "2011_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text );
SELECT "school" FROM "2011_boys_team" WHERE "player"='tyrone johnson';
2-11677760-31
Which School did Player Tyrone Johnson attend?
CREATE TABLE "2011_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text );
SELECT "school" FROM "2011_boys_team" WHERE "player"='tyrone johnson';
2-11677760-31
Who had the time of 1:23.32.41?
CREATE TABLE "ultra_lightweight_manx_grand_prix_revise" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text );
SELECT "rider" FROM "ultra_lightweight_manx_grand_prix_revise" WHERE "time"='1:23.32.41';
2-11972799-10
What is the time of the rider who has a rank smaller than 8 and speed of 104.567mph?
CREATE TABLE "ultra_lightweight_manx_grand_prix_revise" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text );
SELECT "time" FROM "ultra_lightweight_manx_grand_prix_revise" WHERE "rank"<8 AND "speed"='104.567mph';
2-11972799-10
What is the home team at the Junction Oval venue?
CREATE TABLE "round_21" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team" FROM "round_21" WHERE "venue"='junction oval';
2-10823719-21
What is the date where the away team is Richmond?
CREATE TABLE "round_21" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_21" WHERE "away_team"='richmond';
2-10823719-21
What is the largest crowd where the home team scored 17.13 (115)?
CREATE TABLE "round_21" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT MAX("crowd") FROM "round_21" WHERE "home_team_score"='17.13 (115)';
2-10823719-21
What day did the away team score 10.16 (76)?
CREATE TABLE "round_21" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_21" WHERE "away_team_score"='10.16 (76)';
2-10823719-21
Name the circuit when the fastest lap was john surtees and the winning driver was john surtees.
CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );
SELECT "circuit" FROM "season_review" WHERE "fastest_lap"='john surtees' AND "winning_driver"='john surtees';
2-1140103-1
Name the winning driver with circuit of monza
CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );
SELECT "winning_driver" FROM "season_review" WHERE "circuit"='monza';
2-1140103-1
Name the pole position for 8 september
CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );
SELECT "pole_position" FROM "season_review" WHERE "date"='8 september';
2-1140103-1
Name the winning driver for belgian grand prix
CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );
SELECT "winning_driver" FROM "season_review" WHERE "race"='belgian grand prix';
2-1140103-1
Name the circuit for italian grand prix
CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );
SELECT "circuit" FROM "season_review" WHERE "race"='italian grand prix';
2-1140103-1
How many grid numbers were there for the driver Giancarlo Fisichella?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT COUNT("grid") FROM "race" WHERE "driver"='giancarlo fisichella';
2-1123404-2
What is the mean number of laps for the constructor Ferrari when the time/retired was fuel pressure?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT AVG("laps") FROM "race" WHERE "constructor"='ferrari' AND "time_retired"='fuel pressure';
2-1123404-2
What is the grid when the driver was Michael Schumacher?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "grid" FROM "race" WHERE "driver"='michael schumacher';
2-1123404-2
How many laps had a grid number of 7?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT SUM("laps") FROM "race" WHERE "grid"=7;
2-1123404-2
Which lap number had a grid number of less than 17 when the driver was Giancarlo Fisichella?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT COUNT("laps") FROM "race" WHERE "grid"<17 AND "driver"='giancarlo fisichella';
2-1123404-2
Name the winning driver for circuit of monza
CREATE TABLE "championship_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );
SELECT "winning_driver" FROM "championship_review" WHERE "circuit"='monza';
2-1140086-1
Tell me the date for jody scheckter being the fastest lap at the french grand prix
CREATE TABLE "championship_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );
SELECT "date" FROM "championship_review" WHERE "fastest_lap"='jody scheckter' AND "race"='french grand prix';
2-1140086-1