answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT title FROM table_name_36 WHERE number = 4
CREATE TABLE table_name_36 (title VARCHAR, number VARCHAR)
What is number 4's title?
SELECT COUNT(number) FROM table_name_52 WHERE born = "1368"
CREATE TABLE table_name_52 (number VARCHAR, born VARCHAR)
How many people were born in 1368?
SELECT mother FROM table_name_90 WHERE number = 12
CREATE TABLE table_name_90 (mother VARCHAR, number VARCHAR)
Who was number 12's mother?
SELECT COUNT(week) FROM table_name_79 WHERE date = "dec. 19"
CREATE TABLE table_name_79 (week VARCHAR, date VARCHAR)
What was the week number when they played on Dec. 19?
SELECT AVG(founded) FROM table_name_70 WHERE location = "east lansing, mi"
CREATE TABLE table_name_70 (founded INTEGER, location VARCHAR)
What is the average number of students in East Lansing, MI?
SELECT MIN(founded) FROM table_name_8 WHERE affiliation = "community college"
CREATE TABLE table_name_8 (founded INTEGER, affiliation VARCHAR)
What is the lowest number of students at the community college?
SELECT AVG(score) FROM table_name_70 WHERE champion = "joanne carner"
CREATE TABLE table_name_70 (score INTEGER, champion VARCHAR)
What is Joanne Carner's average score in Canadian Women's Open games that she has won?
SELECT country FROM table_name_73 WHERE champion = "jocelyne bourassa"
CREATE TABLE table_name_73 (country VARCHAR, champion VARCHAR)
What country does jocelyne bourassa play for?
SELECT performance FROM table_name_39 WHERE test_standard = "bs en779" AND particulate_size_approaching_100_percentage_retention = ">2µm" AND class = "f6"
CREATE TABLE table_name_39 (performance VARCHAR, class VARCHAR, test_standard VARCHAR, particulate_size_approaching_100_percentage_retention VARCHAR)
Which Performance has a Test Standard of bs en779, and a Particulate size approaching 100% retention of >2µm, and a Class of f6?
SELECT performance FROM table_name_38 WHERE usage = "hepa" AND class = "h14"
CREATE TABLE table_name_38 (performance VARCHAR, usage VARCHAR, class VARCHAR)
Which Performance has a Usage of hepa and a Class of h14?
SELECT particulate_size_approaching_100_percentage_retention FROM table_name_47 WHERE usage = "semi hepa" AND class = "h12"
CREATE TABLE table_name_47 (particulate_size_approaching_100_percentage_retention VARCHAR, usage VARCHAR, class VARCHAR)
Which Particulate size approaching 100% retention has a Usage of semi hepa and a Class of h12?
SELECT test_standard FROM table_name_28 WHERE usage = "secondary filters" AND class = "f5"
CREATE TABLE table_name_28 (test_standard VARCHAR, usage VARCHAR, class VARCHAR)
Which Test Standard has a Usage of secondary filters, and a Class of f5? Question 4
SELECT score FROM table_name_7 WHERE to_par = "–1" AND player = "mick soli"
CREATE TABLE table_name_7 (score VARCHAR, to_par VARCHAR, player VARCHAR)
Which Score has a To par of –1, and a Player of mick soli?
SELECT AVG(score) FROM table_name_35 WHERE place = "t1" AND player = "hubert green"
CREATE TABLE table_name_35 (score INTEGER, place VARCHAR, player VARCHAR)
Which Score has a Place of t1, and a Player of hubert green?
SELECT country FROM table_name_92 WHERE score = 69 AND player = "mick soli"
CREATE TABLE table_name_92 (country VARCHAR, score VARCHAR, player VARCHAR)
Which Country has a Score of 69, and a Player of mick soli?
SELECT country FROM table_name_38 WHERE place = "t1"
CREATE TABLE table_name_38 (country VARCHAR, place VARCHAR)
Which Country has a Place of t1?
SELECT moving_from FROM table_name_88 WHERE transfer_window = "summer" AND source = "kerkida.net"
CREATE TABLE table_name_88 (moving_from VARCHAR, transfer_window VARCHAR, source VARCHAR)
Where is the moving from location with a transfer window of summer and the source kerkida.net?
SELECT name FROM table_name_94 WHERE source = "apoelfc.com.cy" AND type = "transfer"
CREATE TABLE table_name_94 (name VARCHAR, source VARCHAR, type VARCHAR)
Which name has the source apoelfc.com.cy and a type of transfer?
SELECT fate FROM table_name_48 WHERE name = "san pablo"
CREATE TABLE table_name_48 (fate VARCHAR, name VARCHAR)
What is the Fate of the San Pablo ship?
SELECT date FROM table_name_55 WHERE name = "circe shell"
CREATE TABLE table_name_55 (date VARCHAR, name VARCHAR)
What is the date of attack of the Circe Shell Ship?
SELECT fuel_system FROM table_name_95 WHERE years = "1960-62"
CREATE TABLE table_name_95 (fuel_system VARCHAR, years VARCHAR)
What fuel system was used in 1960-62?
SELECT power FROM table_name_22 WHERE model = "1500" AND displacement = "1490cc"
CREATE TABLE table_name_22 (power VARCHAR, model VARCHAR, displacement VARCHAR)
How much power does the 1500 model have with a displacement of 1490cc?
SELECT years FROM table_name_44 WHERE displacement = "1816cc"
CREATE TABLE table_name_44 (years VARCHAR, displacement VARCHAR)
Which years have a displacement of 1816cc?
SELECT power FROM table_name_47 WHERE fuel_system = "fuel injection" AND displacement = "1991cc"
CREATE TABLE table_name_47 (power VARCHAR, fuel_system VARCHAR, displacement VARCHAR)
How much power does the fuel injection system have with a displacement of 1991cc?
SELECT fuel_system FROM table_name_68 WHERE displacement = "1490cc"
CREATE TABLE table_name_68 (fuel_system VARCHAR, displacement VARCHAR)
Which fuel system has a displacement of 1490cc?
SELECT fuel_system FROM table_name_71 WHERE displacement = "1500cc" AND model = "berlina"
CREATE TABLE table_name_71 (fuel_system VARCHAR, displacement VARCHAR, model VARCHAR)
Which fuel system has a displacement of 1500cc for the Berlina model?
SELECT MIN(industry) FROM table_name_96 WHERE year > 2005 AND agriculture > 11
CREATE TABLE table_name_96 (industry INTEGER, year VARCHAR, agriculture VARCHAR)
What is the lowest Industry, when Year is greater than 2005, and when Agriculture is greater than 11?
SELECT AVG(industry) FROM table_name_44 WHERE agriculture > 11
CREATE TABLE table_name_44 (industry INTEGER, agriculture INTEGER)
What is the average Industry, when Agriculture is greater than 11?
SELECT AVG(lost) FROM table_name_69 WHERE _percentage_pts > 110.25
CREATE TABLE table_name_69 (lost INTEGER, _percentage_pts INTEGER)
When the points scored was over 110.25%, what's the average amount lost?
SELECT MIN(lost) FROM table_name_27 WHERE _percentage_pts = 93.45
CREATE TABLE table_name_27 (lost INTEGER, _percentage_pts VARCHAR)
If the points scored were 93.45%, what's the lowest amount of games lost?
SELECT COUNT(rank) FROM table_name_14 WHERE director = "kevin costner"
CREATE TABLE table_name_14 (rank VARCHAR, director VARCHAR)
What is the rank of the film directed by Kevin Costner?
SELECT director FROM table_name_96 WHERE gross = "$200,512,643"
CREATE TABLE table_name_96 (director VARCHAR, gross VARCHAR)
What director grossed $200,512,643
SELECT AVG(rank) FROM table_name_26 WHERE studio = "paramount" AND gross = "$200,512,643"
CREATE TABLE table_name_26 (rank INTEGER, studio VARCHAR, gross VARCHAR)
What is the average rank of the movie from Paramount Studios that grossed $200,512,643?
SELECT director FROM table_name_81 WHERE title = "teenage mutant ninja turtles"
CREATE TABLE table_name_81 (director VARCHAR, title VARCHAR)
Who directed Teenage Mutant Ninja Turtles?
SELECT director FROM table_name_17 WHERE rank > 1 AND studio = "universal" AND gross = "$201,957,688"
CREATE TABLE table_name_17 (director VARCHAR, gross VARCHAR, rank VARCHAR, studio VARCHAR)
What director ranked higher than 1 from Universal Studios and grossed $201,957,688?
SELECT time_retired FROM table_name_94 WHERE manufacturer = "kawasaki" AND rider = "garry mccoy"
CREATE TABLE table_name_94 (time_retired VARCHAR, manufacturer VARCHAR, rider VARCHAR)
When the rider is Garry Mccoy and the manufacturer was Kawasaki, what was the time retired?
SELECT MAX(laps) FROM table_name_73 WHERE rider = "garry mccoy"
CREATE TABLE table_name_73 (laps INTEGER, rider VARCHAR)
What's the highest amount of laps Garry Mccoy drove?
SELECT time_retired FROM table_name_79 WHERE grid > 10 AND manufacturer = "proton kr"
CREATE TABLE table_name_79 (time_retired VARCHAR, grid VARCHAR, manufacturer VARCHAR)
If the manufacturer is Proton Kr and the grid was over 10, what was the time retired?
SELECT height FROM table_name_38 WHERE year = 1974
CREATE TABLE table_name_38 (height VARCHAR, year VARCHAR)
The year 1974 has what listed as the Height?
SELECT country FROM table_name_59 WHERE structure = "omega transmitter chabrier"
CREATE TABLE table_name_59 (country VARCHAR, structure VARCHAR)
The OMEGA transmitter Chabrier has what country listed?
SELECT structure FROM table_name_83 WHERE year < 2009 AND continent = "africa"
CREATE TABLE table_name_83 (structure VARCHAR, year VARCHAR, continent VARCHAR)
Listed with a continent of Africa and before 2009 this structure is called what?
SELECT height FROM table_name_40 WHERE year = 1972
CREATE TABLE table_name_40 (height VARCHAR, year VARCHAR)
The year 1972 has what written in Height column?
SELECT continent FROM table_name_30 WHERE country = "united states"
CREATE TABLE table_name_30 (continent VARCHAR, country VARCHAR)
What is the Continent that also has the United States listed as a country?
SELECT MAX(ends_won) FROM table_name_4 WHERE ends_lost = 47 AND shot__percentage < 73
CREATE TABLE table_name_4 (ends_won INTEGER, ends_lost VARCHAR, shot__percentage VARCHAR)
What is the highest number of ends won of 47 Ends Lost and a Shot % less than 73?
SELECT poll FROM table_name_71 WHERE april_14 = "13"
CREATE TABLE table_name_71 (poll VARCHAR, april_14 VARCHAR)
What Poll was on April 14 of 13?
SELECT mar_17 FROM table_name_96 WHERE april_21 = "10"
CREATE TABLE table_name_96 (mar_17 VARCHAR, april_21 VARCHAR)
What is the rank for Mar 17 when the April 21 rank is 10?
SELECT mar_24 FROM table_name_93 WHERE may_26 = "13" AND may_12 = "6"
CREATE TABLE table_name_93 (mar_24 VARCHAR, may_26 VARCHAR, may_12 VARCHAR)
What is the Mar 24 rank when the May 26 is 13, and the May 12 is 6?
SELECT april_28 FROM table_name_92 WHERE mar_24 = "17"
CREATE TABLE table_name_92 (april_28 VARCHAR, mar_24 VARCHAR)
What is the April 28 rank when the Mar 24 is 17?
SELECT april_14 FROM table_name_78 WHERE mar_3 = "nr" AND april_21 = "13"
CREATE TABLE table_name_78 (april_14 VARCHAR, mar_3 VARCHAR, april_21 VARCHAR)
What is the April 14 rank when the Mar 3rd is nr, and the April 21 is 13?
SELECT april_28 FROM table_name_91 WHERE final = "20" AND mar_17 = "22"
CREATE TABLE table_name_91 (april_28 VARCHAR, final VARCHAR, mar_17 VARCHAR)
What is the April 28th rank when the Final is 20, and Mar 17 is 22?
SELECT COUNT(podiums) FROM table_name_31 WHERE position = "2nd" AND wins < 6 AND poles > 0
CREATE TABLE table_name_31 (podiums VARCHAR, poles VARCHAR, position VARCHAR, wins VARCHAR)
What is the total number of Podiums, when Position is "2nd", when Wins is less than 6, and when Poles is greater than 0?
SELECT SUM(poles) FROM table_name_64 WHERE season < 2004 AND podiums < 1
CREATE TABLE table_name_64 (poles INTEGER, season VARCHAR, podiums VARCHAR)
What is the sum of Poles, when Season is greater than 2004, and when Podiums is less than 1?
SELECT AVG(poles) FROM table_name_65 WHERE wins = 0 AND position = "nc" AND season < 2004
CREATE TABLE table_name_65 (poles INTEGER, season VARCHAR, wins VARCHAR, position VARCHAR)
What is the average Poles, when Wins is 0, when Position is "nc", and when Season is before 2004?
SELECT SUM(poles) FROM table_name_1 WHERE season < 2005 AND position = "2nd" AND wins < 6
CREATE TABLE table_name_1 (poles INTEGER, wins VARCHAR, season VARCHAR, position VARCHAR)
What is the sum of Poles, when Season is before 2005, when Position is "2nd", and when Wins is less than 6?
SELECT 2012 AS _club FROM table_name_85 WHERE pos = "cf"
CREATE TABLE table_name_85 (pos VARCHAR)
What is the 2012 club of the cf pos. player?
SELECT years_in_the_acc FROM table_name_24 WHERE founded < 1885 AND location = "college park, maryland"
CREATE TABLE table_name_24 (years_in_the_acc VARCHAR, founded VARCHAR, location VARCHAR)
What are the years in the ACC of an institution that was founded before 1885 and is located in College Park, Maryland?
SELECT partnering FROM table_name_29 WHERE tournament = "lyon, france"
CREATE TABLE table_name_29 (partnering VARCHAR, tournament VARCHAR)
Who was the partner for the tournament in Lyon, France?
SELECT opponent FROM table_name_78 WHERE tournament = "milan, italy"
CREATE TABLE table_name_78 (opponent VARCHAR, tournament VARCHAR)
Who were the opponents for the event in Milan, Italy?
SELECT record FROM table_name_55 WHERE date = "december 1, 1968"
CREATE TABLE table_name_55 (record VARCHAR, date VARCHAR)
What was the record on the date of december 1, 1968?
SELECT record FROM table_name_89 WHERE date = "september 15, 1968"
CREATE TABLE table_name_89 (record VARCHAR, date VARCHAR)
What was the record on the date of september 15, 1968?
SELECT record FROM table_name_27 WHERE date = "november 10, 1968"
CREATE TABLE table_name_27 (record VARCHAR, date VARCHAR)
What was the record on the date of november 10, 1968?
SELECT MIN(game) FROM table_name_95 WHERE date = "february 28"
CREATE TABLE table_name_95 (game INTEGER, date VARCHAR)
What was the first game played on February 28?
SELECT SUM(points_2) FROM table_name_98 WHERE goals_for > 52 AND team = "altrincham"
CREATE TABLE table_name_98 (points_2 INTEGER, goals_for VARCHAR, team VARCHAR)
What is the sum of Altrincham's Points 2 when they had more than 52 Goals For?
SELECT date FROM table_name_28 WHERE team = "@ detroit"
CREATE TABLE table_name_28 (date VARCHAR, team VARCHAR)
What date was the team @ Detroit?
SELECT score FROM table_name_8 WHERE high_assists = "maurice williams (7)"
CREATE TABLE table_name_8 (score VARCHAR, high_assists VARCHAR)
What was the score of the game when Maurice Williams (7) had the high assists?
SELECT record FROM table_name_43 WHERE high_assists = "lebron james (4)"
CREATE TABLE table_name_43 (record VARCHAR, high_assists VARCHAR)
What was the record of the game when Lebron James (4) had the high assists?
SELECT COUNT(game) FROM table_name_58 WHERE team = "@ new york"
CREATE TABLE table_name_58 (game VARCHAR, team VARCHAR)
What is the total of the game that the team was @ new york?
SELECT SUM(round) FROM table_name_40 WHERE player = "joe taylor"
CREATE TABLE table_name_40 (round INTEGER, player VARCHAR)
Which round was Joe Taylor selected in?
SELECT player FROM table_name_6 WHERE pick > 145 AND college = "wake forest"
CREATE TABLE table_name_6 (player VARCHAR, pick VARCHAR, college VARCHAR)
Which player went to Wake Forest and was selected with a pick after 145?
SELECT COUNT(pick) FROM table_name_84 WHERE round = 6
CREATE TABLE table_name_84 (pick VARCHAR, round VARCHAR)
How many picks were from round 6?
SELECT MAX(round) FROM table_name_34 WHERE college = "toledo" AND pick < 92
CREATE TABLE table_name_34 (round INTEGER, college VARCHAR, pick VARCHAR)
What is the largest round of a pick smaller than 92 from Toledo University?
SELECT nationality FROM table_name_35 WHERE player = "dick walker"
CREATE TABLE table_name_35 (nationality VARCHAR, player VARCHAR)
Which nationality is Dick Walker?
SELECT college FROM table_name_9 WHERE pick > 4 AND overall = 21
CREATE TABLE table_name_9 (college VARCHAR, pick VARCHAR, overall VARCHAR)
What college has a pick greater than 4 and an overall of 21?
SELECT SUM(overall) FROM table_name_55 WHERE round = 3
CREATE TABLE table_name_55 (overall INTEGER, round VARCHAR)
What is the overall sum of round 3?
SELECT position FROM table_name_81 WHERE round < 8 AND overall = 48
CREATE TABLE table_name_81 (position VARCHAR, round VARCHAR, overall VARCHAR)
What is the position of the player with a round less than 8 and an overall of 48?
SELECT position FROM table_name_47 WHERE overall < 100 AND college = "north carolina"
CREATE TABLE table_name_47 (position VARCHAR, overall VARCHAR, college VARCHAR)
What is the position of the player from the college of North Carolina with an overall less than 100?
SELECT SUM(pick) FROM table_name_10 WHERE round = 17
CREATE TABLE table_name_10 (pick INTEGER, round VARCHAR)
What is the sum of the pick in round 17?
SELECT 1 AS st_leg FROM table_name_7 WHERE team_2 = "nov milenium"
CREATE TABLE table_name_7 (team_2 VARCHAR)
What was the 1st leg when team 2 was nov milenium?
SELECT 1 AS st_leg FROM table_name_25 WHERE team_1 = "teteks"
CREATE TABLE table_name_25 (team_1 VARCHAR)
What was the 1st leg for a team 1 of Teteks?
SELECT SUM(date_of_official_foundation_of_municipality) FROM table_name_65 WHERE province = "kermān" AND 2006 = 167014 AND rank < 46
CREATE TABLE table_name_65 (date_of_official_foundation_of_municipality INTEGER, rank VARCHAR, province VARCHAR)
What is the sum of Date of Official Foundation of Municipality, when Province is "Kermān", when 2006 us "167014", and when Rank is less than 46?
SELECT COUNT(rank) FROM table_name_87 WHERE date_of_official_foundation_of_municipality > 1926 AND province = "sistan and baluchestan" AND 2006 > 567449
CREATE TABLE table_name_87 (rank VARCHAR, date_of_official_foundation_of_municipality VARCHAR, province VARCHAR)
What is the total number of Rank, when Date of Official Foundation of Municipality is after 1926, when Province is "Sistan and Baluchestan", and when 2006 is greater than 567449?
SELECT SUM(rank) FROM table_name_51 WHERE province = "gīlān" AND date_of_official_foundation_of_municipality > 1922 AND 2006 > 557366
CREATE TABLE table_name_51 (rank INTEGER, province VARCHAR, date_of_official_foundation_of_municipality VARCHAR)
What is the sum of Rank, when Province is Gīlān, when Date of Official Foundation of Municipality is after 1922, and when 2006 is greater than 557366?
SELECT MAX(rank) FROM table_name_16 WHERE date_of_official_foundation_of_municipality = 1952 AND 2006 < 189120
CREATE TABLE table_name_16 (rank INTEGER, date_of_official_foundation_of_municipality VARCHAR)
What is the highest Rank, when Date of Official Foundation of Municipality is "1952", and when 2006 is less than 189120?
SELECT province FROM table_name_46 WHERE 2006 < 153748 AND date_of_official_foundation_of_municipality > 1958 AND city = "pakdasht"
CREATE TABLE table_name_46 (province VARCHAR, city VARCHAR, date_of_official_foundation_of_municipality VARCHAR)
What is Province, when 2006 is less than 153748, when Date of Official Foundation of Municipality is after 1958, and when City is "Pakdasht"?
SELECT place FROM table_name_3 WHERE score = 68 - 70 - 68 = 206
CREATE TABLE table_name_3 (place VARCHAR, score VARCHAR)
what is the place when the score is 68-70-68=206?
SELECT country FROM table_name_47 WHERE score = 71 - 65 - 69 = 205
CREATE TABLE table_name_47 (country VARCHAR, score VARCHAR)
what is the country when the score is 71-65-69=205?
SELECT country FROM table_name_79 WHERE score = 72 - 68 - 67 = 207
CREATE TABLE table_name_79 (country VARCHAR, score VARCHAR)
what is the country when the score is 72-68-67=207?
SELECT country FROM table_name_75 WHERE score = 68 - 72 - 67 = 207
CREATE TABLE table_name_75 (country VARCHAR, score VARCHAR)
what is the country when the score is 68-72-67=207?
SELECT player FROM table_name_51 WHERE place = "t5" AND score = 69 - 66 - 71 = 206
CREATE TABLE table_name_51 (player VARCHAR, place VARCHAR, score VARCHAR)
who is the player when the place is t5 and the score is 69-66-71=206?
SELECT MAX(laps) FROM table_name_13 WHERE class = "v8" AND entrant = "diet-coke racing"
CREATE TABLE table_name_13 (laps INTEGER, class VARCHAR, entrant VARCHAR)
What was the highest amount of laps when the class was v8 and the entrant was diet-coke racing?
SELECT ties FROM table_name_38 WHERE wins = "0"
CREATE TABLE table_name_38 (ties VARCHAR, wins VARCHAR)
What is the tie with a win of 0?
SELECT final_position FROM table_name_87 WHERE ties = "0" AND wins = "5"
CREATE TABLE table_name_87 (final_position VARCHAR, ties VARCHAR, wins VARCHAR)
What is the final position with ties of 0, and wins of 5?
SELECT ties FROM table_name_8 WHERE division = "bafl division two south"
CREATE TABLE table_name_8 (ties VARCHAR, division VARCHAR)
What are the ties for division of bafl division two south?
SELECT final_position FROM table_name_76 WHERE season = "2008"
CREATE TABLE table_name_76 (final_position VARCHAR, season VARCHAR)
What is the final position for the season 2008?
SELECT final_position FROM table_name_70 WHERE season = "2012"
CREATE TABLE table_name_70 (final_position VARCHAR, season VARCHAR)
What is the final position for the season 2012?
SELECT division FROM table_name_76 WHERE wins = "2"
CREATE TABLE table_name_76 (division VARCHAR, wins VARCHAR)
What is the division with wins of 2?
SELECT location FROM table_name_46 WHERE stadium = "hietalahti stadium"
CREATE TABLE table_name_46 (location VARCHAR, stadium VARCHAR)
What is the Location of the Hietalahti Stadium?
SELECT location FROM table_name_5 WHERE manager = "job dragtsma"
CREATE TABLE table_name_5 (location VARCHAR, manager VARCHAR)
What is the Location of the Stadium where Job Dragtsma is Manager?
SELECT react FROM table_name_98 WHERE lane = 3 AND heat = 2
CREATE TABLE table_name_98 (react VARCHAR, lane VARCHAR, heat VARCHAR)
what is the react when the lane is 3 and heat is 2?
SELECT MAX(lane) FROM table_name_48 WHERE name = "johan wissman" AND react < 0.242
CREATE TABLE table_name_48 (lane INTEGER, name VARCHAR, react VARCHAR)
what is the highest lane number for johan wissman when the react is less than 0.242?