question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
What did fitzroy score at their home game? | 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 "home_team_score" FROM "round_1" WHERE "home_team"='fitzroy'; | 2-10823950-1 |
Which away team played at western oval? | 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 "away_team" FROM "round_1" WHERE "venue"='western oval'; | 2-10823950-1 |
How big was the crowd when the opponent was essendon? | 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 SUM("crowd") FROM "round_1" WHERE "away_team"='essendon'; | 2-10823950-1 |
Which surface had Yew-Ming Si as a partner? | CREATE TABLE "doubles_runner_up" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
); | SELECT "surface" FROM "doubles_runner_up" WHERE "partner"='yew-ming si'; | 2-11976006-8 |
What was the result of rank 1? | CREATE TABLE "labour_targets" (
"rank" real,
"constituency" text,
"winning_party_2007" text,
"swing_to_gain" real,
"labour_s_place_2007" text,
"result" text
); | SELECT "result" FROM "labour_targets" WHERE "rank"=1; | 2-11099297-9 |
What type has a date of 1 june? | CREATE TABLE "stage_results" (
"date" text,
"course" text,
"distance" text,
"type" text,
"winner" text
); | SELECT "type" FROM "stage_results" WHERE "date"='1 june'; | 2-11303154-1 |
What was the date with a hilly stage? | CREATE TABLE "stage_results" (
"date" text,
"course" text,
"distance" text,
"type" text,
"winner" text
); | SELECT "date" FROM "stage_results" WHERE "type"='hilly stage'; | 2-11303154-1 |
What is the name of the winner on 18 may? | CREATE TABLE "stage_results" (
"date" text,
"course" text,
"distance" text,
"type" text,
"winner" text
); | SELECT "winner" FROM "stage_results" WHERE "date"='18 may'; | 2-11303154-1 |
What date was moena to aprica the course? | CREATE TABLE "stage_results" (
"date" text,
"course" text,
"distance" text,
"type" text,
"winner" text
); | SELECT "date" FROM "stage_results" WHERE "course"='moena to aprica'; | 2-11303154-1 |
What is the name of the winner with a type of plain stage and a Course of nola to sora? | CREATE TABLE "stage_results" (
"date" text,
"course" text,
"distance" text,
"type" text,
"winner" text
); | SELECT "winner" FROM "stage_results" WHERE "type"='plain stage' AND "course"='nola to sora'; | 2-11303154-1 |
Which sign has a red border and a warning sign? | CREATE TABLE "colours_and_shapes" (
"type_of_sign" text,
"shape" text,
"border" text,
"background_colour" text,
"text_symbol" text
); | SELECT "text_symbol" FROM "colours_and_shapes" WHERE "border"='red' AND "type_of_sign"='warning'; | 2-10934831-1 |
Which sign had a yellow background and a triangular shape? | CREATE TABLE "colours_and_shapes" (
"type_of_sign" text,
"shape" text,
"border" text,
"background_colour" text,
"text_symbol" text
); | SELECT "border" FROM "colours_and_shapes" WHERE "background_colour"='yellow' AND "shape"='triangular'; | 2-10934831-1 |
Which sign has a red border? | CREATE TABLE "colours_and_shapes" (
"type_of_sign" text,
"shape" text,
"border" text,
"background_colour" text,
"text_symbol" text
); | SELECT "text_symbol" FROM "colours_and_shapes" WHERE "border"='red'; | 2-10934831-1 |
Which color is the background of the mandatory instructions? | CREATE TABLE "colours_and_shapes" (
"type_of_sign" text,
"shape" text,
"border" text,
"background_colour" text,
"text_symbol" text
); | SELECT "background_colour" FROM "colours_and_shapes" WHERE "type_of_sign"='mandatory instructions'; | 2-10934831-1 |
What is the color of the background of the white border and sign of information? | CREATE TABLE "colours_and_shapes" (
"type_of_sign" text,
"shape" text,
"border" text,
"background_colour" text,
"text_symbol" text
); | SELECT "background_colour" FROM "colours_and_shapes" WHERE "border"='white' AND "type_of_sign"='information'; | 2-10934831-1 |
What was the away team score when the home team score was 9.10 (64)? | 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 "away_team_score" FROM "round_6" WHERE "home_team_score"='9.10 (64)'; | 2-10790510-6 |
What is the average total of Italy and has a bronze larger than 1? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("total") FROM "medal_table" WHERE "nation"='italy' AND "bronze">1; | 2-11704975-1 |
What amount of Gold does Russia have and have a rank larger than 1? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT SUM("gold") FROM "medal_table" WHERE "nation"='russia' AND "rank">1; | 2-11704975-1 |
What is the sum of the ranks with a total of 1 and silver less than 0. | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT SUM("rank") FROM "medal_table" WHERE "total"=1 AND "silver"<0; | 2-11704975-1 |
Which Player is linebacker and has a pick larger than 28? | CREATE TABLE "nfl_draft" (
"pick" real,
"round" real,
"player" text,
"position" text,
"school" text
); | SELECT "player" FROM "nfl_draft" WHERE "position"='linebacker' AND "pick">28; | 2-11442751-1 |
What was the lowest round that Melvin Johnson played? | CREATE TABLE "nfl_draft" (
"pick" real,
"round" real,
"player" text,
"position" text,
"school" text
); | SELECT MIN("round") FROM "nfl_draft" WHERE "player"='melvin johnson'; | 2-11442751-1 |
Who was the runner-up at the South Florida Semi-Finalist #1? | CREATE TABLE "division_i" (
"year" text,
"champion" text,
"score" text,
"runner_up" text,
"location" text,
"semi_finalist_num1" text,
"semi_finalist_num2" text
); | SELECT "runner_up" FROM "division_i" WHERE "semi_finalist_num1"='south florida'; | 2-11214772-1 |
Who was the Champion in Snellville, GA in 2006? | CREATE TABLE "division_i" (
"year" text,
"champion" text,
"score" text,
"runner_up" text,
"location" text,
"semi_finalist_num1" text,
"semi_finalist_num2" text
); | SELECT "champion" FROM "division_i" WHERE "location"='snellville, ga' AND "year"='2006'; | 2-11214772-1 |
Who won when Elon was the runner-up? | CREATE TABLE "division_i" (
"year" text,
"champion" text,
"score" text,
"runner_up" text,
"location" text,
"semi_finalist_num1" text,
"semi_finalist_num2" text
); | SELECT "champion" FROM "division_i" WHERE "runner_up"='elon'; | 2-11214772-1 |
What year saw a score of 8-5? | CREATE TABLE "division_i" (
"year" text,
"champion" text,
"score" text,
"runner_up" text,
"location" text,
"semi_finalist_num1" text,
"semi_finalist_num2" text
); | SELECT "year" FROM "division_i" WHERE "score"='8-5'; | 2-11214772-1 |
Who was the Semi-Finalist #2 in 2007? | CREATE TABLE "division_i" (
"year" text,
"champion" text,
"score" text,
"runner_up" text,
"location" text,
"semi_finalist_num1" text,
"semi_finalist_num2" text
); | SELECT "semi_finalist_num2" FROM "division_i" WHERE "year"='2007'; | 2-11214772-1 |
Who was the Semi-Finalist #2 in 2001? | CREATE TABLE "division_i" (
"year" text,
"champion" text,
"score" text,
"runner_up" text,
"location" text,
"semi_finalist_num1" text,
"semi_finalist_num2" text
); | SELECT "semi_finalist_num2" FROM "division_i" WHERE "year"='2001'; | 2-11214772-1 |
What tournament is in Arizona? | CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" real
); | SELECT "tournament" FROM "tournament_results" WHERE "location"='arizona'; | 2-11622392-1 |
When did an away team have a score of 12.9 (81)? | 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 "date" FROM "round_1" WHERE "away_team_score"='12.9 (81)'; | 2-10790510-1 |
What was the home team that had an opponent of footscray? | 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 "home_team" FROM "round_1" WHERE "away_team"='footscray'; | 2-10790510-1 |
Which away team had a crowd bigger than 21,000? | 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 "away_team" FROM "round_1" WHERE "crowd">'21,000'; | 2-10790510-1 |
When the home team scored 15.22 (112), what was the away team? | CREATE TABLE "round_13" (
"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_13" WHERE "home_team_score"='15.22 (112)'; | 2-10809368-13 |
When the away team scored 7.13 (55), what was the home team? | CREATE TABLE "round_13" (
"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_13" WHERE "away_team_score"='7.13 (55)'; | 2-10809368-13 |
When an away team scored 10.8 (68), what was the crowd size? | CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "crowd" FROM "round_13" WHERE "away_team_score"='10.8 (68)'; | 2-10809368-13 |
What was the smallest crowd size when a home team scored 6.11 (47)? | CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT MIN("crowd") FROM "round_13" WHERE "home_team_score"='6.11 (47)'; | 2-10809368-13 |
What is the rank for points less than 166.96, and a Places of 166? | CREATE TABLE "ladies" (
"rank" real,
"name" text,
"nation" text,
"sp_fs" real,
"points" real,
"places" text
); | SELECT AVG("rank") FROM "ladies" WHERE "points"<166.96 AND "places"='166'; | 2-11312764-4 |
What is the rank for more than 120.44 points in East Germany and a SP+FS of 3? | CREATE TABLE "ladies" (
"rank" real,
"name" text,
"nation" text,
"sp_fs" real,
"points" real,
"places" text
); | SELECT COUNT("rank") FROM "ladies" WHERE "points">120.44 AND "nation"='east germany' AND "sp_fs"=3; | 2-11312764-4 |
What is the rank when 233 shows for places and SP+FS smaller than 27? | CREATE TABLE "ladies" (
"rank" real,
"name" text,
"nation" text,
"sp_fs" real,
"points" real,
"places" text
); | SELECT COUNT("rank") FROM "ladies" WHERE "places"='233' AND "sp_fs"<27; | 2-11312764-4 |
What is the average SP+FS for Denise Biellmann, and a Rank larger than 5? | CREATE TABLE "ladies" (
"rank" real,
"name" text,
"nation" text,
"sp_fs" real,
"points" real,
"places" text
); | SELECT AVG("sp_fs") FROM "ladies" WHERE "name"='denise biellmann' AND "rank">5; | 2-11312764-4 |
What is the number of points for east germany, and a Places of 88? | CREATE TABLE "ladies" (
"rank" real,
"name" text,
"nation" text,
"sp_fs" real,
"points" real,
"places" text
); | SELECT SUM("points") FROM "ladies" WHERE "nation"='east germany' AND "places"='88'; | 2-11312764-4 |
what is the years for engin 5.7l hemi v8? | CREATE TABLE "engines" (
"years" text,
"engine" text,
"power" text,
"torque" text,
"notes" text
); | SELECT "years" FROM "engines" WHERE "engine"='5.7l hemi v8'; | 2-1105695-9 |
what is the years when the notes is laredo, limited, overland and the engine is 5.7l hemi v8? | CREATE TABLE "engines" (
"years" text,
"engine" text,
"power" text,
"torque" text,
"notes" text
); | SELECT "years" FROM "engines" WHERE "notes"='laredo, limited, overland' AND "engine"='5.7l hemi v8'; | 2-1105695-9 |
what is the torque when the notes are laredo, limited, overland and the engine is 5.7l hemi v8? | CREATE TABLE "engines" (
"years" text,
"engine" text,
"power" text,
"torque" text,
"notes" text
); | SELECT "torque" FROM "engines" WHERE "notes"='laredo, limited, overland' AND "engine"='5.7l hemi v8'; | 2-1105695-9 |
Who drove the ferrari that went 57 laps? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "driver" FROM "race" WHERE "constructor"='ferrari' AND "laps"=57; | 2-1122914-2 |
What is place number of Frank Kleber who started in 2001? | CREATE TABLE "men" (
"place" real,
"name" text,
"from" real,
"until" real,
"titles" real,
"seconds" text,
"thirds" text
); | SELECT COUNT("place") FROM "men" WHERE "name"='frank kleber' AND "from"<2001; | 2-11775329-3 |
How many seconds did the champion who started in 1971 and placed above 2 have? | CREATE TABLE "men" (
"place" real,
"name" text,
"from" real,
"until" real,
"titles" real,
"seconds" text,
"thirds" text
); | SELECT "seconds" FROM "men" WHERE "from">1971 AND "place"<2; | 2-11775329-3 |
What place did R. Wenzel, who was active after 1934, have? | CREATE TABLE "men" (
"place" real,
"name" text,
"from" real,
"until" real,
"titles" real,
"seconds" text,
"thirds" text
); | SELECT SUM("place") FROM "men" WHERE "name"='r. wenzel' AND "until">1934; | 2-11775329-3 |
What's the time for a round of n/a when the opponent is mikhail ilyukhin? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"round" text,
"time" text,
"location" text
); | SELECT "time" FROM "mixed_martial_arts_record" WHERE "round"='n/a' AND "opponent"='mikhail ilyukhin'; | 2-11637287-2 |
What is the pole position of the Portuguese Grand Prix? | 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 "grand_prix"='portuguese grand prix'; | 2-1137700-3 |
What is the pole position of the grand prix with 1 round? | 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"=1; | 2-1137700-3 |
What is the pole position of the Hungarian Grand Prix? | 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 "grand_prix"='hungarian grand prix'; | 2-1137700-3 |
What is the pole position of the Belgian Grand Prix? | 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 "grand_prix"='belgian grand prix'; | 2-1137700-3 |
What is the grand prix with Gerhard Berger as the fastest lap and Michael Schumacher as the pole position? | CREATE TABLE "grands_prix" (
"round" real,
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
); | SELECT "grand_prix" FROM "grands_prix" WHERE "fastest_lap"='gerhard berger' AND "pole_position"='michael schumacher'; | 2-1137700-3 |
Tell me the declination for consellaion of ophiuchus and apparent magnitude less than 8.6 with right ascension of 16h47m14.5s | CREATE TABLE "6201_6300" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text,
"apparent_magnitude" real
); | SELECT "declination_j2000" FROM "6201_6300" WHERE "constellation"='ophiuchus' AND "apparent_magnitude"<8.6 AND "right_ascension_j2000"='16h47m14.5s'; | 2-11051842-3 |
Tell me the right ascensuon for object type of globular cluster and apparent magnitude of 8.5 and NGC number of 6273 | CREATE TABLE "6201_6300" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text,
"apparent_magnitude" real
); | SELECT "right_ascension_j2000" FROM "6201_6300" WHERE "object_type"='globular cluster' AND "apparent_magnitude"=8.5 AND "ngc_number"=6273; | 2-11051842-3 |
When was the game played where St Kilda 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 "date" FROM "round_7" WHERE "home_team"='st kilda'; | 2-10807990-7 |
What was the home team score with an away team of Melbourne? | 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_score" FROM "round_7" WHERE "away_team"='melbourne'; | 2-10807990-7 |
What was the average amount of spectators when the home team scored 11.14 (80)? | 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 AVG("crowd") FROM "round_7" WHERE "home_team_score"='11.14 (80)'; | 2-10807990-7 |
Which away team had a home team that scored 12.19 (91)? | 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 "away_team" FROM "round_7" WHERE "home_team_score"='12.19 (91)'; | 2-10807990-7 |
Which away team played the home team of Footscray? | 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 "away_team" FROM "round_7" WHERE "home_team"='footscray'; | 2-10807990-7 |
How many spectators were present when the away team scored 10.12 (72)? | 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 COUNT("crowd") FROM "round_7" WHERE "away_team_score"='10.12 (72)'; | 2-10807990-7 |
How old was the conservative party member that left the house in 2001? | CREATE TABLE "list_of_oldest_sitting_m_ps_since_1945" (
"born" text,
"became_oldest_mp" text,
"left_house" text,
"age_on_leaving" text,
"died" text,
"political_party" text
); | SELECT "age_on_leaving" FROM "list_of_oldest_sitting_m_ps_since_1945" WHERE "political_party"='conservative' AND "left_house"='2001'; | 2-11921877-1 |
What was the lowest Attendance for the Staples Center Arena when the Points were over 14? | CREATE TABLE "regular_season" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text,
"arena" text,
"points" real
); | SELECT MIN("attendance") FROM "regular_season" WHERE "points">14 AND "arena"='staples center'; | 2-11801795-4 |
Name the leading scorer for 12 january 2008 | CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
); | SELECT "leading_scorer" FROM "january" WHERE "date"='12 january 2008'; | 2-11961051-5 |
Name the record for 21 january 2008 | CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
); | SELECT "record" FROM "january" WHERE "date"='21 january 2008'; | 2-11961051-5 |
what is the date when the away team is melbourne? | 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 "date" FROM "round_1" WHERE "away_team"='melbourne'; | 2-10807253-1 |
who is the home team when the home team score is 18.17 (125)? | 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 "home_team" FROM "round_1" WHERE "home_team_score"='18.17 (125)'; | 2-10807253-1 |
What is the score for the home team for the venue glenferrie oval? | 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 "home_team_score" FROM "round_1" WHERE "venue"='glenferrie oval'; | 2-10807253-1 |
Who is the home team when the home team score is 14.19 (103)? | 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 "home_team" FROM "round_1" WHERE "home_team_score"='14.19 (103)'; | 2-10807253-1 |
What is the venue when the away team score is 17.13 (115)? | 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 "venue" FROM "round_1" WHERE "away_team_score"='17.13 (115)'; | 2-10807253-1 |
What was South Melbourne's score when they played as the away team? | CREATE TABLE "round_11" (
"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_11" WHERE "away_team"='south melbourne'; | 2-10806592-11 |
What was the attendance for the North Melbourne's home game? | CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "crowd" FROM "round_11" WHERE "home_team"='north melbourne'; | 2-10806592-11 |
What is the score of the home team that played at brunswick street oval with a crowd larger than 12,000? | CREATE TABLE "round_18" (
"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_18" WHERE "crowd">'12,000' AND "venue"='brunswick street oval'; | 2-10809368-18 |
What is the name of the venue where home team st kilda played? | CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "venue" FROM "round_18" WHERE "home_team"='st kilda'; | 2-10809368-18 |
What is the home team score that played away team carlton? | CREATE TABLE "round_18" (
"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_18" WHERE "away_team"='carlton'; | 2-10809368-18 |
Who won in the game before 1985 attended by over 62,026? | CREATE TABLE "1980s_bears_11_7" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"attendance" real,
"location" text
); | SELECT "winner" FROM "1980s_bears_11_7" WHERE "attendance">'62,026' AND "year"<1985; | 2-11650849-10 |
When the Year is smaller than 2004, and Mike Joy is the Lap-by-lap, what are the Ratings? | CREATE TABLE "fox_nbc_era_2001_2006" (
"year" real,
"network" text,
"lap_by_lap" text,
"s_color_commentator" text,
"pre_race_host" text,
"ratings" text
); | SELECT "ratings" FROM "fox_nbc_era_2001_2006" WHERE "year"<2004 AND "lap_by_lap"='mike joy'; | 2-11691212-3 |
Which Network has Bill Weber for the Lap-by-lap? | CREATE TABLE "fox_nbc_era_2001_2006" (
"year" real,
"network" text,
"lap_by_lap" text,
"s_color_commentator" text,
"pre_race_host" text,
"ratings" text
); | SELECT "network" FROM "fox_nbc_era_2001_2006" WHERE "lap_by_lap"='bill weber'; | 2-11691212-3 |
Who was the Pre-Race Host when Mike Joy was the Lap-by-lap in the Year 2005? | CREATE TABLE "fox_nbc_era_2001_2006" (
"year" real,
"network" text,
"lap_by_lap" text,
"s_color_commentator" text,
"pre_race_host" text,
"ratings" text
); | SELECT "pre_race_host" FROM "fox_nbc_era_2001_2006" WHERE "lap_by_lap"='mike joy' AND "year"=2005; | 2-11691212-3 |
How many Years have Ratings of 10.9/23? | CREATE TABLE "fox_nbc_era_2001_2006" (
"year" real,
"network" text,
"lap_by_lap" text,
"s_color_commentator" text,
"pre_race_host" text,
"ratings" text
); | SELECT COUNT("year") FROM "fox_nbc_era_2001_2006" WHERE "ratings"='10.9/23'; | 2-11691212-3 |
What is the home team of lake oval's score? | 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_score" FROM "round_7" WHERE "venue"='lake oval'; | 2-10784349-7 |
When was victoria park used as a venue? | 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 "venue"='victoria park'; | 2-10784349-7 |
Which date has an Away team of fitzroy? | 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 "away_team"='fitzroy'; | 2-10784349-7 |
What is the largest crowd for a Home team of carlton? | 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 MAX("crowd") FROM "round_7" WHERE "home_team"='carlton'; | 2-10784349-7 |
When the Away team scored 12.9 (81), what was the average Crowd size? | 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 AVG("crowd") FROM "round_17" WHERE "away_team_score"='12.9 (81)'; | 2-10790804-17 |
When the Home team had a score of 16.10 (106), what was the Date? | 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 "date" FROM "round_17" WHERE "home_team_score"='16.10 (106)'; | 2-10790804-17 |
When the Away team is melbourne, what's the lowest Crowd attended? | 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 MIN("crowd") FROM "round_17" WHERE "away_team"='melbourne'; | 2-10790804-17 |
When the Away team is essendon, what's the Home team score? | 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 "home_team_score" FROM "round_17" WHERE "away_team"='essendon'; | 2-10790804-17 |
If the Venue is brunswick street oval, what date was the game played ? | 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 "date" FROM "round_17" WHERE "venue"='brunswick street oval'; | 2-10790804-17 |
Name the first for countries of trinidad and tobago for hutchinson for years before 2004 | CREATE TABLE "olympians" (
"last" text,
"first" text,
"year" real,
"sport" text,
"country" text
); | SELECT "first" FROM "olympians" WHERE "country"='trinidad and tobago' AND "last"='hutchinson' AND "year"<2004; | 2-11972075-1 |
Name the sport for canada in 2004 | CREATE TABLE "olympians" (
"last" text,
"first" text,
"year" real,
"sport" text,
"country" text
); | SELECT "sport" FROM "olympians" WHERE "country"='canada' AND "year"=2004; | 2-11972075-1 |
Name the last for softball before 2000 | CREATE TABLE "olympians" (
"last" text,
"first" text,
"year" real,
"sport" text,
"country" text
); | SELECT "last" FROM "olympians" WHERE "year"<2000 AND "sport"='softball'; | 2-11972075-1 |
Name the sum of year for swimming and first of mike | CREATE TABLE "olympians" (
"last" text,
"first" text,
"year" real,
"sport" text,
"country" text
); | SELECT SUM("year") FROM "olympians" WHERE "sport"='swimming' AND "first"='mike'; | 2-11972075-1 |
Name the sport for puerto rico and year of 2000 | CREATE TABLE "olympians" (
"last" text,
"first" text,
"year" real,
"sport" text,
"country" text
); | SELECT "sport" FROM "olympians" WHERE "country"='puerto rico' AND "year"=2000; | 2-11972075-1 |
Cumulative point total for all teams playing on the Discovery Channel? | CREATE TABLE "individual_2007_uci_pro_tour_standings_a" (
"rank" real,
"name" text,
"nationality" text,
"team" text,
"points" real
); | SELECT COUNT("points") FROM "individual_2007_uci_pro_tour_standings_a" WHERE "team"='discovery channel'; | 2-11355733-21 |
Which player is from Belgium? | CREATE TABLE "individual_2007_uci_pro_tour_standings_a" (
"rank" real,
"name" text,
"nationality" text,
"team" text,
"points" real
); | SELECT "name" FROM "individual_2007_uci_pro_tour_standings_a" WHERE "nationality"='belgium'; | 2-11355733-21 |
Who was the visiting team that played against the Kings? | CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
); | SELECT "visitor" FROM "december" WHERE "home"='kings'; | 2-11961176-5 |
Tell me the player for round more than 5 and position of c | CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
); | SELECT "player" FROM "draft_picks" WHERE "round">5 AND "position"='c'; | 2-11902503-19 |
Tell me the college for carl hagelin | CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
); | SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "player"='carl hagelin'; | 2-11902503-19 |
What year is the player who attended la salle with under 6 assists from? | CREATE TABLE "l" (
"player" text,
"pos" text,
"from" real,
"school_country" text,
"rebs" real,
"asts" real
); | SELECT SUM("from") FROM "l" WHERE "school_country"='la salle' AND "asts"<6; | 2-11482079-12 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.