question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
What position does the player from arkansas play? | CREATE TABLE "p" (
"player" text,
"nationality" text,
"position" text,
"from" text,
"school_country" text
); | SELECT "position" FROM "p" WHERE "school_country"='arkansas'; | 2-10560886-17 |
Who is the away side at glenferrie oval? | 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" FROM "round_11" WHERE "venue"='glenferrie oval'; | 2-10746200-11 |
What is the away side's score when richmond is at home? | 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 "home_team"='richmond'; | 2-10746200-11 |
WHAT WAS THE HOME TEAM'S SCORE WHEN THEY HAD A CROWD GREATER THAN 20,000 AND PLAYED AGAINST COLLINGWOOD? | 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 "crowd">'20,000' AND "away_team"='collingwood'; | 2-10773753-7 |
AT WHAT VENUE DID THE HOME TEAM SCORE 10.11 (71)? | 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 "venue" FROM "round_7" WHERE "home_team_score"='10.11 (71)'; | 2-10773753-7 |
AT WHAT VENUE DID THE HOME TEAM SCORE 10.9 (69)? | 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 "venue" FROM "round_7" WHERE "home_team_score"='10.9 (69)'; | 2-10773753-7 |
WHAT HOME TEAM SCORED 9.11 (65)? | 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 "home_team_score"='9.11 (65)'; | 2-10773753-7 |
What was the crowd size at Collingwood's match? | 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 "crowd" FROM "round_6" WHERE "home_team"='collingwood'; | 2-10701914-6 |
What was the crowd size at Arden Street Oval? | 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 "crowd" FROM "round_6" WHERE "venue"='arden street oval'; | 2-10701914-6 |
What is the status of the match between Scotland v Northern Ireland? | CREATE TABLE "international_matches_between_the_home_n" (
"date" text,
"stadium" text,
"fixture" text,
"status_of_match" text,
"score" text
); | SELECT "status_of_match" FROM "international_matches_between_the_home_n" WHERE "fixture"='scotland v northern ireland'; | 2-1053423-1 |
In what week was the game on August 10, 1956 played? | CREATE TABLE "exhibition_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT AVG("week") FROM "exhibition_schedule" WHERE "date"='august 10, 1956'; | 2-10651573-1 |
What was the attendance of the game in week 6? | CREATE TABLE "exhibition_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT "attendance" FROM "exhibition_schedule" WHERE "week"=6; | 2-10651573-1 |
In what week was the game on August 24, 1956 played in front of 40,175 fans? | CREATE TABLE "exhibition_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT MAX("week") FROM "exhibition_schedule" WHERE "date"='august 24, 1956' AND "attendance">'40,175'; | 2-10651573-1 |
What signal quality does the KCAL-DT channel have? | CREATE TABLE "media" (
"translator_call_letters" text,
"b_mountain_channel" text,
"laurel_mountain_channel" text,
"psip" text,
"station_call_letters" text,
"network_affiliation_id" text,
"original_channel" text,
"signal_quality" text
); | SELECT "signal_quality" FROM "media" WHERE "station_call_letters"='kcal-dt'; | 2-107555-2 |
What original channel is associated with B Mountain Channel 9? | CREATE TABLE "media" (
"translator_call_letters" text,
"b_mountain_channel" text,
"laurel_mountain_channel" text,
"psip" text,
"station_call_letters" text,
"network_affiliation_id" text,
"original_channel" text,
"signal_quality" text
); | SELECT "original_channel" FROM "media" WHERE "b_mountain_channel"='9'; | 2-107555-2 |
What B Mountain Channel has station call letters of k41go? | CREATE TABLE "media" (
"translator_call_letters" text,
"b_mountain_channel" text,
"laurel_mountain_channel" text,
"psip" text,
"station_call_letters" text,
"network_affiliation_id" text,
"original_channel" text,
"signal_quality" text
); | SELECT "b_mountain_channel" FROM "media" WHERE "station_call_letters"='k41go'; | 2-107555-2 |
What Laurel Mountain Channel is associated with B Mountain Channel of 7? | CREATE TABLE "media" (
"translator_call_letters" text,
"b_mountain_channel" text,
"laurel_mountain_channel" text,
"psip" text,
"station_call_letters" text,
"network_affiliation_id" text,
"original_channel" text,
"signal_quality" text
); | SELECT "laurel_mountain_channel" FROM "media" WHERE "b_mountain_channel"='7'; | 2-107555-2 |
What are the translator call letters for station call letters of KCOP-DT? | CREATE TABLE "media" (
"translator_call_letters" text,
"b_mountain_channel" text,
"laurel_mountain_channel" text,
"psip" text,
"station_call_letters" text,
"network_affiliation_id" text,
"original_channel" text,
"signal_quality" text
); | SELECT "translator_call_letters" FROM "media" WHERE "station_call_letters"='kcop-dt'; | 2-107555-2 |
What team was the away team with a score of 9.11 (65)? | 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 "away_team_score"='9.11 (65)'; | 2-10747009-12 |
What date was fitzroy the home 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 "date" FROM "round_12" WHERE "home_team"='fitzroy'; | 2-10747009-12 |
What was the score for the away team when the home team was richmond? | 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_score" FROM "round_12" WHERE "home_team"='richmond'; | 2-10747009-12 |
Who is the away team at the game at Arden Street Oval? | 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" FROM "round_6" WHERE "venue"='arden street oval'; | 2-10767118-6 |
What is the venue where the home team is Footscray? | 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 "venue" FROM "round_6" WHERE "home_team"='footscray'; | 2-10767118-6 |
What is the venue for the game on 1 June 1929 where Richmond was the away team? | 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 "venue" FROM "round_6" WHERE "date"='1 june 1929' AND "away_team"='richmond'; | 2-10767118-6 |
What was the speed of the rider that earned 1 point? | CREATE TABLE "1971_isle_of_man_senior_tt_500cc_final_s" (
"place" real,
"rider" text,
"country" text,
"machine" text,
"speed" text,
"time" text,
"points" real
); | SELECT "speed" FROM "1971_isle_of_man_senior_tt_500cc_final_s" WHERE "points"=1; | 2-10638654-4 |
Which partner has fewer than 17 years on learners and a driver's age over 32? | CREATE TABLE "blue_team" (
"learner_driver" text,
"partner" text,
"driver_s_age" real,
"years_on_learners" real,
"licence_test_attempts" real,
"passed_yet" text
); | SELECT "partner" FROM "blue_team" WHERE "years_on_learners"<17 AND "driver_s_age">32; | 2-10749367-2 |
What away team is playing at the Brunswick Street Oval Venue? | 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 "away_team" FROM "round_16" WHERE "venue"='brunswick street oval'; | 2-10774891-16 |
What date does the Home team of Richmond have? | 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 "home_team"='richmond'; | 2-10774891-16 |
Who is the home team at Victoria Park on 20 April 1957? | 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 "date"='20 april 1957' AND "venue"='victoria park'; | 2-10774891-1 |
Who is the home team at the game where the away team scored 6.14 (50)? | 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 "away_team_score"='6.14 (50)'; | 2-10774891-1 |
What municipality is the Harmon Cove station located in? | CREATE TABLE "former_stations" (
"station" text,
"municipality" text,
"county" text,
"former_railroad" text,
"closed" real
); | SELECT "municipality" FROM "former_stations" WHERE "station"='harmon cove'; | 2-1051326-3 |
What municipality is the Benson Street station located in? | CREATE TABLE "former_stations" (
"station" text,
"municipality" text,
"county" text,
"former_railroad" text,
"closed" real
); | SELECT "municipality" FROM "former_stations" WHERE "station"='benson street'; | 2-1051326-3 |
What date shows corrado barazzutti's partner? | CREATE TABLE "doubles_30_12_18" (
"outcome" text,
"date" text,
"tournament" text,
"partner" text,
"opponents_in_the_final" text
); | SELECT "date" FROM "doubles_30_12_18" WHERE "partner"='corrado barazzutti'; | 2-10592293-1 |
Which date has the tom gullikson butch walts final, and who was the runner-up? | CREATE TABLE "doubles_30_12_18" (
"outcome" text,
"date" text,
"tournament" text,
"partner" text,
"opponents_in_the_final" text
); | SELECT "date" FROM "doubles_30_12_18" WHERE "outcome"='runner-up' AND "opponents_in_the_final"='tom gullikson butch walts'; | 2-10592293-1 |
Who is the home team of the game against Essendon? | 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 "home_team" FROM "round_6" WHERE "away_team"='essendon'; | 2-10746200-6 |
Who is the color commentator for ESPN from 1990 to 1992? | CREATE TABLE "1990s" (
"year" real,
"network" text,
"play_by_play" text,
"color_commentator_s" text,
"sideline_reporter_s" text
); | SELECT "color_commentator_s" FROM "1990s" WHERE "network"='espn'; | 2-10656249-5 |
Who was the sideline reporter prior to 1993? | CREATE TABLE "1990s" (
"year" real,
"network" text,
"play_by_play" text,
"color_commentator_s" text,
"sideline_reporter_s" text
); | SELECT "sideline_reporter_s" FROM "1990s" WHERE "year"<1993; | 2-10656249-5 |
Who was the play by play commentator for ABC after 1998? | CREATE TABLE "1990s" (
"year" real,
"network" text,
"play_by_play" text,
"color_commentator_s" text,
"sideline_reporter_s" text
); | SELECT "play_by_play" FROM "1990s" WHERE "network"='abc' AND "year">1998; | 2-10656249-5 |
What's the earliest year that Al Michaels was the play-by-play commentator, in which Lesley Visser and Dan Fouts were also sideline reporters? | CREATE TABLE "1990s" (
"year" real,
"network" text,
"play_by_play" text,
"color_commentator_s" text,
"sideline_reporter_s" text
); | SELECT MIN("year") FROM "1990s" WHERE "play_by_play"='al michaels' AND "sideline_reporter_s"='lesley visser and dan fouts'; | 2-10656249-5 |
For how many years combined were Frank Gifford and Dan Dierdorf color commentators? | CREATE TABLE "1990s" (
"year" real,
"network" text,
"play_by_play" text,
"color_commentator_s" text,
"sideline_reporter_s" text
); | SELECT COUNT("year") FROM "1990s" WHERE "color_commentator_s"='frank gifford and dan dierdorf'; | 2-10656249-5 |
Which sideline reporters worked alongside Frank Gifford and Dan Dierdorf? | CREATE TABLE "1990s" (
"year" real,
"network" text,
"play_by_play" text,
"color_commentator_s" text,
"sideline_reporter_s" text
); | SELECT "sideline_reporter_s" FROM "1990s" WHERE "color_commentator_s"='frank gifford and dan dierdorf'; | 2-10656249-5 |
When was the Lundy withdrawn? | CREATE TABLE "southern_railway_batch" (
"br_no" real,
"sr_no" text,
"name" text,
"builder" text,
"whenbuilt" text,
"withdrawn" text
); | SELECT "withdrawn" FROM "southern_railway_batch" WHERE "name"='lundy'; | 2-10608850-1 |
When was the locomotive named fighter command built? | CREATE TABLE "southern_railway_batch" (
"br_no" real,
"sr_no" text,
"name" text,
"builder" text,
"whenbuilt" text,
"withdrawn" text
); | SELECT "whenbuilt" FROM "southern_railway_batch" WHERE "name"='fighter command'; | 2-10608850-1 |
Which country has a rand of 2 and a silver less than 6? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("total") FROM "medal_table" WHERE "rank"='2' AND "silver"<6; | 2-10642140-3 |
What is the lowest total of medals that has a gold of 3 and a silver less than 3? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("total") FROM "medal_table" WHERE "gold"=3 AND "silver"<3; | 2-10642140-3 |
What was the average size of the crowd for games where the home team had a score of 10.10 (70)? | 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 "home_team_score"='10.10 (70)'; | 2-10773616-17 |
What was the home team score for the game played at MCG? | 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 "venue"='mcg'; | 2-10773616-17 |
For the game played at Windy Hill, who was 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" FROM "round_17" WHERE "venue"='windy hill'; | 2-10773616-17 |
For the game where the away team was North Melbourne, what was the venue? | 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"='north melbourne'; | 2-10773616-17 |
What is the Weight for the 2012 club, Victorian Tigers? | CREATE TABLE "current_squad" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"2012_club" text
); | SELECT "weight" FROM "current_squad" WHERE "2012_club"='victorian tigers'; | 2-10680530-2 |
What is the Weight for the Name Billy Miller Category:Articles with hcards? | CREATE TABLE "current_squad" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"2012_club" text
); | SELECT "weight" FROM "current_squad" WHERE "name"='billy miller category:articles with hcards'; | 2-10680530-2 |
What is the 2012 club for the Billy Miller Category:Articles with hcards (Name)? | CREATE TABLE "current_squad" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"2012_club" text
); | SELECT "2012_club" FROM "current_squad" WHERE "name"='billy miller category:articles with hcards'; | 2-10680530-2 |
How many medals did China receive? | CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("total") FROM "medals_table" WHERE "nation"='china'; | 2-10550115-3 |
What is the # of candidates that have a popular vote of 41.37%? | CREATE TABLE "general_election_results" (
"general_election" real,
"num_of_candidates" real,
"num_of_seats_won" real,
"pct_of_popular_vote" text,
"result" text
); | SELECT AVG("num_of_candidates") FROM "general_election_results" WHERE "pct_of_popular_vote"='41.37%'; | 2-106367-2 |
What is the # of candidates of liberal majority with 51 wins and larger number of 2008 in general elections? | CREATE TABLE "general_election_results" (
"general_election" real,
"num_of_candidates" real,
"num_of_seats_won" real,
"pct_of_popular_vote" text,
"result" text
); | SELECT AVG("num_of_candidates") FROM "general_election_results" WHERE "result"='liberal majority' AND "num_of_seats_won"=51 AND "general_election">2008; | 2-106367-2 |
How many general elections that have won smaller than 23 with candidates larger than 108? | CREATE TABLE "general_election_results" (
"general_election" real,
"num_of_candidates" real,
"num_of_seats_won" real,
"pct_of_popular_vote" text,
"result" text
); | SELECT COUNT("general_election") FROM "general_election_results" WHERE "num_of_seats_won"<23 AND "num_of_candidates">108; | 2-106367-2 |
What venue did melbourne play at 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"='melbourne'; | 2-10767118-17 |
What was the essendon score when they were at home? | 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 "home_team"='essendon'; | 2-10767118-17 |
What is the date of the game where the home team score was 7.11 (53)? | 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"='7.11 (53)'; | 2-10767118-17 |
What venue did melbourne play at 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"='melbourne'; | 2-10767118-17 |
What Years have a Goal of 82? | CREATE TABLE "references" (
"nationality" text,
"position" text,
"apps" real,
"goals" real,
"years" text
); | SELECT "years" FROM "references" WHERE "goals"=82; | 2-10638934-1 |
What is the total of overall values with a safety position in a round greater than 1? | CREATE TABLE "1998_new_england_patriots_draft_selectio" (
"round" real,
"overall" real,
"player" text,
"position" text,
"college" text
); | SELECT COUNT("overall") FROM "1998_new_england_patriots_draft_selectio" WHERE "position"='safety' AND "round">1; | 2-10696170-1 |
What is the average overall value for a round less than 4 associated with the College of Georgia? | CREATE TABLE "1998_new_england_patriots_draft_selectio" (
"round" real,
"overall" real,
"player" text,
"position" text,
"college" text
); | SELECT AVG("overall") FROM "1998_new_england_patriots_draft_selectio" WHERE "round"<4 AND "college"='georgia'; | 2-10696170-1 |
What was the average attendance in weeks after 16? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT AVG("attendance") FROM "schedule" WHERE "week">16; | 2-10651215-2 |
What is the highest number killed in incident #14? | CREATE TABLE "2011" (
"incident_no" text,
"date" text,
"place" text,
"killed" real,
"injured" real
); | SELECT MAX("killed") FROM "2011" WHERE "incident_no"='14'; | 2-1074011-8 |
What was the crowd size when the away team scored 7.19 (61)? | CREATE TABLE "round_10" (
"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_10" WHERE "away_team_score"='7.19 (61)'; | 2-10774891-10 |
What was the largest crowd at Arden Street Oval? | CREATE TABLE "round_10" (
"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_10" WHERE "venue"='arden street oval'; | 2-10774891-10 |
What was the home teams score at Arden Street Oval? | CREATE TABLE "round_10" (
"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_10" WHERE "venue"='arden street oval'; | 2-10774891-10 |
What was the lowest crowd size when the away team scored 7.19 (61)? | CREATE TABLE "round_10" (
"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_10" WHERE "away_team_score"='7.19 (61)'; | 2-10774891-10 |
What was the venue where the home team scored 11.12 (78)? | CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "venue" FROM "round_10" WHERE "home_team_score"='11.12 (78)'; | 2-10774891-10 |
What was the gold medal total for a total of 44 medals? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("gold") FROM "medal_table" WHERE "total">44; | 2-10535131-3 |
How many silver medals were won with a total medal of 3 and a rank above 9? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("silver") FROM "medal_table" WHERE "total"<3 AND "rank">9; | 2-10535131-3 |
How many weeks had an attendance of over 68,000? | CREATE TABLE "exhibition_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT COUNT("week") FROM "exhibition_schedule" WHERE "attendance">'68,000'; | 2-10651935-2 |
What engine was used by the team the finished 2nd? | CREATE TABLE "indy_500_results" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" text,
"team" text
); | SELECT "engine" FROM "indy_500_results" WHERE "finish"='2nd'; | 2-105851-4 |
What chassis was used with the Chevrolet engine in 1991? | CREATE TABLE "indy_500_results" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" text,
"team" text
); | SELECT "chassis" FROM "indy_500_results" WHERE "engine"='chevrolet' AND "year"=1991; | 2-105851-4 |
What was the most recent year when a g-force chassis started in 1st? | CREATE TABLE "indy_500_results" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" text,
"team" text
); | SELECT MAX("year") FROM "indy_500_results" WHERE "start"='1st' AND "chassis"='g-force'; | 2-105851-4 |
What was the starting position in the year before 1986? | CREATE TABLE "indy_500_results" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" text,
"team" text
); | SELECT "start" FROM "indy_500_results" WHERE "year"<1986; | 2-105851-4 |
What is the name of the Malta vessel built after 2010 that is a GL class Panamax vessel? | CREATE TABLE "fleet" (
"vessel_name" text,
"type" text,
"built" real,
"class" text,
"flag" text
); | SELECT "vessel_name" FROM "fleet" WHERE "flag"='malta' AND "type"='panamax' AND "class"='gl' AND "built">2010; | 2-10694372-1 |
Which year was the vessel Deva built as a Panamax DNV class ship? | CREATE TABLE "fleet" (
"vessel_name" text,
"type" text,
"built" real,
"class" text,
"flag" text
); | SELECT SUM("built") FROM "fleet" WHERE "class"='dnv' AND "type"='panamax' AND "vessel_name"='deva'; | 2-10694372-1 |
What is the class of vessel of the ship Hyundai Smart? | CREATE TABLE "fleet" (
"vessel_name" text,
"type" text,
"built" real,
"class" text,
"flag" text
); | SELECT "class" FROM "fleet" WHERE "vessel_name"='hyundai smart'; | 2-10694372-1 |
In which class would the vessel Hyundai Tenacity be placed? | CREATE TABLE "fleet" (
"vessel_name" text,
"type" text,
"built" real,
"class" text,
"flag" text
); | SELECT "class" FROM "fleet" WHERE "vessel_name"='hyundai tenacity'; | 2-10694372-1 |
What was the result for week 14? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT "result" FROM "schedule" WHERE "week"=14; | 2-10647554-1 |
Who was the home team when the away team scored 5.9 (39)? | 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 "home_team_score" FROM "round_9" WHERE "away_team_score"='5.9 (39)'; | 2-10750694-9 |
Which lowest rank(player) has a rebound average larger than 9, out of 920 rebounds, and who played more than 79 games? | CREATE TABLE "rebounds" (
"rank" real,
"player" text,
"years" text,
"games" real,
"reb_avg" real,
"total_rebounds" real
); | SELECT MIN("rank") FROM "rebounds" WHERE "reb_avg">9 AND "total_rebounds"=920 AND "games">79; | 2-10566391-8 |
How many ranks have a rebound average smaller than 6.1? | CREATE TABLE "rebounds" (
"rank" real,
"player" text,
"years" text,
"games" real,
"reb_avg" real,
"total_rebounds" real
); | SELECT COUNT("rank") FROM "rebounds" WHERE "reb_avg"<6.1; | 2-10566391-8 |
Which player was drafted higher than 374 and went to the school Stephen F. Austin? | CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
); | SELECT "player" FROM "nfl_draft" WHERE "overall"<374 AND "school_club_team"='stephen f. austin'; | 2-10652150-1 |
What is the lowest round Trinity school was drafted with an overall higher than 21? | CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
); | SELECT MIN("round") FROM "nfl_draft" WHERE "school_club_team"='trinity' AND "overall"<21; | 2-10652150-1 |
Who got the time of 7:52.04? | CREATE TABLE "final" (
"lane" real,
"swimmer" text,
"nationality" text,
"100m" real,
"200m" text,
"300m" text,
"400m" text,
"500m" text,
"600m" text,
"700m" text,
"time" text
); | SELECT "swimmer" FROM "final" WHERE "time"='7:52.04'; | 2-10600564-1 |
Which swimmer completed the 700m within 6:57.69? | CREATE TABLE "final" (
"lane" real,
"swimmer" text,
"nationality" text,
"100m" real,
"200m" text,
"300m" text,
"400m" text,
"500m" text,
"600m" text,
"700m" text,
"time" text
); | SELECT "swimmer" FROM "final" WHERE "700m"='6:57.69'; | 2-10600564-1 |
Which swimmer has a 100m time longer than 57.34 and a 600m of 5:54.45? | CREATE TABLE "final" (
"lane" real,
"swimmer" text,
"nationality" text,
"100m" real,
"200m" text,
"300m" text,
"400m" text,
"500m" text,
"600m" text,
"700m" text,
"time" text
); | SELECT "200m" FROM "final" WHERE "100m">57.34 AND "600m"='5:54.45'; | 2-10600564-1 |
Which of the opponents has bye as their box score? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"stadium" text,
"record" text,
"box_scores" text,
"attendance" text
); | SELECT "opponent" FROM "schedule" WHERE "box_scores"='bye'; | 2-10652556-2 |
How many people attended the game against the pittsburgh steelers? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"stadium" text,
"record" text,
"box_scores" text,
"attendance" text
); | SELECT "attendance" FROM "schedule" WHERE "opponent"='pittsburgh steelers'; | 2-10652556-2 |
What was the result of the game on September 25 with a box score of box? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"stadium" text,
"record" text,
"box_scores" text,
"attendance" text
); | SELECT "result" FROM "schedule" WHERE "box_scores"='box' AND "date"='september 25'; | 2-10652556-2 |
What is the date of the game later than week 13 and 41,862 people attended? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"stadium" text,
"record" text,
"box_scores" text,
"attendance" text
); | SELECT "date" FROM "schedule" WHERE "week">13 AND "attendance"='41,862'; | 2-10652556-2 |
What is the sum of caps for players with less than 9 goals ranked below 8? | CREATE TABLE "most_caps" (
"rank" real,
"player" text,
"nation" text,
"caps" real,
"goals" real,
"years" text
); | SELECT SUM("caps") FROM "most_caps" WHERE "goals"<9 AND "rank">8; | 2-1053453-8 |
What were the years of senior status for active service in 1972–1995? | CREATE TABLE "former_judges" (
"state" text,
"born_died" text,
"active_service" text,
"chief_judge" text,
"senior_status" text,
"appointed_by" text,
"reason_for_termination" text
); | SELECT "senior_status" FROM "former_judges" WHERE "active_service"='1972–1995'; | 2-1066869-2 |
What were the birth and death years when active service was 1972–1995? | CREATE TABLE "former_judges" (
"state" text,
"born_died" text,
"active_service" text,
"chief_judge" text,
"senior_status" text,
"appointed_by" text,
"reason_for_termination" text
); | SELECT "born_died" FROM "former_judges" WHERE "active_service"='1972–1995'; | 2-1066869-2 |
Which active services years ended in death and had senior status in 1972–2005? | CREATE TABLE "former_judges" (
"state" text,
"born_died" text,
"active_service" text,
"chief_judge" text,
"senior_status" text,
"appointed_by" text,
"reason_for_termination" text
); | SELECT "active_service" FROM "former_judges" WHERE "reason_for_termination"='death' AND "senior_status"='1972–2005'; | 2-1066869-2 |
Which date featured the Boston Patriots as the opponent? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"attendance" text
); | SELECT "date" FROM "schedule" WHERE "opponent"='boston patriots'; | 2-10735579-2 |
Who was the opponent during week 8? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"attendance" text
); | SELECT "opponent" FROM "schedule" WHERE "week"=8; | 2-10735579-2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.