question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
What area is the school with a decile of 8 in? | CREATE TABLE "hibiscus_and_bays_local_board" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" text,
"roll" real
); | SELECT "area" FROM "hibiscus_and_bays_local_board" WHERE "decile"='8'; | 2-12017602-2 |
Which school has a state authority and a roll of 318? | CREATE TABLE "hibiscus_and_bays_local_board" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" text,
"roll" real
); | SELECT "name" FROM "hibiscus_and_bays_local_board" WHERE "authority"='state' AND "roll"=318; | 2-12017602-2 |
In what area is torbay school with a state authority? | CREATE TABLE "hibiscus_and_bays_local_board" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" text,
"roll" real
); | SELECT "area" FROM "hibiscus_and_bays_local_board" WHERE "authority"='state' AND "name"='torbay school'; | 2-12017602-2 |
How many regular season titles did Kansas receive when they received fewer than 2 tournament titles and more than 0 total titles? | CREATE TABLE "baseball_titles_by_school" (
"team" text,
"season" text,
"regular_season" real,
"tournament" real,
"total" real
); | SELECT "regular_season" FROM "baseball_titles_by_school" WHERE "tournament"<2 AND "total">0 AND "team"='kansas'; | 2-11789730-2 |
What is the time of retirement with Laps smaller than 66, a grid less than 10, and a Driver of heinz-harald frentzen? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "time_retired" FROM "race" WHERE "laps"<66 AND "grid"<10 AND "driver"='heinz-harald frentzen'; | 2-1123422-2 |
How many laps does olivier panis have? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "laps" FROM "race" WHERE "driver"='olivier panis'; | 2-1123422-2 |
Which home team played against Geelong? | 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"='geelong'; | 2-10826385-1 |
What did the home team score when the away team scored 18.20 (128)? | 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"='18.20 (128)'; | 2-10826385-1 |
How large was the crowd when North Melbourne played as the away team? | 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 "crowd" FROM "round_1" WHERE "away_team"='north melbourne'; | 2-10826385-1 |
Who is the away team that played home team Hawthorn? | CREATE TABLE "round_20" (
"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_20" WHERE "home_team"='hawthorn'; | 2-10869646-20 |
What is the name of the home team that played away team Footscray? | CREATE TABLE "round_20" (
"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_20" WHERE "away_team"='footscray'; | 2-10869646-20 |
Who is the home team that played at venue MCG? | CREATE TABLE "round_20" (
"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_20" WHERE "venue"='mcg'; | 2-10869646-20 |
What is the name of the first appearance when Chad Williams is a portrayal? | CREATE TABLE "notable_villains" (
"character" text,
"portrayed_by" text,
"crime" text,
"first_appearance" text,
"last_appearance" text
); | SELECT "first_appearance" FROM "notable_villains" WHERE "portrayed_by"='chad williams'; | 2-11240028-5 |
Which character is portrayed by Elias Koteas? | CREATE TABLE "notable_villains" (
"character" text,
"portrayed_by" text,
"crime" text,
"first_appearance" text,
"last_appearance" text
); | SELECT "character" FROM "notable_villains" WHERE "portrayed_by"='elias koteas'; | 2-11240028-5 |
What is the Home Team Score at VFL Park? | 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"='vfl park'; | 2-10869646-10 |
What is the Home Team Score at Windy Hill? | 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"='windy hill'; | 2-10869646-10 |
On what Date is Carlton the Away Team? | 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 "date" FROM "round_10" WHERE "away_team"='carlton'; | 2-10869646-10 |
What Crowd had the least people with a Home Team Score of 9.13 (67)? | 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 "home_team_score"='9.13 (67)'; | 2-10869646-10 |
On what Date was the Home Team Score 9.13 (67)? | 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 "date" FROM "round_10" WHERE "home_team_score"='9.13 (67)'; | 2-10869646-10 |
Which competition with a result of 3-1? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "competition" FROM "international_goals" WHERE "result"='3-1'; | 2-11327303-2 |
I want to know the lowest ligue 1 titles for position in 2012-13 of 010 12th and number of seasons in ligue 1 more than 56 | CREATE TABLE "members_for_2013_14" (
"club" text,
"position_in_2012_13" text,
"first_season_in_top_division" text,
"number_of_seasons_in_ligue_1" real,
"first_season_of_current_spell_in_top_division" text,
"ligue_1_titles" real,
"last_ligue_1_title" text
); | SELECT MIN("ligue_1_titles") FROM "members_for_2013_14" WHERE "position_in_2012_13"='010 12th' AND "number_of_seasons_in_ligue_1">56; | 2-1082929-2 |
Tell me the position in 2012-13 and number of seasons in leigue 1 of 30 with ligue 1 titles of 1 | CREATE TABLE "members_for_2013_14" (
"club" text,
"position_in_2012_13" text,
"first_season_in_top_division" text,
"number_of_seasons_in_ligue_1" real,
"first_season_of_current_spell_in_top_division" text,
"ligue_1_titles" real,
"last_ligue_1_title" text
); | SELECT "position_in_2012_13" FROM "members_for_2013_14" WHERE "number_of_seasons_in_ligue_1"=30 AND "ligue_1_titles"=1; | 2-1082929-2 |
What is the NBA draft result of the player from Kingston, PA? | CREATE TABLE "1983_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
); | SELECT "nba_draft" FROM "1983_boys_team" WHERE "hometown"='kingston, pa'; | 2-11677760-5 |
What is the NBA draft result of the player with a height of 6-7? | CREATE TABLE "1983_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
); | SELECT "nba_draft" FROM "1983_boys_team" WHERE "height"='6-7'; | 2-11677760-5 |
What is the NBA draft result of Dwayne Washington? | CREATE TABLE "1983_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
); | SELECT "nba_draft" FROM "1983_boys_team" WHERE "player"='dwayne washington'; | 2-11677760-5 |
What is the NBA draft result of the player from Dunbar High School? | CREATE TABLE "1983_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
); | SELECT "nba_draft" FROM "1983_boys_team" WHERE "school"='dunbar high school'; | 2-11677760-5 |
What is the school of the player from the College of Michigan? | CREATE TABLE "1983_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
); | SELECT "school" FROM "1983_boys_team" WHERE "college"='michigan'; | 2-11677760-5 |
What is the away team score for the game where the home team scored 19.16 (130)? | 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_score" FROM "round_1" WHERE "home_team_score"='19.16 (130)'; | 2-10887379-1 |
What was the away team score for the game played at MCG? | 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_score" FROM "round_1" WHERE "venue"='mcg'; | 2-10887379-1 |
What was the home team's score at Victoria Park? | CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team_score" FROM "round_1" WHERE "venue"='victoria park'; | 2-10887379-1 |
What is the score at shay stadium? | CREATE TABLE "2002_fixtures_and_results" (
"date" text,
"competition" text,
"venue" text,
"result" text,
"score" text,
"goals" text
); | SELECT "score" FROM "2002_fixtures_and_results" WHERE "venue"='shay stadium'; | 2-10814474-7 |
What is the result at valley parade on 4/7/02? | CREATE TABLE "2002_fixtures_and_results" (
"date" text,
"competition" text,
"venue" text,
"result" text,
"score" text,
"goals" text
); | SELECT "result" FROM "2002_fixtures_and_results" WHERE "venue"='valley parade' AND "date"='4/7/02'; | 2-10814474-7 |
Which competition has a Goal of deacon 8/8 and a Score of 32-14? | CREATE TABLE "2002_fixtures_and_results" (
"date" text,
"competition" text,
"venue" text,
"result" text,
"score" text,
"goals" text
); | SELECT "competition" FROM "2002_fixtures_and_results" WHERE "goals"='deacon 8/8' AND "score"='32-14'; | 2-10814474-7 |
What is the top grid that is driven by martin brundle? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MAX("grid") FROM "race" WHERE "driver"='martin brundle'; | 2-1123172-2 |
What is the grid 13 time score? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "time_retired" FROM "race" WHERE "grid"=13; | 2-1123172-2 |
Which grid is lower for thierry boutsen which laps less than 44? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MIN("grid") FROM "race" WHERE "driver"='thierry boutsen' AND "laps"<44; | 2-1123172-2 |
Which player is 6-2? | CREATE TABLE "2002_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
); | SELECT "player" FROM "2002_boys_team" WHERE "height"='6-2'; | 2-11677760-11 |
What is the Laid down for the Hyperion ship? | CREATE TABLE "h_class" (
"ship" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"completed" text
); | SELECT "laid_down" FROM "h_class" WHERE "ship"='hyperion'; | 2-1210297-2 |
What is the name of the ship that had a Pennant number of h55? | CREATE TABLE "h_class" (
"ship" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"completed" text
); | SELECT "ship" FROM "h_class" WHERE "pennant_number"='h55'; | 2-1210297-2 |
How did the jab tak hai jaan movie gross worldwide? | CREATE TABLE "highest_grossing_bollywood_films_worldwi" (
"rank" real,
"movie" text,
"year" real,
"worldwide_gross" text,
"director" text,
"verdict" text
); | SELECT "worldwide_gross" FROM "highest_grossing_bollywood_films_worldwi" WHERE "movie"='jab tak hai jaan'; | 2-11872185-1 |
What is average year for ayan mukerji? | CREATE TABLE "highest_grossing_bollywood_films_worldwi" (
"rank" real,
"movie" text,
"year" real,
"worldwide_gross" text,
"director" text,
"verdict" text
); | SELECT AVG("year") FROM "highest_grossing_bollywood_films_worldwi" WHERE "director"='ayan mukerji'; | 2-11872185-1 |
When melbourne was the home team what was their score? | 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 "home_team_score" FROM "round_4" WHERE "home_team"='melbourne'; | 2-10883333-4 |
What date had a time of 20:10? | CREATE TABLE "pool_a" (
"date" text,
"time" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"set_4" text,
"total" text,
"report" text
); | SELECT "date" FROM "pool_a" WHERE "time"='20:10'; | 2-11823251-4 |
What is the title of the episode that originally aired on March 31, 2008? | CREATE TABLE "season_2" (
"production_no" real,
"episode_no" real,
"original_airdate" text,
"episode_title" text,
"host" text
); | SELECT "episode_title" FROM "season_2" WHERE "original_airdate"='march 31, 2008'; | 2-10926568-2 |
What is the episode number of the episode that originally aired on February 4, 2008? | CREATE TABLE "season_2" (
"production_no" real,
"episode_no" real,
"original_airdate" text,
"episode_title" text,
"host" text
); | SELECT "episode_no" FROM "season_2" WHERE "original_airdate"='february 4, 2008'; | 2-10926568-2 |
when the away team score was 21.11 (137) what was the home team score? | 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_score" FROM "round_6" WHERE "away_team_score"='21.11 (137)'; | 2-1164217-6 |
at kardinia park, what was the away team's score? | 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 "venue"='kardinia park'; | 2-1164217-6 |
what was the largest attendance at kardinia 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 MAX("crowd") FROM "round_6" WHERE "venue"='kardinia park'; | 2-1164217-6 |
Who was the Home team at the Western Oval location? | CREATE TABLE "round_3" (
"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_3" WHERE "venue"='western oval'; | 2-10808933-3 |
What's the average of the amount of laps for the driver patrick tambay? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT AVG("laps") FROM "race" WHERE "driver"='patrick tambay'; | 2-1122926-2 |
When renault is the constructor, the grid is over 6, and the time was labeled ignition, what's the largest amount of laps on record? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MAX("laps") FROM "race" WHERE "grid">6 AND "constructor"='renault' AND "time_retired"='ignition'; | 2-1122926-2 |
In 2008, what was the world ranking that ranked 5th in L.A.? | CREATE TABLE "table" (
"index_year" text,
"author_editor_source" text,
"year_of_publication" text,
"countries_sampled" real,
"world_ranking_1" text,
"ranking_l_a_2" text
); | SELECT "world_ranking_1" FROM "table" WHERE "ranking_l_a_2"='5th' AND "year_of_publication"='2008'; | 2-12000368-1 |
what is the total number of played when the goals for is more than 34 and goals against is more than 63? | 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("played") FROM "final_table" WHERE "goals_for">34 AND "goals_against">63; | 2-12091337-2 |
what is the total number of goal different when the club is cf extremadura and the played is less than 38? | 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("goal_difference") FROM "final_table" WHERE "club"='cf extremadura' AND "played"<38; | 2-12091337-2 |
what is the average points when the goal difference is less than 17, the club is getafe cf and the goals for is more than 30? | 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 AVG("points") FROM "final_table" WHERE "goal_difference"<17 AND "club"='getafe cf' AND "goals_for">30; | 2-12091337-2 |
what is the sum of goals for when the position is less than 8, the losses is less than 10 the goals against is less than 35 and played is less than 38? | 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 SUM("goals_for") FROM "final_table" WHERE "position"<8 AND "losses"<10 AND "goals_against"<35 AND "played"<38; | 2-12091337-2 |
what is the highest gold when the rank is 12 for the nation vietnam? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("gold") FROM "medal_table" WHERE "rank"='12' AND "nation"='vietnam'; | 2-10929638-3 |
what is the total when the rank is 4? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT "total" FROM "medal_table" WHERE "rank"='4'; | 2-10929638-3 |
what is the nation when the gold is 1 and bronze is larger than 0? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT "nation" FROM "medal_table" WHERE "gold"=1 AND "bronze">0; | 2-10929638-3 |
Which entrant has Ferrari 038 3.5 v12 engine? | 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 "engine"='ferrari 038 3.5 v12'; | 2-1137704-1 |
What is the date that the Institution of Lynn University was founded on? | CREATE TABLE "current_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"joined" real
); | SELECT "founded" FROM "current_members" WHERE "institution"='lynn university'; | 2-1183842-1 |
What's the Loss listed with a Score of 5-1? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "loss" FROM "game_log" WHERE "score"='5-1'; | 2-11664564-4 |
Which Date has a record of 3-5? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "date" FROM "game_log" WHERE "record"='3-5'; | 2-11664564-4 |
Which Date has a Record of 6-9? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "date" FROM "game_log" WHERE "record"='6-9'; | 2-11664564-4 |
What's the Loss listed for the Opponent of California Angels and has an Attendance of 57,762? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "loss" FROM "game_log" WHERE "opponent"='california angels' AND "attendance"='57,762'; | 2-11664564-4 |
Which Date has an Attendance of 9,535? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "date" FROM "game_log" WHERE "attendance"='9,535'; | 2-11664564-4 |
What is the Score for the Date of April 23? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "score" FROM "game_log" WHERE "date"='april 23'; | 2-11664564-4 |
What was the average crowd size at Victoria Park? | CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT AVG("crowd") FROM "round_1" WHERE "venue"='victoria park'; | 2-10883333-1 |
What is the crowd size of the match featuring North Melbourne as the away team? | 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 MIN("crowd") FROM "round_1" WHERE "away_team"='north melbourne'; | 2-10883333-1 |
Name the team which has high rebounds of smith (10) | CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
); | SELECT "team" FROM "game_log" WHERE "high_rebounds"='smith (10)'; | 2-11960610-6 |
What team was the home team against Melbourne? | 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" FROM "round_18" WHERE "away_team"='melbourne'; | 2-10807673-18 |
What was the home team score when the away team scored 13.17 (95)? | 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_score"='13.17 (95)'; | 2-10807673-18 |
Which team is Lake Oval home to? | CREATE TABLE "round_3" (
"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_3" WHERE "venue"='lake oval'; | 2-10826385-3 |
What did the home team score when Carlton played as the Away team? | CREATE TABLE "round_3" (
"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_3" WHERE "away_team"='carlton'; | 2-10826385-3 |
How many people attended the home game for South Melbourne? | CREATE TABLE "round_3" (
"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_3" WHERE "home_team"='south melbourne'; | 2-10826385-3 |
What was the home team score at VFL Park? | CREATE TABLE "round_3" (
"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_3" WHERE "venue"='vfl park'; | 2-10826385-3 |
How many grids have a Time/Retired of gearbox, and Laps smaller than 3? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT COUNT("grid") FROM "classification" WHERE "time_retired"='gearbox' AND "laps"<3; | 2-1122212-1 |
What is masten gregory's average lap? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT AVG("laps") FROM "classification" WHERE "driver"='masten gregory'; | 2-1122212-1 |
Which Time/Retired has a Grid of 2? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "time_retired" FROM "classification" WHERE "grid"=2; | 2-1122212-1 |
When the engine Ford Cosworth DFV 3.0 v8 has a chassis of m23 and in rounds 14-15, what is its Tyre? | CREATE TABLE "championship_teams_and_drivers" (
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
); | SELECT "tyre" FROM "championship_teams_and_drivers" WHERE "rounds"='14-15' AND "engine"='ford cosworth dfv 3.0 v8' AND "chassis"='m23'; | 2-1140086-2 |
Which driver uses the ts16 chassis? | CREATE TABLE "championship_teams_and_drivers" (
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
); | SELECT "driver" FROM "championship_teams_and_drivers" WHERE "chassis"='ts16'; | 2-1140086-2 |
What is the home team of the game on April 20? | CREATE TABLE "playoffs" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"series" text
); | SELECT "home" FROM "playoffs" WHERE "date"='april 20'; | 2-11945691-9 |
What is the series score of the game with Vancouver as the visiting team on April 16? | CREATE TABLE "playoffs" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"series" text
); | SELECT "series" FROM "playoffs" WHERE "visitor"='vancouver' AND "date"='april 16'; | 2-11945691-9 |
What is the series score of the game on April 16? | CREATE TABLE "playoffs" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"series" text
); | SELECT "series" FROM "playoffs" WHERE "date"='april 16'; | 2-11945691-9 |
Tell me the away team for venue of western oval | 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"='western oval'; | 2-10869646-4 |
Tell me the away team score for 27 april 1974 and veue of 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_score" FROM "round_4" WHERE "date"='27 april 1974' AND "venue"='mcg'; | 2-10869646-4 |
I want to see the away team the has a home team of richmond | 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 "home_team"='richmond'; | 2-10869646-4 |
What venue did group g play at on Mar 8, 1998? | CREATE TABLE "official_competitions" (
"competition" text,
"stage" text,
"venue" text,
"date" text,
"result" text
); | SELECT "venue" FROM "official_competitions" WHERE "stage"='group g' AND "date"='mar 8, 1998'; | 2-11082207-3 |
Which stage was being played in Romania? | CREATE TABLE "official_competitions" (
"competition" text,
"stage" text,
"venue" text,
"date" text,
"result" text
); | SELECT "stage" FROM "official_competitions" WHERE "venue"='romania'; | 2-11082207-3 |
What was the score of the 1999 fifa world cup qualification (uefa) on Nov 23, 1997? | CREATE TABLE "official_competitions" (
"competition" text,
"stage" text,
"venue" text,
"date" text,
"result" text
); | SELECT "result" FROM "official_competitions" WHERE "competition"='1999 fifa world cup qualification (uefa)' AND "date"='nov 23, 1997'; | 2-11082207-3 |
What was being played on Nov 23, 2006? | CREATE TABLE "official_competitions" (
"competition" text,
"stage" text,
"venue" text,
"date" text,
"result" text
); | SELECT "competition" FROM "official_competitions" WHERE "date"='nov 23, 2006'; | 2-11082207-3 |
What is the lowest crowd at windy hill? | 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 "venue"='windy hill'; | 2-10809444-13 |
What is the crowd with a Home team score of 8.17 (65)? | 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 AVG("crowd") FROM "round_13" WHERE "home_team_score"='8.17 (65)'; | 2-10809444-13 |
What home team has an Away team score of 11.12 (78)? | 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_score" FROM "round_13" WHERE "away_team_score"='11.12 (78)'; | 2-10809444-13 |
What date has a Crowd larger than 12,000, and an Away team score of 9.16 (70)? | 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 "date" FROM "round_13" WHERE "crowd">'12,000' AND "away_team_score"='9.16 (70)'; | 2-10809444-13 |
What is the lowest crowd with home team richmond? | 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"='richmond'; | 2-10809444-13 |
Which home team has an Away team score of 6.9 (45)? | 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"='6.9 (45)'; | 2-10809444-13 |
When there are more than 12 total medals and less than 5 gold medals, how many bronze medals are there? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("bronze") FROM "medal_table" WHERE "total">12 AND "gold"<5; | 2-10838914-1 |
When the united states won a total number of medals larger than 25, what was the lowest amount of Bronze medals won? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("bronze") FROM "medal_table" WHERE "nation"='united states' AND "total">25; | 2-10838914-1 |
When the nation of poland had less than 17 medals but more than 1 gold medal, what's the Highest number of bronze medals? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("bronze") FROM "medal_table" WHERE "total"<17 AND "nation"='poland' AND "gold">1; | 2-10838914-1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.