answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT result FROM table_name_73 WHERE week = 16 | CREATE TABLE table_name_73 (result VARCHAR, week VARCHAR) | What was the result of week 16? |
SELECT date FROM table_name_41 WHERE score = "4-3" | CREATE TABLE table_name_41 (date VARCHAR, score VARCHAR) | What is the date of the game with a score of 4-3? |
SELECT score FROM table_name_92 WHERE date = "8 sep 1990" | CREATE TABLE table_name_92 (score VARCHAR, date VARCHAR) | What is the score of the game on 8 Sep 1990? |
SELECT opposition FROM table_name_64 WHERE competition = "division 1" AND venue = "stamford bridge" | CREATE TABLE table_name_64 (opposition VARCHAR, competition VARCHAR, venue VARCHAR) | Who is the opposition on the division 1 game at Stamford Bridge? |
SELECT rank FROM table_name_26 WHERE total < 9 AND bronze < 2 AND nation = "france" | CREATE TABLE table_name_26 (rank VARCHAR, nation VARCHAR, total VARCHAR, bronze VARCHAR) | Which rank has a total less than 9, less than 2 bronze, and from France? |
SELECT rank FROM table_name_25 WHERE silver > 1 AND gold > 1 AND bronze > 4 | CREATE TABLE table_name_25 (rank VARCHAR, bronze VARCHAR, silver VARCHAR, gold VARCHAR) | Which rank has more than 1 silver, more than 1 gold, and more than 4 bronze? |
SELECT MAX(silver) FROM table_name_71 WHERE total < 3 AND bronze = 1 AND gold > 0 | CREATE TABLE table_name_71 (silver INTEGER, gold VARCHAR, total VARCHAR, bronze VARCHAR) | How many silver have a Total smaller than 3, a Bronze of 1, and a Gold larger than 0? |
SELECT SUM(gold) FROM table_name_15 WHERE nation = "new zealand" AND total < 2 | CREATE TABLE table_name_15 (gold INTEGER, nation VARCHAR, total VARCHAR) | How many gold have a National of New Zealand with a total less than 2? |
SELECT winner FROM table_name_19 WHERE year = 2003 | CREATE TABLE table_name_19 (winner VARCHAR, year VARCHAR) | Who won in 2003? |
SELECT AVG(year) FROM table_name_58 WHERE winner = "scatman" | CREATE TABLE table_name_58 (year INTEGER, winner VARCHAR) | What is the average year for scatman winning? |
SELECT trainer FROM table_name_24 WHERE time = "1:09.40" | CREATE TABLE table_name_24 (trainer VARCHAR, time VARCHAR) | Who trained the horse with time of 1:09.40? |
SELECT venue FROM table_name_83 WHERE tournament = "mediterranean games" | CREATE TABLE table_name_83 (venue VARCHAR, tournament VARCHAR) | Where was the mediterranean games held? |
SELECT MAX(year) FROM table_name_75 WHERE venue = "turin, italy" | CREATE TABLE table_name_75 (year INTEGER, venue VARCHAR) | When was the last time a venue was held in turin, italy? |
SELECT venue FROM table_name_3 WHERE tournament = "universiade" AND year = 1959 | CREATE TABLE table_name_3 (venue VARCHAR, tournament VARCHAR, year VARCHAR) | Where was the universiade held in 1959? |
SELECT COUNT(year) FROM table_name_65 WHERE venue = "stockholm, sweden" | CREATE TABLE table_name_65 (year VARCHAR, venue VARCHAR) | How many year was the venue in stockholm, sweden used? |
SELECT report FROM table_name_21 WHERE location = "tripoli" AND year > 1928 AND driver = "baconin borzacchini" | CREATE TABLE table_name_21 (report VARCHAR, driver VARCHAR, location VARCHAR, year VARCHAR) | What is a report for a race with Baconin Borzacchini in Tripoli in a year after 1928? |
SELECT constructor FROM table_name_2 WHERE year < 1937 AND driver = "achille varzi" | CREATE TABLE table_name_2 (constructor VARCHAR, year VARCHAR, driver VARCHAR) | What was the constructor of the car that Achille Varzi drove before 1937? |
SELECT constructor FROM table_name_89 WHERE year > 1935 AND driver = "hermann lang" | CREATE TABLE table_name_89 (constructor VARCHAR, year VARCHAR, driver VARCHAR) | What was the constructor of the car that Hermann Lang drove after 1935? |
SELECT works_number FROM table_name_39 WHERE date = "1916" AND number = "153" | CREATE TABLE table_name_39 (works_number VARCHAR, date VARCHAR, number VARCHAR) | What is the Works Number that has a Number of 153 in 1916? |
SELECT date FROM table_name_18 WHERE works_number = "7" | CREATE TABLE table_name_18 (date VARCHAR, works_number VARCHAR) | On what Date was the Works Number 7? |
SELECT builder FROM table_name_86 WHERE works_number = "16272" | CREATE TABLE table_name_86 (builder VARCHAR, works_number VARCHAR) | Which Builder has a Works Number of 16272? |
SELECT date FROM table_name_99 WHERE works_number = "12" | CREATE TABLE table_name_99 (date VARCHAR, works_number VARCHAR) | On what Date was the Works Number 12? |
SELECT venue FROM table_name_72 WHERE home_team = "south melbourne" | CREATE TABLE table_name_72 (venue VARCHAR, home_team VARCHAR) | Where did South Melbourne play as the home team? |
SELECT COUNT(crowd) FROM table_name_66 WHERE home_team = "st kilda" | CREATE TABLE table_name_66 (crowd VARCHAR, home_team VARCHAR) | What was the attendance when St Kilda played as the home team? |
SELECT driver FROM table_name_55 WHERE grid = "18" | CREATE TABLE table_name_55 (driver VARCHAR, grid VARCHAR) | Which driver had a grid number of 18? |
SELECT constructor FROM table_name_71 WHERE driver = "shinji nakano" | CREATE TABLE table_name_71 (constructor VARCHAR, driver VARCHAR) | Which constructor had Shinji Nakano as a driver? |
SELECT home_team AS score FROM table_name_10 WHERE venue = "glenferrie oval" | CREATE TABLE table_name_10 (home_team VARCHAR, venue VARCHAR) | What was the home team score at Glenferrie Oval? |
SELECT date FROM table_name_39 WHERE data = "19:29" | CREATE TABLE table_name_39 (date VARCHAR, data VARCHAR) | What date has a Data of 19:29? |
SELECT athlete FROM table_name_74 WHERE event = "35 km" | CREATE TABLE table_name_74 (athlete VARCHAR, event VARCHAR) | Which athlete has a 35 km event? |
SELECT nation FROM table_name_22 WHERE team = "discovery channel" | CREATE TABLE table_name_22 (nation VARCHAR, team VARCHAR) | What nation is the cyclist from team discovery channel? |
SELECT nation FROM table_name_95 WHERE uci_protour_points = 25 | CREATE TABLE table_name_95 (nation VARCHAR, uci_protour_points VARCHAR) | What nation is the cyclist hat has a UCI ProTour Points of 25? |
SELECT date FROM table_name_59 WHERE venue = "punt road oval" | CREATE TABLE table_name_59 (date VARCHAR, venue VARCHAR) | What day did the VFL play Punt Road Oval? |
SELECT home_team AS score FROM table_name_74 WHERE venue = "western oval" | CREATE TABLE table_name_74 (home_team VARCHAR, venue VARCHAR) | What was the home teams score at Western Oval? |
SELECT COUNT(1 AS st_prize__) AS $__ FROM table_name_54 WHERE score = "207 (-9)" AND purse__$__ > 800 OFFSET 000 | CREATE TABLE table_name_54 (score VARCHAR, purse__$__ VARCHAR) | What is the first prize amount of the person who has a score of 207 (-9) and a purse amount of more than 800,000? |
SELECT isbn FROM table_name_42 WHERE first_edition = "may 2011" | CREATE TABLE table_name_42 (isbn VARCHAR, first_edition VARCHAR) | What is the ISBN of the book with a first edition in May 2011? |
SELECT first_edition FROM table_name_50 WHERE isbn = "978-0785166252" | CREATE TABLE table_name_50 (first_edition VARCHAR, isbn VARCHAR) | Which first edition has an ISBN of 978-0785166252? |
SELECT first_edition FROM table_name_60 WHERE pages = "264" AND isbn = "978-0785111832" | CREATE TABLE table_name_60 (first_edition VARCHAR, pages VARCHAR, isbn VARCHAR) | Which first edition has 264 pages and the ISBN of 978-0785111832? |
SELECT SUM(crowd) FROM table_name_46 WHERE home_team = "collingwood" | CREATE TABLE table_name_46 (crowd INTEGER, home_team VARCHAR) | How many people were in the crowd at collingwood's home game? |
SELECT away_team AS score FROM table_name_62 WHERE home_team = "fitzroy" | CREATE TABLE table_name_62 (away_team VARCHAR, home_team VARCHAR) | What did the away team score when playing against fitzroy? |
SELECT serial_no FROM table_name_71 WHERE colour = "black" AND pilot_car_no > 2 AND engine_no = 1008 | CREATE TABLE table_name_71 (serial_no VARCHAR, engine_no VARCHAR, colour VARCHAR, pilot_car_no VARCHAR) | What is the serial number of the pilot car that is black, has a pilot car number larger than 2, and an engine number of 1008? |
SELECT MIN(laps) FROM table_name_35 WHERE time_retired = "accident" | CREATE TABLE table_name_35 (laps INTEGER, time_retired VARCHAR) | What is the low lap total that has a Time or Retired of accident? |
SELECT player FROM table_name_79 WHERE position = "fly-half" | CREATE TABLE table_name_79 (player VARCHAR, position VARCHAR) | Which player was a fly-half? |
SELECT AVG(caps) FROM table_name_36 WHERE player = "ryota asano" | CREATE TABLE table_name_36 (caps INTEGER, player VARCHAR) | What is the mean number of caps for Ryota Asano? |
SELECT AVG(caps) FROM table_name_67 WHERE player = "ryota asano" | CREATE TABLE table_name_67 (caps INTEGER, player VARCHAR) | What is the mean number of caps for Ryota Asano? |
SELECT player FROM table_name_24 WHERE position = "forward" AND school_club_team = "grambling state" | CREATE TABLE table_name_24 (player VARCHAR, position VARCHAR, school_club_team VARCHAR) | Who is the forward from Grambling State? |
SELECT nationality FROM table_name_96 WHERE position = "guard" AND school_club_team = "utah" | CREATE TABLE table_name_96 (nationality VARCHAR, position VARCHAR, school_club_team VARCHAR) | What is the nationality of the guard who plays at Utah? |
SELECT position FROM table_name_14 WHERE school_club_team = "tampa" | CREATE TABLE table_name_14 (position VARCHAR, school_club_team VARCHAR) | What is the position of the player from Tampa? |
SELECT nationality FROM table_name_73 WHERE years_for_jazz = "1974-79" | CREATE TABLE table_name_73 (nationality VARCHAR, years_for_jazz VARCHAR) | What is the nationality of the player on the Jazz from 1974-79? |
SELECT player FROM table_name_91 WHERE school_club_team = "tampa" | CREATE TABLE table_name_91 (player VARCHAR, school_club_team VARCHAR) | Who is the player who went to school at Tampa? |
SELECT nationality FROM table_name_60 WHERE years_for_jazz = "1974-79" | CREATE TABLE table_name_60 (nationality VARCHAR, years_for_jazz VARCHAR) | What is the nationality of the player on the Jazz from 1974-79? |
SELECT away_team AS score FROM table_name_67 WHERE venue = "glenferrie oval" | CREATE TABLE table_name_67 (away_team VARCHAR, venue VARCHAR) | What was the score of the away team at the the glenferrie oval? |
SELECT institution FROM table_name_55 WHERE location = "athens, ga, us" | CREATE TABLE table_name_55 (institution VARCHAR, location VARCHAR) | What institution is located in athens, ga, us? |
SELECT status FROM table_name_64 WHERE founded = 1996 | CREATE TABLE table_name_64 (status VARCHAR, founded VARCHAR) | What is the status of the institution that was founded in 1996? |
SELECT venue FROM table_name_60 WHERE runs = "332" | CREATE TABLE table_name_60 (venue VARCHAR, runs VARCHAR) | During runs 332, what was the venue? |
SELECT player FROM table_name_43 WHERE runs = "270" | CREATE TABLE table_name_43 (player VARCHAR, runs VARCHAR) | Which player's runs are 270? |
SELECT venue FROM table_name_92 WHERE season = "1935" | CREATE TABLE table_name_92 (venue VARCHAR, season VARCHAR) | During season 1935, what was the venue? |
SELECT venue FROM table_name_29 WHERE player = "les ames" | CREATE TABLE table_name_29 (venue VARCHAR, player VARCHAR) | For player Les Ames, what was the venue? |
SELECT date FROM table_name_7 WHERE grand_prix = "austrian grand prix" | CREATE TABLE table_name_7 (date VARCHAR, grand_prix VARCHAR) | When was the Austrian Grand Prix? |
SELECT points FROM table_name_24 WHERE draw > 3 AND place = 3 | CREATE TABLE table_name_24 (points VARCHAR, draw VARCHAR, place VARCHAR) | How many points has a draw greater than 3 and 3rd place? |
SELECT AVG(events) FROM table_name_27 WHERE player = "miller barber" | CREATE TABLE table_name_27 (events INTEGER, player VARCHAR) | Name the average events for miller barber |
SELECT MAX(wins) FROM table_name_86 WHERE earnings___$__ = 130 OFFSET 002 | CREATE TABLE table_name_86 (wins INTEGER, earnings___$__ VARCHAR) | Name the most wins for earnings of 130,002 |
SELECT year FROM table_name_70 WHERE label = "latenight weeknight" AND release_title = "neverchanger" | CREATE TABLE table_name_70 (year VARCHAR, label VARCHAR, release_title VARCHAR) | What year was Neverchanger with the label of Latenight weeknight? |
SELECT year FROM table_name_26 WHERE release_type = "cd album" AND released_as = "ethereal 77" | CREATE TABLE table_name_26 (year VARCHAR, release_type VARCHAR, released_as VARCHAR) | What year was Ethereal 77, which has a CD album release type? |
SELECT SUM(platform) FROM table_name_98 WHERE frequency__per_hour_ = 4 AND destination = "west croydon" | CREATE TABLE table_name_98 (platform INTEGER, frequency__per_hour_ VARCHAR, destination VARCHAR) | what is the platform when the frequency (per hour) is 4 and the destination is west croydon? |
SELECT MAX(platform) FROM table_name_32 WHERE frequency__per_hour_ = 4 AND operator = "london overground" AND destination = "west croydon" | CREATE TABLE table_name_32 (platform INTEGER, destination VARCHAR, frequency__per_hour_ VARCHAR, operator VARCHAR) | what is the highest platform number when the frequency (per hour) is 4, the operator is london overground and the destination is west croydon? |
SELECT team FROM table_name_77 WHERE qual_1 = "1:17.481" | CREATE TABLE table_name_77 (team VARCHAR, qual_1 VARCHAR) | What is the name of the team with a qual 1 time of 1:17.481? |
SELECT qual_1 FROM table_name_49 WHERE best = "1:18.067" | CREATE TABLE table_name_49 (qual_1 VARCHAR, best VARCHAR) | What is the qual 1 for the best of 1:18.067? |
SELECT qual_1 FROM table_name_94 WHERE qual_2 = "no time" AND best = "1:16.776" | CREATE TABLE table_name_94 (qual_1 VARCHAR, qual_2 VARCHAR, best VARCHAR) | What is the qual 1 when the qual 2 has no time and the best is 1:16.776? |
SELECT name FROM table_name_59 WHERE team = "minardi team usa" AND qual_1 = "1:17.481" | CREATE TABLE table_name_59 (name VARCHAR, team VARCHAR, qual_1 VARCHAR) | What person on team Minardi Team USA with a qual of 1:17.481? |
SELECT name FROM table_name_2 WHERE qual_1 = "1:16.850" | CREATE TABLE table_name_2 (name VARCHAR, qual_1 VARCHAR) | What is the name of the person with a qual 1 time of 1:16.850? |
SELECT qual_2 FROM table_name_49 WHERE qual_1 = "1:16.841" | CREATE TABLE table_name_49 (qual_2 VARCHAR, qual_1 VARCHAR) | What is the qual 2 when the qual 1 is 1:16.841? |
SELECT monarch FROM table_name_67 WHERE heir = "robert curthose" AND reason = "father became king" | CREATE TABLE table_name_67 (monarch VARCHAR, heir VARCHAR, reason VARCHAR) | Who is the Monarch whose Heir is Robert Curthose when the Reason is that the father became king? |
SELECT monarch FROM table_name_60 WHERE status = "succession unclear 1100-1103" | CREATE TABLE table_name_60 (monarch VARCHAR, status VARCHAR) | Which Monarch has succession unclear 1100-1103 as his Status? |
SELECT reason FROM table_name_7 WHERE became_heir = "1103" | CREATE TABLE table_name_7 (reason VARCHAR, became_heir VARCHAR) | Which Reason is given when 1103 is the date for Became heir? |
SELECT status FROM table_name_11 WHERE monarch = "henry i" AND reason = "succession unclear 1100-1103" | CREATE TABLE table_name_11 (status VARCHAR, monarch VARCHAR, reason VARCHAR) | What is the Status when Henry I is the Monarch and the Reason is succession unclear 1100-1103? |
SELECT tyre FROM table_name_31 WHERE entrant = "hb bewaking team ensign" AND rounds = "13" | CREATE TABLE table_name_31 (tyre VARCHAR, entrant VARCHAR, rounds VARCHAR) | Name the tyre for hb bewaking team ensign with rounds of 13 |
SELECT rounds FROM table_name_90 WHERE engine = "ford cosworth dfv 3.0 v8" AND chassis = "751" | CREATE TABLE table_name_90 (rounds VARCHAR, engine VARCHAR, chassis VARCHAR) | Name the round for engine of ford cosworth dfv 3.0 v8 with chassis fo 751 |
SELECT chassis FROM table_name_24 WHERE tyre = "g" AND driver = "carlos reutemann" | CREATE TABLE table_name_24 (chassis VARCHAR, tyre VARCHAR, driver VARCHAR) | Name the chassis for tyre of g and carlos reutemann |
SELECT entrant FROM table_name_27 WHERE chassis = "gh1" | CREATE TABLE table_name_27 (entrant VARCHAR, chassis VARCHAR) | Name the entrant for chassis of gh1 |
SELECT rounds FROM table_name_82 WHERE entrant = "stanley brm" | CREATE TABLE table_name_82 (rounds VARCHAR, entrant VARCHAR) | Name the rounds for stanley brm |
SELECT tottenham_hotspur_career FROM table_name_26 WHERE goals = "10" AND nationality = "england" AND position = "df" AND club_apps = "118" | CREATE TABLE table_name_26 (tottenham_hotspur_career VARCHAR, club_apps VARCHAR, position VARCHAR, goals VARCHAR, nationality VARCHAR) | What were the years of the Tottenham Hotspur career for the player with 10 goals, from England, played the df position, and had 118 club apps? |
SELECT position FROM table_name_72 WHERE nationality = "england" AND goals = "62" | CREATE TABLE table_name_72 (position VARCHAR, nationality VARCHAR, goals VARCHAR) | What is the position of the player from England with 62 goals? |
SELECT goals FROM table_name_8 WHERE nationality = "england" AND position = "mf" AND club_apps = "170" | CREATE TABLE table_name_8 (goals VARCHAR, club_apps VARCHAR, nationality VARCHAR, position VARCHAR) | How many goals did the player from England who played the position of mf and had 170 club apps had? |
SELECT goals FROM table_name_69 WHERE club_apps = "229" | CREATE TABLE table_name_69 (goals VARCHAR, club_apps VARCHAR) | How many goals did the player with 229 club apps have? |
SELECT award_ceremony FROM table_name_18 WHERE nominee = "emilio pichardo as bobby strong" | CREATE TABLE table_name_18 (award_ceremony VARCHAR, nominee VARCHAR) | For which Award Ceremony was Emilio Pichardo as Bobby Strong nominated? |
SELECT nominee FROM table_name_38 WHERE category = "best female performer" | CREATE TABLE table_name_38 (nominee VARCHAR, category VARCHAR) | Who was nominated for best female performer? |
SELECT area FROM table_name_76 WHERE decile = "8" | CREATE TABLE table_name_76 (area VARCHAR, decile VARCHAR) | What area is the school with a decile of 8 in? |
SELECT name FROM table_name_27 WHERE authority = "state" AND roll = 318 | CREATE TABLE table_name_27 (name VARCHAR, authority VARCHAR, roll VARCHAR) | Which school has a state authority and a roll of 318? |
SELECT area FROM table_name_87 WHERE authority = "state" AND name = "torbay school" | CREATE TABLE table_name_87 (area VARCHAR, authority VARCHAR, name VARCHAR) | In what area is torbay school with a state authority? |
SELECT Regular AS season FROM table_name_25 WHERE tournament < 2 AND total > 0 AND team = "kansas" | CREATE TABLE table_name_25 (Regular VARCHAR, team VARCHAR, tournament VARCHAR, total VARCHAR) | How many regular season titles did Kansas receive when they received fewer than 2 tournament titles and more than 0 total titles? |
SELECT time_retired FROM table_name_65 WHERE laps < 66 AND grid < 10 AND driver = "heinz-harald frentzen" | CREATE TABLE table_name_65 (time_retired VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR) | What is the time of retirement with Laps smaller than 66, a grid less than 10, and a Driver of heinz-harald frentzen? |
SELECT laps FROM table_name_96 WHERE driver = "olivier panis" | CREATE TABLE table_name_96 (laps VARCHAR, driver VARCHAR) | How many laps does olivier panis have? |
SELECT home_team FROM table_name_39 WHERE away_team = "geelong" | CREATE TABLE table_name_39 (home_team VARCHAR, away_team VARCHAR) | Which home team played against Geelong? |
SELECT crowd FROM table_name_62 WHERE away_team = "north melbourne" | CREATE TABLE table_name_62 (crowd VARCHAR, away_team VARCHAR) | How large was the crowd when North Melbourne played as the away team? |
SELECT away_team FROM table_name_13 WHERE home_team = "hawthorn" | CREATE TABLE table_name_13 (away_team VARCHAR, home_team VARCHAR) | Who is the away team that played home team Hawthorn? |
SELECT home_team FROM table_name_46 WHERE away_team = "footscray" | CREATE TABLE table_name_46 (home_team VARCHAR, away_team VARCHAR) | What is the name of the home team that played away team Footscray? |
SELECT home_team FROM table_name_3 WHERE venue = "mcg" | CREATE TABLE table_name_3 (home_team VARCHAR, venue VARCHAR) | Who is the home team that played at venue MCG? |
SELECT first_appearance FROM table_name_26 WHERE portrayed_by = "chad williams" | CREATE TABLE table_name_26 (first_appearance VARCHAR, portrayed_by VARCHAR) | What is the name of the first appearance when Chad Williams is a portrayal? |
SELECT character FROM table_name_10 WHERE portrayed_by = "elias koteas" | CREATE TABLE table_name_10 (character VARCHAR, portrayed_by VARCHAR) | Which character is portrayed by Elias Koteas? |
SELECT home_team AS score FROM table_name_97 WHERE venue = "vfl park" | CREATE TABLE table_name_97 (home_team VARCHAR, venue VARCHAR) | What is the Home Team Score at VFL Park? |
Subsets and Splits