answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT draws FROM table_name_72 WHERE team = "durham"
CREATE TABLE table_name_72 (draws VARCHAR, team VARCHAR)
How many draws did Durham have?
SELECT wins FROM table_name_72 WHERE draws = "8"
CREATE TABLE table_name_72 (wins VARCHAR, draws VARCHAR)
How many wins happened with 8 draws?
SELECT grid FROM table_name_79 WHERE driver = "jenson button"
CREATE TABLE table_name_79 (grid VARCHAR, driver VARCHAR)
What was the grid of Jenson Button?
SELECT constructor FROM table_name_31 WHERE laps = "56" AND grid = "15"
CREATE TABLE table_name_31 (constructor VARCHAR, laps VARCHAR, grid VARCHAR)
Who was the constructor of the car that went 56 laps and had a grid of 15?
SELECT constructor FROM table_name_66 WHERE grid = "20"
CREATE TABLE table_name_66 (constructor VARCHAR, grid VARCHAR)
Who was the contstructor of the car having a grid of 20?
SELECT time_retired FROM table_name_96 WHERE constructor = "renault" AND laps = "40"
CREATE TABLE table_name_96 (time_retired VARCHAR, constructor VARCHAR, laps VARCHAR)
What was the time of the car having a constructor of Renault, which went 40 laps?
SELECT constructor FROM table_name_29 WHERE grid = "6"
CREATE TABLE table_name_29 (constructor VARCHAR, grid VARCHAR)
Who constructed the car that had a grid of 6?
SELECT SUM(podiums) FROM table_name_20 WHERE season = "2006" AND races > 16
CREATE TABLE table_name_20 (podiums INTEGER, season VARCHAR, races VARCHAR)
Can you tell me the sum of Podiums that has the Season of 2006, and the Races larger than 16?
SELECT SUM(flap) FROM table_name_40 WHERE pole > 0 AND podiums = 6
CREATE TABLE table_name_40 (flap INTEGER, pole VARCHAR, podiums VARCHAR)
Can you tell me the sum of FLap that has the Pole larger than 0, and the Podiums of 6?
SELECT home FROM table_name_42 WHERE record = "33-18-9"
CREATE TABLE table_name_42 (home VARCHAR, record VARCHAR)
Name the home with record of 33-18-9
SELECT score FROM table_name_85 WHERE home = "detroit" AND record = "33-18-9"
CREATE TABLE table_name_85 (score VARCHAR, home VARCHAR, record VARCHAR)
Name the score for detroit home and record of 33-18-9
SELECT score FROM table_name_89 WHERE visitor = "toronto" AND record = "29-17-8"
CREATE TABLE table_name_89 (score VARCHAR, visitor VARCHAR, record VARCHAR)
Name the score for toronto visitor and record of 29-17-8
SELECT home FROM table_name_25 WHERE visitor = "detroit" AND date = "february 29"
CREATE TABLE table_name_25 (home VARCHAR, visitor VARCHAR, date VARCHAR)
Name the home for detroit visitor and date of february 29
SELECT music FROM table_name_60 WHERE record_label = "moviebox/ speed records / music waves"
CREATE TABLE table_name_60 (music VARCHAR, record_label VARCHAR)
Which Music has a Record label of moviebox/ speed records / music waves?
SELECT MAX(year) FROM table_name_69 WHERE record_label = "supertone melodies"
CREATE TABLE table_name_69 (year INTEGER, record_label VARCHAR)
Which Year is the highest one that has a Record label of supertone melodies?
SELECT record_label FROM table_name_84 WHERE album = "tera roop"
CREATE TABLE table_name_84 (record_label VARCHAR, album VARCHAR)
Which Record label has an Album of tera roop?
SELECT record_label FROM table_name_63 WHERE album = "rambo"
CREATE TABLE table_name_63 (record_label VARCHAR, album VARCHAR)
Which Record label has an Album of rambo?
SELECT info FROM table_name_95 WHERE album = "romeo"
CREATE TABLE table_name_95 (info VARCHAR, album VARCHAR)
Which Info has an Album of romeo?
SELECT AVG(attendance) FROM table_name_63 WHERE record = "58–49"
CREATE TABLE table_name_63 (attendance INTEGER, record VARCHAR)
What was the average attendance when the record was 58–49?
SELECT SUM(attendance) FROM table_name_16 WHERE score = "8–7"
CREATE TABLE table_name_16 (attendance INTEGER, score VARCHAR)
What was the attendance when the score was 8–7?
SELECT COUNT(attendance) FROM table_name_84 WHERE date = "july 18"
CREATE TABLE table_name_84 (attendance VARCHAR, date VARCHAR)
What was the attendance for july 18?
SELECT to_par FROM table_name_13 WHERE score = "1 up"
CREATE TABLE table_name_13 (to_par VARCHAR, score VARCHAR)
How many strokes to par when the score is 1 up?
SELECT series FROM table_name_12 WHERE game = "game 5"
CREATE TABLE table_name_12 (series VARCHAR, game VARCHAR)
Name the series for game 5
SELECT site FROM table_name_26 WHERE game = "game 2"
CREATE TABLE table_name_26 (site VARCHAR, game VARCHAR)
Name the site for game of game 2
SELECT site FROM table_name_49 WHERE game = "game 6"
CREATE TABLE table_name_49 (site VARCHAR, game VARCHAR)
Name the site with game of game 6
SELECT series FROM table_name_58 WHERE game = "game 6"
CREATE TABLE table_name_58 (series VARCHAR, game VARCHAR)
Name the series with game of game 6
SELECT location_attendance FROM table_name_63 WHERE high_points = "dwyane wade (27)"
CREATE TABLE table_name_63 (location_attendance VARCHAR, high_points VARCHAR)
What is the location attendance from Dwyane Wade (27) high points?
SELECT high_assists FROM table_name_98 WHERE high_points = "dorell wright (20)"
CREATE TABLE table_name_98 (high_assists VARCHAR, high_points VARCHAR)
What was the high assists from a high points of dorell wright (20)?
SELECT high_rebounds FROM table_name_29 WHERE date = "april 14"
CREATE TABLE table_name_29 (high_rebounds VARCHAR, date VARCHAR)
What was the high rebounds from the date of April 14?
SELECT fuel_propulsion FROM table_name_41 WHERE year = 1975 AND numbers__quantity_ordered_ = "4756-4788 (33 buses)"
CREATE TABLE table_name_41 (fuel_propulsion VARCHAR, year VARCHAR, numbers__quantity_ordered_ VARCHAR)
For the year 1975, what is Propulsion, with a Number (quantity ordered) of 4756-4788 (33 buses)?
SELECT year AS Retired FROM table_name_2 WHERE fuel_propulsion = "diesel" AND length = "40'" AND numbers__quantity_ordered_ = "3701-3729 (29 buses)"
CREATE TABLE table_name_2 (year VARCHAR, numbers__quantity_ordered_ VARCHAR, fuel_propulsion VARCHAR, length VARCHAR)
What year was the diesel fuel propulsion, with a length of 40', and numbers (quanity ordered) of 3701-3729 (29 buses), retired?
SELECT location_attendance FROM table_name_27 WHERE record = "27-22"
CREATE TABLE table_name_27 (location_attendance VARCHAR, record VARCHAR)
What is the location attendance of the game with a 27-22 record?
SELECT location_attendance FROM table_name_52 WHERE date = "february 25"
CREATE TABLE table_name_52 (location_attendance VARCHAR, date VARCHAR)
What is the location attendance of the game on February 25?
SELECT MAX(fall_08) FROM table_name_96 WHERE fall_09 < 82 AND fall_06 = 5 AND fall_05 < 3
CREATE TABLE table_name_96 (fall_08 INTEGER, fall_05 VARCHAR, fall_09 VARCHAR, fall_06 VARCHAR)
What's the largest Fall 08 number when fall 09 is less than 82, fall 06 is 5, and fall 05 is less than 3?
SELECT AVG(fall_09) FROM table_name_34 WHERE fall_05 < 3
CREATE TABLE table_name_34 (fall_09 INTEGER, fall_05 INTEGER)
What is the mean Fall 09 number where fall 05 is less than 3?
SELECT COUNT(fall_05) FROM table_name_31 WHERE fall_08 > 5 AND fall_06 > 7 AND states = "maryland" AND fall_09 > 471
CREATE TABLE table_name_31 (fall_05 VARCHAR, fall_09 VARCHAR, states VARCHAR, fall_08 VARCHAR, fall_06 VARCHAR)
What is the sum amount of fall 05 when fall 08 is more than 5, fall 06 is more than 7, the state is Maryland, and fall 09 is more than 471?
SELECT MIN(fall_05) FROM table_name_22 WHERE fall_09 < 14 AND fall_08 > 5
CREATE TABLE table_name_22 (fall_05 INTEGER, fall_09 VARCHAR, fall_08 VARCHAR)
What's the smallest fall 05 number when fall 09 is less than 14 and fall 08 is more than 5?
SELECT notes FROM table_name_17 WHERE time = "men's speed skating"
CREATE TABLE table_name_17 (notes VARCHAR, time VARCHAR)
What is in the notes for men's speed skating?
SELECT date FROM table_name_76 WHERE location = "berlin"
CREATE TABLE table_name_76 (date VARCHAR, location VARCHAR)
What's the date when the location is Berlin?
SELECT location FROM table_name_70 WHERE distance = "men's speed skating"
CREATE TABLE table_name_70 (location VARCHAR, distance VARCHAR)
What's the location for men's speed skating?
SELECT location FROM table_name_27 WHERE "notes" = "notes"
CREATE TABLE table_name_27 (location VARCHAR)
What's the location when the notes area is notes?
SELECT notes FROM table_name_96 WHERE location = "berlin"
CREATE TABLE table_name_96 (notes VARCHAR, location VARCHAR)
What is the notes left for Berlin?
SELECT name FROM table_name_98 WHERE location = "angola" AND entered_service = "1988"
CREATE TABLE table_name_98 (name VARCHAR, location VARCHAR, entered_service VARCHAR)
Which is located in Angola and entered service in 1988?
SELECT type FROM table_name_70 WHERE entered_service = "2000"
CREATE TABLE table_name_70 (type VARCHAR, entered_service VARCHAR)
What type entered service in 2000?
SELECT water_depth FROM table_name_59 WHERE location = "nigeria" AND name = "sedco 702"
CREATE TABLE table_name_59 (water_depth VARCHAR, location VARCHAR, name VARCHAR)
What is the water depth of Sedco 702, located in Nigeria?
SELECT name FROM table_name_72 WHERE location = "nigeria"
CREATE TABLE table_name_72 (name VARCHAR, location VARCHAR)
Which is located in Nigeria?
SELECT type FROM table_name_87 WHERE location = "brazil" AND entered_service = "1976/1997"
CREATE TABLE table_name_87 (type VARCHAR, location VARCHAR, entered_service VARCHAR)
Which type entered service in 1976/1997 and is located in Brazil?
SELECT location FROM table_name_31 WHERE type = "semi" AND entered_service = "1988" AND name = "transocean richardson"
CREATE TABLE table_name_31 (location VARCHAR, name VARCHAR, type VARCHAR, entered_service VARCHAR)
Where is Transocean Richardson, a semi entered into service in 1988?
SELECT COUNT(yds_att) FROM table_name_10 WHERE net_yds = 1818 AND rank > 1
CREATE TABLE table_name_10 (yds_att VARCHAR, net_yds VARCHAR, rank VARCHAR)
What is the total number of Yds/Att where Net Yds was 1818, and Rank was larger than 1?
SELECT MIN(rank) FROM table_name_46 WHERE attempts = 319 AND year > 2000
CREATE TABLE table_name_46 (rank INTEGER, attempts VARCHAR, year VARCHAR)
What is the lowest Rank when Attempts was 319, and the Year was larger than 2000?
SELECT COUNT(attempts) FROM table_name_95 WHERE rank > 4 AND net_yds < 1674
CREATE TABLE table_name_95 (attempts VARCHAR, rank VARCHAR, net_yds VARCHAR)
What is the total number of Attempts when Rank was larger than 4, and Net Yds was smaller than 1674?
SELECT new_conference FROM table_name_28 WHERE team_nickname = "gauchos"
CREATE TABLE table_name_28 (new_conference VARCHAR, team_nickname VARCHAR)
What is the new conference for the Gauchos team?
SELECT new_classification FROM table_name_69 WHERE location = "la mirada, california"
CREATE TABLE table_name_69 (new_classification VARCHAR, location VARCHAR)
What is the new classification for La Mirada, California?
SELECT tenure FROM table_name_28 WHERE team_nickname = "tritons"
CREATE TABLE table_name_28 (tenure VARCHAR, team_nickname VARCHAR)
What is the tenure for the Tritons team?
SELECT opponent FROM table_name_40 WHERE march = 28
CREATE TABLE table_name_40 (opponent VARCHAR, march VARCHAR)
Which opponent was present on March 28?
SELECT AVG(game) FROM table_name_73 WHERE points > 99
CREATE TABLE table_name_73 (game INTEGER, points INTEGER)
What is the mean game number when the points scored were more than 99?
SELECT opponent FROM table_name_21 WHERE game = 7
CREATE TABLE table_name_21 (opponent VARCHAR, game VARCHAR)
Who is the opponent in game 7?
SELECT SUM(december) FROM table_name_63 WHERE record = "7-2-2" AND game < 11
CREATE TABLE table_name_63 (december INTEGER, record VARCHAR, game VARCHAR)
What day in December was the game before game 11 with a record of 7-2-2?
SELECT COUNT(december) FROM table_name_11 WHERE opponent = "boston bruins"
CREATE TABLE table_name_11 (december VARCHAR, opponent VARCHAR)
What is the day in December of the game against the Boston Bruins?
SELECT AVG(december) FROM table_name_25 WHERE record = "8-2-3"
CREATE TABLE table_name_25 (december INTEGER, record VARCHAR)
What is the average day in December of the game with a 8-2-3 record?
SELECT SUM(seats) FROM table_name_53 WHERE quantity > 45
CREATE TABLE table_name_53 (seats INTEGER, quantity INTEGER)
How many seats have a quantity over 45?
SELECT owner FROM table_name_60 WHERE seats = 84
CREATE TABLE table_name_60 (owner VARCHAR, seats VARCHAR)
Which owner has 84 seats?
SELECT delivery FROM table_name_93 WHERE quantity = 16 AND standing > 128
CREATE TABLE table_name_93 (delivery VARCHAR, quantity VARCHAR, standing VARCHAR)
Which deliver has 16 and a standing more than 128?
SELECT host_city FROM table_name_43 WHERE hosts = "alicia keys"
CREATE TABLE table_name_43 (host_city VARCHAR, hosts VARCHAR)
What is the host city that has Alicia Keys listed as a host?
SELECT host_city FROM table_name_24 WHERE venue = "singapore indoor stadium" AND theme = "valentine's day"
CREATE TABLE table_name_24 (host_city VARCHAR, venue VARCHAR, theme VARCHAR)
What is the host city of the Singapore Indoor Stadium venue and a Valentine's Day theme?
SELECT year FROM table_name_78 WHERE host_city = "bangkok" AND hosts = "alicia keys"
CREATE TABLE table_name_78 (year VARCHAR, host_city VARCHAR, hosts VARCHAR)
What year will Bangkok be the host city and Alicia Keys host?
SELECT hosts FROM table_name_88 WHERE host_city = "bangkok" AND theme = "codehunters"
CREATE TABLE table_name_88 (hosts VARCHAR, host_city VARCHAR, theme VARCHAR)
Who are the hosts from the event with a theme of codehunters and the host city of Bangkok?
SELECT hosts FROM table_name_2 WHERE year = "2004"
CREATE TABLE table_name_2 (hosts VARCHAR, year VARCHAR)
Who are the hosts for the 2004 event?
SELECT date FROM table_name_21 WHERE margin_of_victory = "1 stroke" AND runner_s__up = "greg kraft"
CREATE TABLE table_name_21 (date VARCHAR, margin_of_victory VARCHAR, runner_s__up VARCHAR)
What date has a margin of victory of 1 stroke over Greg Kraft?
SELECT margin_of_victory FROM table_name_61 WHERE runner_s__up = "steve rintoul"
CREATE TABLE table_name_61 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
What was the margin of victory over Steve Rintoul?
SELECT margin_of_victory FROM table_name_51 WHERE runner_s__up = "brad faxon"
CREATE TABLE table_name_51 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
What was the margin of victory over Brad Faxon?
SELECT years FROM table_name_62 WHERE model = "2.0 tdi (cr) dpf"
CREATE TABLE table_name_62 (years VARCHAR, model VARCHAR)
What years show Model of 2.0 tdi (cr) dpf?
SELECT power FROM table_name_28 WHERE model = "2.0 tdi (cr) dpf" AND years = "2010–2011"
CREATE TABLE table_name_28 (power VARCHAR, model VARCHAR, years VARCHAR)
What is the power for model 2.0 tdi (cr) dpf, and a Years of 2010–2011?
SELECT torque FROM table_name_37 WHERE model = "2.0 bitdi (cr) dpf" AND years = "2010–"
CREATE TABLE table_name_37 (torque VARCHAR, model VARCHAR, years VARCHAR)
What is the torque for Model of 2.0 bitdi (cr) dpf, in 2010–?
SELECT engine FROM table_name_87 WHERE model = "2.0 bitdi (cr) dpf" AND torque = "n·m (lb·ft) @ 1500–2000 rpm"
CREATE TABLE table_name_87 (engine VARCHAR, model VARCHAR, torque VARCHAR)
What is the engine for model 2.0 bitdi (cr) dpf, with a Torque of n·m (lb·ft) @ 1500–2000 rpm?
SELECT court_rank FROM table_name_6 WHERE lineage = "son of norihiro"
CREATE TABLE table_name_6 (court_rank VARCHAR, lineage VARCHAR)
What is the Court Rank of Son of Norihiro's Lineage?
SELECT 1811 FROM table_name_47 WHERE "1801" = "1801"
CREATE TABLE table_name_47 (Id VARCHAR)
Name the 1811 for 1801 of 1801
SELECT 1861 FROM table_name_97 WHERE 1851 = "5291"
CREATE TABLE table_name_97 (Id VARCHAR)
Name the 1861 with 1851 of 5291
SELECT 1901 FROM table_name_12 WHERE 1851 = "1961"
CREATE TABLE table_name_12 (Id VARCHAR)
Name the 1901 with 1851 of 1961
SELECT 1821 FROM table_name_1 WHERE 1811 = "1921"
CREATE TABLE table_name_1 (Id VARCHAR)
Name the 1821 with 1811 of 1921
SELECT 1821 FROM table_name_30 WHERE 1861 = "3733"
CREATE TABLE table_name_30 (Id VARCHAR)
Name the 1821 with 1861 of 3733
SELECT COUNT(area__km_2__) FROM table_name_20 WHERE population < 90
CREATE TABLE table_name_20 (area__km_2__ VARCHAR, population INTEGER)
What's the sum of the Area (KM 2) that's got a Population that's smaller than 90?
SELECT MIN(code) FROM table_name_92 WHERE most_spoken_language = "xhosa" AND place = "addo elephant national park" AND area__km_2__ < 1.08
CREATE TABLE table_name_92 (code INTEGER, area__km_2__ VARCHAR, most_spoken_language VARCHAR, place VARCHAR)
What's the lowest Code that's got a Most Spoke Language of Xhosa, a Place of Addo Elephant National Park, and an Area (KM 2) that's smaller than 1.08?
SELECT score FROM table_name_19 WHERE game = 31
CREATE TABLE table_name_19 (score VARCHAR, game VARCHAR)
What is the score at game 31?
SELECT MIN(grid) FROM table_name_22 WHERE rider = "ruben xaus"
CREATE TABLE table_name_22 (grid INTEGER, rider VARCHAR)
What is the Grid for Rider Ruben Xaus?
SELECT MIN(laps) FROM table_name_8 WHERE grid > 3 AND time = "39:24.967"
CREATE TABLE table_name_8 (laps INTEGER, grid VARCHAR, time VARCHAR)
What was the number of Laps with a Grid of more than 3 and Time of 39:24.967?
SELECT rider FROM table_name_14 WHERE time = "+1:08.291"
CREATE TABLE table_name_14 (rider VARCHAR, time VARCHAR)
What Rider had a Time of +1:08.291?
SELECT COUNT(laps) FROM table_name_78 WHERE bike = "ducati 999 f06" AND time = "+53.488" AND grid > 11
CREATE TABLE table_name_78 (laps VARCHAR, grid VARCHAR, bike VARCHAR, time VARCHAR)
Using a Ducati 999 F06 Bike, how many Laps with a Grid greater than 11 and Time of +53.488?
SELECT date FROM table_name_63 WHERE record = "13–17–3"
CREATE TABLE table_name_63 (date VARCHAR, record VARCHAR)
When was there a record of 13–17–3?
SELECT record FROM table_name_31 WHERE home = "vancouver" AND date = "december 8"
CREATE TABLE table_name_31 (record VARCHAR, home VARCHAR, date VARCHAR)
What record was made in vancouver on December 8?
SELECT home FROM table_name_94 WHERE visitor = "california"
CREATE TABLE table_name_94 (home VARCHAR, visitor VARCHAR)
What was the home who had California visiting?
SELECT score FROM table_name_41 WHERE visitor = "philadelphia" AND date = "december 1"
CREATE TABLE table_name_41 (score VARCHAR, visitor VARCHAR, date VARCHAR)
What's the score on December 1 when Philadelphia visited?
SELECT type_of_game FROM table_name_5 WHERE results¹ = "1:6"
CREATE TABLE table_name_5 (type_of_game VARCHAR, results¹ VARCHAR)
What was the type of game with a 1:6 result?
SELECT opponent FROM table_name_28 WHERE city = "belgrade" AND results¹ = "0:2"
CREATE TABLE table_name_28 (opponent VARCHAR, city VARCHAR, results¹ VARCHAR)
Who was the opponent at the game in Belgrade with a 0:2 result?
SELECT city FROM table_name_69 WHERE results¹ = "1:0"
CREATE TABLE table_name_69 (city VARCHAR, results¹ VARCHAR)
What city held the game with a result of 1:0?
SELECT type_of_game FROM table_name_7 WHERE results¹ = "1:2"
CREATE TABLE table_name_7 (type_of_game VARCHAR, results¹ VARCHAR)
What type of game had a result of 1:2?
SELECT results¹ FROM table_name_54 WHERE opponent = "hungary"
CREATE TABLE table_name_54 (results¹ VARCHAR, opponent VARCHAR)
What was the result of the game against Hungary?
SELECT remixed_by FROM table_name_70 WHERE version = "radio edit"
CREATE TABLE table_name_70 (remixed_by VARCHAR, version VARCHAR)
Who was the Radio Edit Version remixed by?
SELECT version FROM table_name_45 WHERE year < 1996
CREATE TABLE table_name_45 (version VARCHAR, year INTEGER)
What was the Version prior to 1996?
SELECT date FROM table_name_76 WHERE catalog = "573 194-2"
CREATE TABLE table_name_76 (date VARCHAR, catalog VARCHAR)
What is the Date of Catalog 573 194-2?