question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
Who was South Melbourne's away team opponents? | 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 "home_team"='south melbourne'; | 2-10809823-17 |
Who was the leading scorer on November 2, 2007? | CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
); | SELECT "leading_scorer" FROM "november" WHERE "date"='november 2, 2007'; | 2-11963601-4 |
What was the attendance when the Hawks played? | CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
); | SELECT COUNT("attendance") FROM "november" WHERE "home"='hawks'; | 2-11963601-4 |
How many bronzes are there for the total nation with 112 silver and a total of 72? | CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("bronze") FROM "medal_table" WHERE "total">72 AND "nation"='total' AND "silver"<112; | 2-11366782-4 |
What is the highest bronze for San Marino with less than 82 total and less than 3 golds? | CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("bronze") FROM "medal_table" WHERE "total"<82 AND "nation"='san marino' AND "gold"<3; | 2-11366782-4 |
How many golds were there when there was more than 11 bronze and 29 in total? | CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("gold") FROM "medal_table" WHERE "bronze">11 AND "total"=29; | 2-11366782-4 |
What was Montenegro's average bronze with less than 7 silver and more than 4 golds? | CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("bronze") FROM "medal_table" WHERE "silver"<7 AND "nation"='montenegro' AND "gold">4; | 2-11366782-4 |
How many golds were there for Iceland with more than 15 silver? | CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("gold") FROM "medal_table" WHERE "silver">15 AND "nation"='iceland'; | 2-11366782-4 |
What was Andorra's total with less than 10 silver and more than 5 bronze? | CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT SUM("total") FROM "medal_table" WHERE "silver"<10 AND "nation"='andorra' AND "bronze">5; | 2-11366782-4 |
What is the roll number of Poroti school, which has a 6 decile? | CREATE TABLE "whangarei" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" text,
"roll" text
); | SELECT "roll" FROM "whangarei" WHERE "decile"='6' AND "name"='poroti school'; | 2-12016691-2 |
What is the roll number of the school with a state authority in Waiotira? | CREATE TABLE "whangarei" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" text,
"roll" text
); | SELECT "roll" FROM "whangarei" WHERE "authority"='state' AND "area"='waiotira'; | 2-12016691-2 |
What is the area of the school with a decile of 2 and a roll number 222? | CREATE TABLE "whangarei" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" text,
"roll" text
); | SELECT "area" FROM "whangarei" WHERE "decile"='2' AND "roll"='222'; | 2-12016691-2 |
WHat is the decile of the school in Purua? | CREATE TABLE "whangarei" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" text,
"roll" text
); | SELECT "decile" FROM "whangarei" WHERE "area"='purua'; | 2-12016691-2 |
what is the away team score when the home team is essendon? | CREATE TABLE "round_5" (
"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_5" WHERE "home_team"='essendon'; | 2-10885968-5 |
what is the venue when the crowd is more than 11,131 and the home team is essendon? | CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "venue" FROM "round_5" WHERE "crowd">'11,131' AND "home_team"='essendon'; | 2-10885968-5 |
How many total ties had less than 1183 total games, 121 years, and more than 541 losses? | CREATE TABLE "ncaa_division_i_fbs_football_win_loss_re" (
"lost" real,
"tied" real,
"pct" real,
"years" real,
"total_games" real
); | SELECT COUNT("tied") FROM "ncaa_division_i_fbs_football_win_loss_re" WHERE "total_games"<1183 AND "years"=121 AND "lost">541; | 2-11513625-4 |
How many losses had more than 122 years and more than 1244 total games? | CREATE TABLE "ncaa_division_i_fbs_football_win_loss_re" (
"lost" real,
"tied" real,
"pct" real,
"years" real,
"total_games" real
); | SELECT SUM("lost") FROM "ncaa_division_i_fbs_football_win_loss_re" WHERE "years">122 AND "total_games">1244; | 2-11513625-4 |
What is the lowest earnings for a player with over 24 wins? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
); | SELECT MIN("earnings") FROM "leaders" WHERE "wins">24; | 2-11622496-4 |
Who has the most wins from new zealand with over $1,910,413? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
); | SELECT MAX("wins") FROM "leaders" WHERE "country"='new zealand' AND "earnings">'1,910,413'; | 2-11622496-4 |
Which constructor has Chuck Weyant as a driver, 45 laps, and a qual of less than 142.29? | CREATE TABLE "classification" (
"grid" real,
"driver" text,
"constructor" text,
"qual" real,
"rank" real,
"laps" real,
"time_retired" text
); | SELECT "constructor" FROM "classification" WHERE "laps"=45 AND "qual"<142.29 AND "driver"='chuck weyant'; | 2-1122187-1 |
Which time/retired has a qual of 144.02? | CREATE TABLE "classification" (
"grid" real,
"driver" text,
"constructor" text,
"qual" real,
"rank" real,
"laps" real,
"time_retired" text
); | SELECT "time_retired" FROM "classification" WHERE "qual"=144.02; | 2-1122187-1 |
Which rounds did Vic Elford with a Ford cosworth dfv 3.0 v8 engine have? | CREATE TABLE "teams_and_drivers" (
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
); | SELECT "rounds" FROM "teams_and_drivers" WHERE "driver"='vic elford' AND "engine"='ford cosworth dfv 3.0 v8'; | 2-1140093-2 |
What is the chassis for Bruce Mclaren with all rounds and a g tyre? | CREATE TABLE "teams_and_drivers" (
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
); | SELECT "chassis" FROM "teams_and_drivers" WHERE "rounds"='all' AND "tyre"='g' AND "driver"='bruce mclaren'; | 2-1140093-2 |
What is the NHL team that has a team (League) of Mississauga Icedogs (ohl)? | CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team_league" text
); | SELECT "nhl_team" FROM "draft_picks" WHERE "college_junior_club_team_league"='mississauga icedogs (ohl)'; | 2-11622632-17 |
Im the match where the home team is Melbourne Victory, what was the crowd attendance? | CREATE TABLE "fixtures" (
"round" text,
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"crowd" real,
"stadium" text,
"match_details" text
); | SELECT COUNT("crowd") FROM "fixtures" WHERE "home_team"='melbourne victory'; | 2-10866020-3 |
What was the score of the match that took place in the playoff round? | CREATE TABLE "fixtures" (
"round" text,
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"crowd" real,
"stadium" text,
"match_details" text
); | SELECT "score" FROM "fixtures" WHERE "round"='playoff'; | 2-10866020-3 |
In the match where newcastle jets was the away team, what was the crown attendance? | CREATE TABLE "fixtures" (
"round" text,
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"crowd" real,
"stadium" text,
"match_details" text
); | SELECT "crowd" FROM "fixtures" WHERE "away_team"='newcastle jets'; | 2-10866020-3 |
What team was the opponent on 1990-10-21? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"venue" text,
"attendance" text
); | SELECT "opponent" FROM "schedule" WHERE "date"='1990-10-21'; | 2-11281728-2 |
What was the competition earlier than 1987? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"placed" text,
"event" text
); | SELECT "competition" FROM "achievements" WHERE "year"<1987; | 2-10892023-1 |
What event placed bronze earlier than 1987? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"placed" text,
"event" text
); | SELECT "event" FROM "achievements" WHERE "placed"='bronze' AND "year"<1987; | 2-10892023-1 |
What was the score for the match on November 13, 2005? | CREATE TABLE "singles_12_9_titles_3_runners_up" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
); | SELECT "score" FROM "singles_12_9_titles_3_runners_up" WHERE "date"='november 13, 2005'; | 2-11307139-5 |
What tournament took place on July 17, 2005, with a clay surface? | CREATE TABLE "singles_12_9_titles_3_runners_up" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
); | SELECT "tournament" FROM "singles_12_9_titles_3_runners_up" WHERE "surface"='clay' AND "date"='july 17, 2005'; | 2-11307139-5 |
What is the highest Grid with over 72 laps? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MAX("grid") FROM "race" WHERE "laps">72; | 2-1123305-2 |
What is the average number of laps associated with a Time/Retired of +1:14.801? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT AVG("laps") FROM "race" WHERE "time_retired"='+1:14.801'; | 2-1123305-2 |
What date is the circuit at wanneroo park? | CREATE TABLE "race_calendar" (
"race_title" text,
"circuit" text,
"city_state" text,
"date" text,
"winner" text,
"team" text
); | SELECT "date" FROM "race_calendar" WHERE "circuit"='wanneroo park'; | 2-11942973-2 |
What team has a title of calder? | CREATE TABLE "race_calendar" (
"race_title" text,
"circuit" text,
"city_state" text,
"date" text,
"winner" text,
"team" text
); | SELECT "team" FROM "race_calendar" WHERE "race_title"='calder'; | 2-11942973-2 |
Tell me the Laps for time/retired of +1:08.491 | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "laps" FROM "race" WHERE "time_retired"='+1:08.491'; | 2-1123479-2 |
Tell me the highest laps for toyota and grid of 13 | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MAX("laps") FROM "race" WHERE "constructor"='toyota' AND "grid"=13; | 2-1123479-2 |
I want the Driver with Laps of 20 | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "driver" FROM "race" WHERE "laps"=20; | 2-1123479-2 |
Tell me the sum of Grid for giancarlo fisichella | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT SUM("grid") FROM "race" WHERE "driver"='giancarlo fisichella'; | 2-1123479-2 |
What date was the venue at VFL 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 "date" FROM "round_16" WHERE "venue"='vfl park'; | 2-1164217-16 |
What was the crowd attendance when the home team was 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 COUNT("crowd") FROM "round_16" WHERE "home_team"='melbourne'; | 2-1164217-16 |
What was the crowd attendance when the home team scored 13.17 (95)? | 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 SUM("crowd") FROM "round_16" WHERE "home_team_score"='13.17 (95)'; | 2-1164217-16 |
What was the away team's score when the home team scored 15.16 (106)? | 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_score" FROM "round_16" WHERE "home_team_score"='15.16 (106)'; | 2-1164217-16 |
What was the away team when the venue was Lake Oval? | 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"='lake oval'; | 2-1164217-16 |
What was the away team when the home team was Carlton? | 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"='carlton'; | 2-1164217-16 |
What player is picked 302 in round 11? | CREATE TABLE "nfl_draft" (
"pick" real,
"round" real,
"player" text,
"position" text,
"school" text
); | SELECT "player" FROM "nfl_draft" WHERE "round"=11 AND "pick"=302; | 2-11465521-1 |
What is the biggest purse with a 1st prize of $26,000? | CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" real
); | SELECT MAX("purse") FROM "tournament_results" WHERE "1st_prize"='26,000'; | 2-11622924-1 |
How many laps did Jackie Oliver do? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "laps" FROM "classification" WHERE "driver"='jackie oliver'; | 2-1122407-1 |
How many laps with a grid larger than 7 did a Lotus - Ford do with a Time/Retired of + 2 laps? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT SUM("laps") FROM "classification" WHERE "grid">7 AND "constructor"='lotus - ford' AND "time_retired"='+ 2 laps'; | 2-1122407-1 |
What is the name of the constellation that has a NGC number smaller tha 5457? | CREATE TABLE "5401_5500" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text,
"apparent_magnitude" real
); | SELECT "constellation" FROM "5401_5500" WHERE "ngc_number"<5457; | 2-11051845-5 |
What is the Apparent magnitude of a Declination (J2000) of °39′45″? | CREATE TABLE "5401_5500" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text,
"apparent_magnitude" real
); | SELECT MIN("apparent_magnitude") FROM "5401_5500" WHERE "declination_j2000"='°39′45″'; | 2-11051845-5 |
Which supercharger gear ratio has a Octane rating of 68? | CREATE TABLE "specifications_for_different_r_985_wasp_" (
"engine" text,
"power_continuous" text,
"power_takeoff" text,
"compression_ratio" text,
"supercharger_gear_ratio" text,
"octane_rating" text,
"dry_weight" text
); | SELECT "supercharger_gear_ratio" FROM "specifications_for_different_r_985_wasp_" WHERE "octane_rating"='68'; | 2-1123802-1 |
What is the elite eight result for the big west? | CREATE TABLE "record_by_conference" (
"conference" text,
"num_of_bids" real,
"record" text,
"win_pct" text,
"round_of_32" text,
"sweet_sixteen" text,
"elite_eight" text,
"final_four" text,
"championship_game" text
); | SELECT "elite_eight" FROM "record_by_conference" WHERE "conference"='big west'; | 2-11115240-6 |
What is the vote percentage when the number is more than 241,306 appointed on July 10, 2007? | CREATE TABLE "results" (
"candidate" text,
"party" text,
"votes_num" real,
"votes_pct" text,
"ballots_pct" text,
"elected" text,
"appointed" text
); | SELECT "votes_pct" FROM "results" WHERE "votes_num">'241,306' AND "appointed"='july 10, 2007'; | 2-1202333-1 |
What is the vote % for Cliff Breitkreuz? | CREATE TABLE "results" (
"candidate" text,
"party" text,
"votes_num" real,
"votes_pct" text,
"ballots_pct" text,
"elected" text,
"appointed" text
); | SELECT "votes_pct" FROM "results" WHERE "candidate"='cliff breitkreuz'; | 2-1202333-1 |
What is the time/retired for damon hill? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "time_retired" FROM "race" WHERE "driver"='damon hill'; | 2-1123262-2 |
Who constructed olivier panis' car that retired after +1 lap? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "constructor" FROM "race" WHERE "time_retired"='+1 lap' AND "driver"='olivier panis'; | 2-1123262-2 |
What is the high assists of Hamilton (24)? | CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
); | SELECT "high_assists" FROM "playoffs" WHERE "high_points"='hamilton (24)'; | 2-11960944-9 |
What series had a high points of Prince (23)? | CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
); | SELECT "series" FROM "playoffs" WHERE "high_points"='prince (23)'; | 2-11960944-9 |
What category of the British Soap Awards resulted in nominated? | CREATE TABLE "television" (
"awards" text,
"year" real,
"category" text,
"result" text,
"production" text,
"roll" text
); | SELECT "category" FROM "television" WHERE "awards"='british soap awards' AND "result"='nominated'; | 2-11931611-1 |
What category was nominated in 2010 fo the British Soap Awards? | CREATE TABLE "television" (
"awards" text,
"year" real,
"category" text,
"result" text,
"production" text,
"roll" text
); | SELECT "category" FROM "television" WHERE "year"=2010 AND "result"='nominated' AND "awards"='british soap awards'; | 2-11931611-1 |
Which country is Dyer from? | CREATE TABLE "in" (
"name" text,
"country" text,
"type" text,
"moving_from" text,
"transfer_window" text
); | SELECT "country" FROM "in" WHERE "name"='dyer'; | 2-11220910-7 |
What country is the athlete moving from Everton from? | CREATE TABLE "in" (
"name" text,
"country" text,
"type" text,
"moving_from" text,
"transfer_window" text
); | SELECT "country" FROM "in" WHERE "moving_from"='everton'; | 2-11220910-7 |
Name the tournament for 2009 2r | CREATE TABLE "grand_slam_doubles_performance_timeline" (
"tournament" text,
"2009" text,
"2011" text,
"2012" text,
"2013" text
); | SELECT "tournament" FROM "grand_slam_doubles_performance_timeline" WHERE "2009"='2r'; | 2-11057284-2 |
Name the 2011 for 2009 being 2r at wimbledon | CREATE TABLE "grand_slam_doubles_performance_timeline" (
"tournament" text,
"2009" text,
"2011" text,
"2012" text,
"2013" text
); | SELECT "2011" FROM "grand_slam_doubles_performance_timeline" WHERE "2009"='2r' AND "tournament"='wimbledon'; | 2-11057284-2 |
Name the 2012 for 2009 of 1r | CREATE TABLE "grand_slam_doubles_performance_timeline" (
"tournament" text,
"2009" text,
"2011" text,
"2012" text,
"2013" text
); | SELECT "2012" FROM "grand_slam_doubles_performance_timeline" WHERE "2009"='1r'; | 2-11057284-2 |
Who was the away team when the home team was South Melbourne? | CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "away_team" FROM "round_1" WHERE "home_team"='south melbourne'; | 2-10808089-1 |
What is the high assist total for players from 2010 and under 76 rebounds? | CREATE TABLE "p" (
"player" text,
"pos" text,
"from" text,
"school_country" text,
"rebs" real,
"asts" real
); | SELECT MAX("asts") FROM "p" WHERE "from"='2010' AND "rebs"<76; | 2-11482079-16 |
What is the total swimsuit number with gowns larger than 9.48 with interviews larger than 8.94 in florida? | CREATE TABLE "scores" (
"country" text,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
); | SELECT COUNT("swimsuit") FROM "scores" WHERE "evening_gown">9.48 AND "country"='florida' AND "interview">8.94; | 2-11690135-1 |
What is the total average for swimsuits smaller than 9.62 in Colorado? | CREATE TABLE "scores" (
"country" text,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
); | SELECT SUM("average") FROM "scores" WHERE "swimsuit"<9.62 AND "country"='colorado'; | 2-11690135-1 |
What was the bronze medal count of the team that finished with 47 total medals? | CREATE TABLE "medal_count" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("bronze") FROM "medal_count" WHERE "total"=47; | 2-10942983-1 |
What is the silver medal count of the team that finished with 8 bronze medals? | CREATE TABLE "medal_count" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT SUM("silver") FROM "medal_count" WHERE "bronze"=8; | 2-10942983-1 |
What is the status of rené hoppe? | CREATE TABLE "individual" (
"athlete" text,
"country" text,
"from" real,
"gold" real,
"silver" real,
"total" real,
"status" text
); | SELECT "status" FROM "individual" WHERE "athlete"='rené hoppe'; | 2-10982957-8 |
How many times does Switzerland have under 7 golds and less than 3 silvers? | CREATE TABLE "individual" (
"athlete" text,
"country" text,
"from" real,
"gold" real,
"silver" real,
"total" real,
"status" text
); | SELECT COUNT("total") FROM "individual" WHERE "country"='switzerland' AND "gold"<7 AND "silver"<3; | 2-10982957-8 |
What athlete has less than 7 gold and 14 total medals? | CREATE TABLE "individual" (
"athlete" text,
"country" text,
"from" real,
"gold" real,
"silver" real,
"total" real,
"status" text
); | SELECT "athlete" FROM "individual" WHERE "gold"<7 AND "total"=14; | 2-10982957-8 |
What is the average crowd size for the home team hawthorn? | CREATE TABLE "round_19" (
"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_19" WHERE "home_team"='hawthorn'; | 2-10869646-19 |
Where did the away team score 8.13 (61)? | CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "venue" FROM "round_19" WHERE "away_team_score"='8.13 (61)'; | 2-10869646-19 |
When did the home team score 9.13 (67)? | CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "date" FROM "round_19" WHERE "home_team_score"='9.13 (67)'; | 2-10869646-19 |
Where does St Kilda play? | 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"='st kilda'; | 2-10885968-7 |
Who was the home team when Fitzroy was the away team? | 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" FROM "round_16" WHERE "away_team"='fitzroy'; | 2-10887379-16 |
What was the home team score at Kardinia Park? | 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 "venue"='kardinia park'; | 2-10809271-4 |
What was the lowest crowd size for the Carlton at home? | 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 MIN("crowd") FROM "round_4" WHERE "home_team"='carlton'; | 2-10809271-4 |
Name the engine with rounds of 7 with geki driver | CREATE TABLE "teams_and_drivers" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
); | SELECT "engine" FROM "teams_and_drivers" WHERE "rounds"='7' AND "driver"='geki'; | 2-1140097-2 |
Name the driver for 3 rounds | CREATE TABLE "teams_and_drivers" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
); | SELECT "driver" FROM "teams_and_drivers" WHERE "rounds"='3'; | 2-1140097-2 |
What was the attendance of the North Melbourne's home game? | 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 COUNT("crowd") FROM "round_20" WHERE "home_team"='north melbourne'; | 2-10809271-20 |
What was the attendance at the Fitzroy home game? | 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 SUM("crowd") FROM "round_20" WHERE "home_team"='fitzroy'; | 2-10809271-20 |
What was Richmond's highest attendance? | 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 MAX("crowd") FROM "round_20" WHERE "home_team"='richmond'; | 2-10809271-20 |
Which ground is match 4 held on? | CREATE TABLE "friendly" (
"match" real,
"date" text,
"competition_or_tour" text,
"ground" text,
"opponent" text,
"score1" text
); | SELECT "ground" FROM "friendly" WHERE "match"=4; | 2-11891841-16 |
Which game number did they play the Chicago team? | 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 "game" FROM "game_log" WHERE "team"='chicago'; | 2-11961582-5 |
What was the season record when the location attendance was Air Canada Centre 19,800? | 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 "record" FROM "game_log" WHERE "location_attendance"='air canada centre 19,800'; | 2-11961582-5 |
Name the visitor for home of ny rangers | CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "visitor" FROM "january" WHERE "home"='ny rangers'; | 2-11128774-5 |
What is the label for a CD released in 2004? | CREATE TABLE "versions" (
"country" text,
"label" text,
"cat_no" text,
"media" text,
"release_date" real
); | SELECT "label" FROM "versions" WHERE "media"='cd' AND "release_date"=2004; | 2-1112486-2 |
Who made a release in the US in 1982? | CREATE TABLE "versions" (
"country" text,
"label" text,
"cat_no" text,
"media" text,
"release_date" real
); | SELECT "label" FROM "versions" WHERE "release_date"=1982 AND "country"='us'; | 2-1112486-2 |
On which date did a home team score 6.17 (53)? | 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 "date" FROM "round_9" WHERE "home_team_score"='6.17 (53)'; | 2-10790397-9 |
In the match where the venue was arden street oval, what was the crowd attendance? | 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 SUM("crowd") FROM "round_9" WHERE "venue"='arden street oval'; | 2-10790397-9 |
What was the crowd attendance in the match at punt road oval? | 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 SUM("crowd") FROM "round_9" WHERE "venue"='punt road oval'; | 2-10790397-9 |
What team played st kilda at their home with a crowd larger than 12,528? | 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 "crowd">'12,528' AND "home_team"='st kilda'; | 2-10826072-12 |
What was the score when the home team had a crowd larger than 21,188? | 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 "crowd">'21,188'; | 2-10826072-12 |
Where did north melbourne play while away? | 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 "away_team"='north melbourne'; | 2-10826072-12 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.