question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
What is the lowest medal total with less than 3 gold medals? | CREATE TABLE "multiple_medalists" (
"athlete_nation" text,
"olympics" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("total") FROM "multiple_medalists" WHERE "gold"<3; | 2-1154762-2 |
What's the lowest amount of laps with a start of 21? | CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
); | SELECT MIN("laps") FROM "indy_500_results" WHERE "start"='21'; | 2-1172842-1 |
What was the start of the competitor with a qualifying time of 84.300? | CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
); | SELECT "start" FROM "indy_500_results" WHERE "qual"='84.300'; | 2-1172842-1 |
In what year were there more laps than 200 in a race? | CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
); | SELECT "year" FROM "indy_500_results" WHERE "laps">200; | 2-1172842-1 |
what is the current version of the project64 with gpl v2 license? | CREATE TABLE "nintendo_64" (
"name" text,
"current_version" text,
"system" text,
"platform" text,
"license" text
); | SELECT "current_version" FROM "nintendo_64" WHERE "license"='gpl v2' AND "name"='project64'; | 2-11561548-9 |
what is the current version of the name mupen64plus with gpl v2 license? | CREATE TABLE "nintendo_64" (
"name" text,
"current_version" text,
"system" text,
"platform" text,
"license" text
); | SELECT "current_version" FROM "nintendo_64" WHERE "license"='gpl v2' AND "name"='mupen64plus'; | 2-11561548-9 |
what is the current version with license gpl v3? | CREATE TABLE "nintendo_64" (
"name" text,
"current_version" text,
"system" text,
"platform" text,
"license" text
); | SELECT "current_version" FROM "nintendo_64" WHERE "license"='gpl v3'; | 2-11561548-9 |
What leading man earlier than 1932 was directed by archie mayo? | CREATE TABLE "films" (
"year" real,
"film" text,
"role" text,
"leading_man" text,
"director" text
); | SELECT "leading_man" FROM "films" WHERE "year"<1932 AND "director"='archie mayo'; | 2-11350172-1 |
What year was the role nan taylor, alias of nan ellis, aka mrs. andrews and directed by William keighley? | CREATE TABLE "films" (
"year" real,
"film" text,
"role" text,
"leading_man" text,
"director" text
); | SELECT SUM("year") FROM "films" WHERE "role"='nan taylor, alias of nan ellis, aka mrs. andrews' AND "director"='william keighley'; | 2-11350172-1 |
What is the latest year for the role of joan gordon, aka francine la rue? | CREATE TABLE "films" (
"year" real,
"film" text,
"role" text,
"leading_man" text,
"director" text
); | SELECT MAX("year") FROM "films" WHERE "role"='joan gordon, aka francine la rue'; | 2-11350172-1 |
What film has a leading man of adolphe menjou in 1939? | CREATE TABLE "films" (
"year" real,
"film" text,
"role" text,
"leading_man" text,
"director" text
); | SELECT "film" FROM "films" WHERE "leading_man"='adolphe menjou' AND "year"=1939; | 2-11350172-1 |
What film was the director william a. wellman, later than 1931 with a leading man of george brent, and a Role of joan gordon, aka francine la rue? | CREATE TABLE "films" (
"year" real,
"film" text,
"role" text,
"leading_man" text,
"director" text
); | SELECT "film" FROM "films" WHERE "director"='william a. wellman' AND "year">1931 AND "leading_man"='george brent' AND "role"='joan gordon, aka francine la rue'; | 2-11350172-1 |
What director directed the role of shelby barret wyatt in 1935? | CREATE TABLE "films" (
"year" real,
"film" text,
"role" text,
"leading_man" text,
"director" text
); | SELECT "director" FROM "films" WHERE "year"=1935 AND "role"='shelby barret wyatt'; | 2-11350172-1 |
What is the weekly rank for a share of 9 and 9.42 million viewers? | CREATE TABLE "ratings" (
"air_date" text,
"timeslot_est" text,
"season" text,
"rating" real,
"share" real,
"18_49_rating_share" text,
"viewers_m" real,
"weekly_rank_num" text
); | SELECT "weekly_rank_num" FROM "ratings" WHERE "share"=9 AND "viewers_m"=9.42; | 2-11754447-2 |
What is the sum of all ratings at a weekly rank of 10 and a share less than 11? | CREATE TABLE "ratings" (
"air_date" text,
"timeslot_est" text,
"season" text,
"rating" real,
"share" real,
"18_49_rating_share" text,
"viewers_m" real,
"weekly_rank_num" text
); | SELECT SUM("rating") FROM "ratings" WHERE "weekly_rank_num"='10' AND "share"<11; | 2-11754447-2 |
What is the highest number of viewers for a rating greater than 9.4? | CREATE TABLE "ratings" (
"air_date" text,
"timeslot_est" text,
"season" text,
"rating" real,
"share" real,
"18_49_rating_share" text,
"viewers_m" real,
"weekly_rank_num" text
); | SELECT MAX("viewers_m") FROM "ratings" WHERE "rating">9.4; | 2-11754447-2 |
What is the rating/share with more than 8.88 million viewers and a weekly rant of 27? | CREATE TABLE "ratings" (
"air_date" text,
"timeslot_est" text,
"season" text,
"rating" real,
"share" real,
"18_49_rating_share" text,
"viewers_m" real,
"weekly_rank_num" text
); | SELECT "18_49_rating_share" FROM "ratings" WHERE "viewers_m">8.88 AND "weekly_rank_num"='27'; | 2-11754447-2 |
Which athlete performed before 1984 in an 800 m event? | CREATE TABLE "bislett_games" (
"year" real,
"event" text,
"record" text,
"athlete" text,
"nationality" text
); | SELECT "athlete" FROM "bislett_games" WHERE "year"<1984 AND "event"='800 m'; | 2-1102696-1 |
What venue has the away side scoring 6.5 (41)? | 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_score"='6.5 (41)'; | 2-10887379-12 |
How many attended the game when the home team's score is 5.6 (36)? | 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 "crowd" FROM "round_12" WHERE "home_team_score"='5.6 (36)'; | 2-10887379-12 |
What is the lowest number of points that Tevita Vaikona scored when making more than 23 tries? | CREATE TABLE "2001_squad_statistics" (
"player" text,
"position" text,
"tries" real,
"goals" real,
"points" real
); | SELECT MIN("points") FROM "2001_squad_statistics" WHERE "tries">23 AND "player"='tevita vaikona'; | 2-10814471-9 |
What is the average number of points scored by Joe Vagana when making fewer than 2 tries? | CREATE TABLE "2001_squad_statistics" (
"player" text,
"position" text,
"tries" real,
"goals" real,
"points" real
); | SELECT AVG("points") FROM "2001_squad_statistics" WHERE "player"='joe vagana' AND "tries"<2; | 2-10814471-9 |
What is the competition that had a win result and a score of 3-1? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "competition" FROM "international_goals" WHERE "result"='win' AND "score"='3-1'; | 2-11847478-2 |
What is the venue of the match that had a win result and a score of 0-4 in the 2002 Tiger Cup Group Stage? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "venue" FROM "international_goals" WHERE "result"='win' AND "competition"='2002 tiger cup group stage' AND "score"='0-4'; | 2-11847478-2 |
What is the score of the match on July 22, 2008? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "score" FROM "international_goals" WHERE "date"='july 22, 2008'; | 2-11847478-2 |
What is the score of the 2002 Tiger Cup third/fourth place match? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "score" FROM "international_goals" WHERE "competition"='2002 tiger cup third/fourth place'; | 2-11847478-2 |
What is the competition on October 15, 2008? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "competition" FROM "international_goals" WHERE "date"='october 15, 2008'; | 2-11847478-2 |
What is the player that went to st. benedict's prep? | CREATE TABLE "2008_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
); | SELECT "player" FROM "2008_boys_team" WHERE "school"='st. benedict''s prep'; | 2-11677760-20 |
What is the NBA draft for ohio state? | CREATE TABLE "2008_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
); | SELECT "nba_draft" FROM "2008_boys_team" WHERE "college"='ohio state'; | 2-11677760-20 |
What school did the player that is 6-6 go to? | CREATE TABLE "2008_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
); | SELECT "school" FROM "2008_boys_team" WHERE "height"='6-6'; | 2-11677760-20 |
What school did samardo samuels go to? | CREATE TABLE "2008_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
); | SELECT "school" FROM "2008_boys_team" WHERE "player"='samardo samuels'; | 2-11677760-20 |
What is the final for middleweight –75 kg? | CREATE TABLE "boxing" (
"athlete" text,
"event" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinal" text,
"semifinal" text,
"final" text
); | SELECT "final" FROM "boxing" WHERE "event"='middleweight –75 kg'; | 2-10831471-12 |
For the light heavyweight –81 kg event that did not advance to semifinal, who was the athlete? | CREATE TABLE "boxing" (
"athlete" text,
"event" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinal" text,
"semifinal" text,
"final" text
); | SELECT "athlete" FROM "boxing" WHERE "semifinal"='did not advance' AND "event"='light heavyweight –81 kg'; | 2-10831471-12 |
What was the final for rouhollah hosseini? | CREATE TABLE "boxing" (
"athlete" text,
"event" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinal" text,
"semifinal" text,
"final" text
); | SELECT "final" FROM "boxing" WHERE "athlete"='rouhollah hosseini'; | 2-10831471-12 |
When the round of 32 was n/a and quarterfinal was did not advance, what was the round of 16? | CREATE TABLE "boxing" (
"athlete" text,
"event" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinal" text,
"semifinal" text,
"final" text
); | SELECT "round_of_16" FROM "boxing" WHERE "quarterfinal"='did not advance' AND "round_of_32"='n/a'; | 2-10831471-12 |
Can you tell me a date that has a crowd larger than 20,771, and a Venue at Windy Hill? | 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 "crowd">'20,771' AND "venue"='windy hill'; | 2-10826385-9 |
What Home team that has the Home team score of 9.19 (73)? | CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team" FROM "round_9" WHERE "home_team_score"='9.19 (73)'; | 2-10826385-9 |
Can you tell me the Home team that has a Venue of Windy Hill? | CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team" FROM "round_9" WHERE "venue"='windy hill'; | 2-10826385-9 |
What Venue that has the Away team score of 16.9 (105)? | 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 "venue" FROM "round_9" WHERE "away_team_score"='16.9 (105)'; | 2-10826385-9 |
Can you tell me the Away team that has the Away team score of 6.11 (47)? | 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 "away_team" FROM "round_9" WHERE "away_team_score"='6.11 (47)'; | 2-10826385-9 |
What was the lowest attendance at a game when Pittsburgh was the home team? | CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT MIN("attendance") FROM "regular_season" WHERE "home"='pittsburgh'; | 2-11902580-7 |
What was the date of the game when Atlanta was the home team? | CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "date" FROM "regular_season" WHERE "home"='atlanta'; | 2-11902580-7 |
What was the decision of the game when Montreal was the home team? | CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "decision" FROM "regular_season" WHERE "home"='montreal'; | 2-11902580-7 |
What was the date of the game with a decision of Niittymaki and when the Flyers had a record of 30–21–5? | CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "date" FROM "regular_season" WHERE "decision"='niittymaki' AND "record"='30–21–5'; | 2-11902580-7 |
Which Position has a Nationality of united states, and a Pick of 9? | CREATE TABLE "selections" (
"round" real,
"pick" real,
"position" text,
"nationality" text,
"school_club_team" text
); | SELECT "position" FROM "selections" WHERE "nationality"='united states' AND "pick"=9; | 2-11247292-5 |
What is the average Pick with a Position of pg, and a Round less than 1? | CREATE TABLE "selections" (
"round" real,
"pick" real,
"position" text,
"nationality" text,
"school_club_team" text
); | SELECT AVG("pick") FROM "selections" WHERE "position"='pg' AND "round"<1; | 2-11247292-5 |
Which top ten, having less than 12 cuts less than 2 top five, and events smaller than 14, is the highest? | CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
); | SELECT MAX("top_10") FROM "summary" WHERE "cuts_made"<12 AND "top_5"<2 AND "events"<14; | 2-1157761-9 |
What is the average for the top five having a number of 42 cuts made. | CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
); | SELECT AVG("top_5") FROM "summary" WHERE "cuts_made"=42; | 2-1157761-9 |
Tell me the score on april 27 with visitor of buffalo | CREATE TABLE "eastern_conference_quarter_finals_vs_2" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "score" FROM "eastern_conference_quarter_finals_vs_2" WHERE "visitor"='buffalo' AND "date"='april 27'; | 2-11290838-3 |
Where was the game that the home team scored 12.15 (87)? | CREATE TABLE "round_22" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "venue" FROM "round_22" WHERE "home_team_score"='12.15 (87)'; | 2-10823950-22 |
How many people attended Melbourne's away game? | CREATE TABLE "round_22" (
"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_22" WHERE "away_team"='melbourne'; | 2-10823950-22 |
What was the home team's score when the away team scored 15.17 (107)? | CREATE TABLE "round_22" (
"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_22" WHERE "away_team_score"='15.17 (107)'; | 2-10823950-22 |
Who won the game at Dairy farmers stadium with a score of 28-24? | CREATE TABLE "golden_point_results" (
"opponent" text,
"result" text,
"score" text,
"date" text,
"venue" text
); | SELECT "result" FROM "golden_point_results" WHERE "venue"='dairy farmers stadium' AND "score"='28-24'; | 2-10848585-12 |
Who won that game on 24 July 2010? | CREATE TABLE "golden_point_results" (
"opponent" text,
"result" text,
"score" text,
"date" text,
"venue" text
); | SELECT "result" FROM "golden_point_results" WHERE "date"='24 july 2010'; | 2-10848585-12 |
Who loss the 24-28 game? | CREATE TABLE "golden_point_results" (
"opponent" text,
"result" text,
"score" text,
"date" text,
"venue" text
); | SELECT "opponent" FROM "golden_point_results" WHERE "result"='loss' AND "score"='24-28'; | 2-10848585-12 |
Who scored 18-19? | CREATE TABLE "golden_point_results" (
"opponent" text,
"result" text,
"score" text,
"date" text,
"venue" text
); | SELECT "opponent" FROM "golden_point_results" WHERE "score"='18-19'; | 2-10848585-12 |
Which rank has more than 1 silver and a total nation? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT "rank" FROM "medal_table" WHERE "silver">1 AND "nation"='total'; | 2-12082591-3 |
What is the lowest total from slovenia with a Gold smaller than 0? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("total") FROM "medal_table" WHERE "nation"='slovenia' AND "gold"<0; | 2-12082591-3 |
What class has less than 12 numbers built operated by southern? | CREATE TABLE "fleet_details" (
"class" text,
"operator" text,
"no_built" real,
"year_built" text,
"cars_per_set" real,
"unit_nos" text
); | SELECT "class" FROM "fleet_details" WHERE "no_built"<12 AND "operator"='southern'; | 2-1112993-1 |
Tell me the episode with an 18-49 rating of 2.0/5 | CREATE TABLE "weekly" (
"episode" text,
"air_date" text,
"timeslot" text,
"households_rating_share" text,
"18_49_rating_share" text,
"viewers_m" real,
"weekly_rank_num" text
); | SELECT "episode" FROM "weekly" WHERE "18_49_rating_share"='2.0/5'; | 2-11752993-3 |
Name the episode for viewers bigger than 5.63 and the households rating is 4.5/7 | CREATE TABLE "weekly" (
"episode" text,
"air_date" text,
"timeslot" text,
"households_rating_share" text,
"18_49_rating_share" text,
"viewers_m" real,
"weekly_rank_num" text
); | SELECT "episode" FROM "weekly" WHERE "viewers_m">5.63 AND "households_rating_share"='4.5/7'; | 2-11752993-3 |
Name the 18-49 rating for weekly rank of 30 | CREATE TABLE "weekly" (
"episode" text,
"air_date" text,
"timeslot" text,
"households_rating_share" text,
"18_49_rating_share" text,
"viewers_m" real,
"weekly_rank_num" text
); | SELECT "18_49_rating_share" FROM "weekly" WHERE "weekly_rank_num"='30'; | 2-11752993-3 |
Who was the driver with 29 laps? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
); | SELECT "driver" FROM "race" WHERE "laps"='29'; | 2-1123463-2 |
What was the retired time for someone who was on grid 18? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
); | SELECT "time_retired" FROM "race" WHERE "grid"='18'; | 2-1123463-2 |
Jacques Villeneuve was on what grid? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
); | SELECT "grid" FROM "race" WHERE "driver"='jacques villeneuve'; | 2-1123463-2 |
What's the time for someone on grid 9? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
); | SELECT "time_retired" FROM "race" WHERE "grid"='9'; | 2-1123463-2 |
What was the grid of Alex Yoong? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
); | SELECT "grid" FROM "race" WHERE "driver"='alex yoong'; | 2-1123463-2 |
What date was the game played at Lake Oval? | CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "date" FROM "round_6" WHERE "venue"='lake oval'; | 2-10808933-6 |
How many people came to the game at 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 COUNT("crowd") FROM "round_6" WHERE "venue"='victoria park'; | 2-10808933-6 |
Who lost to moyer (9–4)? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "opponent" FROM "game_log" WHERE "loss"='moyer (9–4)'; | 2-11485080-6 |
How many people attended when the record was broken with 47–63? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "attendance" FROM "game_log" WHERE "record"='47–63'; | 2-11485080-6 |
Who is the home team that played the away team that scored 11.13 (79)? | 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 "away_team_score"='11.13 (79)'; | 2-10790397-4 |
What is the score of the home team that played Collingwood? | 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 "away_team"='collingwood'; | 2-10790397-4 |
Who is the away team that played at punt road oval where the crowd was larger than 12,000? | 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 "crowd">'12,000' AND "venue"='punt road oval'; | 2-10790397-4 |
Who was the visitor when ward recorded the decision with a record of 22–21–4? | CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "visitor" FROM "january" WHERE "decision"='ward' AND "record"='22–21–4'; | 2-11772511-6 |
What is the score of the game when they had a record of 22–19–4? | CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "score" FROM "january" WHERE "record"='22–19–4'; | 2-11772511-6 |
What is the 1st week sales for the album finding forever before the number 6? | CREATE TABLE "highest_first_week_sales" (
"number" real,
"artist" text,
"album" text,
"1st_week_sales" real,
"1st_week_position" text
); | SELECT SUM("1st_week_sales") FROM "highest_first_week_sales" WHERE "album"='finding forever' AND "number"<6; | 2-11169458-2 |
What is the album for the number 6 with the 1st week position of #1? | CREATE TABLE "highest_first_week_sales" (
"number" real,
"artist" text,
"album" text,
"1st_week_sales" real,
"1st_week_position" text
); | SELECT "album" FROM "highest_first_week_sales" WHERE "1st_week_position"='#1' AND "number"=6; | 2-11169458-2 |
What is the sum number of grid where time/retired is 2:41:38.4 and laps were more than 40? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT COUNT("grid") FROM "classification" WHERE "time_retired"='2:41:38.4' AND "laps">40; | 2-1122338-1 |
Which constructor had laps amounting to more than 21 where the driver was John Surtees? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "constructor" FROM "classification" WHERE "laps">21 AND "driver"='john surtees'; | 2-1122338-1 |
How many laps did Jo Bonnier driver when the grid number was smaller than 11? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT SUM("laps") FROM "classification" WHERE "driver"='jo bonnier' AND "grid"<11; | 2-1122338-1 |
How many laps were there when time/retired was gearbox? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT SUM("laps") FROM "classification" WHERE "time_retired"='gearbox'; | 2-1122338-1 |
How many were in attendance at the game where the visiting team was the Jazz? | CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
); | SELECT SUM("attendance") FROM "february" WHERE "visitor"='jazz'; | 2-11965402-6 |
Who did the Chiefs play at the game attended by 34,063? | CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT "opponent" FROM "season_schedule" WHERE "attendance"='34,063'; | 2-11824195-1 |
Which week's game was attended by 33,057 people? | CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT "week" FROM "season_schedule" WHERE "attendance"='33,057'; | 2-11824195-1 |
what is the organisation when the year is less than 2005 and the award is the best variety show host? | CREATE TABLE "awards_achievements" (
"year" real,
"organisation" text,
"award" text,
"nominated_work_title" text,
"result" text
); | SELECT "organisation" FROM "awards_achievements" WHERE "year"<2005 AND "award"='best variety show host'; | 2-11151539-4 |
what is the organisation when the nominated work title is n/a in the year 2005? | CREATE TABLE "awards_achievements" (
"year" real,
"organisation" text,
"award" text,
"nominated_work_title" text,
"result" text
); | SELECT "organisation" FROM "awards_achievements" WHERE "nominated_work_title"='n/a' AND "year"=2005; | 2-11151539-4 |
what is the lowest year with the result is nominated for the work title is love bites? | CREATE TABLE "awards_achievements" (
"year" real,
"organisation" text,
"award" text,
"nominated_work_title" text,
"result" text
); | SELECT MIN("year") FROM "awards_achievements" WHERE "result"='nominated' AND "nominated_work_title"='love bites'; | 2-11151539-4 |
what is the year when then organisation is star awards, the result is won and the nominated work title is n/a? | CREATE TABLE "awards_achievements" (
"year" real,
"organisation" text,
"award" text,
"nominated_work_title" text,
"result" text
); | SELECT "year" FROM "awards_achievements" WHERE "organisation"='star awards' AND "result"='won' AND "nominated_work_title"='n/a'; | 2-11151539-4 |
what is the latest year that has the result of nominated and the nominated work title is n/a? | CREATE TABLE "awards_achievements" (
"year" real,
"organisation" text,
"award" text,
"nominated_work_title" text,
"result" text
); | SELECT MAX("year") FROM "awards_achievements" WHERE "result"='nominated' AND "nominated_work_title"='n/a'; | 2-11151539-4 |
what is the nominated work title when the result is won, the organisation is star awards and the award is top 10 most popular female artiste in the year 2007? | CREATE TABLE "awards_achievements" (
"year" real,
"organisation" text,
"award" text,
"nominated_work_title" text,
"result" text
); | SELECT "nominated_work_title" FROM "awards_achievements" WHERE "result"='won' AND "organisation"='star awards' AND "award"='top 10 most popular female artiste' AND "year">2007; | 2-11151539-4 |
What is the rank of the games that had 9 gold and 9 silvers? | CREATE TABLE "asian_games" (
"games" text,
"gold" text,
"silver" text,
"bronze" text,
"total" text,
"rank" text
); | SELECT "rank" FROM "asian_games" WHERE "gold"='9' AND "silver"='9'; | 2-10882501-1 |
How many golds were there in a game that has 17 bronze and a total of 31? | CREATE TABLE "asian_games" (
"games" text,
"gold" text,
"silver" text,
"bronze" text,
"total" text,
"rank" text
); | SELECT "gold" FROM "asian_games" WHERE "bronze"='17' AND "total"='31'; | 2-10882501-1 |
Which game had 8 bronze and 4 gold? | CREATE TABLE "asian_games" (
"games" text,
"gold" text,
"silver" text,
"bronze" text,
"total" text,
"rank" text
); | SELECT "games" FROM "asian_games" WHERE "bronze"='8' AND "gold"='4'; | 2-10882501-1 |
When did San Jose visit the St. Louis? | CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "date" FROM "march" WHERE "visitor"='san jose'; | 2-11801649-8 |
How many total wins with the latest win at the 1999 Italian Grand Prix at a rank of 15? | CREATE TABLE "world_championship_grand_prix_wins_by_en" (
"rank" real,
"engine" text,
"wins" real,
"first_win" text,
"latest_win" text
); | SELECT SUM("wins") FROM "world_championship_grand_prix_wins_by_en" WHERE "latest_win"='1999 italian grand prix' AND "rank">15; | 2-11034903-1 |
What is the rank 6 lowest win who's first win was at the 1950 British Grand Prix? | CREATE TABLE "world_championship_grand_prix_wins_by_en" (
"rank" real,
"engine" text,
"wins" real,
"first_win" text,
"latest_win" text
); | SELECT MIN("wins") FROM "world_championship_grand_prix_wins_by_en" WHERE "rank">6 AND "first_win"='1950 british grand prix'; | 2-11034903-1 |
What is the rank 16 wins with the latest win at the 1967 Belgian Grand Prix? | CREATE TABLE "world_championship_grand_prix_wins_by_en" (
"rank" real,
"engine" text,
"wins" real,
"first_win" text,
"latest_win" text
); | SELECT "wins" FROM "world_championship_grand_prix_wins_by_en" WHERE "rank">16 AND "latest_win"='1967 belgian grand prix'; | 2-11034903-1 |
What's the lowest pick for a defensive back at Drake? | CREATE TABLE "nfl_draft" (
"pick" real,
"round" text,
"player" text,
"position" text,
"school" text
); | SELECT MIN("pick") FROM "nfl_draft" WHERE "position"='defensive back' AND "school"='drake'; | 2-11406866-1 |
What's terry jones' lowest pick? | CREATE TABLE "nfl_draft" (
"pick" real,
"round" text,
"player" text,
"position" text,
"school" text
); | SELECT MIN("pick") FROM "nfl_draft" WHERE "player"='terry jones'; | 2-11406866-1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.