question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
Which season has a Result of 6–9? | CREATE TABLE "uefa_club_competitions_record" (
"season" text,
"competition" text,
"round" text,
"opponent" text,
"result" text,
"venue" text
); | SELECT "season" FROM "uefa_club_competitions_record" WHERE "result"='6–9'; | 2-11638072-1 |
Which round has a Venue of nicosia, and a Opponent of levski sofia zapad? | CREATE TABLE "uefa_club_competitions_record" (
"season" text,
"competition" text,
"round" text,
"opponent" text,
"result" text,
"venue" text
); | SELECT "round" FROM "uefa_club_competitions_record" WHERE "venue"='nicosia' AND "opponent"='levski sofia zapad'; | 2-11638072-1 |
What resulted in a score of 22-21? | CREATE TABLE "2003_fixtures_and_results" (
"date" text,
"competition" text,
"venue" text,
"result" text,
"score" text
); | SELECT "result" FROM "2003_fixtures_and_results" WHERE "score"='22-21'; | 2-10814478-4 |
What competition was held on the date 6/7/03 | CREATE TABLE "2003_fixtures_and_results" (
"date" text,
"competition" text,
"venue" text,
"result" text,
"score" text
); | SELECT "competition" FROM "2003_fixtures_and_results" WHERE "date"='6/7/03'; | 2-10814478-4 |
What was the score for the date of 15/6/03 | CREATE TABLE "2003_fixtures_and_results" (
"date" text,
"competition" text,
"venue" text,
"result" text,
"score" text
); | SELECT "score" FROM "2003_fixtures_and_results" WHERE "date"='15/6/03'; | 2-10814478-4 |
What venue is on the date of 8/6/03 | CREATE TABLE "2003_fixtures_and_results" (
"date" text,
"competition" text,
"venue" text,
"result" text,
"score" text
); | SELECT "venue" FROM "2003_fixtures_and_results" WHERE "date"='8/6/03'; | 2-10814478-4 |
What outcome has a score of 12-22? | CREATE TABLE "2003_fixtures_and_results" (
"date" text,
"competition" text,
"venue" text,
"result" text,
"score" text
); | SELECT "result" FROM "2003_fixtures_and_results" WHERE "score"='12-22'; | 2-10814478-4 |
What date is for Venue of jjb stadium, and a Result of w? | CREATE TABLE "2003_fixtures_and_results" (
"date" text,
"competition" text,
"venue" text,
"result" text,
"score" text
); | SELECT "date" FROM "2003_fixtures_and_results" WHERE "venue"='jjb stadium' AND "result"='w'; | 2-10814478-4 |
What is the high lap total for françois cevert? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MAX("laps") FROM "classification" WHERE "driver"='françois cevert'; | 2-1122483-1 |
Who constructed rolf stommelen's car? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "constructor" FROM "classification" WHERE "driver"='rolf stommelen'; | 2-1122483-1 |
Who drive the car that retired due to engine failure and a grid of less than 9? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "driver" FROM "classification" WHERE "time_retired"='engine' AND "grid"<9; | 2-1122483-1 |
When was the race that set the record for the Izod Indycar Series? | CREATE TABLE "track_records" (
"record" text,
"date" text,
"driver" text,
"time" text,
"speed_avg_speed" text
); | SELECT "date" FROM "track_records" WHERE "record"='izod indycar series'; | 2-1184888-1 |
Which driver set the Qualifying record with a time of 24.761 seconds? | CREATE TABLE "track_records" (
"record" text,
"date" text,
"driver" text,
"time" text,
"speed_avg_speed" text
); | SELECT "driver" FROM "track_records" WHERE "record"='qualifying' AND "time"='24.761'; | 2-1184888-1 |
What Utah Jazz guard, played at BYU? | CREATE TABLE "f" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
); | SELECT "player" FROM "f" WHERE "position"='guard' AND "school_club_team"='byu'; | 2-11545282-6 |
What college team did Derek Fisher play for? | CREATE TABLE "f" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
); | SELECT "school_club_team" FROM "f" WHERE "player"='derek fisher'; | 2-11545282-6 |
The Utah Jazz Player from UTEP was what nationality? | CREATE TABLE "f" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
); | SELECT "nationality" FROM "f" WHERE "school_club_team"='utep'; | 2-11545282-6 |
What is the name of the venue when the home team is Richmond? | 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"='richmond'; | 2-10887680-10 |
What is the date of the game when the away team score is 15.14 (104)? | 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_score"='15.14 (104)'; | 2-10887680-10 |
Who is the away team when the crowd is larger than 21,122 and the home team score is 13.7 (85)? | 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" FROM "round_10" WHERE "crowd">'21,122' AND "home_team_score"='13.7 (85)'; | 2-10887680-10 |
What is the home team score when the venue is Princes 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"='princes park'; | 2-10887680-10 |
How many wins did Hale Irwin get with earnings smaller than 20,592,965? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
); | SELECT SUM("wins") FROM "leaders" WHERE "player"='hale irwin' AND "earnings"<'20,592,965'; | 2-11602885-4 |
What actor plays glen cole? | CREATE TABLE "law_enforcement" (
"character" text,
"position" text,
"actor" text,
"first_episode" text,
"final_episode" text,
"duration" text,
"final_episode_count" real
); | SELECT "actor" FROM "law_enforcement" WHERE "character"='glen cole'; | 2-11210576-3 |
What is the average number for a final episode featuring maxine valera? | CREATE TABLE "law_enforcement" (
"character" text,
"position" text,
"actor" text,
"first_episode" text,
"final_episode" text,
"duration" text,
"final_episode_count" real
); | SELECT AVG("final_episode_count") FROM "law_enforcement" WHERE "character"='maxine valera'; | 2-11210576-3 |
How many laps were driven in 2:54:23.8? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT SUM("laps") FROM "classification" WHERE "time_retired"='2:54:23.8'; | 2-1122128-1 |
Which constructor has laps less than 100 and a time/retired +10 laps? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "constructor" FROM "classification" WHERE "laps"<100 AND "time_retired"='+10 laps'; | 2-1122128-1 |
What are the highest number of laps for grid 8? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MAX("laps") FROM "classification" WHERE "grid"=8; | 2-1122128-1 |
Which grid is the highest and has a time/retired of +0.3? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MAX("grid") FROM "classification" WHERE "time_retired"='+0.3'; | 2-1122128-1 |
Which driver for Maserati has more laps than 23 and a grid greater than 7? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "driver" FROM "classification" WHERE "constructor"='maserati' AND "laps">23 AND "grid">7; | 2-1122128-1 |
Which points classification shares a general classification of Bernard Hinault, a Trofeo Fast Tem of Bianchi, was won by Urs Freuler, and was stage 4? | CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"trofeo_fast_team" text
); | SELECT "points_classification" FROM "classification_leadership_by_stage" WHERE "general_classification"='bernard hinault' AND "trofeo_fast_team"='bianchi' AND "winner"='urs freuler' AND "stage"='4'; | 2-11303224-2 |
Who was the winner that had a Points Classification of Giuseppe Saronni, a Trofeo Fast Team of Bianchi, and was Stage 3? | CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"trofeo_fast_team" text
); | SELECT "winner" FROM "classification_leadership_by_stage" WHERE "points_classification"='giuseppe saronni' AND "trofeo_fast_team"='bianchi' AND "stage"='3'; | 2-11303224-2 |
Which stage had a Points Classification of Francesco Moser and a general classification of Bernard Hinault? | CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"trofeo_fast_team" text
); | SELECT "stage" FROM "classification_leadership_by_stage" WHERE "points_classification"='francesco moser' AND "general_classification"='bernard hinault'; | 2-11303224-2 |
Who was the winner of Stage 12 with a Points Classification of Francesco Moser? | CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"trofeo_fast_team" text
); | SELECT "winner" FROM "classification_leadership_by_stage" WHERE "points_classification"='francesco moser' AND "stage"='12'; | 2-11303224-2 |
Which stage was won by Bernard Hinault and had a Points classification of Francesco Moser? | CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"trofeo_fast_team" text
); | SELECT "stage" FROM "classification_leadership_by_stage" WHERE "winner"='bernard hinault' AND "points_classification"='francesco moser'; | 2-11303224-2 |
Who was the loser on December 12, 1971? | CREATE TABLE "1970s_raiders_12_6_2" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
); | SELECT "loser" FROM "1970s_raiders_12_6_2" WHERE "date"='december 12' AND "year"=1971; | 2-11840325-4 |
Who was the loser at Municipal Stadium after 1970? | CREATE TABLE "1970s_raiders_12_6_2" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
); | SELECT "loser" FROM "1970s_raiders_12_6_2" WHERE "location"='municipal stadium' AND "year">1970; | 2-11840325-4 |
What is the date where the winner was the Oakland Raiders in 1975? | CREATE TABLE "1970s_raiders_12_6_2" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
); | SELECT "date" FROM "1970s_raiders_12_6_2" WHERE "year"=1975 AND "winner"='oakland raiders'; | 2-11840325-4 |
What is result of the game at Arrowhead Stadium where the loser was the Kansas City Chiefs? | CREATE TABLE "1970s_raiders_12_6_2" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
); | SELECT "result" FROM "1970s_raiders_12_6_2" WHERE "location"='arrowhead stadium' AND "loser"='kansas city chiefs'; | 2-11840325-4 |
What draw for "ljubav jedne žene" with under 153 points? | CREATE TABLE "dora_1999_7_march_1999" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" real
); | SELECT SUM("draw") FROM "dora_1999_7_march_1999" WHERE "song"='\"ljubav jedne žene\"' AND "points"<153; | 2-11257566-1 |
What place for "jednom u životu" with a draw larger than 18? | CREATE TABLE "dora_1999_7_march_1999" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" real
); | SELECT COUNT("place") FROM "dora_1999_7_march_1999" WHERE "song"='\"jednom u životu\"' AND "draw">18; | 2-11257566-1 |
What was nominated for the Best Movie category? | CREATE TABLE "awards" (
"year" real,
"award" text,
"category" text,
"work" text,
"result" text
); | SELECT "work" FROM "awards" WHERE "category"='best movie'; | 2-113549-2 |
Which award did Scream receive a nomination and/or win for in 1997? | CREATE TABLE "awards" (
"year" real,
"award" text,
"category" text,
"work" text,
"result" text
); | SELECT "award" FROM "awards" WHERE "work"='scream' AND "year"=1997; | 2-113549-2 |
What category was Scream nominated for at the International Horror Guild? | CREATE TABLE "awards" (
"year" real,
"award" text,
"category" text,
"work" text,
"result" text
); | SELECT "category" FROM "awards" WHERE "work"='scream' AND "award"='international horror guild'; | 2-113549-2 |
what is the time/retired when the laps is less than 54 and the driver is mark donohue? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "time_retired" FROM "classification" WHERE "laps"<54 AND "driver"='mark donohue'; | 2-1122645-1 |
what is the grid when the driver is mario andretti and the laps is less than 54? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MAX("grid") FROM "classification" WHERE "driver"='mario andretti' AND "laps"<54; | 2-1122645-1 |
how many laps were there when the grid was 24? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT COUNT("laps") FROM "classification" WHERE "grid"=24; | 2-1122645-1 |
what is the time/retired when the laps is 6, the grid is less than 18 and the driver is clay regazzoni? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "time_retired" FROM "classification" WHERE "laps"=6 AND "grid"<18 AND "driver"='clay regazzoni'; | 2-1122645-1 |
Which class is smaller than 5 and the GWR is 1322–1323? | CREATE TABLE "barry_railway" (
"class" text,
"type" text,
"quantity" real,
"barry_nos" text,
"gwr_nos" text
); | SELECT "class" FROM "barry_railway" WHERE "quantity"<5 AND "gwr_nos"='1322–1323'; | 2-1169521-2 |
Whose term expired in 1996 and was from the province of Central Highlands? | CREATE TABLE "sources" (
"name" text,
"party" text,
"province" text,
"term_expires" real,
"term_of_office" text
); | SELECT "name" FROM "sources" WHERE "province"='central highlands' AND "term_expires"=1996; | 2-12093320-1 |
Ken Wright of the National Party was from which province? | CREATE TABLE "sources" (
"name" text,
"party" text,
"province" text,
"term_expires" real,
"term_of_office" text
); | SELECT "province" FROM "sources" WHERE "party"='national' AND "name"='ken wright'; | 2-12093320-1 |
Which venue hosted a race in 1967? | CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"event" text
); | SELECT "venue" FROM "achievements" WHERE "year"=1967; | 2-11881177-1 |
Which tournament was held after 1966? | CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"event" text
); | SELECT "tournament" FROM "achievements" WHERE "year">1966; | 2-11881177-1 |
Which venue hosted a tournament in 1965? | CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"event" text
); | SELECT "venue" FROM "achievements" WHERE "year"=1965; | 2-11881177-1 |
What is the result for the best new musical nominee? | CREATE TABLE "original_london_production" (
"year" real,
"award" text,
"category" text,
"nominee" text,
"result" text
); | SELECT "result" FROM "original_london_production" WHERE "nominee"='best new musical'; | 2-11364514-2 |
How many years does simon baker appear as a nominee? | CREATE TABLE "original_london_production" (
"year" real,
"award" text,
"category" text,
"nominee" text,
"result" text
); | SELECT COUNT("year") FROM "original_london_production" WHERE "nominee"='simon baker'; | 2-11364514-2 |
What is the Height for Years of Rockets of 2005-06? | CREATE TABLE "f" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
); | SELECT "height_in_ft" FROM "f" WHERE "years_for_rockets"='2005-06'; | 2-11734041-6 |
What is the Height for Years for Rockets of 2005-06? | CREATE TABLE "f" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
); | SELECT "height_in_ft" FROM "f" WHERE "years_for_rockets"='2005-06'; | 2-11734041-6 |
What is the Attendance on august 15? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "attendance" FROM "game_log" WHERE "date"='august 15'; | 2-11513998-6 |
What is the constructor for the race with Nigel Mansell as the fastest lap? | CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "constructor" FROM "season_review" WHERE "fastest_lap"='nigel mansell'; | 2-1140070-2 |
What is the fastest lap at estoril? | CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "fastest_lap" FROM "season_review" WHERE "location"='estoril'; | 2-1140070-2 |
What is the race in Paul Ricard with Keke Rosberg as the fastest lap? | CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "race" FROM "season_review" WHERE "fastest_lap"='keke rosberg' AND "location"='paul ricard'; | 2-1140070-2 |
Who was the winner at spa-francorchamps? | CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "race_winner" FROM "season_review" WHERE "location"='spa-francorchamps'; | 2-1140070-2 |
Where was the game with result 7-2 played? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "venue" FROM "international_goals" WHERE "result"='7-2'; | 2-11462581-1 |
What was the score of the Friendly competition where the result was 7-2? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "score" FROM "international_goals" WHERE "competition"='friendly' AND "result"='7-2'; | 2-11462581-1 |
What was the score of the game on 27 January 1996? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "score" FROM "international_goals" WHERE "date"='27 january 1996'; | 2-11462581-1 |
What is the event with a result of 3-2? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "competition" FROM "international_goals" WHERE "result"='3-2'; | 2-11462581-1 |
How big was the crowd size, at the Junction Oval venue? | CREATE TABLE "round_21" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT SUM("crowd") FROM "round_21" WHERE "venue"='junction oval'; | 2-10869537-21 |
What is the visiting team of Melbourne's score? | CREATE TABLE "round_21" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "away_team_score" FROM "round_21" WHERE "away_team"='melbourne'; | 2-10869537-21 |
What is the average crowd size of Fitzroy's home team? | CREATE TABLE "round_21" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT AVG("crowd") FROM "round_21" WHERE "home_team"='fitzroy'; | 2-10869537-21 |
Which railway had the earliest build date and a disposal of "Scrapped 1941?" | CREATE TABLE "locomotives" (
"railway" text,
"loco_name" text,
"build_date" real,
"wheels" text,
"disposal" text
); | SELECT MIN("build_date") FROM "locomotives" WHERE "disposal"='scrapped 1941'; | 2-1152298-2 |
Which railway had a loco name of Pyramus and a build date of 1911? | CREATE TABLE "locomotives" (
"railway" text,
"loco_name" text,
"build_date" real,
"wheels" text,
"disposal" text
); | SELECT "railway" FROM "locomotives" WHERE "build_date"=1911 AND "loco_name"='pyramus'; | 2-1152298-2 |
What was the build date of the railway(s) with 0-6-2 t wheels? | CREATE TABLE "locomotives" (
"railway" text,
"loco_name" text,
"build_date" real,
"wheels" text,
"disposal" text
); | SELECT "build_date" FROM "locomotives" WHERE "wheels"='0-6-2 t'; | 2-1152298-2 |
Which disbanded is in the ahl league? | CREATE TABLE "sports" (
"club" text,
"league" text,
"sport" text,
"venue" text,
"established" real,
"disbanded" text,
"championships" text
); | SELECT "disbanded" FROM "sports" WHERE "league"='ahl'; | 2-111774-2 |
Which championship was established after 2005? | CREATE TABLE "sports" (
"club" text,
"league" text,
"sport" text,
"venue" text,
"established" real,
"disbanded" text,
"championships" text
); | SELECT "championships" FROM "sports" WHERE "established">2005; | 2-111774-2 |
Which year had J.R. Reid as a player? | CREATE TABLE "boys_basketball_players_and_coaches_of_t" (
"year" text,
"player" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
); | SELECT "year" FROM "boys_basketball_players_and_coaches_of_t" WHERE "player"='j.r. reid'; | 2-11677760-1 |
Which hometown is the played Dajuan Wagner from? | CREATE TABLE "boys_basketball_players_and_coaches_of_t" (
"year" text,
"player" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
); | SELECT "hometown" FROM "boys_basketball_players_and_coaches_of_t" WHERE "player"='dajuan wagner'; | 2-11677760-1 |
When the home team was carlton how many people were in the crowd? | 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 "home_team"='carlton'; | 2-10806852-1 |
Which away team had a crowd of over 23,000 people? | CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "away_team" FROM "round_1" WHERE "crowd">'23,000'; | 2-10806852-1 |
What's the home team for the western oval venue? | 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 "venue"='western oval'; | 2-10806852-1 |
What's the home team for the junction oval venue? | 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"='junction oval'; | 2-10806852-1 |
What date did the away team score 13.10 (88)? | CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "date" FROM "round_1" WHERE "away_team_score"='13.10 (88)'; | 2-10806852-1 |
What was the result when the opponent was fenerbahçe? | CREATE TABLE "uefa_cup" (
"date_and_time" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
); | SELECT "result" FROM "uefa_cup" WHERE "opponent"='fenerbahçe'; | 2-11340340-3 |
what is the apparent magnitude of NGC number 6027d? | CREATE TABLE "6001_6100" (
"ngc_number" text,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text,
"apparent_magnitude" real
); | SELECT "apparent_magnitude" FROM "6001_6100" WHERE "ngc_number"='6027d'; | 2-11051842-1 |
What is the visiting team of the game with the home team Grizzlies on 13 November 2007? | CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
); | SELECT "visitor" FROM "november" WHERE "home"='grizzlies' AND "date"='13 november 2007'; | 2-11963447-4 |
What is the date of the game when the Mavericks were the home team? | CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
); | SELECT "date" FROM "november" WHERE "home"='mavericks'; | 2-11963447-4 |
Which of the lowest years had a Wheel arrangement that was 0-4-2t? | CREATE TABLE "locomotives_of_the_southern_railway" (
"iwcr_no" text,
"name" text,
"wheel_arrangement" text,
"sr_no" text,
"year_made" real,
"year_withdrawn" real
); | SELECT MIN("year_made") FROM "locomotives_of_the_southern_railway" WHERE "wheel_arrangement"='0-4-2t'; | 2-1169552-20 |
What is the mean Year when the IWCR number was 5 and the Year withdrawn was bigger than 1926? | CREATE TABLE "locomotives_of_the_southern_railway" (
"iwcr_no" text,
"name" text,
"wheel_arrangement" text,
"sr_no" text,
"year_made" real,
"year_withdrawn" real
); | SELECT AVG("year_made") FROM "locomotives_of_the_southern_railway" WHERE "iwcr_no"='5' AND "year_withdrawn">1926; | 2-1169552-20 |
Which SR number had a wheel arrangement of 0-6-0t, the year made was more recent than 1874, and the year withdrawn was 1963? | CREATE TABLE "locomotives_of_the_southern_railway" (
"iwcr_no" text,
"name" text,
"wheel_arrangement" text,
"sr_no" text,
"year_made" real,
"year_withdrawn" real
); | SELECT "sr_no" FROM "locomotives_of_the_southern_railway" WHERE "wheel_arrangement"='0-6-0t' AND "year_made">1874 AND "year_withdrawn"=1963; | 2-1169552-20 |
What is the sum number of years where the wheel arrangement of 0-4-0t? | CREATE TABLE "locomotives_of_the_southern_railway" (
"iwcr_no" text,
"name" text,
"wheel_arrangement" text,
"sr_no" text,
"year_made" real,
"year_withdrawn" real
); | SELECT COUNT("year_made") FROM "locomotives_of_the_southern_railway" WHERE "wheel_arrangement"='0-4-0t'; | 2-1169552-20 |
What was the latest week of a game that had an attendance of 63,001? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT MAX("week") FROM "schedule" WHERE "attendance"='63,001'; | 2-11281685-2 |
What is the total medals Austria and those with larger than rank 4 have? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("total") FROM "medal_table" WHERE "nation"='austria' AND "rank">4; | 2-11356889-6 |
What is the most gold medals that a team ranked higher than 6, have 1 silver medal, and more than 4 total medals have? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("gold") FROM "medal_table" WHERE "rank"<6 AND "silver"=1 AND "total">4; | 2-11356889-6 |
Which country has a rollercoaster that opened in 2002, is a spinning coaster, and is located in Disney's Animal Kingdom? | CREATE TABLE "list_of_operating_reverchon_roller_coast" (
"name" text,
"model" text,
"park" text,
"country" text,
"opened" real
); | SELECT "country" FROM "list_of_operating_reverchon_roller_coast" WHERE "opened"=2002 AND "model"='spinning coaster' AND "park"='disney''s animal kingdom'; | 2-12034773-1 |
What is the name of the roller coaster that opened in 2000 in Brighton Pier? | CREATE TABLE "list_of_operating_reverchon_roller_coast" (
"name" text,
"model" text,
"park" text,
"country" text,
"opened" real
); | SELECT "name" FROM "list_of_operating_reverchon_roller_coast" WHERE "opened"=2000 AND "park"='brighton pier'; | 2-12034773-1 |
How many attended on may 6? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT COUNT("attendance") FROM "game_log" WHERE "date"='may 6'; | 2-11652183-4 |
Who did they lose to 3-17? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "opponent" FROM "game_log" WHERE "score"='3-17'; | 2-11652183-4 |
What team was the home team when the away team scored 12.11 (83)? | 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" FROM "round_12" WHERE "away_team_score"='12.11 (83)'; | 2-10809368-12 |
What venue did Richmond play at as 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 "venue" FROM "round_12" WHERE "home_team"='richmond'; | 2-10809368-12 |
What home team played against Footscray as the away 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 "home_team" FROM "round_12" WHERE "away_team"='footscray'; | 2-10809368-12 |
What date did the away team score 14.8 (92)? | 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 "away_team_score"='14.8 (92)'; | 2-10809368-12 |
what was the attendance when the away team was boreham wood? | CREATE TABLE "ties" (
"tie_no" real,
"home_team" text,
"score" text,
"away_team" text,
"attendance" real
); | SELECT "attendance" FROM "ties" WHERE "away_team"='boreham wood'; | 2-11318956-14 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.