context
stringlengths
27
489
question
stringlengths
12
244
answer
stringlengths
18
557
CREATE TABLE table_name_97 (away_team VARCHAR, home_team VARCHAR)
When Richmond was the Home team, who was the away team?
SELECT away_team FROM table_name_97 WHERE home_team = "richmond"
CREATE TABLE table_name_29 (home_team VARCHAR, venue VARCHAR)
Which home team plays in the Corio Oval venue?
SELECT home_team FROM table_name_29 WHERE venue = "corio oval"
CREATE TABLE table_name_60 (away_team VARCHAR, venue VARCHAR)
When the game was played at the EMCG venue, who was the away team?
SELECT away_team FROM table_name_60 WHERE venue = "emcg"
CREATE TABLE table_name_55 (constructor VARCHAR, driver VARCHAR)
who is the constructor when the driver is jenson button?
SELECT constructor FROM table_name_55 WHERE driver = "jenson button"
CREATE TABLE table_name_79 (grid VARCHAR, time_retired VARCHAR)
what is the grid when the time/retired is +27.112?
SELECT grid FROM table_name_79 WHERE time_retired = "+27.112"
CREATE TABLE table_name_88 (laps INTEGER, driver VARCHAR, grid VARCHAR)
I want the fewest Laps for Huub Rothengatter and grid less than 24
SELECT MIN(laps) FROM table_name_88 WHERE driver = "huub rothengatter" AND grid < 24
CREATE TABLE table_name_47 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR)
Tell me the time/retired with Laps of 47 and driver of rené arnoux
SELECT time_retired FROM table_name_47 WHERE laps = 47 AND driver = "rené arnoux"
CREATE TABLE table_name_17 (oricon INTEGER, romaji_title VARCHAR)
Which Oricon has a Romaji title of nakitakunalu?
SELECT MAX(oricon) FROM table_name_17 WHERE romaji_title = "nakitakunalu"
CREATE TABLE table_name_92 (reference VARCHAR, release_date VARCHAR)
Which Reference has a Release date of 1996/10/10?
SELECT reference FROM table_name_92 WHERE release_date = "1996/10/10"
CREATE TABLE table_name_38 (occupation VARCHAR, residence VARCHAR)
What is the occupation of the candidate that resides in Windsor Junction?
SELECT occupation FROM table_name_38 WHERE residence = "windsor junction"
CREATE TABLE table_name_48 (votes VARCHAR, rank VARCHAR, candidate VARCHAR)
How many votes did 3rd ranking candidate Mary Louise Lorefice receive?
SELECT COUNT(votes) FROM table_name_48 WHERE rank = "3rd" AND candidate = "mary louise lorefice"
CREATE TABLE table_name_35 (occupation VARCHAR, candidate VARCHAR)
What occupation does Mary Louise Lorefice have?
SELECT occupation FROM table_name_35 WHERE candidate = "mary louise lorefice"
CREATE TABLE table_name_83 (date VARCHAR, away_team VARCHAR)
When was the game at Essendon?
SELECT date FROM table_name_83 WHERE away_team = "essendon"
CREATE TABLE table_name_25 (constructor VARCHAR, grid VARCHAR)
Who is the constructor with the grid of 8?
SELECT constructor FROM table_name_25 WHERE grid = 8
CREATE TABLE table_name_95 (time_retired VARCHAR, grid VARCHAR, laps VARCHAR)
what is the time/retired when the grid is less than 3 and 45 laps?
SELECT time_retired FROM table_name_95 WHERE grid < 3 AND laps = 45
CREATE TABLE table_name_43 (laps INTEGER, driver VARCHAR)
what is the most laps for driver jackie stewart?
SELECT MAX(laps) FROM table_name_43 WHERE driver = "jackie stewart"
CREATE TABLE table_name_56 (time_retired VARCHAR, driver VARCHAR)
what is the time/retired for driver richard attwood?
SELECT time_retired FROM table_name_56 WHERE driver = "richard attwood"
CREATE TABLE table_name_33 (d_41 VARCHAR, r_51 VARCHAR)
Tell me the D 41 and R 51 of r 11
SELECT d_41 FROM table_name_33 WHERE r_51 = "r 11"
CREATE TABLE table_name_35 (d_46 VARCHAR, d_44 VARCHAR)
I want the D 46 which has a D 44 of r 17
SELECT d_46 FROM table_name_35 WHERE d_44 = "r 17"
CREATE TABLE table_name_63 (d_41 VARCHAR, d_43 VARCHAR)
Tell me the D 41 for D 43 of d 18
SELECT d_41 FROM table_name_63 WHERE d_43 = "d 18"
CREATE TABLE table_name_44 (d_47 VARCHAR, d_46 VARCHAR)
Tell me the D 47 for D 46 of r 35
SELECT d_47 FROM table_name_44 WHERE d_46 = "r 35"
CREATE TABLE table_name_41 (d_42 VARCHAR, r_51 VARCHAR)
I want the D 42 with R 51 of r 11
SELECT d_42 FROM table_name_41 WHERE r_51 = "r 11"
CREATE TABLE table_name_95 (r_53 VARCHAR, d_41 VARCHAR)
I want the R 53 of D 41 of r 21
SELECT r_53 FROM table_name_95 WHERE d_41 = "r 21"
CREATE TABLE table_name_30 (silver INTEGER, gold VARCHAR, nation VARCHAR)
What is the low silver total for switzerland with over 0 golds?
SELECT MIN(silver) FROM table_name_30 WHERE gold > 0 AND nation = "switzerland"
CREATE TABLE table_name_93 (silver INTEGER, bronze VARCHAR)
What is the silver total for nations with 10 bronze medals?
SELECT SUM(silver) FROM table_name_93 WHERE bronze = 10
CREATE TABLE table_name_5 (gold INTEGER, nation VARCHAR, silver VARCHAR)
What is the gold total for lithuania with under 2 silvers?
SELECT SUM(gold) FROM table_name_5 WHERE nation = "lithuania" AND silver < 2
CREATE TABLE table_name_68 (home_team VARCHAR, venue VARCHAR)
What was the score for the home team that played at Moorabbin Oval?
SELECT home_team AS score FROM table_name_68 WHERE venue = "moorabbin oval"
CREATE TABLE table_name_73 (screen_size__inch_ VARCHAR, intro_year VARCHAR, model VARCHAR)
Name the size of the screen that came out in 2006 and is iliad
SELECT screen_size__inch_ FROM table_name_73 WHERE intro_year = "2006" AND model = "iliad"
CREATE TABLE table_name_25 (report VARCHAR, race VARCHAR)
Which Report includes the Belgian Grand Prix Race?
SELECT report FROM table_name_25 WHERE race = "belgian grand prix"
CREATE TABLE table_name_95 (report VARCHAR, location VARCHAR)
Which Report includes Monaco?
SELECT report FROM table_name_95 WHERE location = "monaco"
CREATE TABLE table_name_38 (date VARCHAR, fastest_lap VARCHAR)
On what date did Gunnar Nilsson make the fastest lap?
SELECT date FROM table_name_38 WHERE fastest_lap = "gunnar nilsson"
CREATE TABLE table_name_71 (fastest_lap VARCHAR, race VARCHAR)
Who had the fastest lap for the German Grand Prix?
SELECT fastest_lap FROM table_name_71 WHERE race = "german grand prix"
CREATE TABLE table_name_15 (format VARCHAR, label VARCHAR, catalog VARCHAR, date VARCHAR)
What is the format for the album under the label, luaka bop, that had a catalog number of 3645 and dated after 1981?
SELECT format FROM table_name_15 WHERE catalog = "3645" AND date > 1981 AND label = "luaka bop"
CREATE TABLE table_name_2 (date INTEGER, label VARCHAR, catalog VARCHAR, format VARCHAR)
what is the earliest date for the album that had a catalog number of 3645, was formatted as a cd and was under the luaka bop label?
SELECT MIN(date) FROM table_name_2 WHERE catalog = "3645" AND format = "cd" AND label = "luaka bop"
CREATE TABLE table_name_42 (label VARCHAR, catalog VARCHAR, date VARCHAR)
Under what label was the album with the catalog of 3645 and came out later than 1987?
SELECT label FROM table_name_42 WHERE catalog = "3645" AND date > 1987
CREATE TABLE table_name_59 (points INTEGER, home VARCHAR, game__number VARCHAR)
What is the points where Toronto was the home team and the game number was larger than 63?
SELECT MAX(points) FROM table_name_59 WHERE home = "toronto" AND game__number > 63
CREATE TABLE table_name_85 (laps VARCHAR, driver VARCHAR, grid VARCHAR)
How many laps did mike spence complete grids above 12?
SELECT COUNT(laps) FROM table_name_85 WHERE driver = "mike spence" AND grid > 12
CREATE TABLE table_name_70 (laps INTEGER, constructor VARCHAR, grid VARCHAR)
How many average laps did brm complete in grids larger than 12?
SELECT AVG(laps) FROM table_name_70 WHERE constructor = "brm" AND grid = 12
CREATE TABLE table_name_17 (driver VARCHAR, grid VARCHAR, time_retired VARCHAR)
Who drove in grids more than 3 and exited in an accident?
SELECT driver FROM table_name_17 WHERE grid > 3 AND time_retired = "accident"
CREATE TABLE table_name_21 (grid VARCHAR, driver VARCHAR)
In what grid did jim clark drive in?
SELECT grid FROM table_name_21 WHERE driver = "jim clark"
CREATE TABLE table_name_3 (opponent VARCHAR, date VARCHAR)
Which opponent has a date 21 jul 2007?
SELECT opponent FROM table_name_3 WHERE date = "21 jul 2007"
CREATE TABLE table_name_91 (venue VARCHAR, home_team VARCHAR)
What was the venue of the Melbourne team?
SELECT venue FROM table_name_91 WHERE home_team = "melbourne"
CREATE TABLE table_name_45 (race_name VARCHAR, winning_driver VARCHAR, constructor VARCHAR, circuit VARCHAR)
What was the race that featured stirling moss winning with a maserati at aintree?
SELECT race_name FROM table_name_45 WHERE constructor = "maserati" AND circuit = "aintree" AND winning_driver = "stirling moss"
CREATE TABLE table_name_98 (report VARCHAR, circuit VARCHAR)
What does the Circuit of caen report?
SELECT report FROM table_name_98 WHERE circuit = "caen"
CREATE TABLE table_name_51 (winning_driver VARCHAR, race_name VARCHAR)
Who is the winning drive of iv grand prix de caen?
SELECT winning_driver FROM table_name_51 WHERE race_name = "iv grand prix de caen"
CREATE TABLE table_name_32 (ship_types_delivered VARCHAR, yard_name VARCHAR)
What types of ships were made at the Froemming Brothers ship yard?
SELECT ship_types_delivered FROM table_name_32 WHERE yard_name = "froemming brothers"
CREATE TABLE table_name_5 (appearances VARCHAR, goals VARCHAR)
What is the amount of apperances of the person who had 36 goals?
SELECT appearances FROM table_name_5 WHERE goals = 36
CREATE TABLE table_name_7 (name VARCHAR, points VARCHAR)
Tell me the name with points of 151.66
SELECT name FROM table_name_7 WHERE points = 151.66
CREATE TABLE table_name_98 (rank VARCHAR, nation VARCHAR, places VARCHAR, points VARCHAR)
Tell me the total number of rank for places less than 94 and points less than 169.8 for japan
SELECT COUNT(rank) FROM table_name_98 WHERE places < 94 AND points < 169.8 AND nation = "japan"
CREATE TABLE table_name_75 (fs VARCHAR, sp VARCHAR, points VARCHAR, rank VARCHAR, nation VARCHAR)
Tell me the total number of SP+FS with rank more than 8 for the netherlands and points more than 127.26
SELECT COUNT(sp) + fs FROM table_name_75 WHERE rank > 8 AND nation = "netherlands" AND points > 127.26
CREATE TABLE table_name_28 (fs VARCHAR, sp VARCHAR, places VARCHAR, points VARCHAR)
Name the total number of SP+FS for places of 60 and points more than 151.66
SELECT COUNT(sp) + fs FROM table_name_28 WHERE places = 60 AND points > 151.66
CREATE TABLE table_name_2 (fs VARCHAR, sp INTEGER, places VARCHAR, name VARCHAR)
Name the average SP+FS with places less tha 94 for renata baierova
SELECT AVG(sp) + fs FROM table_name_2 WHERE places < 94 AND name = "renata baierova"
CREATE TABLE table_name_14 (color VARCHAR, model__number VARCHAR)
What color is model # pd-kb400w?
SELECT color FROM table_name_14 WHERE model__number = "pd-kb400w"
CREATE TABLE table_name_29 (average INTEGER, interview VARCHAR, state VARCHAR, swimsuit VARCHAR, evening_gown VARCHAR)
What's the lowest average for a swimsuit over 6.89, evening gown over 7.76, and an interview over 8.57 in illinois?
SELECT MIN(average) FROM table_name_29 WHERE swimsuit > 6.89 AND evening_gown > 7.76 AND state = "illinois" AND interview > 8.57
CREATE TABLE table_name_13 (swimsuit INTEGER, state VARCHAR, interview VARCHAR, average VARCHAR, evening_gown VARCHAR)
What's the highest swimsuit for an average less than 8.073, evening gown less than 8.31, and an interview over 8.23 in georgia?
SELECT MAX(swimsuit) FROM table_name_13 WHERE average < 8.073 AND evening_gown < 8.31 AND interview > 8.23 AND state = "georgia"
CREATE TABLE table_name_43 (swimsuit INTEGER, state VARCHAR, interview VARCHAR)
What's utah's lowest swimsuit with an interview over 8.53?
SELECT MIN(swimsuit) FROM table_name_43 WHERE state = "utah" AND interview > 8.53
CREATE TABLE table_name_66 (week VARCHAR, date VARCHAR)
What week was October 9, 1938?
SELECT COUNT(week) FROM table_name_66 WHERE date = "october 9, 1938"
CREATE TABLE table_name_42 (home_team VARCHAR, away_team VARCHAR)
What home team played Collingwood as the away team?
SELECT home_team FROM table_name_42 WHERE away_team = "collingwood"
CREATE TABLE table_name_77 (away_team VARCHAR, venue VARCHAR)
What was the score of the away team at Junction Oval?
SELECT away_team AS score FROM table_name_77 WHERE venue = "junction oval"
CREATE TABLE table_name_96 (constructor VARCHAR, driver VARCHAR)
Who built giancarlo fisichella's car?
SELECT constructor FROM table_name_96 WHERE driver = "giancarlo fisichella"
CREATE TABLE table_name_66 (laps INTEGER, driver VARCHAR, grid VARCHAR)
What is the high lap total for mika salo with a grid greater than 17?
SELECT MAX(laps) FROM table_name_66 WHERE driver = "mika salo" AND grid > 17
CREATE TABLE table_name_4 (location VARCHAR, country VARCHAR, name VARCHAR)
Where was the location with Muirfield in Scotland?
SELECT location FROM table_name_4 WHERE country = "scotland" AND name = "muirfield"
CREATE TABLE table_name_46 (country VARCHAR, name VARCHAR)
Name the country for pieroni
SELECT country FROM table_name_46 WHERE name = "pieroni"
CREATE TABLE table_name_90 (country VARCHAR, type VARCHAR, moving_from VARCHAR)
Name the country for 6-month loan and moving from of lens
SELECT country FROM table_name_90 WHERE type = "6-month loan" AND moving_from = "lens"
CREATE TABLE table_name_88 (transfer_fee VARCHAR, transfer_window VARCHAR, name VARCHAR)
Name the transfer fee with a transfer window of summer for schollen
SELECT transfer_fee FROM table_name_88 WHERE transfer_window = "summer" AND name = "schollen"
CREATE TABLE table_name_9 (name VARCHAR, moving_from VARCHAR)
Name the name that has moving of 1. fc nürnberg.
SELECT name FROM table_name_9 WHERE moving_from = "1. fc nürnberg"
CREATE TABLE table_name_4 (country VARCHAR, name VARCHAR)
Name the country with polák
SELECT country FROM table_name_4 WHERE name = "polák"
CREATE TABLE table_name_11 (home_team VARCHAR, away_team VARCHAR)
What was the home team score at North Melbourne's away game?
SELECT home_team AS score FROM table_name_11 WHERE away_team = "north melbourne"
CREATE TABLE table_name_47 (home_team VARCHAR, away_team VARCHAR)
What was Collingwood's score at the home match against Richmond?
SELECT home_team AS score FROM table_name_47 WHERE away_team = "richmond"
CREATE TABLE table_name_14 (laps INTEGER, grid INTEGER)
What is the lowest number of laps with a grid larger than 24?
SELECT MIN(laps) FROM table_name_14 WHERE grid > 24
CREATE TABLE table_name_5 (grid INTEGER, driver VARCHAR, laps VARCHAR)
For Jo Siffert, what was the highest grid with the number of laps above 12?
SELECT MAX(grid) FROM table_name_5 WHERE driver = "jo siffert" AND laps > 12
CREATE TABLE table_name_23 (laps INTEGER, driver VARCHAR)
What is the average number of laps when Gerhard Berger is the driver?
SELECT AVG(laps) FROM table_name_23 WHERE driver = "gerhard berger"
CREATE TABLE table_name_9 (constructor VARCHAR, laps VARCHAR, grid VARCHAR)
What is the name of the constructor who has more than 50 laps and a grid of 7?
SELECT constructor FROM table_name_9 WHERE laps > 50 AND grid = 7
CREATE TABLE table_name_50 (title VARCHAR, production_code VARCHAR)
What is the title of the episode with a production code of ad1b04?
SELECT title FROM table_name_50 WHERE production_code = "ad1b04"
CREATE TABLE table_name_22 (time VARCHAR, event VARCHAR)
Name the time for event of tfc 21
SELECT time FROM table_name_22 WHERE event = "tfc 21"
CREATE TABLE table_name_7 (sport VARCHAR, gold VARCHAR, silver VARCHAR)
What sport has a Gold larger than 0, and a Silver of 2?
SELECT sport FROM table_name_7 WHERE gold > 0 AND silver = 2
CREATE TABLE table_name_29 (bronze INTEGER, silver VARCHAR, sport VARCHAR)
What is the lowest Bronze that has a Total larger than 18 and a Silver smaller than 143?
SELECT MIN(bronze) FROM table_name_29 WHERE "total" > 18 AND sport = "total" AND silver < 143
CREATE TABLE table_name_13 (silver INTEGER, bronze VARCHAR, total VARCHAR)
How many total Silver has a Bronze larger than 19 and a Total smaller than 125?
SELECT SUM(silver) FROM table_name_13 WHERE bronze > 19 AND total < 125
CREATE TABLE table_name_7 (total INTEGER, gold VARCHAR, bronze VARCHAR, silver VARCHAR)
What is the highest total Bronze larger than 10, Silver larger than 28, and a Gold of 58?
SELECT MAX(total) FROM table_name_7 WHERE bronze > 10 AND silver > 28 AND gold = 58
CREATE TABLE table_name_97 (total INTEGER, bronze VARCHAR, sport VARCHAR, gold VARCHAR, silver VARCHAR)
What is the lowest Total that has a Gold larger than 0, Silver smaller than 4, Sport of football, and a Bronze larger than 1?
SELECT MIN(total) FROM table_name_97 WHERE gold > 0 AND silver < 4 AND sport = "football" AND bronze > 1
CREATE TABLE table_name_77 (time_retired VARCHAR, grid VARCHAR)
what is the time/retired when the grid is 9?
SELECT time_retired FROM table_name_77 WHERE grid = 9
CREATE TABLE table_name_5 (laps VARCHAR, driver VARCHAR)
what is the number of laps when the driver is ron flockhart?
SELECT COUNT(laps) FROM table_name_5 WHERE driver = "ron flockhart"
CREATE TABLE table_name_72 (engine VARCHAR, power VARCHAR)
What Engine has a Power of 114hp (85kw)?
SELECT engine FROM table_name_72 WHERE power = "114hp (85kw)"
CREATE TABLE table_name_68 (torque VARCHAR, engine VARCHAR)
What Torque has an AMC Power Tech I6 Engine?
SELECT torque FROM table_name_68 WHERE engine = "amc power tech i6"
CREATE TABLE table_name_57 (displacement VARCHAR, power VARCHAR)
What Displacement has 185hp (138kw) Power o
SELECT displacement FROM table_name_57 WHERE power = "185hp (138kw)"
CREATE TABLE table_name_47 (venue VARCHAR, home_team VARCHAR)
What venue features collingwood as the home side?
SELECT venue FROM table_name_47 WHERE home_team = "collingwood"
CREATE TABLE table_name_17 (attendance VARCHAR, game_site VARCHAR)
What's the attendance numbers for veterans stadium?
SELECT attendance FROM table_name_17 WHERE game_site = "veterans stadium"
CREATE TABLE table_name_79 (school VARCHAR, player VARCHAR)
What is the name of the school that has a player named Michael Dunigan?
SELECT school FROM table_name_79 WHERE player = "michael dunigan"
CREATE TABLE table_name_73 (religion VARCHAR, assumed_office VARCHAR, former_experience VARCHAR)
Name the religion for Former Experience of commissioner of health and assumed office before 2005
SELECT religion FROM table_name_73 WHERE assumed_office < 2005 AND former_experience = "commissioner of health"
CREATE TABLE table_name_60 (assumed_office INTEGER, name VARCHAR)
Tell me the loewst assume office for madeleine bordallo
SELECT MIN(assumed_office) FROM table_name_60 WHERE name = "madeleine bordallo"
CREATE TABLE table_name_60 (team VARCHAR, game VARCHAR)
Which team had a game of 82?
SELECT team FROM table_name_60 WHERE game = 82
CREATE TABLE table_name_77 (crowd VARCHAR, venue VARCHAR)
How many people attended the game at Junction Oval?
SELECT crowd FROM table_name_77 WHERE venue = "junction oval"
CREATE TABLE table_name_34 (score VARCHAR, decision VARCHAR, home VARCHAR)
What was the score for Boston's Home game that had Gerber as the decision?
SELECT score FROM table_name_34 WHERE decision = "gerber" AND home = "boston"
CREATE TABLE table_name_27 (record VARCHAR, date VARCHAR)
What was the record for the game on March 25?
SELECT record FROM table_name_27 WHERE date = "march 25"
CREATE TABLE table_name_51 (decision VARCHAR, home VARCHAR)
Who was the Decision at Anaheim's home game?
SELECT decision FROM table_name_51 WHERE home = "anaheim"
CREATE TABLE table_name_79 (driver VARCHAR, chassis VARCHAR)
Who is the driver of the chassis that is tg183b tg184?
SELECT driver FROM table_name_79 WHERE chassis = "tg183b tg184"
CREATE TABLE table_name_20 (engine VARCHAR, tyres VARCHAR, driver VARCHAR)
What was the engine belonging to Pierluigi Martini with a Tyre of P?
SELECT engine FROM table_name_20 WHERE tyres = "p" AND driver = "pierluigi martini"
CREATE TABLE table_name_85 (engine VARCHAR, rounds VARCHAR)
What was the featured in Engine through rounds 10-13?
SELECT engine FROM table_name_85 WHERE rounds = "10-13"
CREATE TABLE table_name_22 (entrant VARCHAR, driver VARCHAR)
Nigel Mansell was the driver in what Entrant?
SELECT entrant FROM table_name_22 WHERE driver = "nigel mansell"
CREATE TABLE table_name_28 (date VARCHAR, name__location_ VARCHAR)
What Date does the Name (location) Belyanitsky, Ivanovo, and Balino have?
SELECT date FROM table_name_28 WHERE name__location_ = "belyanitsky, ivanovo, and balino"