question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
Tell me the away team score for away team of south melbourne | 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 "away_team_score" FROM "round_10" WHERE "away_team"='south melbourne'; | 2-10887379-10 |
I want to know the away team score for vfl park venue | 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 "away_team_score" FROM "round_10" WHERE "venue"='vfl park'; | 2-10887379-10 |
Name the total number of tracks for of the fallen angel | CREATE TABLE "track_listing" (
"track" real,
"title" text,
"translation" text,
"composer" text,
"recorded" text
); | SELECT COUNT("track") FROM "track_listing" WHERE "translation"='the fallen angel'; | 2-1190738-1 |
What driver went 14 rounds with a 193 Chassis? | CREATE TABLE "drivers_and_constructors" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
); | SELECT "driver" FROM "drivers_and_constructors" WHERE "chassis"='193' AND "rounds"='14'; | 2-1137703-1 |
What engine was used when Aguri Suzuki drove the FA13B FA14 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"='fa13b fa14' AND "driver"='aguri suzuki'; | 2-1137703-1 |
Who was the entrant for all the round with Jean Alesi? | CREATE TABLE "drivers_and_constructors" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
); | SELECT "entrant" FROM "drivers_and_constructors" WHERE "rounds"='all' AND "driver"='jean alesi'; | 2-1137703-1 |
What engine did Riccardo Patrese use? | 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 "driver"='riccardo patrese'; | 2-1137703-1 |
If the home team was footscray which venue did they play it? | 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 "home_team"='footscray'; | 2-10883333-12 |
When the home team was footscray what did they score? | 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_score" FROM "round_12" WHERE "home_team"='footscray'; | 2-10883333-12 |
When the home team north melbourne was playing what did they score? | 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_score" FROM "round_12" WHERE "home_team"='north melbourne'; | 2-10883333-12 |
What is the score of the September 20, 2005 match when the Opponents are FC Bayern Munich? | CREATE TABLE "results" (
"date" text,
"opponents" text,
"score" text,
"competition" text,
"match_report" text
); | SELECT "score" FROM "results" WHERE "opponents"='fc bayern munich' AND "date"='september 20, 2005'; | 2-11735409-3 |
What is the match report for July 10, 2005? | CREATE TABLE "results" (
"date" text,
"opponents" text,
"score" text,
"competition" text,
"match_report" text
); | SELECT "match_report" FROM "results" WHERE "date"='july 10, 2005'; | 2-11735409-3 |
What is the date of the GC competition when the opponents are 1. FC Nuremberg? | CREATE TABLE "results" (
"date" text,
"opponents" text,
"score" text,
"competition" text,
"match_report" text
); | SELECT "date" FROM "results" WHERE "opponents"='1. fc nuremberg' AND "competition"='gc'; | 2-11735409-3 |
Which competition was held on September 10, 2005? | CREATE TABLE "results" (
"date" text,
"opponents" text,
"score" text,
"competition" text,
"match_report" text
); | SELECT "competition" FROM "results" WHERE "date"='september 10, 2005'; | 2-11735409-3 |
In which competition was the score 3-0? | CREATE TABLE "results" (
"date" text,
"opponents" text,
"score" text,
"competition" text,
"match_report" text
); | SELECT "competition" FROM "results" WHERE "score"='3-0'; | 2-11735409-3 |
Who was the visitor when the lakers were at home with a Score of 85–106? | CREATE TABLE "april" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
); | SELECT "visitor" FROM "april" WHERE "home"='lakers' AND "score"='85–106'; | 2-11965481-9 |
what is the date of birth for the player with goals less than 4, games more than 1, years at club, 1945 and named jim young? | 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 "date_of_birth" FROM "players_who_made_their_debut_for_the_gee" WHERE "goals"<4 AND "games">1 AND "years_at_club"='1945' AND "player"='jim young'; | 2-11677694-7 |
what is the debut year for player terry fulton with games less than 51? | 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("debut_year") FROM "players_who_made_their_debut_for_the_gee" WHERE "player"='terry fulton' AND "games"<51; | 2-11677694-7 |
How people attended Victoria Park? | 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 AVG("crowd") FROM "round_6" WHERE "venue"='victoria park'; | 2-10790099-6 |
What is the away team score for South Melbourne? | 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 "away_team"='south melbourne'; | 2-10790099-6 |
Who played Melbourne as the home 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 "home_team" FROM "round_6" WHERE "away_team"='melbourne'; | 2-10790099-6 |
Which away team has an attendance of more than 17,000? | 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 "crowd">'17,000'; | 2-10790099-6 |
Which away team played at MCG? | CREATE TABLE "round_4" (
"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_4" WHERE "venue"='mcg'; | 2-10887379-4 |
What was the date when Geelong was the home team? | CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "date" FROM "round_4" WHERE "home_team"='geelong'; | 2-10887379-4 |
What is Damien Martyn's bowling style? | CREATE TABLE "australia" (
"player" text,
"date_of_birth" text,
"batting_style" text,
"bowling_style" text,
"first_class_team" text
); | SELECT "bowling_style" FROM "australia" WHERE "player"='damien martyn'; | 2-11950720-1 |
What is the batting style of the player born on 14 November 1971? | CREATE TABLE "australia" (
"player" text,
"date_of_birth" text,
"batting_style" text,
"bowling_style" text,
"first_class_team" text
); | SELECT "batting_style" FROM "australia" WHERE "date_of_birth"='14 november 1971'; | 2-11950720-1 |
What is the first class team of the player born on 23 February 1973? | CREATE TABLE "australia" (
"player" text,
"date_of_birth" text,
"batting_style" text,
"bowling_style" text,
"first_class_team" text
); | SELECT "first_class_team" FROM "australia" WHERE "date_of_birth"='23 february 1973'; | 2-11950720-1 |
What is the type for EU Council Presidency of UK and John Major as President-in-Office? | CREATE TABLE "1975_2009" (
"year" real,
"date" text,
"type" text,
"eu_council_presidency" text,
"president_in_office" text,
"host_city" text
); | SELECT "type" FROM "1975_2009" WHERE "eu_council_presidency"='uk' AND "president_in_office"='john major'; | 2-11948277-1 |
In which host city was Margaret Thatcher the President-in-Office in 1981? | CREATE TABLE "1975_2009" (
"year" real,
"date" text,
"type" text,
"eu_council_presidency" text,
"president_in_office" text,
"host_city" text
); | SELECT "host_city" FROM "1975_2009" WHERE "president_in_office"='margaret thatcher' AND "year"=1981; | 2-11948277-1 |
How many average scores have preliminary scores over 9.25, interview scores more than 9.44, and evening gown scores of 9.77? | CREATE TABLE "final_competition_scores" (
"country" text,
"preliminaries" real,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
); | SELECT COUNT("average") FROM "final_competition_scores" WHERE "preliminaries">9.25 AND "interview">9.44 AND "evening_gown"=9.77; | 2-11954615-2 |
What is the least score for interview with a preliminaries score less than 9.4, evening gown score less than 9.55, and swimsuit score more than 9.18 in New York? | CREATE TABLE "final_competition_scores" (
"country" text,
"preliminaries" real,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
); | SELECT MIN("interview") FROM "final_competition_scores" WHERE "preliminaries"<9.4 AND "evening_gown"<9.55 AND "country"='new york' AND "swimsuit">9.18; | 2-11954615-2 |
Name the seven for 29 november 1690 | CREATE TABLE "in_ordinary" (
"date" text,
"three" text,
"four" text,
"five" text,
"seven" text
); | SELECT "seven" FROM "in_ordinary" WHERE "date"='29 november 1690'; | 2-10816232-3 |
Name the four for 6 march 1801 | CREATE TABLE "in_ordinary" (
"date" text,
"three" text,
"four" text,
"five" text,
"seven" text
); | SELECT "four" FROM "in_ordinary" WHERE "date"='6 march 1801'; | 2-10816232-3 |
Name the three for william prewett for four and five being richard ellis with seven being nicholas king on 5 november 1693 | CREATE TABLE "in_ordinary" (
"date" text,
"three" text,
"four" text,
"five" text,
"seven" text
); | SELECT "three" FROM "in_ordinary" WHERE "four"='william prewett' AND "five"='richard ellis' AND "seven"='nicholas king' AND "date"='5 november 1693'; | 2-10816232-3 |
Name the three for 16 december 1676 | CREATE TABLE "in_ordinary" (
"date" text,
"three" text,
"four" text,
"five" text,
"seven" text
); | SELECT "three" FROM "in_ordinary" WHERE "date"='16 december 1676'; | 2-10816232-3 |
Tell me the average Grid for driver of Luca Badoer and Laps more than 69 | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT AVG("grid") FROM "race" WHERE "driver"='luca badoer' AND "laps">69; | 2-1123241-2 |
What final was Farhad Rezaei in? | CREATE TABLE "fencing" (
"athlete" text,
"event" text,
"semifinal" text,
"final" text,
"rank" text
); | SELECT "final" FROM "fencing" WHERE "athlete"='farhad rezaei'; | 2-10831471-18 |
What final was ranked 4? | CREATE TABLE "fencing" (
"athlete" text,
"event" text,
"semifinal" text,
"final" text,
"rank" text
); | SELECT "final" FROM "fencing" WHERE "rank"='4'; | 2-10831471-18 |
What was the reanking of Hamid Veisi? | CREATE TABLE "fencing" (
"athlete" text,
"event" text,
"semifinal" text,
"final" text,
"rank" text
); | SELECT "rank" FROM "fencing" WHERE "athlete"='hamid veisi'; | 2-10831471-18 |
Which Franchise has a Percentage under 0.707, a Year larger than 1931, and the Finish was won 1998 World Series? | CREATE TABLE "season_records" (
"year" real,
"franchise" text,
"league" text,
"percentage" real,
"finish" text
); | SELECT "franchise" FROM "season_records" WHERE "percentage"<0.707 AND "year">1931 AND "finish"='won 1998 world series'; | 2-11813427-1 |
What is the average Year for the Finish of lost 2001 alcs and the Percentage is over 0.716? | CREATE TABLE "season_records" (
"year" real,
"franchise" text,
"league" text,
"percentage" real,
"finish" text
); | SELECT AVG("year") FROM "season_records" WHERE "finish"='lost 2001 alcs' AND "percentage">0.716; | 2-11813427-1 |
In the Year 1939, what was the Finish when Al was the League? | CREATE TABLE "season_records" (
"year" real,
"franchise" text,
"league" text,
"percentage" real,
"finish" text
); | SELECT "finish" FROM "season_records" WHERE "league"='al' AND "year"=1939; | 2-11813427-1 |
What was the Finish when NL was the League, the Percentage was under 0.726, the Year was larger than 1897, and the Franchies was the Pittsburgh Pirates? | CREATE TABLE "season_records" (
"year" real,
"franchise" text,
"league" text,
"percentage" real,
"finish" text
); | SELECT "finish" FROM "season_records" WHERE "league"='nl' AND "percentage"<0.726 AND "year">1897 AND "franchise"='pittsburgh pirates'; | 2-11813427-1 |
What was the venue when the home team was footscray? | 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 "venue" FROM "round_14" WHERE "home_team"='footscray'; | 2-10809368-14 |
What was the crowd when the away team was hawthorn? | 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 MIN("crowd") FROM "round_14" WHERE "away_team"='hawthorn'; | 2-10809368-14 |
What city houses the Ciro Vigorito stadium? | CREATE TABLE "girone_b" (
"club" text,
"city" text,
"stadium" text,
"capacity" real,
"2011_12_season" text
); | SELECT "city" FROM "girone_b" WHERE "stadium"='ciro vigorito'; | 2-1083851-4 |
I want to know the highest silver for total of 4 for poland and gold less than 1 | CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("silver") FROM "medal_table" WHERE "total"=4 AND "nation"='poland' AND "gold"<1; | 2-10838789-3 |
Tell me the average silver for total more than 1 with bronze of 2 for france and gold more than 0 | CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("silver") FROM "medal_table" WHERE "total">1 AND "bronze"=2 AND "nation"='france' AND "gold">0; | 2-10838789-3 |
Tell me the number of gold for albania with a silver of 1 and total less than 1 | CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("gold") FROM "medal_table" WHERE "silver"=1 AND "nation"='albania' AND "total"<1; | 2-10838789-3 |
Tell me the average gold for moldova and bronze less than 1 | CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("gold") FROM "medal_table" WHERE "nation"='moldova' AND "bronze"<1; | 2-10838789-3 |
Tell me the sum of gold for bronze less than 0 | CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT SUM("gold") FROM "medal_table" WHERE "bronze"<0; | 2-10838789-3 |
What tyre was used in the Zandvoort circuit? | CREATE TABLE "world_championship_season_review" (
"race" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"tyre" text,
"report" text
); | SELECT "tyre" FROM "world_championship_season_review" WHERE "circuit"='zandvoort'; | 2-1140115-1 |
Which circuit did Alberto Ascari set the fastest lap time with a Ferrari? | CREATE TABLE "world_championship_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 "world_championship_season_review" WHERE "constructor"='ferrari' AND "fastest_lap"='alberto ascari'; | 2-1140115-1 |
Who won the race with a Ferrari, were Luigi Villoresi set the fastest lap time? | CREATE TABLE "world_championship_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 "world_championship_season_review" WHERE "constructor"='ferrari' AND "fastest_lap"='luigi villoresi'; | 2-1140115-1 |
Which race did Alberto Ascari have both the Pole position and the win, but Luigi Villoresi set the fastest lap time? | CREATE TABLE "world_championship_season_review" (
"race" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"tyre" text,
"report" text
); | SELECT "race" FROM "world_championship_season_review" WHERE "pole_position"='alberto ascari' AND "winning_driver"='alberto ascari' AND "fastest_lap"='luigi villoresi'; | 2-1140115-1 |
Which county is named broderick wood products? | CREATE TABLE "superfund_sites" (
"cerclis_id" text,
"name" text,
"county" text,
"proposed" text,
"listed" text,
"construction_completed" text,
"partially_deleted" text
); | SELECT "county" FROM "superfund_sites" WHERE "name"='broderick wood products'; | 2-10834877-1 |
What construction completed is named nelson tunnel/commodore waste rock? | CREATE TABLE "superfund_sites" (
"cerclis_id" text,
"name" text,
"county" text,
"proposed" text,
"listed" text,
"construction_completed" text,
"partially_deleted" text
); | SELECT "construction_completed" FROM "superfund_sites" WHERE "name"='nelson tunnel/commodore waste rock'; | 2-10834877-1 |
What is the ID of marshall landfill on 09/08/1983? | CREATE TABLE "superfund_sites" (
"cerclis_id" text,
"name" text,
"county" text,
"proposed" text,
"listed" text,
"construction_completed" text,
"partially_deleted" text
); | SELECT "cerclis_id" FROM "superfund_sites" WHERE "listed"='09/08/1983' AND "name"='marshall landfill'; | 2-10834877-1 |
Which nominee won the award for Fourth Best Indian Film? | CREATE TABLE "awards" (
"ceremony" text,
"award" text,
"category" text,
"nominee" text,
"outcome" text
); | SELECT "nominee" FROM "awards" WHERE "outcome"='won' AND "category"='fourth best indian film'; | 2-11373575-1 |
In which ceremony was Harnam Singh Rawail nominated for an award? | CREATE TABLE "awards" (
"ceremony" text,
"award" text,
"category" text,
"nominee" text,
"outcome" text
); | SELECT "ceremony" FROM "awards" WHERE "nominee"='harnam singh rawail'; | 2-11373575-1 |
In which ceremony was Jayant nominated for an award? | CREATE TABLE "awards" (
"ceremony" text,
"award" text,
"category" text,
"nominee" text,
"outcome" text
); | SELECT "ceremony" FROM "awards" WHERE "nominee"='jayant'; | 2-11373575-1 |
What surface was the April 24, 2003 match played on? | CREATE TABLE "singles_18_8" (
"edition" text,
"round" text,
"date" text,
"surface" text,
"opponent" text,
"result" text
); | SELECT "surface" FROM "singles_18_8" WHERE "date"='april 24, 2003'; | 2-1111175-9 |
How many times has Watney made the top 25 for a tournament in which he as also been cut 6 times? | CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
); | SELECT SUM("top_25") FROM "summary" WHERE "cuts_made"=6; | 2-10856203-5 |
Which tournament has the highest number of cuts while also having 4 top 25 appearances? | CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
); | SELECT MAX("cuts_made") FROM "summary" WHERE "top_25"=4; | 2-10856203-5 |
What is the smallest grid with collision as the Time/Retired for pedro diniz? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MIN("grid") FROM "race" WHERE "time_retired"='collision' AND "driver"='pedro diniz'; | 2-1123307-2 |
What is the number of laps for Grid 14? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT COUNT("laps") FROM "race" WHERE "grid"=14; | 2-1123307-2 |
What is the number of the grid for mika häkkinen and more than 45 laps? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT COUNT("grid") FROM "race" WHERE "driver"='mika häkkinen' AND "laps">45; | 2-1123307-2 |
Which home team has more than 19,000 spectators? | 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 "home_team" FROM "round_8" WHERE "crowd">'19,000'; | 2-10806592-8 |
What is the Theme of Christie Paquet after 2004 with an Issue Price of $34.95? | CREATE TABLE "canadian_floral_collection" (
"year" real,
"theme" text,
"artist" text,
"finish" text,
"issue_price" text,
"total_mintage" real
); | SELECT "theme" FROM "canadian_floral_collection" WHERE "artist"='christie paquet' AND "issue_price"='$34.95' AND "year">2004; | 2-11916083-20 |
What is the Year of Christie Paquet with Issue Price of $34.95? | CREATE TABLE "canadian_floral_collection" (
"year" real,
"theme" text,
"artist" text,
"finish" text,
"issue_price" text,
"total_mintage" real
); | SELECT AVG("year") FROM "canadian_floral_collection" WHERE "artist"='christie paquet' AND "issue_price"='$34.95'; | 2-11916083-20 |
What is the Crowd for the Venue of Princes 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 "crowd" FROM "round_16" WHERE "venue"='princes park'; | 2-10790510-16 |
What is the Home team score for the Home team of Melbourne? | 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 "home_team"='melbourne'; | 2-10790510-16 |
What is the Home team score for the Home team from South Melbourne? | 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 "home_team"='south melbourne'; | 2-10790510-16 |
What Away team has a Home team score of 18.12 (120)? | 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 "home_team_score"='18.12 (120)'; | 2-10790510-16 |
What is the Home team score for the Venue named MCG? | 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 "venue"='mcg'; | 2-10790510-16 |
Who has the lowest earnings that has a rank smaller than 2? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
); | SELECT MIN("earnings") FROM "leaders" WHERE "rank"<2; | 2-11622255-4 |
What is the average rank of someone who earned smaller than 3,069,633? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
); | SELECT AVG("rank") FROM "leaders" WHERE "earnings"<'3,069,633'; | 2-11622255-4 |
What has the average wins in Australia who earned smaller than 3,133,913? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
); | SELECT AVG("wins") FROM "leaders" WHERE "country"='australia' AND "earnings"<'3,133,913'; | 2-11622255-4 |
What was the total number of wins with player Mike Hill with a rank bigger than 2? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
); | SELECT COUNT("wins") FROM "leaders" WHERE "rank">2 AND "player"='mike hill'; | 2-11622255-4 |
Where was the argentine grand prix? | CREATE TABLE "championship_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "location" FROM "championship_review" WHERE "race"='argentine grand prix'; | 2-1140078-2 |
What was the constructor for the fastest nelson piquet? | CREATE TABLE "championship_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "constructor" FROM "championship_review" WHERE "fastest_lap"='nelson piquet'; | 2-1140078-2 |
Tell me the constructor for zolder | CREATE TABLE "championship_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "constructor" FROM "championship_review" WHERE "location"='zolder'; | 2-1140078-2 |
Name the constructor for 10 august | CREATE TABLE "championship_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "constructor" FROM "championship_review" WHERE "date"='10 august'; | 2-1140078-2 |
What is the number of Years at Club for the player who has had more games than 28, more Goals than 225, and his Debut year was after 1950? | 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 "years_at_club" FROM "players_who_made_their_debut_for_the_gee" WHERE "games">28 AND "goals">225 AND "debut_year">1950; | 2-11677694-8 |
What is the birthday of the player who has Years at Club of 1951? | 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 "date_of_birth" FROM "players_who_made_their_debut_for_the_gee" WHERE "years_at_club"='1951'; | 2-11677694-8 |
what rank has years until mandatory retirement of 6 years? | CREATE TABLE "current_composition" (
"name" text,
"rank" text,
"years_until_mandatory_retirement" text,
"appointed_by" text,
"year_appointed" real
); | SELECT "rank" FROM "current_composition" WHERE "years_until_mandatory_retirement"='6 years'; | 2-1097299-1 |
what name has an appointed year of 2009 and years until mandatory retirement of 13 years? | CREATE TABLE "current_composition" (
"name" text,
"rank" text,
"years_until_mandatory_retirement" text,
"appointed_by" text,
"year_appointed" real
); | SELECT "name" FROM "current_composition" WHERE "year_appointed"=2009 AND "years_until_mandatory_retirement"='13 years'; | 2-1097299-1 |
Which player from Oregon used the number 12? | CREATE TABLE "j" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
); | SELECT "player" FROM "j" WHERE "no_s"='12' AND "school_club_team_country"='oregon'; | 2-11734041-9 |
What position does the player who is 6-10 play? | CREATE TABLE "j" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
); | SELECT "position" FROM "j" WHERE "height_in_ft"='6-10'; | 2-11734041-9 |
What are the numbers for any players from Washington? | CREATE TABLE "j" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
); | SELECT "no_s" FROM "j" WHERE "school_club_team_country"='washington'; | 2-11734041-9 |
Which years did the Rockets number 6 play? | CREATE TABLE "j" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
); | SELECT "years_for_rockets" FROM "j" WHERE "no_s"='6'; | 2-11734041-9 |
Which 2nd senior VIII that also has a 4th senior stm? | CREATE TABLE "winning_head_of_the_river_championship_e" (
"crew" real,
"open_1st_viii" text,
"senior_2nd_viii" text,
"senior_3rd_viii" text,
"senior_iv" text,
"year_12_single_scull" text,
"year_11_single_scull" text
); | SELECT "senior_2nd_viii" FROM "winning_head_of_the_river_championship_e" WHERE "senior_iv"='stm'; | 2-11318462-35 |
How many laps did John Love have on a grid less than 11? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "laps" FROM "classification" WHERE "grid"<11 AND "driver"='john love'; | 2-1122362-1 |
What is the Builder of Locomotive 2? | CREATE TABLE "hebburn_line_locomotives" (
"locomotive" text,
"type" text,
"builder" text,
"builder_s_no" text,
"built" real,
"entered_service" real,
"withdrawn" real
); | SELECT "builder" FROM "hebburn_line_locomotives" WHERE "locomotive"='2'; | 2-11129881-3 |
With a Type of 4-6-4t, what is the sum Withdrawn? | CREATE TABLE "hebburn_line_locomotives" (
"locomotive" text,
"type" text,
"builder" text,
"builder_s_no" text,
"built" real,
"entered_service" real,
"withdrawn" real
); | SELECT SUM("withdrawn") FROM "hebburn_line_locomotives" WHERE "type"='4-6-4t'; | 2-11129881-3 |
What was the score from the game where Dallas played Home and Edmonton was visiting? | CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "score" FROM "december" WHERE "home"='dallas' AND "visitor"='edmonton'; | 2-11801912-5 |
What was the mintage when the theme was Santa Claus? | CREATE TABLE "holiday_coin_set" (
"year" real,
"theme" text,
"artist" text,
"mintage" text,
"issue_price" real
); | SELECT "mintage" FROM "holiday_coin_set" WHERE "theme"='santa claus'; | 2-11916083-12 |
What was the issue price in the year 2008? | CREATE TABLE "holiday_coin_set" (
"year" real,
"theme" text,
"artist" text,
"mintage" text,
"issue_price" real
); | SELECT SUM("issue_price") FROM "holiday_coin_set" WHERE "year"=2008; | 2-11916083-12 |
What is the earliest year when the composition is 99.99% silver and the issue price is $94.95? | CREATE TABLE "crystal_snowflake" (
"year" real,
"theme" text,
"artist" text,
"composition" text,
"mintage" real,
"issue_price" text
); | SELECT MIN("year") FROM "crystal_snowflake" WHERE "composition"='99.99% silver' AND "issue_price"='$94.95'; | 2-11916083-49 |
What year had an issue price of $94.95 and theme of Amethyst crystal? | CREATE TABLE "crystal_snowflake" (
"year" real,
"theme" text,
"artist" text,
"composition" text,
"mintage" real,
"issue_price" text
); | SELECT AVG("year") FROM "crystal_snowflake" WHERE "issue_price"='$94.95' AND "theme"='amethyst crystal'; | 2-11916083-49 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.