question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
Who is the visitor team of the game where Buffalo was the home team? | CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "visitor" FROM "february" WHERE "home"='buffalo'; | 2-12019734-7 |
What driver has grid number 18? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "driver" FROM "race" WHERE "grid"=18; | 2-1099518-2 |
What is the time or retired time for timo glock with under 70 laps and a grid number greater than 15? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "time_retired" FROM "race" WHERE "laps"<70 AND "grid">15 AND "driver"='timo glock'; | 2-1099518-2 |
Kecamatan Bogor Timur has more than 6 villages, what is the area in km²? | CREATE TABLE "districts_of_bogor_city" (
"english_name" text,
"original_name" text,
"area_in_km" real,
"population_at_2010_census" real,
"number_of_settlements_and_villages" real
); | SELECT SUM("area_in_km") FROM "districts_of_bogor_city" WHERE "original_name"='kecamatan bogor timur' AND "number_of_settlements_and_villages">6; | 2-1104312-5 |
There are less than 11 settlements in Kecamatan Bogor Tengah, what is the area in km²? | CREATE TABLE "districts_of_bogor_city" (
"english_name" text,
"original_name" text,
"area_in_km" real,
"population_at_2010_census" real,
"number_of_settlements_and_villages" real
); | SELECT SUM("area_in_km") FROM "districts_of_bogor_city" WHERE "original_name"='kecamatan bogor tengah' AND "number_of_settlements_and_villages"<11; | 2-1104312-5 |
Luxembourg received how many gold medals? | CREATE TABLE "medal_count" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("gold") FROM "medal_count" WHERE "nation"='luxembourg'; | 2-11149631-1 |
what is the sum of tonnage when the type of ship is twin screw ro-ro motorship and the date entered service is 11 february 1983? | CREATE TABLE "ships_operated_by_zeeland_steamship_comp" (
"ship_s_name" text,
"date_entered_service" text,
"date_withdrawn" text,
"tonnage" real,
"type_of_ship" text
); | SELECT SUM("tonnage") FROM "ships_operated_by_zeeland_steamship_comp" WHERE "type_of_ship"='twin screw ro-ro motorship' AND "date_entered_service"='11 february 1983'; | 2-11662133-3 |
what is the ships name that is a twin screw ro-ro motorship and entered service on 11 february 1983? | CREATE TABLE "ships_operated_by_zeeland_steamship_comp" (
"ship_s_name" text,
"date_entered_service" text,
"date_withdrawn" text,
"tonnage" real,
"type_of_ship" text
); | SELECT "ship_s_name" FROM "ships_operated_by_zeeland_steamship_comp" WHERE "type_of_ship"='twin screw ro-ro motorship' AND "date_entered_service"='11 february 1983'; | 2-11662133-3 |
what is the least tonnage for the ship(s) that entered service on 11 february 1983? | CREATE TABLE "ships_operated_by_zeeland_steamship_comp" (
"ship_s_name" text,
"date_entered_service" text,
"date_withdrawn" text,
"tonnage" real,
"type_of_ship" text
); | SELECT MIN("tonnage") FROM "ships_operated_by_zeeland_steamship_comp" WHERE "date_entered_service"='11 february 1983'; | 2-11662133-3 |
what is the name of the ship that was withdrawn from service on 25 march 1986? | CREATE TABLE "ships_operated_by_zeeland_steamship_comp" (
"ship_s_name" text,
"date_entered_service" text,
"date_withdrawn" text,
"tonnage" real,
"type_of_ship" text
); | SELECT "ship_s_name" FROM "ships_operated_by_zeeland_steamship_comp" WHERE "date_withdrawn"='25 march 1986'; | 2-11662133-3 |
what is the tonnage of the ship koningin juliana? | CREATE TABLE "ships_operated_by_zeeland_steamship_comp" (
"ship_s_name" text,
"date_entered_service" text,
"date_withdrawn" text,
"tonnage" real,
"type_of_ship" text
); | SELECT "tonnage" FROM "ships_operated_by_zeeland_steamship_comp" WHERE "ship_s_name"='koningin juliana'; | 2-11662133-3 |
What's the sum of gold where silver is more than 2 and the total is 12? | CREATE TABLE "medal_count" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT SUM("gold") FROM "medal_count" WHERE "silver">2 AND "total"=12; | 2-113360-1 |
What's the lowest gold with a total of 4 and less than 2 silver for liechtenstein? | CREATE TABLE "medal_count" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("gold") FROM "medal_count" WHERE "total"=4 AND "nation"='liechtenstein' AND "silver"<2; | 2-113360-1 |
What's the total number of gold where the total is less than 23 and the rank is over 10? | CREATE TABLE "medal_count" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("gold") FROM "medal_count" WHERE "total"<23 AND "rank">10; | 2-113360-1 |
What's the sum of total where the rank is over 9 and the gold is less than 1? | CREATE TABLE "medal_count" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("total") FROM "medal_count" WHERE "rank">9 AND "gold"<1; | 2-113360-1 |
What was the attendance number for the Timberwolves game? | CREATE TABLE "standings" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"location_attendance" real,
"record" text
); | SELECT SUM("location_attendance") FROM "standings" WHERE "team"='timberwolves'; | 2-11965574-8 |
What did the team score when playing at home with a score of 13.8 (86)? | 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 "away_team_score"='13.8 (86)'; | 2-10809368-10 |
What was the smallest crowd at home with a score of 15.8 (98)? | 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"='15.8 (98)'; | 2-10809368-10 |
What is the combined of Crowd when richmond played at home? | 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 COUNT("crowd") FROM "round_10" WHERE "home_team"='richmond'; | 2-10809368-10 |
What did the team score when playing against an away team with a score of 13.8 (86)? | 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 "away_team_score"='13.8 (86)'; | 2-10809368-10 |
What opponent has a result of 3–6, 6–2, 4–6? | CREATE TABLE "singles_21_5" (
"edition" text,
"round" text,
"date" text,
"surface" text,
"opponent" text,
"result" text
); | SELECT "opponent" FROM "singles_21_5" WHERE "result"='3–6, 6–2, 4–6'; | 2-1092361-11 |
When was the 1991 world group I with the opponent of Li Fang? | CREATE TABLE "singles_21_5" (
"edition" text,
"round" text,
"date" text,
"surface" text,
"opponent" text,
"result" text
); | SELECT "date" FROM "singles_21_5" WHERE "edition"='1991 world group i' AND "opponent"='li fang'; | 2-1092361-11 |
On July 15, 1984 what surface was used? | CREATE TABLE "singles_21_5" (
"edition" text,
"round" text,
"date" text,
"surface" text,
"opponent" text,
"result" text
); | SELECT "surface" FROM "singles_21_5" WHERE "date"='july 15, 1984'; | 2-1092361-11 |
For what round was the opponent mercedes paz with a result of 4–6, 6–1, 6–3? | CREATE TABLE "singles_21_5" (
"edition" text,
"round" text,
"date" text,
"surface" text,
"opponent" text,
"result" text
); | SELECT "round" FROM "singles_21_5" WHERE "opponent"='mercedes paz' AND "result"='4–6, 6–1, 6–3'; | 2-1092361-11 |
What surface was used on July 17, 1983? | CREATE TABLE "singles_21_5" (
"edition" text,
"round" text,
"date" text,
"surface" text,
"opponent" text,
"result" text
); | SELECT "surface" FROM "singles_21_5" WHERE "date"='july 17, 1983'; | 2-1092361-11 |
What was the result on October 8, 1985? | CREATE TABLE "singles_21_5" (
"edition" text,
"round" text,
"date" text,
"surface" text,
"opponent" text,
"result" text
); | SELECT "result" FROM "singles_21_5" WHERE "date"='october 8, 1985'; | 2-1092361-11 |
Name the highest pick number for PI GP more than 55 | CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
"rd_num" real,
"pick_num" real,
"player" text,
"team_league" text,
"reg_gp" real,
"pl_gp" real
); | SELECT MAX("pick_num") FROM "list_of_vancouver_canucks_draft_picks" WHERE "pl_gp">55; | 2-11636955-37 |
Name the least RD number that has PI GP more than 0 and pick # more than 51 | CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
"rd_num" real,
"pick_num" real,
"player" text,
"team_league" text,
"reg_gp" real,
"pl_gp" real
); | SELECT MIN("rd_num") FROM "list_of_vancouver_canucks_draft_picks" WHERE "pl_gp">0 AND "pick_num">51; | 2-11636955-37 |
What day did Footscray play 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 "date" FROM "round_12" WHERE "away_team"='footscray'; | 2-10808933-12 |
What was Hawthorn's away teams opponents score? | CREATE TABLE "round_12" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "away_team_score" FROM "round_12" WHERE "home_team"='hawthorn'; | 2-10808933-12 |
What was the attendance of april 17? | CREATE TABLE "playoffs" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
); | SELECT SUM("attendance") FROM "playoffs" WHERE "date"='april 17'; | 2-11739153-10 |
What was the loss of the Mariners game when they had a record of 21-34? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "loss" FROM "game_log" WHERE "record"='21-34'; | 2-11664564-6 |
Who did the Mariners play when they had a record of 33-45? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "opponent" FROM "game_log" WHERE "record"='33-45'; | 2-11664564-6 |
What was the loss of the Mariners game when they had a record of 22-35? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "loss" FROM "game_log" WHERE "record"='22-35'; | 2-11664564-6 |
What was the record for the game attended by 35,614 spectators? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "record" FROM "game_log" WHERE "attendance"='35,614'; | 2-11741681-2 |
What is the record for April 8? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "record" FROM "game_log" WHERE "date"='april 8'; | 2-11741681-2 |
What was the attendance for the game that has a record of 1-1? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "attendance" FROM "game_log" WHERE "record"='1-1'; | 2-11741681-2 |
What is the record for the game with an attendance of 35,305? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "record" FROM "game_log" WHERE "attendance"='35,305'; | 2-11741681-2 |
what is the grid when the driver is louis rosier and the laps is more than 78? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MIN("grid") FROM "classification" WHERE "driver"='louis rosier' AND "laps">78; | 2-1122082-1 |
what is the time/retired when the driver is toulo de graffenried? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "time_retired" FROM "classification" WHERE "driver"='toulo de graffenried'; | 2-1122082-1 |
what is the laps when the driver is tony rolt and the grid is less than 10? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT SUM("laps") FROM "classification" WHERE "driver"='tony rolt' AND "grid"<10; | 2-1122082-1 |
what is the time/retired when the constructor is maserati and the laps is 90? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "time_retired" FROM "classification" WHERE "constructor"='maserati' AND "laps"=90; | 2-1122082-1 |
What is the average Attendance at Venue A on 16 October 2004? | CREATE TABLE "matches" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
); | SELECT AVG("attendance") FROM "matches" WHERE "venue"='a' AND "date"='16 october 2004'; | 2-12108114-5 |
What is the lowest Attendance when Middlesbrough played at Venue A? | CREATE TABLE "matches" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
); | SELECT MIN("attendance") FROM "matches" WHERE "opponent"='middlesbrough' AND "venue"='a'; | 2-12108114-5 |
Who was the home team when the away team scored 14.21 (105)? | 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"='14.21 (105)'; | 2-10887680-13 |
Who was the sponsor for the bill introduced February 28, 2005 with cosponsors less than 200? | CREATE TABLE "legislative_history" (
"congress" text,
"short_title" text,
"bill_number_s" text,
"date_introduced" text,
"sponsor_s" text,
"num_of_cosponsors" real
); | SELECT "sponsor_s" FROM "legislative_history" WHERE "num_of_cosponsors"<200 AND "date_introduced"='february 28, 2005'; | 2-11902016-1 |
What year was Herself nominated at the MTV Movie Awards? | CREATE TABLE "awards_and_nominations" (
"year" real,
"nominated_work" text,
"event" text,
"award" text,
"result" text
); | SELECT MAX("year") FROM "awards_and_nominations" WHERE "nominated_work"='herself' AND "event"='mtv movie awards'; | 2-10784468-3 |
What is the average amount of spectators when Essendon played as the home 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 AVG("crowd") FROM "round_16" WHERE "home_team"='essendon'; | 2-10807673-16 |
What did the away team score at MCG? | CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "away_team_score" FROM "round_16" WHERE "venue"='mcg'; | 2-10807673-16 |
What did the home team score when playing against Collingwood? | CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team_score" FROM "round_16" WHERE "away_team"='collingwood'; | 2-10807673-16 |
Where was the game when Geelong 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 "venue" FROM "round_16" WHERE "away_team"='geelong'; | 2-10807673-16 |
What team was the away team at Arden Street 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"='arden street oval'; | 2-10807673-16 |
What in Xenia's Diameter in km, with a latitude of 14 and a longitude of 249.4? | CREATE TABLE "x" (
"name" text,
"latitude" real,
"longitude" real,
"diameter_km" real,
"named_after" text
); | SELECT COUNT("diameter_km") FROM "x" WHERE "latitude"<14 AND "name"='xenia' AND "longitude">249.4; | 2-1145513-24 |
What is the latitude for a crater with a diameter of 12.8 km and a longitude of 208? | CREATE TABLE "x" (
"name" text,
"latitude" real,
"longitude" real,
"diameter_km" real,
"named_after" text
); | SELECT AVG("latitude") FROM "x" WHERE "diameter_km"<12.8 AND "longitude"<208; | 2-1145513-24 |
Who was the Runner(s)-up in the race with a winning score of 67-66-65-69=267? | CREATE TABLE "european_tour_wins_9" (
"date" text,
"tournament" text,
"winning_score" text,
"to_par" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "runner_s_up" FROM "european_tour_wins_9" WHERE "winning_score"='67-66-65-69=267'; | 2-1080294-5 |
When was the Masters Tournament? | CREATE TABLE "european_tour_wins_9" (
"date" text,
"tournament" text,
"winning_score" text,
"to_par" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "date" FROM "european_tour_wins_9" WHERE "tournament"='masters tournament'; | 2-1080294-5 |
What is the margin of victory in the race where Justin Rose was the runner-up? | CREATE TABLE "european_tour_wins_9" (
"date" text,
"tournament" text,
"winning_score" text,
"to_par" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "margin_of_victory" FROM "european_tour_wins_9" WHERE "runner_s_up"='justin rose'; | 2-1080294-5 |
What tournament took place on 7 Aug 2011? | CREATE TABLE "european_tour_wins_9" (
"date" text,
"tournament" text,
"winning_score" text,
"to_par" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "tournament" FROM "european_tour_wins_9" WHERE "date"='7 aug 2011'; | 2-1080294-5 |
For the team that had 4:05.096, what was their day 2? | CREATE TABLE "qualifying_times" (
"team" text,
"class" text,
"day_1" text,
"day_2" text,
"behind" text
); | SELECT "day_2" FROM "qualifying_times" WHERE "day_1"='4:05.096'; | 2-11769599-2 |
Which team had 3:18.513 on day 1? | CREATE TABLE "qualifying_times" (
"team" text,
"class" text,
"day_1" text,
"day_2" text,
"behind" text
); | SELECT "team" FROM "qualifying_times" WHERE "day_1"='3:18.513'; | 2-11769599-2 |
For the team with a class of gt2 and 3:59.820 on day 2, what was the behind? | CREATE TABLE "qualifying_times" (
"team" text,
"class" text,
"day_1" text,
"day_2" text,
"behind" text
); | SELECT "behind" FROM "qualifying_times" WHERE "class"='gt2' AND "day_2"='3:59.820'; | 2-11769599-2 |
Which team was 3:47.761 on day 2? | CREATE TABLE "qualifying_times" (
"team" text,
"class" text,
"day_1" text,
"day_2" text,
"behind" text
); | SELECT "team" FROM "qualifying_times" WHERE "day_2"='3:47.761'; | 2-11769599-2 |
What is the class of the team that has a behind of +44.780? | CREATE TABLE "qualifying_times" (
"team" text,
"class" text,
"day_1" text,
"day_2" text,
"behind" text
); | SELECT "class" FROM "qualifying_times" WHERE "behind"='+44.780'; | 2-11769599-2 |
For the team with 3:42.162 on day 2, what was the behind? | CREATE TABLE "qualifying_times" (
"team" text,
"class" text,
"day_1" text,
"day_2" text,
"behind" text
); | SELECT "behind" FROM "qualifying_times" WHERE "day_2"='3:42.162'; | 2-11769599-2 |
Which one of the tournaments had a QF in 1996? | CREATE TABLE "juniors" (
"tournament" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text
); | SELECT "tournament" FROM "juniors" WHERE "1996"='qf'; | 2-1118005-1 |
What is the value for the Wimbledon tournament in 1996? | CREATE TABLE "juniors" (
"tournament" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text
); | SELECT "1996" FROM "juniors" WHERE "tournament"='wimbledon'; | 2-1118005-1 |
What year is center Ann Wauters? | CREATE TABLE "see_also" (
"year" real,
"player" text,
"position" text,
"college_country" text,
"wnba_team" text
); | SELECT SUM("year") FROM "see_also" WHERE "position"='center' AND "player"='ann wauters'; | 2-10990409-1 |
What is the earliest year that includes a Seattle Storm guard? | CREATE TABLE "see_also" (
"year" real,
"player" text,
"position" text,
"college_country" text,
"wnba_team" text
); | SELECT MIN("year") FROM "see_also" WHERE "position"='guard' AND "wnba_team"='seattle storm'; | 2-10990409-1 |
Regarding players before 2000, what is the USC player's position? | CREATE TABLE "see_also" (
"year" real,
"player" text,
"position" text,
"college_country" text,
"wnba_team" text
); | SELECT "position" FROM "see_also" WHERE "year"<2000 AND "college_country"='usc'; | 2-10990409-1 |
What is the earliest year a Baylor player made the list? | CREATE TABLE "see_also" (
"year" real,
"player" text,
"position" text,
"college_country" text,
"wnba_team" text
); | SELECT MIN("year") FROM "see_also" WHERE "college_country"='baylor'; | 2-10990409-1 |
What is Sue Bird's position? | CREATE TABLE "see_also" (
"year" real,
"player" text,
"position" text,
"college_country" text,
"wnba_team" text
); | SELECT "position" FROM "see_also" WHERE "player"='sue bird'; | 2-10990409-1 |
Which Builder has a Class of Terrier? | CREATE TABLE "1899_1913" (
"class" text,
"wheels" text,
"date" text,
"builder" text,
"no_built" real
); | SELECT "builder" FROM "1899_1913" WHERE "class"='terrier'; | 2-1169552-12 |
who is the constructor when the laps is less than 68, the grid is more than 20 and the driver is thierry boutsen? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "constructor" FROM "classification" WHERE "laps"<68 AND "grid">20 AND "driver"='thierry boutsen'; | 2-1122974-1 |
what is the laps when the time/retired is turbo and the grid is less than 14? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "laps" FROM "classification" WHERE "time_retired"='turbo' AND "grid"<14; | 2-1122974-1 |
what is the time/retired when the laps is less than 4? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "time_retired" FROM "classification" WHERE "laps"<4; | 2-1122974-1 |
Name the most goals for total club and apps less than 120 | CREATE TABLE "statistics" (
"season" text,
"club" text,
"competition" text,
"apps" real,
"goals" real
); | SELECT MAX("goals") FROM "statistics" WHERE "club"='total' AND "apps"<120; | 2-11395130-1 |
How many goals are associated with 75 games? | CREATE TABLE "afl_draftees" (
"draft" text,
"pick" real,
"player" text,
"club" text,
"games" real,
"goals" real
); | SELECT MAX("goals") FROM "afl_draftees" WHERE "games"=75; | 2-1165048-2 |
What is the position for the Rockets years of 2004-05? | CREATE TABLE "g" (
"player" text,
"no_s" real,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
); | SELECT "position" FROM "g" WHERE "years_for_rockets"='2004-05'; | 2-11734041-7 |
What is the average number of years for the Houston Rockets 2004-05? | CREATE TABLE "g" (
"player" text,
"no_s" real,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
); | SELECT AVG("no_s") FROM "g" WHERE "years_for_rockets"='2004-05'; | 2-11734041-7 |
For the years 1992-93, what position did he play for the Houston Rockets? | CREATE TABLE "g" (
"player" text,
"no_s" real,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
); | SELECT "position" FROM "g" WHERE "years_for_rockets"='1992-93'; | 2-11734041-7 |
What is the total number of years did he play the forward position and what school/club/team/country of Oregon State did he play? | CREATE TABLE "g" (
"player" text,
"no_s" real,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
); | SELECT SUM("no_s") FROM "g" WHERE "position"='forward' AND "school_club_team_country"='oregon state'; | 2-11734041-7 |
How many wins for bruce fleisher with over 31 events? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
); | SELECT AVG("wins") FROM "leaders" WHERE "player"='bruce fleisher' AND "events">31; | 2-11603267-3 |
What is the average rank for players with under 26 events and less than 2 wins? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
); | SELECT AVG("rank") FROM "leaders" WHERE "events"<26 AND "wins"<2; | 2-11603267-3 |
What is the high earnings for players with 34 events and over 2 wins? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
); | SELECT MAX("earnings") FROM "leaders" WHERE "events"=34 AND "wins">2; | 2-11603267-3 |
What is the ranking for bruce fleisher with over $2,411,543? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
); | SELECT SUM("rank") FROM "leaders" WHERE "player"='bruce fleisher' AND "earnings">'2,411,543'; | 2-11603267-3 |
Which tournament had a 2R categorization in 2009 and SF in 2010? | CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
); | SELECT "tournament" FROM "doubles_performance_timeline" WHERE "2009"='2r' AND "2010"='sf'; | 2-11870943-8 |
What is the categorization in 2009 when it was 2R in 2008 and 2011? | CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
); | SELECT "2009" FROM "doubles_performance_timeline" WHERE "2008"='2r' AND "2011"='2r'; | 2-11870943-8 |
What is the categorization in 2012 when it was A in 2008 and 1R in 2011? | CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
); | SELECT "2012" FROM "doubles_performance_timeline" WHERE "2008"='a' AND "2011"='1r'; | 2-11870943-8 |
What is the categorization in 2010 when it was A in 2008 and 20011 while being QF in 2012? | CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
); | SELECT "2010" FROM "doubles_performance_timeline" WHERE "2008"='a' AND "2011"='a' AND "2012"='qf'; | 2-11870943-8 |
What city in the 06/07 season had cagliari and finished 16th in serie a? | CREATE TABLE "2007_08_teams" (
"club" text,
"city" text,
"stadium" text,
"capacity" real,
"2006_2007_season" text
); | SELECT "city" FROM "2007_08_teams" WHERE "2006_2007_season"='16th in serie a' AND "club"='cagliari'; | 2-11150459-1 |
What was the score against home team, Richmond? | 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 "away_team_score" FROM "round_3" WHERE "home_team"='richmond'; | 2-10807673-3 |
What is Fitzroy's smallest crowd size? | 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 MIN("crowd") FROM "round_3" WHERE "home_team"='fitzroy'; | 2-10807673-3 |
How many people attended the game where the away team scored 16.7 (103) points? | 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 COUNT("crowd") FROM "round_3" WHERE "away_team_score"='16.7 (103)'; | 2-10807673-3 |
When was naomi cavaday the opponent? | CREATE TABLE "singles_18_5_13" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
); | SELECT "date" FROM "singles_18_5_13" WHERE "opponent"='naomi cavaday'; | 2-11522060-6 |
When was andrea gámiz the opponent? | CREATE TABLE "singles_18_5_13" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
); | SELECT "date" FROM "singles_18_5_13" WHERE "opponent"='andrea gámiz'; | 2-11522060-6 |
Who is the opponent when the score was 6–4, 6–2 and the surface was clay? | CREATE TABLE "singles_18_5_13" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
); | SELECT "opponent" FROM "singles_18_5_13" WHERE "score"='6–4, 6–2' AND "surface"='clay'; | 2-11522060-6 |
Where was game that had a home team score 18.16 (124)? | 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"='18.16 (124)'; | 2-10826072-22 |
How many points did the away team score when the home team scored 16.14 (110)? | 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 "away_team_score" FROM "round_22" WHERE "home_team_score"='16.14 (110)'; | 2-10826072-22 |
What was the smallest crowd at a home game for essendon? | 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 MIN("crowd") FROM "round_22" WHERE "home_team"='essendon'; | 2-10826072-22 |
Tell me the time/retired for riccardo patrese | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "time_retired" FROM "race" WHERE "driver"='riccardo patrese'; | 2-1123154-2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.