question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
What is the date for home team Collingwood? | CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "date" FROM "round_19" WHERE "home_team"='collingwood'; | 2-1164217-19 |
What is the home team score for St Kilda? | CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team_score" FROM "round_19" WHERE "home_team"='st kilda'; | 2-1164217-19 |
Tell me the named after for diameter less than 19.2 and latitude more than -37.5 with longitude less than 67.3 | CREATE TABLE "c" (
"name" text,
"latitude" real,
"longitude" real,
"diameter_km" real,
"named_after" text
); | SELECT "named_after" FROM "c" WHERE "diameter_km"<19.2 AND "latitude">-37.5 AND "longitude"<67.3; | 2-1145513-3 |
Tell me the named for latitude of 6.4 | CREATE TABLE "c" (
"name" text,
"latitude" real,
"longitude" real,
"diameter_km" real,
"named_after" text
); | SELECT "named_after" FROM "c" WHERE "latitude"=6.4; | 2-1145513-3 |
Tell me the name for longitude more than 103.8 and latitude of -11.4 | CREATE TABLE "c" (
"name" text,
"latitude" real,
"longitude" real,
"diameter_km" real,
"named_after" text
); | SELECT "name" FROM "c" WHERE "longitude">103.8 AND "latitude"=-11.4; | 2-1145513-3 |
Tell me the sum of longitude for diameter being 22.6 and latitude less than -12.4 | CREATE TABLE "c" (
"name" text,
"latitude" real,
"longitude" real,
"diameter_km" real,
"named_after" text
); | SELECT SUM("longitude") FROM "c" WHERE "diameter_km"=22.6 AND "latitude"<-12.4; | 2-1145513-3 |
What was the overall pick for Doug Sproule of the United States? | CREATE TABLE "1994_draft_picks" (
"round" real,
"overall" real,
"player" text,
"nationality" text,
"club_team" text
); | SELECT "overall" FROM "1994_draft_picks" WHERE "nationality"='united states' AND "player"='doug sproule'; | 2-11803648-3 |
what is the lowest viewers (m) when the share is more than 13? | CREATE TABLE "weekly_ratings" (
"episode" text,
"air_date" text,
"rating" real,
"share" real,
"18_49_rating_share" text,
"viewers_m" real,
"rank_timeslot" text
); | SELECT MIN("viewers_m") FROM "weekly_ratings" WHERE "share">13; | 2-11239451-2 |
what is the average rating when the air date is november 23, 2007? | CREATE TABLE "weekly_ratings" (
"episode" text,
"air_date" text,
"rating" real,
"share" real,
"18_49_rating_share" text,
"viewers_m" real,
"rank_timeslot" text
); | SELECT AVG("rating") FROM "weekly_ratings" WHERE "air_date"='november 23, 2007'; | 2-11239451-2 |
what is the total viewers (m) when the rating is 6.4 and the share is more than 11? | CREATE TABLE "weekly_ratings" (
"episode" text,
"air_date" text,
"rating" real,
"share" real,
"18_49_rating_share" text,
"viewers_m" real,
"rank_timeslot" text
); | SELECT COUNT("viewers_m") FROM "weekly_ratings" WHERE "rating"=6.4 AND "share">11; | 2-11239451-2 |
Who wrote the episode that was directed by Terry Ingram? | CREATE TABLE "season_5_2001" (
"episode_num" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text
); | SELECT "written_by" FROM "season_5_2001" WHERE "directed_by"='terry ingram'; | 2-10910712-5 |
Which is the episode # of the episode titled "The Man Behind the Curtain"? | CREATE TABLE "season_5_2001" (
"episode_num" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text
); | SELECT "episode_num" FROM "season_5_2001" WHERE "title"='\"the man behind the curtain\"'; | 2-10910712-5 |
What is the title of the episode that was directed by Roy Dupuis? | CREATE TABLE "season_5_2001" (
"episode_num" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text
); | SELECT "title" FROM "season_5_2001" WHERE "directed_by"='roy dupuis'; | 2-10910712-5 |
Who directed the episode that originally aired on February 25, 2001? | CREATE TABLE "season_5_2001" (
"episode_num" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text
); | SELECT "directed_by" FROM "season_5_2001" WHERE "original_airdate"='february 25, 2001'; | 2-10910712-5 |
What is the episode # of the episode that originally aired on January 21, 2001? | CREATE TABLE "season_5_2001" (
"episode_num" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text
); | SELECT "episode_num" FROM "season_5_2001" WHERE "original_airdate"='january 21, 2001'; | 2-10910712-5 |
Who directed episode # 92 (4)? | CREATE TABLE "season_5_2001" (
"episode_num" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text
); | SELECT "directed_by" FROM "season_5_2001" WHERE "episode_num"='92 (4)'; | 2-10910712-5 |
what is the stream(s) and / or lake(s) when the date founded is 1959? | CREATE TABLE "current_pennsylvania_state_parks" (
"park_name" text,
"county_or_counties" text,
"area_in_acres_ha" text,
"date_founded" real,
"stream_s_and_or_lake_s" text
); | SELECT "stream_s_and_or_lake_s" FROM "current_pennsylvania_state_parks" WHERE "date_founded"=1959; | 2-1125082-1 |
What is the area in acres (ha) for the park bald eagle state park? | CREATE TABLE "current_pennsylvania_state_parks" (
"park_name" text,
"county_or_counties" text,
"area_in_acres_ha" text,
"date_founded" real,
"stream_s_and_or_lake_s" text
); | SELECT "area_in_acres_ha" FROM "current_pennsylvania_state_parks" WHERE "park_name"='bald eagle state park'; | 2-1125082-1 |
what is the most recent date founded in elk county? | CREATE TABLE "current_pennsylvania_state_parks" (
"park_name" text,
"county_or_counties" text,
"area_in_acres_ha" text,
"date_founded" real,
"stream_s_and_or_lake_s" text
); | SELECT MAX("date_founded") FROM "current_pennsylvania_state_parks" WHERE "county_or_counties"='elk county'; | 2-1125082-1 |
how many parks are name beltzville state park? | CREATE TABLE "current_pennsylvania_state_parks" (
"park_name" text,
"county_or_counties" text,
"area_in_acres_ha" text,
"date_founded" real,
"stream_s_and_or_lake_s" text
); | SELECT COUNT("date_founded") FROM "current_pennsylvania_state_parks" WHERE "park_name"='beltzville state park'; | 2-1125082-1 |
Which rank has a total smaller than 1? | CREATE TABLE "list_of_countries_ranked_by_the_number_o" (
"rank" real,
"country" text,
"continent" text,
"summer_olympics" text,
"winter_olympics" text,
"total" real
); | SELECT AVG("rank") FROM "list_of_countries_ranked_by_the_number_o" WHERE "total"<1; | 2-11015817-3 |
What is the year for the ocean? | CREATE TABLE "list_of_winners" (
"year" real,
"author" text,
"english_title" text,
"original_title" text,
"representing" text
); | SELECT "year" FROM "list_of_winners" WHERE "english_title"='the ocean'; | 2-1183450-1 |
Name the representation for om fjorten dage | CREATE TABLE "list_of_winners" (
"year" real,
"author" text,
"english_title" text,
"original_title" text,
"representing" text
); | SELECT "representing" FROM "list_of_winners" WHERE "original_title"='om fjorten dage'; | 2-1183450-1 |
Name the representing for englar alheimsins | CREATE TABLE "list_of_winners" (
"year" real,
"author" text,
"english_title" text,
"original_title" text,
"representing" text
); | SELECT "representing" FROM "list_of_winners" WHERE "original_title"='englar alheimsins'; | 2-1183450-1 |
Name the original title for years before 1977 and author of lagercrantz olof lagercrantz | CREATE TABLE "list_of_winners" (
"year" real,
"author" text,
"english_title" text,
"original_title" text,
"representing" text
); | SELECT "original_title" FROM "list_of_winners" WHERE "year"<1977 AND "author"='lagercrantz olof lagercrantz'; | 2-1183450-1 |
Name the representating for ingenjör andrées luftfärd | CREATE TABLE "list_of_winners" (
"year" real,
"author" text,
"english_title" text,
"original_title" text,
"representing" text
); | SELECT "representing" FROM "list_of_winners" WHERE "original_title"='ingenjör andrées luftfärd'; | 2-1183450-1 |
What is the distance for the team time trial? | CREATE TABLE "stage_results" (
"date" text,
"course" text,
"distance" text,
"type" text,
"winner" text
); | SELECT "distance" FROM "stage_results" WHERE "type"='team time trial'; | 2-11303224-1 |
What was the course on 13 may? | CREATE TABLE "stage_results" (
"date" text,
"course" text,
"distance" text,
"type" text,
"winner" text
); | SELECT "course" FROM "stage_results" WHERE "date"='13 may'; | 2-11303224-1 |
What type has rest day as a course and was on 21 may? | CREATE TABLE "stage_results" (
"date" text,
"course" text,
"distance" text,
"type" text,
"winner" text
); | SELECT "type" FROM "stage_results" WHERE "course"='rest day' AND "date"='21 may'; | 2-11303224-1 |
What's the race name that the driver Innes Ireland won? | CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
); | SELECT "race_name" FROM "non_championship_race_results" WHERE "winning_driver"='innes ireland'; | 2-1140103-6 |
What's the score in the home game against the Charlotte Bobcats? | CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
); | SELECT "score" FROM "february" WHERE "visitor"='charlotte bobcats'; | 2-11964379-7 |
What was the date of the game played at Victoria Park? | CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "date" FROM "round_16" WHERE "venue"='victoria park'; | 2-10823719-16 |
What was the home team's score when the away team scored 15.9 (99)? | CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team_score" FROM "round_16" WHERE "away_team_score"='15.9 (99)'; | 2-10823719-16 |
Who was the home team when the crowd was larger than 13,557? | CREATE TABLE "round_16" (
"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_16" WHERE "crowd">'13,557'; | 2-10823719-16 |
Where did Richmond play as the away team? | CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "venue" FROM "round_16" WHERE "away_team"='richmond'; | 2-10823719-16 |
Tell me the years competed for panthers | CREATE TABLE "former_clubs" (
"club" text,
"nickname" text,
"years_competed" text,
"home_ground" text,
"premierships" text
); | SELECT "years_competed" FROM "former_clubs" WHERE "nickname"='panthers'; | 2-11548674-2 |
What is the release date of the CD by EG Records in the UK? | CREATE TABLE "versions" (
"country" text,
"release_date" real,
"music_label" text,
"media" text,
"catalogue_number" text
); | SELECT SUM("release_date") FROM "versions" WHERE "media"='cd' AND "country"='uk' AND "music_label"='eg records'; | 2-1121390-2 |
What is the release date by Editions EG in the Netherlands? | CREATE TABLE "versions" (
"country" text,
"release_date" real,
"music_label" text,
"media" text,
"catalogue_number" text
); | SELECT AVG("release_date") FROM "versions" WHERE "music_label"='editions eg' AND "country"='netherlands'; | 2-1121390-2 |
What is the music label with the catalogue number enocd 10? | CREATE TABLE "versions" (
"country" text,
"release_date" real,
"music_label" text,
"media" text,
"catalogue_number" text
); | SELECT "music_label" FROM "versions" WHERE "catalogue_number"='enocd 10'; | 2-1121390-2 |
What is the release date by Virgin? | CREATE TABLE "versions" (
"country" text,
"release_date" real,
"music_label" text,
"media" text,
"catalogue_number" text
); | SELECT AVG("release_date") FROM "versions" WHERE "music_label"='virgin'; | 2-1121390-2 |
Which team has Yuriy Hruznov as coach? | CREATE TABLE "pre_season_organization" (
"team" text,
"location" text,
"venue" text,
"league_and_position_in_1991" text,
"coach" text
); | SELECT "team" FROM "pre_season_organization" WHERE "coach"='yuriy hruznov'; | 2-11963118-1 |
Where is Dynamo-2 located? | CREATE TABLE "pre_season_organization" (
"team" text,
"location" text,
"venue" text,
"league_and_position_in_1991" text,
"coach" text
); | SELECT "location" FROM "pre_season_organization" WHERE "team"='dynamo-2'; | 2-11963118-1 |
Where is Shakhtar-2 located? | CREATE TABLE "pre_season_organization" (
"team" text,
"location" text,
"venue" text,
"league_and_position_in_1991" text,
"coach" text
); | SELECT "location" FROM "pre_season_organization" WHERE "team"='shakhtar-2'; | 2-11963118-1 |
For the gte northwest classic with the score of 207 (-9), what is the average 1st prize ($) | CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" real
); | SELECT AVG("1st_prize") FROM "tournament_results" WHERE "score"='207 (-9)' AND "tournament"='gte northwest classic'; | 2-11622562-1 |
For sep 18 what is the total number of 1 prize ($) | CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" real
); | SELECT COUNT("1st_prize") FROM "tournament_results" WHERE "date"='sep 18'; | 2-11622562-1 |
What is the winner for Virginia? | CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" real
); | SELECT "winner" FROM "tournament_results" WHERE "location"='virginia'; | 2-11622562-1 |
On what date was the gte north classic tournament? | CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" real
); | SELECT "date" FROM "tournament_results" WHERE "tournament"='gte north classic'; | 2-11622562-1 |
When did an away team score 14.19 (103)? | 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"='14.19 (103)'; | 2-10824095-21 |
What home team plays at princes park? | 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"='princes park'; | 2-10824095-21 |
When did an away team score 17.8 (110)? | 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"='17.8 (110)'; | 2-10824095-21 |
Where does the home team fitzroy play? | 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 "venue" FROM "round_21" WHERE "home_team"='fitzroy'; | 2-10824095-21 |
Which extra resulted in 2nd before 2005? | CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
); | SELECT "extra" FROM "achievements" WHERE "result"='2nd' AND "year"<2005; | 2-11880301-1 |
Which venue resulted in 2nd before 2005? | CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
); | SELECT "venue" FROM "achievements" WHERE "result"='2nd' AND "year"<2005; | 2-11880301-1 |
What was the attendance at the Red Sox game that had a loss of Wakefield (7–10)? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "attendance" FROM "game_log" WHERE "loss"='wakefield (7–10)'; | 2-11885248-7 |
What was the loss of the Red Sox game when they had a record of 77–67? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "loss" FROM "game_log" WHERE "record"='77–67'; | 2-11885248-7 |
Which Tournament has Pat Cash as a runner-up? | CREATE TABLE "2000" (
"tournament" text,
"winner" text,
"runner_up" text,
"score" text,
"third_place" text
); | SELECT "tournament" FROM "2000" WHERE "runner_up"='pat cash'; | 2-11346282-2 |
Who is the winner for the Tournament in Hong Kong with a third place winner named Mikael Pernfors? | CREATE TABLE "2000" (
"tournament" text,
"winner" text,
"runner_up" text,
"score" text,
"third_place" text
); | SELECT "winner" FROM "2000" WHERE "third_place"='mikael pernfors' AND "tournament"='hong kong'; | 2-11346282-2 |
What was the nationality of the athlete that ran the 10000 m event? | CREATE TABLE "women" (
"event" text,
"record" text,
"athlete" text,
"nationality" text,
"date" text
); | SELECT "nationality" FROM "women" WHERE "event"='10000 m'; | 2-1102696-5 |
What is the number of points of palamós cf, which has less than 21 wins and less than 40 goals? | CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT COUNT("points") FROM "final_table" WHERE "wins"<21 AND "club"='palamós cf' AND "goals_for"<40; | 2-12092001-2 |
Which club has more than 46 goals, 10 wins, and a goal difference of -24? | CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT "club" FROM "final_table" WHERE "goals_against">46 AND "wins"=10 AND "goal_difference"=-24; | 2-12092001-2 |
What is Richmond score 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 "away_team_score" FROM "round_17" WHERE "away_team"='richmond'; | 2-10808089-17 |
Tell me the pole position with round less than 2 | CREATE TABLE "grands_prix" (
"round" real,
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
); | SELECT "pole_position" FROM "grands_prix" WHERE "round"<2; | 2-1137694-3 |
I want the fastest lap for round of 16 | CREATE TABLE "grands_prix" (
"round" real,
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
); | SELECT "fastest_lap" FROM "grands_prix" WHERE "round"=16; | 2-1137694-3 |
Which Record has a home of Nashville? | CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "record" FROM "january" WHERE "home"='nashville'; | 2-11775918-6 |
Which Visitor played on January 17? | CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "visitor" FROM "january" WHERE "date"='january 17'; | 2-11775918-6 |
Which game later than number 32 had both Ellis for the decision and Nashville as the visiting team? | CREATE TABLE "december" (
"game" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "record" FROM "december" WHERE "visitor"='nashville' AND "decision"='ellis' AND "game">32; | 2-11756731-5 |
Who was the visiting team in the game sometime after number 29 that had 18,584 atttendees? | CREATE TABLE "december" (
"game" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "visitor" FROM "december" WHERE "game">29 AND "attendance">'18,584'; | 2-11756731-5 |
Which Crowd has an Away team score of 9.21 (75)? | CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT SUM("crowd") FROM "round_6" WHERE "away_team_score"='9.21 (75)'; | 2-10809529-6 |
If there is a VCPC of 75km/h (47mph) what is the VCA? | CREATE TABLE "tam_variants" (
"vctp" text,
"vca_155" text,
"vctm" text,
"vcpc" text,
"vclc" text,
"vcrt" text
); | SELECT "vca_155" FROM "tam_variants" WHERE "vcpc"='75km/h (47mph)'; | 2-1111973-1 |
If there is a VCRT of 7.62mm (0.3in) fn mag 60-20 machine gun, what is the VCTP of that? | CREATE TABLE "tam_variants" (
"vctp" text,
"vca_155" text,
"vctm" text,
"vcpc" text,
"vclc" text,
"vcrt" text
); | SELECT "vctp" FROM "tam_variants" WHERE "vcrt"='7.62mm (0.3in) fn mag 60-20 machine gun'; | 2-1111973-1 |
What is the airing date for a modern drama with more than 21 episodes? | CREATE TABLE "second_line_series" (
"airing_date" text,
"english_title_chinese_title" text,
"number_of_episodes" real,
"genre" text,
"official_website" text
); | SELECT "airing_date" FROM "second_line_series" WHERE "genre"='modern drama' AND "number_of_episodes">21; | 2-10942714-3 |
What was the Constructor for the German Grand Prix Race? | CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "constructor" FROM "season_review" WHERE "race"='german grand prix'; | 2-1140073-2 |
What Race did Michele Alboreto win? | CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "race" FROM "season_review" WHERE "race_winner"='michele alboreto'; | 2-1140073-2 |
What was the Constructor for the race that had Derek Warwick as its Fastest Lap? | CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "constructor" FROM "season_review" WHERE "fastest_lap"='derek warwick'; | 2-1140073-2 |
What Brands Hatch race had Niki Lauda as its Fastest Lap? | CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "race" FROM "season_review" WHERE "fastest_lap"='niki lauda' AND "location"='brands hatch'; | 2-1140073-2 |
What was the Report for the Monaco race? | CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "report" FROM "season_review" WHERE "location"='monaco'; | 2-1140073-2 |
What was the nation that had 59 totals? | CREATE TABLE "all_time_medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT "nation" FROM "all_time_medal_table" WHERE "total"=59; | 2-11315968-3 |
On what date did Ayrton Senna win at Imola? | CREATE TABLE "season_review" (
"grand_prix" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"report" text
); | SELECT "date" FROM "season_review" WHERE "winning_driver"='ayrton senna' AND "location"='imola'; | 2-1137718-2 |
Who had the fastest lap of the race that Ayrton Senna won on 23 April? | CREATE TABLE "season_review" (
"grand_prix" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"report" text
); | SELECT "fastest_lap" FROM "season_review" WHERE "winning_driver"='ayrton senna' AND "date"='23 april'; | 2-1137718-2 |
Which Grand Prix is located in Jerez? | CREATE TABLE "season_review" (
"grand_prix" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"report" text
); | SELECT "grand_prix" FROM "season_review" WHERE "location"='jerez'; | 2-1137718-2 |
Who had the pole position in Jerez? | CREATE TABLE "season_review" (
"grand_prix" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"report" text
); | SELECT "pole_position" FROM "season_review" WHERE "location"='jerez'; | 2-1137718-2 |
What is the report for the race that Ayrton Senna won on 27 August? | CREATE TABLE "season_review" (
"grand_prix" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"report" text
); | SELECT "report" FROM "season_review" WHERE "winning_driver"='ayrton senna' AND "date"='27 august'; | 2-1137718-2 |
What is the sum of gold medals for the United States with silver medal count greater than 3? | CREATE TABLE "medal_count" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT SUM("gold") FROM "medal_count" WHERE "nation"='united states' AND "silver">3; | 2-113189-2 |
What is the total number of medals of Norway with a silver medal count greater than 6 and a gold medal count greater than 10? | CREATE TABLE "medal_count" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("total") FROM "medal_count" WHERE "silver">6 AND "nation"='norway' AND "gold">10; | 2-113189-2 |
What is the lowest bronze medal count for Italy with fewer than 6 gold medals and greater than 10 total medals? | CREATE TABLE "medal_count" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("bronze") FROM "medal_count" WHERE "gold"<6 AND "nation"='italy' AND "total">10; | 2-113189-2 |
On average, what is the number of silver medals for nations ranking higher than 7, with a total of 6 medals and fewer than 2 bronze medals? | CREATE TABLE "medal_count" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("silver") FROM "medal_count" WHERE "rank">7 AND "total"=6 AND "bronze"<2; | 2-113189-2 |
For the United States, with greater than 2 bronze metals, greater than 3 silver medals, and a rank higher than 3, what is the highest total number of medals? | CREATE TABLE "medal_count" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("total") FROM "medal_count" WHERE "bronze">2 AND "rank">3 AND "nation"='united states' AND "silver">3; | 2-113189-2 |
Which player was active in Jazz in 1975-79? | CREATE TABLE "m" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
); | SELECT "player" FROM "m" WHERE "years_for_jazz"='1975-79'; | 2-11545282-13 |
What is the nationality for the guard position from Bowling Green? | CREATE TABLE "m" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
); | SELECT "nationality" FROM "m" WHERE "position"='guard' AND "school_club_team"='bowling green'; | 2-11545282-13 |
Who is the player from Auburn? | CREATE TABLE "m" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
); | SELECT "player" FROM "m" WHERE "school_club_team"='auburn'; | 2-11545282-13 |
Which player is a shooting guard? | CREATE TABLE "m" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
); | SELECT "player" FROM "m" WHERE "position"='shooting guard'; | 2-11545282-13 |
Which position was active in Jazz in 2002-03? | CREATE TABLE "m" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
); | SELECT "position" FROM "m" WHERE "years_for_jazz"='2002-03'; | 2-11545282-13 |
Name the total number of swimsuits when evening gown is 8.329 and average is less than 8.497 | CREATE TABLE "preliminary_competition" (
"state" text,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
); | SELECT COUNT("swimsuit") FROM "preliminary_competition" WHERE "evening_gown"=8.329 AND "average"<8.497; | 2-12063332-1 |
Name the sum of swimsuit when the evening gown is less than 6.983 and the average is less than 7.362 | CREATE TABLE "preliminary_competition" (
"state" text,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
); | SELECT SUM("swimsuit") FROM "preliminary_competition" WHERE "average"<7.362 AND "evening_gown"<6.983; | 2-12063332-1 |
Name the most interview for minnesota and average more than 7.901 | CREATE TABLE "preliminary_competition" (
"state" text,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
); | SELECT MAX("interview") FROM "preliminary_competition" WHERE "state"='minnesota' AND "average">7.901; | 2-12063332-1 |
Name the highest Decile for roll more than 325 and area of warkworth | CREATE TABLE "rodney_local_board" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
); | SELECT MAX("decile") FROM "rodney_local_board" WHERE "roll">325 AND "area"='warkworth'; | 2-12017602-1 |
Name the authority for roll of 54 | CREATE TABLE "rodney_local_board" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
); | SELECT "authority" FROM "rodney_local_board" WHERE "roll"=54; | 2-12017602-1 |
What was the score of Match 2? | CREATE TABLE "friendly" (
"match" real,
"date" text,
"competition_or_tour" text,
"ground" text,
"opponent" text,
"score1" text
); | SELECT "score1" FROM "friendly" WHERE "match"=2; | 2-11873099-17 |
Which away team had a score of 11.11 (77)? | CREATE TABLE "round_8" (
"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_8" WHERE "away_team_score"='11.11 (77)'; | 2-10789881-8 |
When did Essendon play at home? | CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "date" FROM "round_8" WHERE "home_team"='essendon'; | 2-10789881-8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.