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 nationality for milwaukee hawks? | CREATE TABLE "other_picks" (
"round" text,
"pick" text,
"player" text,
"position" text,
"nationality" text,
"team" text,
"college" text
); | SELECT "nationality" FROM "other_picks" WHERE "team"='milwaukee hawks'; | 2-12086839-4 |
What is the name of the superfund that was proposed on 06/24/1988? | CREATE TABLE "superfund_sites" (
"cerclis_id" text,
"name" text,
"borough_or_census_area" text,
"proposed" text,
"listed" text,
"construction_completed" text,
"partially_deleted" text,
"deleted" text
); | SELECT "name" FROM "superfund_sites" WHERE "proposed"='06/24/1988'; | 2-10834634-1 |
Which team was played against in game 4? | 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 "team" FROM "playoffs" WHERE "game"=4; | 2-11961582-10 |
What is the location attendance of the game with A. Horford (10) as the highest rebounds and J. Johnson (21) as the highest points? | 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 "location_attendance" FROM "playoffs" WHERE "high_rebounds"='a. horford (10)' AND "high_points"='j. johnson (21)'; | 2-11961582-10 |
During what Championship was the Opponent Jeff Borowiak? | CREATE TABLE "singles_18_8_titles_10_runner_ups" (
"outcome" text,
"date" real,
"championship" text,
"surface" text,
"opponent" text,
"score" text
); | SELECT "championship" FROM "singles_18_8_titles_10_runner_ups" WHERE "opponent"='jeff borowiak'; | 2-11084877-1 |
On what Date was the Score of 3–6, 6–4, 3–6, 6–1, 6–2 | CREATE TABLE "singles_18_8_titles_10_runner_ups" (
"outcome" text,
"date" real,
"championship" text,
"surface" text,
"opponent" text,
"score" text
); | SELECT SUM("date") FROM "singles_18_8_titles_10_runner_ups" WHERE "score"='3–6, 6–4, 3–6, 6–1, 6–2'; | 2-11084877-1 |
What is the highest rank for gene littler with under 3 wins and under $962,133? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
); | SELECT MAX("rank") FROM "leaders" WHERE "earnings"<'962,133' AND "player"='gene littler' AND "wins"<3; | 2-11622829-4 |
What tyre is on the talbot-lago and an Entrant of automobiles talbot-darracq sa, and a Chassis of talbot-lago t26c-da? | CREATE TABLE "entries" (
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text
); | SELECT "tyre" FROM "entries" WHERE "constructor"='talbot-lago' AND "entrant"='automobiles talbot-darracq sa' AND "chassis"='talbot-lago t26c-da'; | 2-1122041-1 |
What is the Entrant with a Engine of talbot l6, and Eugène Chaboud was the driver? | CREATE TABLE "entries" (
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text
); | SELECT "entrant" FROM "entries" WHERE "engine"='talbot l6' AND "driver"='eugène chaboud'; | 2-1122041-1 |
What entrant has a P tyre and was constructed by Alfa Romeo? | CREATE TABLE "entries" (
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text
); | SELECT "entrant" FROM "entries" WHERE "tyre"='p' AND "constructor"='alfa romeo'; | 2-1122041-1 |
I want the country for score of 274 and runner-up of virginie lagoutte-clément | CREATE TABLE "winners" (
"year" text,
"date" text,
"venue" text,
"winner" text,
"country" text,
"score" text,
"to_par" text,
"margin_of_victory" text,
"runner_s_up" text,
"winner_s_share" text
); | SELECT "country" FROM "winners" WHERE "score"='274' AND "runner_s_up"='virginie lagoutte-clément'; | 2-11177563-1 |
Tell me the date for 2004 | CREATE TABLE "winners" (
"year" text,
"date" text,
"venue" text,
"winner" text,
"country" text,
"score" text,
"to_par" text,
"margin_of_victory" text,
"runner_s_up" text,
"winner_s_share" text
); | SELECT "date" FROM "winners" WHERE "year"='2004'; | 2-11177563-1 |
What is the margin of victory for nikki garrett? | CREATE TABLE "winners" (
"year" text,
"date" text,
"venue" text,
"winner" text,
"country" text,
"score" text,
"to_par" text,
"margin_of_victory" text,
"runner_s_up" text,
"winner_s_share" text
); | SELECT "margin_of_victory" FROM "winners" WHERE "winner"='nikki garrett'; | 2-11177563-1 |
I want to see the result for venue of n and attendance more than 20,664 | CREATE TABLE "scottish_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
); | SELECT "result" FROM "scottish_cup" WHERE "venue"='n' AND "attendance">'20,664'; | 2-11163521-5 |
Tell me the result for venue of a | CREATE TABLE "scottish_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
); | SELECT "result" FROM "scottish_cup" WHERE "venue"='a'; | 2-11163521-5 |
I want to know the average attendance for n venue and f round | CREATE TABLE "scottish_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
); | SELECT AVG("attendance") FROM "scottish_cup" WHERE "venue"='n' AND "round"='f'; | 2-11163521-5 |
In grid 15, how many laps were there before ending with a time of exhaust? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT SUM("laps") FROM "classification" WHERE "time_retired"='exhaust' AND "grid"<15; | 2-1122950-1 |
What year was class of undine? | CREATE TABLE "1850_1871" (
"class" text,
"wheel_arrangement" text,
"manufacturer" text,
"year_made" text,
"quantity_made" text,
"quantity_preserved" text,
"year_s_withdrawn" text
); | SELECT "year_made" FROM "1850_1871" WHERE "class"='undine'; | 2-1169552-2 |
What was the quantity preserved for quantity made of 15? | CREATE TABLE "1850_1871" (
"class" text,
"wheel_arrangement" text,
"manufacturer" text,
"year_made" text,
"quantity_made" text,
"quantity_preserved" text,
"year_s_withdrawn" text
); | SELECT "quantity_preserved" FROM "1850_1871" WHERE "quantity_made"='15'; | 2-1169552-2 |
Name the year for hercules | CREATE TABLE "1850_1871" (
"class" text,
"wheel_arrangement" text,
"manufacturer" text,
"year_made" text,
"quantity_made" text,
"quantity_preserved" text,
"year_s_withdrawn" text
); | SELECT "year_made" FROM "1850_1871" WHERE "class"='hercules'; | 2-1169552-2 |
When did the tom smith built train enter service with a number under 7007? | CREATE TABLE "locomotives" (
"number" real,
"locomotive_type" text,
"wheel_arrangement" text,
"builder" text,
"entered_service" real,
"withdrawn" real
); | SELECT AVG("entered_service") FROM "locomotives" WHERE "builder"='tom smith' AND "number"<7007; | 2-11658983-1 |
Who is the opponent for the 1985 World Group i edition? | CREATE TABLE "singles_20_9" (
"edition" text,
"round" text,
"date" text,
"surface" text,
"opponent" text,
"result" text
); | SELECT "opponent" FROM "singles_20_9" WHERE "edition"='1985 world group i'; | 2-1096038-12 |
What is the amount of cash on hand that has an after debt of $327,094 | CREATE TABLE "democrats" (
"candidate" text,
"money_raised_3_q" text,
"loans_received_3_q" text,
"money_spent_3_q" text,
"total_receipts" text,
"cash_on_hand" text,
"after_debt" text
); | SELECT "cash_on_hand" FROM "democrats" WHERE "after_debt"='$327,094'; | 2-12030247-6 |
How many receipts does Mike Gravel have? | CREATE TABLE "democrats" (
"candidate" text,
"money_raised_3_q" text,
"loans_received_3_q" text,
"money_spent_3_q" text,
"total_receipts" text,
"cash_on_hand" text,
"after_debt" text
); | SELECT "total_receipts" FROM "democrats" WHERE "candidate"='mike gravel'; | 2-12030247-6 |
What After debt has raised 3Q of $5,358,585? | CREATE TABLE "democrats" (
"candidate" text,
"money_raised_3_q" text,
"loans_received_3_q" text,
"money_spent_3_q" text,
"total_receipts" text,
"cash_on_hand" text,
"after_debt" text
); | SELECT "after_debt" FROM "democrats" WHERE "money_raised_3_q"='$5,358,585'; | 2-12030247-6 |
How much money has been raised that has $5,821,587 cash on hand? | CREATE TABLE "democrats" (
"candidate" text,
"money_raised_3_q" text,
"loans_received_3_q" text,
"money_spent_3_q" text,
"total_receipts" text,
"cash_on_hand" text,
"after_debt" text
); | SELECT "money_raised_3_q" FROM "democrats" WHERE "cash_on_hand"='$5,821,587'; | 2-12030247-6 |
What is the after debt has receipts of $379,794? | CREATE TABLE "democrats" (
"candidate" text,
"money_raised_3_q" text,
"loans_received_3_q" text,
"money_spent_3_q" text,
"total_receipts" text,
"cash_on_hand" text,
"after_debt" text
); | SELECT "after_debt" FROM "democrats" WHERE "total_receipts"='$379,794'; | 2-12030247-6 |
How much money has Candidate Dennis Kucinich spent? | CREATE TABLE "democrats" (
"candidate" text,
"money_raised_3_q" text,
"loans_received_3_q" text,
"money_spent_3_q" text,
"total_receipts" text,
"cash_on_hand" text,
"after_debt" text
); | SELECT "money_spent_3_q" FROM "democrats" WHERE "candidate"='dennis kucinich'; | 2-12030247-6 |
What is the crowd size when the away 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 SUM("crowd") FROM "round_1" WHERE "away_team"='south melbourne'; | 2-10869537-1 |
What was the crowd size at Junction Oval? | 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 MAX("crowd") FROM "round_1" WHERE "venue"='junction oval'; | 2-10869537-1 |
What was the date of the game at Junction Oval? | 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 "venue"='junction oval'; | 2-10869537-1 |
What was the away score for Carlton? | CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "away_team_score" FROM "round_1" WHERE "away_team"='carlton'; | 2-10869537-1 |
Who was the away team at MCG? | CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "away_team" FROM "round_1" WHERE "venue"='mcg'; | 2-10869537-1 |
What is the D 48 when the D 50 is d 30? | CREATE TABLE "senate_composition_before_the_elections" (
"d_50" text,
"d_49" text,
"d_48" text,
"d_47" text,
"d_46" text,
"d_45" text,
"d_44" text,
"d_43" text,
"d_42" text,
"d_41" text
); | SELECT "d_48" FROM "senate_composition_before_the_elections" WHERE "d_50"='d 30'; | 2-1177289-2 |
What is the D 47 when the D 49 is r 32? | CREATE TABLE "senate_composition_before_the_elections" (
"d_50" text,
"d_49" text,
"d_48" text,
"d_47" text,
"d_46" text,
"d_45" text,
"d_44" text,
"d_43" text,
"d_42" text,
"d_41" text
); | SELECT "d_47" FROM "senate_composition_before_the_elections" WHERE "d_49"='r 32'; | 2-1177289-2 |
What is the D 50 when the D 43 is r 43? | CREATE TABLE "senate_composition_before_the_elections" (
"d_50" text,
"d_49" text,
"d_48" text,
"d_47" text,
"d_46" text,
"d_45" text,
"d_44" text,
"d_43" text,
"d_42" text,
"d_41" text
); | SELECT "d_50" FROM "senate_composition_before_the_elections" WHERE "d_43"='r 43'; | 2-1177289-2 |
What is the D 42 when the D 50 is d 31? | CREATE TABLE "senate_composition_before_the_elections" (
"d_50" text,
"d_49" text,
"d_48" text,
"d_47" text,
"d_46" text,
"d_45" text,
"d_44" text,
"d_43" text,
"d_42" text,
"d_41" text
); | SELECT "d_42" FROM "senate_composition_before_the_elections" WHERE "d_50"='d 31'; | 2-1177289-2 |
What is the D 50 when the D 41 is d 41? | CREATE TABLE "senate_composition_before_the_elections" (
"d_50" text,
"d_49" text,
"d_48" text,
"d_47" text,
"d_46" text,
"d_45" text,
"d_44" text,
"d_43" text,
"d_42" text,
"d_41" text
); | SELECT "d_50" FROM "senate_composition_before_the_elections" WHERE "d_41"='d 41'; | 2-1177289-2 |
What is the D 50 when the D 41 is d 41? | CREATE TABLE "senate_composition_before_the_elections" (
"d_50" text,
"d_49" text,
"d_48" text,
"d_47" text,
"d_46" text,
"d_45" text,
"d_44" text,
"d_43" text,
"d_42" text,
"d_41" text
); | SELECT "d_50" FROM "senate_composition_before_the_elections" WHERE "d_41"='d 41'; | 2-1177289-2 |
what is the total vessels built for usmc when the 1st ship delivery date is january 1943? | CREATE TABLE "yards_on_the_gulf_coast" (
"yard_name" text,
"location_city_state" text,
"1st_ship_delivery_date" text,
"ship_types_delivered" text,
"total_number_of_ways" text,
"total_vessels_built_for_usmc" text
); | SELECT "total_vessels_built_for_usmc" FROM "yards_on_the_gulf_coast" WHERE "1st_ship_delivery_date"='january 1943'; | 2-11552751-3 |
what is the yard name when the ship types delivered is n3 type, v4 type and the total vessels built for usmc is 13 ships for usmc? | CREATE TABLE "yards_on_the_gulf_coast" (
"yard_name" text,
"location_city_state" text,
"1st_ship_delivery_date" text,
"ship_types_delivered" text,
"total_number_of_ways" text,
"total_vessels_built_for_usmc" text
); | SELECT "yard_name" FROM "yards_on_the_gulf_coast" WHERE "ship_types_delivered"='n3 type, v4 type' AND "total_vessels_built_for_usmc"='13 ships for usmc'; | 2-11552751-3 |
what is the ship types delivered when the total vessels built for usmc is 13 ships for usmc (plus 37 more for usn)? | CREATE TABLE "yards_on_the_gulf_coast" (
"yard_name" text,
"location_city_state" text,
"1st_ship_delivery_date" text,
"ship_types_delivered" text,
"total_number_of_ways" text,
"total_vessels_built_for_usmc" text
); | SELECT "ship_types_delivered" FROM "yards_on_the_gulf_coast" WHERE "total_vessels_built_for_usmc"='13 ships for usmc (plus 37 more for usn)'; | 2-11552751-3 |
what is the ship types delivered when the location is panama city, florida? | CREATE TABLE "yards_on_the_gulf_coast" (
"yard_name" text,
"location_city_state" text,
"1st_ship_delivery_date" text,
"ship_types_delivered" text,
"total_number_of_ways" text,
"total_vessels_built_for_usmc" text
); | SELECT "ship_types_delivered" FROM "yards_on_the_gulf_coast" WHERE "location_city_state"='panama city, florida'; | 2-11552751-3 |
Who were the co drivers past 1994 in the WSC class? | CREATE TABLE "complete_24_hours_of_le_mans_results" (
"year" real,
"class" text,
"tyres" text,
"team" text,
"co_drivers" text,
"laps" real,
"pos" text,
"class_pos" text
); | SELECT "co_drivers" FROM "complete_24_hours_of_le_mans_results" WHERE "year">1994 AND "class"='wsc'; | 2-1114709-3 |
Which home team scored 9.15 (69)? | CREATE TABLE "round_8" (
"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_8" WHERE "home_team_score"='9.15 (69)'; | 2-10790397-8 |
Which venue did the home team score 14.23 (107)? | CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "venue" FROM "round_8" WHERE "home_team_score"='14.23 (107)'; | 2-10790397-8 |
What day did Footscray play as the home team? | CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "date" FROM "round_18" WHERE "home_team"='footscray'; | 2-10790397-18 |
What is the report for 10 october? | CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "report" FROM "season_review" WHERE "date"='10 october'; | 2-1140084-2 |
Who was the race winner with a pole position james hunt, and a Fastest Lap of james hunt, and a Date of 15 august? | 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 "pole_position"='james hunt' AND "fastest_lap"='james hunt' AND "date"='15 august'; | 2-1140084-2 |
What race has a Pole Position of Jacques Laffite? | 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 "pole_position"='jacques laffite'; | 2-1140084-2 |
What is the Pole Position of the Swedish Grand Prix? | CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "pole_position" FROM "season_review" WHERE "race"='swedish grand prix'; | 2-1140084-2 |
What was the date when the location was Zandvoort? | CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "date" FROM "season_review" WHERE "location"='zandvoort'; | 2-1140084-2 |
How many chapters did Elmer Clifton direct? | CREATE TABLE "list_of_film_serials_by_studio" (
"number" real,
"serial_title" text,
"year" real,
"chapters" real,
"genre" text,
"director" text,
"cast" text
); | SELECT COUNT("chapters") FROM "list_of_film_serials_by_studio" WHERE "director"='elmer clifton'; | 2-10966920-1 |
Who is the spouse of the queen who is the daughter of Ferdinand I of the two sicilies? | CREATE TABLE "list_of_bohemian_consorts" (
"name" text,
"father" text,
"birth" text,
"marriage" text,
"became_queen" text,
"ceased_to_be_queen" text,
"death" text,
"spouse" text
); | SELECT "spouse" FROM "list_of_bohemian_consorts" WHERE "father"='ferdinand i of the two sicilies'; | 2-10870631-9 |
What is the entered service date for serial number 85-1222? | CREATE TABLE "locomotives" (
"locomotive" text,
"name" text,
"serial_no" text,
"entered_service" text,
"owner" text
); | SELECT "entered_service" FROM "locomotives" WHERE "serial_no"='85-1222'; | 2-11867198-1 |
What is the locomotive for the city of Benalla? | CREATE TABLE "locomotives" (
"locomotive" text,
"name" text,
"serial_no" text,
"entered_service" text,
"owner" text
); | SELECT "locomotive" FROM "locomotives" WHERE "name"='city of benalla'; | 2-11867198-1 |
What is the name for the locomotive n464? | CREATE TABLE "locomotives" (
"locomotive" text,
"name" text,
"serial_no" text,
"entered_service" text,
"owner" text
); | SELECT "name" FROM "locomotives" WHERE "locomotive"='n464'; | 2-11867198-1 |
What is the name for the locomotive n474? | CREATE TABLE "locomotives" (
"locomotive" text,
"name" text,
"serial_no" text,
"entered_service" text,
"owner" text
); | SELECT "name" FROM "locomotives" WHERE "locomotive"='n474'; | 2-11867198-1 |
Which home team has a Crowd greater than 28,000, and an Away team of st kilda? | CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team" FROM "round_13" WHERE "crowd">'28,000' AND "away_team"='st kilda'; | 2-10806592-13 |
Which home team has an Away team score of 18.21 (129)? | CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team" FROM "round_13" WHERE "away_team_score"='18.21 (129)'; | 2-10806592-13 |
What is the home team score at windy hill? | CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team_score" FROM "round_13" WHERE "venue"='windy hill'; | 2-10806592-13 |
Which date has a Crowd greater than 28,000, and a Home team of geelong? | CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "date" FROM "round_13" WHERE "crowd">'28,000' AND "home_team"='geelong'; | 2-10806592-13 |
What is the largest crowd for an Away team of st kilda? | 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 MAX("crowd") FROM "round_13" WHERE "away_team"='st kilda'; | 2-10806592-13 |
Where was the match that had 119 points for played? | CREATE TABLE "summary" (
"played_in" text,
"matches" text,
"lost" text,
"drawn" text,
"points_for" text,
"points_against" text
); | SELECT "played_in" FROM "summary" WHERE "points_for"='119'; | 2-10996592-1 |
Where were 16 matches played? | CREATE TABLE "summary" (
"played_in" text,
"matches" text,
"lost" text,
"drawn" text,
"points_for" text,
"points_against" text
); | SELECT "played_in" FROM "summary" WHERE "matches"='16'; | 2-10996592-1 |
What match had 240 points for? | CREATE TABLE "summary" (
"played_in" text,
"matches" text,
"lost" text,
"drawn" text,
"points_for" text,
"points_against" text
); | SELECT "matches" FROM "summary" WHERE "points_for"='240'; | 2-10996592-1 |
What was the score on 26 July 1930? | CREATE TABLE "international_goals" (
"date" text,
"round" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "score" FROM "international_goals" WHERE "date"='26 july 1930'; | 2-1111788-1 |
How many laps did Innes Ireland make when he had a grid more than 15? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "laps" FROM "classification" WHERE "grid">15 AND "driver"='innes ireland'; | 2-1122361-1 |
What is the grid for Jack Brabham with more than 65 laps? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT SUM("grid") FROM "classification" WHERE "driver"='jack brabham' AND "laps">65; | 2-1122361-1 |
Who drove grid 5? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "driver" FROM "classification" WHERE "grid"=5; | 2-1122361-1 |
What is the date of the game with the Rockets as the visitor team? | CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
); | SELECT "date" FROM "february" WHERE "visitor"='rockets'; | 2-11963536-7 |
What was the position of the player who played for the Rockets during 1981? | CREATE TABLE "s" (
"player" text,
"no_s" real,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
); | SELECT "position" FROM "s" WHERE "years_for_rockets"='1981'; | 2-11734041-17 |
What school, club team, or country did the player with a number smaller than 4 come from? | CREATE TABLE "s" (
"player" text,
"no_s" real,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
); | SELECT "school_club_team_country" FROM "s" WHERE "no_s"<4; | 2-11734041-17 |
What is the number of the player who came from Virginia? | CREATE TABLE "s" (
"player" text,
"no_s" real,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
); | SELECT "no_s" FROM "s" WHERE "school_club_team_country"='virginia'; | 2-11734041-17 |
Which place has a home team score of 18.19 (127)? | 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 "venue" FROM "round_6" WHERE "home_team_score"='18.19 (127)'; | 2-10790804-6 |
What is the Time/Retired with over 56 laps and a grid of 5? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "time_retired" FROM "classification" WHERE "laps">56 AND "grid"=5; | 2-1122345-1 |
Who is the driver when the tyre is p and the entrant is officine alfieri maserati? | CREATE TABLE "entries" (
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text
); | SELECT "driver" FROM "entries" WHERE "tyre"='p' AND "entrant"='officine alfieri maserati'; | 2-1122033-1 |
Who is the constructor when the chassis is talbot-lago t26c and the driver is charles pozzi? | CREATE TABLE "entries" (
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text
); | SELECT "constructor" FROM "entries" WHERE "chassis"='talbot-lago t26c' AND "driver"='charles pozzi'; | 2-1122033-1 |
What is the tyre when the entrant is sa alfa romeo and the driver is luigi fagioli? | CREATE TABLE "entries" (
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text
); | SELECT "tyre" FROM "entries" WHERE "entrant"='sa alfa romeo' AND "driver"='luigi fagioli'; | 2-1122033-1 |
Who is the entrant when the engine is talbot l6 and the driver is pierre levegh? | CREATE TABLE "entries" (
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text
); | SELECT "entrant" FROM "entries" WHERE "engine"='talbot l6' AND "driver"='pierre levegh'; | 2-1122033-1 |
Who is the entrant when the chassis is ferrari 125? | CREATE TABLE "entries" (
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text
); | SELECT "entrant" FROM "entries" WHERE "chassis"='ferrari 125'; | 2-1122033-1 |
what is the engine when the tyre is d, the constructor is era and the driver is bob gerard? | CREATE TABLE "entries" (
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text
); | SELECT "engine" FROM "entries" WHERE "tyre"='d' AND "constructor"='era' AND "driver"='bob gerard'; | 2-1122033-1 |
What was the score when the record was 39-62? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
); | SELECT "score" FROM "game_log" WHERE "record"='39-62'; | 2-11508001-9 |
What was the date when the record was 35-57? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
); | SELECT "date" FROM "game_log" WHERE "record"='35-57'; | 2-11508001-9 |
What was the loss when the record was 34-56? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
); | SELECT "loss" FROM "game_log" WHERE "record"='34-56'; | 2-11508001-9 |
What is the score of the away team who played the home team who scored 7.14 (56)? | 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_score"='7.14 (56)'; | 2-10809351-3 |
What is the name of the venue where the away team scored 7.6 (48) and the home team scored 21.27 (153)? | 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 "venue" FROM "round_3" WHERE "away_team_score"='7.6 (48)' AND "home_team_score"='21.27 (153)'; | 2-10809351-3 |
On what date did the home team score 5.15 (45)? | 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 "date" FROM "round_3" WHERE "home_team_score"='5.15 (45)'; | 2-10809351-3 |
What is the score of the away team whose opponent scored 7.14 (56) in front of a crowd was larger than 24,000? | 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 "crowd">'24,000' AND "home_team_score"='7.14 (56)'; | 2-10809351-3 |
What is the name of the away team that played Geelong? | 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" FROM "round_3" WHERE "home_team"='geelong'; | 2-10809351-3 |
What is the smallest crowd size for away team Fitzroy? | 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 "away_team"='fitzroy'; | 2-10809351-3 |
Which Builder has BR No. 30782? | CREATE TABLE "the_scotch_arthurs" (
"br_no" real,
"sr_no" real,
"sr_name" text,
"builder" text,
"built" text,
"withdrawn" text
); | SELECT "builder" FROM "the_scotch_arthurs" WHERE "br_no"=30782; | 2-10891830-3 |
What is the title of the episode with a production code of K1504? | CREATE TABLE "season_3_1996_1997" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"original_air_date" text,
"production_code" text
); | SELECT "title" FROM "season_3_1996_1997" WHERE "production_code"='k1504'; | 2-11951237-3 |
What is the average of the Series #s that were directed by Matthew Penn? | CREATE TABLE "season_3_1996_1997" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"original_air_date" text,
"production_code" text
); | SELECT AVG("series_num") FROM "season_3_1996_1997" WHERE "directed_by"='matthew penn'; | 2-11951237-3 |
How many episodes did Matthew Penn direct before season 22? | CREATE TABLE "season_3_1996_1997" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"original_air_date" text,
"production_code" text
); | SELECT COUNT("series_num") FROM "season_3_1996_1997" WHERE "season_num"<22 AND "directed_by"='matthew penn'; | 2-11951237-3 |
What Visiting Team(s) had an Attendance of over 18,680 | CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "visitor" FROM "game_log" WHERE "attendance">'18,680'; | 2-11786147-7 |
When Nashville was the visiting team what was the lowest Attendance shown? | CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT MIN("attendance") FROM "game_log" WHERE "visitor"='nashville'; | 2-11786147-7 |
What is the time/retired for the driver with 16 grids? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "time_retired" FROM "classification" WHERE "grid"=16; | 2-1122564-1 |
What is the smallest grid for a time/retired of 1:56:18.22? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MIN("grid") FROM "classification" WHERE "time_retired"='1:56:18.22'; | 2-1122564-1 |
Who was the opponent on September 28? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"save" text
); | SELECT "opponent" FROM "game_log" WHERE "date"='september 28'; | 2-12015554-8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.