answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT issn FROM table_name_36 WHERE publication_range = "1984-"
CREATE TABLE table_name_36 (issn VARCHAR, publication_range VARCHAR)
What is the ISSN number of a publication range of 1984-?
SELECT language FROM table_name_43 WHERE frequency = "3 times per year" AND issn = "1136-7385"
CREATE TABLE table_name_43 (language VARCHAR, frequency VARCHAR, issn VARCHAR)
What is the language for a journal that has a frequency of 3 times per year and has an ISSN number of 1136-7385?
SELECT region_4_release FROM table_name_99 WHERE region_2_release = "july 20, 2009"
CREATE TABLE table_name_99 (region_4_release VARCHAR, region_2_release VARCHAR)
What is the region 4 release that has july 20, 2009 as the region 2?
SELECT region_1_release FROM table_name_39 WHERE region_2_release = "july 20, 2009"
CREATE TABLE table_name_39 (region_1_release VARCHAR, region_2_release VARCHAR)
What is the region 1 release that has july 20, 2009 as the region 2?
SELECT AVG(episodes) FROM table_name_70 WHERE region_1_release = "september 11, 2007"
CREATE TABLE table_name_70 (episodes INTEGER, region_1_release VARCHAR)
What is the average episode that has September 11, 2007 as a region 1?
SELECT scheduled FROM table_name_13 WHERE capacity__mw_ < 32.5 AND type = "nordex n90 2.5mw" AND wind_farm = "glenough extension"
CREATE TABLE table_name_13 (scheduled VARCHAR, wind_farm VARCHAR, capacity__mw_ VARCHAR, type VARCHAR)
What is the scheduled value for the farm having a capacity under 32.5MW, type of Nordex n90 2.5MW, and a farm of Glenough Extension?
SELECT type FROM table_name_65 WHERE turbines < 17 AND location = "county laois"
CREATE TABLE table_name_65 (type VARCHAR, turbines VARCHAR, location VARCHAR)
What is the type of turbine having fewer than 17 units and located in County Laois?
SELECT scheduled FROM table_name_96 WHERE turbines = 17
CREATE TABLE table_name_96 (scheduled VARCHAR, turbines VARCHAR)
When is the scheduled date for the farm having 17 turbines?
SELECT AVG(capacity__mw_) FROM table_name_84 WHERE wind_farm = "gortahile" AND turbines > 8
CREATE TABLE table_name_84 (capacity__mw_ INTEGER, wind_farm VARCHAR, turbines VARCHAR)
What is the average capacity for the farm at Gortahile having more than 8 turbines?
SELECT title FROM table_name_64 WHERE left_office = "982" AND entered_office = "949"
CREATE TABLE table_name_64 (title VARCHAR, left_office VARCHAR, entered_office VARCHAR)
What is the title of the king who left office in 982 and entered office in 949?
SELECT left_office FROM table_name_34 WHERE entered_office = "1012"
CREATE TABLE table_name_34 (left_office VARCHAR, entered_office VARCHAR)
When did the king who entered office in 1012 leave office?
SELECT family_relations FROM table_name_20 WHERE throne_name = "303"
CREATE TABLE table_name_20 (family_relations VARCHAR, throne_name VARCHAR)
What are the family relations of the king with the throne name 303?
SELECT born_died FROM table_name_74 WHERE left_office = "1021" AND throne_name = "315"
CREATE TABLE table_name_74 (born_died VARCHAR, left_office VARCHAR, throne_name VARCHAR)
What is teh born-died dates of the king with a throne name 315 and left office in 1021?
SELECT opponents FROM table_name_15 WHERE partner = "irina-camelia begu" AND surface = "hard"
CREATE TABLE table_name_15 (opponents VARCHAR, partner VARCHAR, surface VARCHAR)
Which Opponents have a Partner of irina-camelia begu, and a Surface of hard?
SELECT surface FROM table_name_45 WHERE partner = "galina voskoboeva"
CREATE TABLE table_name_45 (surface VARCHAR, partner VARCHAR)
Which Surface has a Partner of galina voskoboeva?
SELECT opponents FROM table_name_80 WHERE surface = "hard" AND outcome = "runner-up" AND partner = "jarmila gajdošová"
CREATE TABLE table_name_80 (opponents VARCHAR, partner VARCHAR, surface VARCHAR, outcome VARCHAR)
Which Opponents have a Surface of hard, and an Outcome of runner-up, and a Partner of jarmila gajdošová?
SELECT partner FROM table_name_18 WHERE date = "12 july 2009"
CREATE TABLE table_name_18 (partner VARCHAR, date VARCHAR)
Which Partner has a Date of 12 july 2009?
SELECT surface FROM table_name_93 WHERE partner = "sorana cîrstea"
CREATE TABLE table_name_93 (surface VARCHAR, partner VARCHAR)
Which Surface has a Partner of sorana cîrstea?
SELECT MIN(overall) FROM table_name_56 WHERE pick__number > 27
CREATE TABLE table_name_56 (overall INTEGER, pick__number INTEGER)
Name the least overall with pick number more than 27
SELECT 1 AS st_leg FROM table_name_56 WHERE team__number2 = "gran canaria"
CREATE TABLE table_name_56 (team__number2 VARCHAR)
what's the first leg with gran canaria as team #2?
SELECT team__number2 FROM table_name_67 WHERE team__number1 = "lukoil academic"
CREATE TABLE table_name_67 (team__number2 VARCHAR, team__number1 VARCHAR)
with team #1 as lukoil academic what is team #2?
SELECT team__number1 FROM table_name_12 WHERE team__number2 = "akasvayu girona"
CREATE TABLE table_name_12 (team__number1 VARCHAR, team__number2 VARCHAR)
with team #2 as akasvayu girona what is team #1?
SELECT virtue FROM table_name_13 WHERE (latin) = acedia
CREATE TABLE table_name_13 (virtue VARCHAR, acedia VARCHAR, latin VARCHAR)
Which virtue is acedia(Latin)?
SELECT virtue FROM table_name_31 WHERE _vice_ = "lust"
CREATE TABLE table_name_31 (virtue VARCHAR, _vice_ VARCHAR)
Which Virtue has a (vice) of lust?
SELECT virtue FROM table_name_20 WHERE (latin) = invidia
CREATE TABLE table_name_20 (virtue VARCHAR, invidia VARCHAR, latin VARCHAR)
Which virtue is Invidia(Latin)?
SELECT gloss FROM table_name_79 WHERE latin = "castitas"
CREATE TABLE table_name_79 (gloss VARCHAR, latin VARCHAR)
What's the gloss with Castitas(Latin)?
SELECT gloss FROM table_name_22 WHERE virtue = "diligence"
CREATE TABLE table_name_22 (gloss VARCHAR, virtue VARCHAR)
What is the Diligence Virtues Gloss?
SELECT latin FROM table_name_64 WHERE virtue = "temperance"
CREATE TABLE table_name_64 (latin VARCHAR, virtue VARCHAR)
What is the Virtue of Temperance in Latin?
SELECT year FROM table_name_14 WHERE silver = "south korea"
CREATE TABLE table_name_14 (year VARCHAR, silver VARCHAR)
In what year(s) did South Korea win silver?
SELECT silver FROM table_name_51 WHERE location = "doha"
CREATE TABLE table_name_51 (silver VARCHAR, location VARCHAR)
Which nation(s) won silver in Doha?
SELECT MIN(year) FROM table_name_74 WHERE gold = "south korea" AND bronze = "malaysia"
CREATE TABLE table_name_74 (year INTEGER, gold VARCHAR, bronze VARCHAR)
What was the first year that South Korea won gold and Malaysia won bronze?
SELECT gold FROM table_name_50 WHERE bronze = "chinese taipei"
CREATE TABLE table_name_50 (gold VARCHAR, bronze VARCHAR)
What country won gold in the year(s) that Chinese Taipei won bronze?
SELECT european_competitions FROM table_name_85 WHERE pos = 6
CREATE TABLE table_name_85 (european_competitions VARCHAR, pos VARCHAR)
Which European competitions have a Pos of 6?
SELECT AVG(pos) FROM table_name_1 WHERE dutch_cup = "winner" AND tier > 1
CREATE TABLE table_name_1 (pos INTEGER, dutch_cup VARCHAR, tier VARCHAR)
Which Pos has a Dutch Cup of winner, and a Tier larger than 1?
SELECT AVG(frequency_mhz) FROM table_name_72 WHERE city_of_license = "farwell, texas"
CREATE TABLE table_name_72 (frequency_mhz INTEGER, city_of_license VARCHAR)
What is the average Frequency MHz that is on farwell, texas?
SELECT city_of_license FROM table_name_42 WHERE fcc_info = "fcc" AND erp_w = "10,000 horizontal 3,000 vertical"
CREATE TABLE table_name_42 (city_of_license VARCHAR, fcc_info VARCHAR, erp_w VARCHAR)
WHich City of license has a FCC info of fcc, and 10,000 horizontal 3,000 vertical ERP W
SELECT fcc_info FROM table_name_22 WHERE erp_w = "3,000"
CREATE TABLE table_name_22 (fcc_info VARCHAR, erp_w VARCHAR)
WHich FCC info has 3,000 ERP W?
SELECT AVG(game) FROM table_name_22 WHERE points = 19 AND opponent = "new jersey devils"
CREATE TABLE table_name_22 (game INTEGER, points VARCHAR, opponent VARCHAR)
What's the average game against the New Jersey Devils with 19 points?
SELECT AVG(attendance) FROM table_name_54 WHERE opponent = "at boston patriots" AND week > 3
CREATE TABLE table_name_54 (attendance INTEGER, opponent VARCHAR, week VARCHAR)
Opponent of at boston patriots, and a Week larger than 3 had what average attendance?
SELECT AVG(fall_07) FROM table_name_34 WHERE fall_06 > 219
CREATE TABLE table_name_34 (fall_07 INTEGER, fall_06 INTEGER)
Name the average fall 07 for fall 07 more than 219
SELECT player FROM table_name_69 WHERE pick__number < 3 AND mls_team = "fc dallas"
CREATE TABLE table_name_69 (player VARCHAR, pick__number VARCHAR, mls_team VARCHAR)
Name the player for fc dallas pick number less than 3
SELECT MAX(pick__number) FROM table_name_63 WHERE mls_team = "real salt lake" AND affiliation = "ucla los angeles storm"
CREATE TABLE table_name_63 (pick__number INTEGER, mls_team VARCHAR, affiliation VARCHAR)
Name the most pick number for real salt lake and affiliation of ucla los angeles storm
SELECT player FROM table_name_63 WHERE pick__number = 7
CREATE TABLE table_name_63 (player VARCHAR, pick__number VARCHAR)
Name the player with pick number of 7
SELECT MIN(game) FROM table_name_10 WHERE march < 12 AND score = "10–1"
CREATE TABLE table_name_10 (game INTEGER, march VARCHAR, score VARCHAR)
Which Game has a March smaller than 12, and a Score of 10–1?
SELECT score FROM table_name_84 WHERE points = 88 AND record = "38–22–12"
CREATE TABLE table_name_84 (score VARCHAR, points VARCHAR, record VARCHAR)
Which Score has Points of 88, and a Record of 38–22–12?
SELECT COUNT(game) FROM table_name_13 WHERE opponent = "detroit red wings" AND march < 12
CREATE TABLE table_name_13 (game VARCHAR, opponent VARCHAR, march VARCHAR)
Which Game has an Opponent of detroit red wings, and a March smaller than 12?
SELECT MIN(points) FROM table_name_85 WHERE game < 70 AND score = "4–8"
CREATE TABLE table_name_85 (points INTEGER, game VARCHAR, score VARCHAR)
Which Points have a Game smaller than 70, and a Score of 4–8?
SELECT segment_a FROM table_name_86 WHERE netflix = "s05e22"
CREATE TABLE table_name_86 (segment_a VARCHAR, netflix VARCHAR)
Which segment a's Netflix is S05E22?
SELECT series_ep FROM table_name_59 WHERE segment_c = "electric pole s transformer"
CREATE TABLE table_name_59 (series_ep VARCHAR, segment_c VARCHAR)
Which series episode has a segment c that is Electric pole s transformer?
SELECT MAX(episode) FROM table_name_23 WHERE netflix = "s05e23"
CREATE TABLE table_name_23 (episode INTEGER, netflix VARCHAR)
What largest episode number's Netflix is S05E23?
SELECT segment_c FROM table_name_58 WHERE segment_b = "refrigerators"
CREATE TABLE table_name_58 (segment_c VARCHAR, segment_b VARCHAR)
Which segment c's segment b is refrigerators?
SELECT races FROM table_name_38 WHERE points = "125"
CREATE TABLE table_name_38 (races VARCHAR, points VARCHAR)
Which races did they accumulate at least 125 points?
SELECT series FROM table_name_63 WHERE score = "3 – 8"
CREATE TABLE table_name_63 (series VARCHAR, score VARCHAR)
Which Series has a Score of 3 – 8?
SELECT date FROM table_name_48 WHERE decision = "myre"
CREATE TABLE table_name_48 (date VARCHAR, decision VARCHAR)
Which Date has a Decision of myre?
SELECT MIN(attendance) FROM table_name_75 WHERE date = "may 24"
CREATE TABLE table_name_75 (attendance INTEGER, date VARCHAR)
How many Attendances on may 24?
SELECT series FROM table_name_86 WHERE date = "may 18"
CREATE TABLE table_name_86 (series VARCHAR, date VARCHAR)
Which Series are on may 18?
SELECT AVG(attendance) FROM table_name_48 WHERE visitor = "philadelphia" AND date = "may 20"
CREATE TABLE table_name_48 (attendance INTEGER, visitor VARCHAR, date VARCHAR)
How many Attendances that has a Visitor of philadelphia on may 20?
SELECT visitor FROM table_name_33 WHERE series = "series tied 2–2"
CREATE TABLE table_name_33 (visitor VARCHAR, series VARCHAR)
who is the Visitor that has a Series of series tied 2–2?
SELECT MAX(attendance) FROM table_name_88 WHERE score = "4 – 5"
CREATE TABLE table_name_88 (attendance INTEGER, score VARCHAR)
How many Attendances have a Score of 4 – 5? Question 4
SELECT visitor FROM table_name_54 WHERE home = "philadelphia" AND series = "flyers lead 1–0"
CREATE TABLE table_name_54 (visitor VARCHAR, home VARCHAR, series VARCHAR)
WHo has a Home of philadelphia and a Series of flyers lead 1–0?
SELECT class FROM table_name_76 WHERE race = "charlotte camel gt 500"
CREATE TABLE table_name_76 (class VARCHAR, race VARCHAR)
What is the class of the Charlotte Camel gt 500 race?
SELECT race FROM table_name_20 WHERE length = "12 hours"
CREATE TABLE table_name_20 (race VARCHAR, length VARCHAR)
What is the race 12 hours in length?
SELECT class FROM table_name_35 WHERE race = "coca-cola classic 12 hours of sebring"
CREATE TABLE table_name_35 (class VARCHAR, race VARCHAR)
What is the class of the Coca-cola classic 12 hours of sebring race?
SELECT class FROM table_name_13 WHERE race = "budweiser grand prix of miami" AND length = "3 hours"
CREATE TABLE table_name_13 (class VARCHAR, race VARCHAR, length VARCHAR)
What is the class of the Budweiser Grand Prix of Miami race with a length of 3 hours?
SELECT date FROM table_name_66 WHERE circuit = "daytona international speedway" AND race = "paul revere 250"
CREATE TABLE table_name_66 (date VARCHAR, circuit VARCHAR, race VARCHAR)
What is the date of the Paul Revere 250 race in the Daytona International Speedway circuit?
SELECT race FROM table_name_52 WHERE length = "12 hours"
CREATE TABLE table_name_52 (race VARCHAR, length VARCHAR)
What race is 12 hours in length?
SELECT MAX(round) FROM table_name_55 WHERE nationality = "finland"
CREATE TABLE table_name_55 (round INTEGER, nationality VARCHAR)
What is the highest round for the pick from Finland?
SELECT COUNT(round) FROM table_name_34 WHERE player = "joe barnes"
CREATE TABLE table_name_34 (round VARCHAR, player VARCHAR)
What is the total number of rounds that Joe Barnes was picked?
SELECT order FROM table_name_9 WHERE olympic_games = "tokyo"
CREATE TABLE table_name_9 (order VARCHAR, olympic_games VARCHAR)
What was the order of the Tokyo olympic games?
SELECT club FROM table_name_46 WHERE year = 2012 AND order = "15th"
CREATE TABLE table_name_46 (club VARCHAR, year VARCHAR, order VARCHAR)
What was the 15th club in 2012?
SELECT medal FROM table_name_48 WHERE weight = "fly" AND boxer = "michael conlon"
CREATE TABLE table_name_48 (medal VARCHAR, weight VARCHAR, boxer VARCHAR)
What medal did Michael Conlon, with a weight of fly, win?
SELECT loss FROM table_name_50 WHERE attendance > 45 OFFSET 036
CREATE TABLE table_name_50 (loss VARCHAR, attendance INTEGER)
How many losses have more than 45,036 attendance?
SELECT SUM(attendance) FROM table_name_68 WHERE date = "april 29"
CREATE TABLE table_name_68 (attendance INTEGER, date VARCHAR)
on april 29, what was the attendance?
SELECT AVG(attendance) FROM table_name_40 WHERE date = "april 9"
CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR)
on april 9 what was the attendance?
SELECT date FROM table_name_27 WHERE score = "postponed (rain) rescheduled for august 7"
CREATE TABLE table_name_27 (date VARCHAR, score VARCHAR)
What date has postponed (rain) rescheduled for august 7 as the score?
SELECT MIN(partial_failures) FROM table_name_64 WHERE failures > 0 AND successes = 1
CREATE TABLE table_name_64 (partial_failures INTEGER, failures VARCHAR, successes VARCHAR)
Failures larger than 0, and a Successes of 1 has what lowest partial failures?
SELECT SUM(partial_failures) FROM table_name_35 WHERE successes < 6 AND launches > 1 AND failures = 2
CREATE TABLE table_name_35 (partial_failures INTEGER, failures VARCHAR, successes VARCHAR, launches VARCHAR)
Successes smaller than 6, and Launches larger than 1, and a Failures of 2 is what sum of the partial failures?
SELECT opponent FROM table_name_89 WHERE location = "pontiac silverdome"
CREATE TABLE table_name_89 (opponent VARCHAR, location VARCHAR)
Who was the opposing team during a game in the Pontiac Silverdome?
SELECT score FROM table_name_23 WHERE date = "january 23"
CREATE TABLE table_name_23 (score VARCHAR, date VARCHAR)
What was the final score for the January 23 game?
SELECT MAX(february) FROM table_name_43 WHERE opponent = "philadelphia flyers" AND game > 63
CREATE TABLE table_name_43 (february INTEGER, opponent VARCHAR, game VARCHAR)
What is the highest Feb value having an opponent of the Philadelphia Flyers and is after game 63?
SELECT opponent FROM table_name_47 WHERE game > 58 AND february > 16 AND record = "40-20-4"
CREATE TABLE table_name_47 (opponent VARCHAR, record VARCHAR, game VARCHAR, february VARCHAR)
Who was the opponent in games over 58, after Feb 16, and having a record of 40-20-4?
SELECT SUM(year) FROM table_name_3 WHERE genre = "rock (track)"
CREATE TABLE table_name_3 (year INTEGER, genre VARCHAR)
Which Year has a Genre of rock (track)?
SELECT MAX(year) AS Inducted FROM table_name_28 WHERE year < 1965
CREATE TABLE table_name_28 (year INTEGER)
Which Year Inducted is the highest one that has a Year smaller than 1965?
SELECT MAX(overall) FROM table_name_3 WHERE pick__number < 9 AND name = "mike pearson"
CREATE TABLE table_name_3 (overall INTEGER, pick__number VARCHAR, name VARCHAR)
Which Overall is the highest one that has a Pick # smaller than 9, and a Name of mike pearson?
SELECT MIN(round) FROM table_name_34 WHERE position = "wide receiver" AND overall < 222
CREATE TABLE table_name_34 (round INTEGER, position VARCHAR, overall VARCHAR)
Which Round is the lowest one that has a Position of wide receiver, and an Overall smaller than 222?
SELECT record FROM table_name_78 WHERE date = "september 21"
CREATE TABLE table_name_78 (record VARCHAR, date VARCHAR)
What was the Record on September 21?
SELECT record FROM table_name_10 WHERE save = "david weathers (15)"
CREATE TABLE table_name_10 (record VARCHAR, save VARCHAR)
What was the record the day David Weathers (15) had a save?
SELECT save FROM table_name_49 WHERE date = "september 2"
CREATE TABLE table_name_49 (save VARCHAR, date VARCHAR)
Who had a save on September 2?
SELECT loss FROM table_name_16 WHERE date = "september 2"
CREATE TABLE table_name_16 (loss VARCHAR, date VARCHAR)
What was the loss on September 2?
SELECT SUM(byes) FROM table_name_70 WHERE draws = 1 AND wins = 5 AND losses < 12
CREATE TABLE table_name_70 (byes INTEGER, losses VARCHAR, draws VARCHAR, wins VARCHAR)
What is the total number of byes that are associated with 1 draw, 5 wins, and fewer than 12 losses?
SELECT COUNT(byes) FROM table_name_67 WHERE draws < 1 AND wins < 8
CREATE TABLE table_name_67 (byes VARCHAR, draws VARCHAR, wins VARCHAR)
What is the total number of byes associated with fewer than 8 wins and fewer than 1 draw?
SELECT ntfa_div_1 FROM table_name_30 WHERE draws < 1 AND wins = 15
CREATE TABLE table_name_30 (ntfa_div_1 VARCHAR, draws VARCHAR, wins VARCHAR)
What is the NTFA Div 1 team that has 15 wins and less than 1 draw?
SELECT AVG(losses) FROM table_name_78 WHERE draws = 0 AND byes < 0
CREATE TABLE table_name_78 (losses INTEGER, draws VARCHAR, byes VARCHAR)
What is the average number of losses for teams with 0 draws and 0 byes?
SELECT MAX(losses) FROM table_name_65 WHERE wins = 5 AND against < 1607
CREATE TABLE table_name_65 (losses INTEGER, wins VARCHAR, against VARCHAR)
What is the most number of losses for teams with 5 wins and an against value under 1607?
SELECT COUNT(race) FROM table_name_72 WHERE podium > 1 AND season = "1982" AND flap < 1
CREATE TABLE table_name_72 (race VARCHAR, flap VARCHAR, podium VARCHAR, season VARCHAR)
Race that has a Podium larger than 1, and a Season of 1982, and a flap smaller than 1 had how many number of races?
SELECT MIN(podium) FROM table_name_92 WHERE pole < 0
CREATE TABLE table_name_92 (podium INTEGER, pole INTEGER)
Pole smaller than 0 had what lowest podium?
SELECT AVG(podium) FROM table_name_10 WHERE flap = 0 AND race < 2 AND season = "1989" AND pole < 0
CREATE TABLE table_name_10 (podium INTEGER, pole VARCHAR, season VARCHAR, flap VARCHAR, race VARCHAR)
Flap of 0, and a Race smaller than 2, and a Season of 1989, and a Pole smaller than 0 had what average podium?
SELECT record FROM table_name_73 WHERE date = "august 24"
CREATE TABLE table_name_73 (record VARCHAR, date VARCHAR)
What was the record on august 24?
SELECT route FROM table_name_85 WHERE elevation = "11,158 feet 3401 m"
CREATE TABLE table_name_85 (route VARCHAR, elevation VARCHAR)
Elevation of 11,158 feet 3401 m had what route?
SELECT elevation FROM table_name_24 WHERE route > 24 AND highway = "trail ridge road"
CREATE TABLE table_name_24 (elevation VARCHAR, route VARCHAR, highway VARCHAR)
Route larger than 24, and a Highway of trail ridge road had what elevation?