answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series, _whereas_series_no_refers_to_the_episodes_number_in_this_particular_series FROM table_27208311_1 WHERE series_no = 3
What is every episode number for the series number 3?
CREATE TABLE table_27208311_1 (episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series VARCHAR, _whereas_series_no_refers_to_the_episodes_number_in_this_particular_series VARCHAR, series_no VARCHAR)
SELECT quantity FROM table_name_80 WHERE number_of_seats > 45 AND make = "mci"
What is the quantity with more than 45 seats and MCI make?
CREATE TABLE table_name_80 (quantity VARCHAR, number_of_seats VARCHAR, make VARCHAR)
SELECT money___$__ FROM table_name_90 WHERE place = "t1" AND score = 66 - 69 - 70 - 75 = 280
What is the Money for the T1 Player with a Score of 66-69-70-75=280?
CREATE TABLE table_name_90 (money___$__ VARCHAR, place VARCHAR, score VARCHAR)
SELECT player FROM table_name_74 WHERE position = "forward" AND school_club_team = "southern methodist"
What Utah Jazz Forward played for Southern Methodist?
CREATE TABLE table_name_74 (player VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT Theme FROM farm_competition ORDER BY YEAR
What are the themes of farm competitions sorted by year in ascending order?
CREATE TABLE farm_competition (Theme VARCHAR, YEAR VARCHAR)
SELECT country FROM table_name_39 WHERE place = "1"
What is the Country of the Player in Place 1?
CREATE TABLE table_name_39 (country VARCHAR, place VARCHAR)
SELECT COUNT(japanese_title) FROM table_2144389_9 WHERE vocalist = "Momoiro Clover Z"
When momoiro clover z is the vocalist how many japanese titles are there?
CREATE TABLE table_2144389_9 (japanese_title VARCHAR, vocalist VARCHAR)
SELECT rank FROM table_name_35 WHERE wins > 11 AND player = "miller barber"
What rank is Miller Barber with more than 11 wins?
CREATE TABLE table_name_35 (rank VARCHAR, wins VARCHAR, player VARCHAR)
SELECT driver_s_ FROM table_name_34 WHERE crew_chief = "nick carlson"
Who was the driver for crew chief Nick Carlson?
CREATE TABLE table_name_34 (driver_s_ VARCHAR, crew_chief VARCHAR)
SELECT percentage_republicans FROM table_name_62 WHERE democratic__republican = "7/6"
What is the percent of republicans with 7/6 democrat/republican?
CREATE TABLE table_name_62 (percentage_republicans VARCHAR, democratic__republican VARCHAR)
SELECT venue FROM table_name_23 WHERE year < 1991
What is the name of the venue that was used before 1991?
CREATE TABLE table_name_23 (venue VARCHAR, year INTEGER)
SELECT best_10_year_period FROM table_1710426_2 WHERE best_15_year_period = "Capablanca"
Which people had the best 10-year period when Capablanca had the best 15-year period?
CREATE TABLE table_1710426_2 (best_10_year_period VARCHAR, best_15_year_period VARCHAR)
SELECT party FROM table_name_81 WHERE votes < 11 OFFSET 484
Which party has less than 11,484 votes?
CREATE TABLE table_name_81 (party VARCHAR, votes INTEGER)
SELECT city FROM table_name_78 WHERE rank < 3 AND carriers = "jetblue airways"
What city had a rank before 3 and primary carrier JetBlue Airways?
CREATE TABLE table_name_78 (city VARCHAR, rank VARCHAR, carriers VARCHAR)
SELECT team FROM table_name_69 WHERE top_division_titles > 0 AND founded > 1927 AND stadium = "miguel grau"
Which team has Top division titles larger than 0, a Founded larger than 1927, and a Stadium of miguel grau?
CREATE TABLE table_name_69 (team VARCHAR, stadium VARCHAR, top_division_titles VARCHAR, founded VARCHAR)
SELECT MAX(played) FROM table_name_66 WHERE lost < 1 AND difference = "6" AND against > 2
Which Played is the highest one that has a Lost smaller than 1, and a Difference of 6, and an Against larger than 2?
CREATE TABLE table_name_66 (played INTEGER, against VARCHAR, lost VARCHAR, difference VARCHAR)
SELECT 1 AS st_leg FROM table_name_3 WHERE team_2 = "aurora"
What was the 1st leg when Team 2 was Aurora?
CREATE TABLE table_name_3 (team_2 VARCHAR)
SELECT AVG(laps) FROM table_name_27 WHERE time_retired = "+5 laps"
What is the average laps that had a time/retired of +5 laps?
CREATE TABLE table_name_27 (laps INTEGER, time_retired VARCHAR)
SELECT weight FROM table_name_96 WHERE name = "ádám steinmetz category:articles with hcards"
Name the Weight of ádám steinmetz category:articles with hcards?
CREATE TABLE table_name_96 (weight VARCHAR, name VARCHAR)
SELECT song FROM table_name_70 WHERE issue_date_s_ = "19 june"
What is the Song with an Issue Date(s) that is 19 june?
CREATE TABLE table_name_70 (song VARCHAR, issue_date_s_ VARCHAR)
SELECT built FROM table_name_58 WHERE number_in_class < 10 AND owner = "downer rail"
What was built in a class with less than 10, and the Downer Rail owner?
CREATE TABLE table_name_58 (built VARCHAR, number_in_class VARCHAR, owner VARCHAR)
SELECT round FROM table_name_64 WHERE opposing_team = "manchester united"
Which round has an Opposing Team of manchester united?
CREATE TABLE table_name_64 (round VARCHAR, opposing_team VARCHAR)
SELECT comp FROM table_name_60 WHERE venue = "olympic stadium tokyo, japan"
What's the comp in Olympic Stadium Tokyo, Japan?
CREATE TABLE table_name_60 (comp VARCHAR, venue VARCHAR)
SELECT MIN(losses) FROM table_name_75 WHERE draws > 6 AND club = "cd mestalla" AND goals_against > 44
Which Losses have Draws larger than 6, and a Club of cd mestalla, and Goals against larger than 44?
CREATE TABLE table_name_75 (losses INTEGER, goals_against VARCHAR, draws VARCHAR, club VARCHAR)
SELECT royal_house FROM table_name_30 WHERE name = "ding"
Which Royal house has a name of ding?
CREATE TABLE table_name_30 (royal_house VARCHAR, name VARCHAR)
SELECT callsign FROM table_name_8 WHERE area_served = "tamworth" AND frequency = "0 88.9"
What is the Callsign with an Area of tamworth and frequency of 0 88.9?
CREATE TABLE table_name_8 (callsign VARCHAR, area_served VARCHAR, frequency VARCHAR)
SELECT AVG(uci_rating) FROM table_name_88 WHERE team = "relax-gam"
What is Relax-Gam's average UCI Rating?
CREATE TABLE table_name_88 (uci_rating INTEGER, team VARCHAR)
SELECT MIN(number_of_floors) FROM table_27067379_1 WHERE completion = 2010
if the completed is 2010, what is the number of floors?
CREATE TABLE table_27067379_1 (number_of_floors INTEGER, completion VARCHAR)
SELECT barony FROM table_30120566_1 WHERE townland = "Ballycunningham"
What barony is Ballycunningham in?
CREATE TABLE table_30120566_1 (barony VARCHAR, townland VARCHAR)
SELECT date_of_death FROM table_16527640_3 WHERE player = "Archie Roberts"
What day did ARchie Roberts die?
CREATE TABLE table_16527640_3 (date_of_death VARCHAR, player VARCHAR)
SELECT dissolved FROM table_name_95 WHERE elected = "1553"
Who was dissolved that was elected in 1553?
CREATE TABLE table_name_95 (dissolved VARCHAR, elected VARCHAR)
SELECT tv_time FROM table_name_51 WHERE date = "december 27, 2003"
What is the TV Time of the game on December 27, 2003?
CREATE TABLE table_name_51 (tv_time VARCHAR, date VARCHAR)
SELECT player FROM table_name_79 WHERE draft < 1975 AND round < 6
Which player had a draft before 1975 and before round 6?
CREATE TABLE table_name_79 (player VARCHAR, draft VARCHAR, round VARCHAR)
SELECT date FROM table_name_40 WHERE opponent = "indianapolis colts"
When was the game against the Indianapolis Colts?
CREATE TABLE table_name_40 (date VARCHAR, opponent VARCHAR)
SELECT county FROM table_1304443_2 WHERE kerry_number = 29231
In what county did 29231 people vote for Kerry?
CREATE TABLE table_1304443_2 (county VARCHAR, kerry_number VARCHAR)
SELECT to_par FROM table_name_20 WHERE player = "bo bae song"
What is the to par for Bo Bae Song?
CREATE TABLE table_name_20 (to_par VARCHAR, player VARCHAR)
SELECT location FROM table_11658094_1 WHERE joined = "2008"
what are the locations that joined in 2008
CREATE TABLE table_11658094_1 (location VARCHAR, joined VARCHAR)
SELECT major, AVG(age), MIN(age), MAX(age) FROM Student GROUP BY major
Show the average, minimum, and maximum age for different majors.
CREATE TABLE Student (major VARCHAR, age INTEGER)
SELECT termination FROM table_1601027_1 WHERE headphone_model = "SR80i"
Which terminations correspond with headphone model SR80I?
CREATE TABLE table_1601027_1 (termination VARCHAR, headphone_model VARCHAR)
SELECT parameter FROM table_name_94 WHERE best_fit__wmap_only_ = ".9 ± .1" AND symbol = "a"
What is the parameter when the best fit (WMAP only) is .9 ± .1, and symbol is a?
CREATE TABLE table_name_94 (parameter VARCHAR, best_fit__wmap_only_ VARCHAR, symbol VARCHAR)
SELECT COUNT(violent) FROM table_25271777_1 WHERE forcible_rape = 1156
How many violent catagories are listed for the year forcible rapes were 1156?
CREATE TABLE table_25271777_1 (violent VARCHAR, forcible_rape VARCHAR)
SELECT report FROM table_name_78 WHERE race_name = "champion spark plug 300"
For the race Champion Spark Plug 300, what is the report?
CREATE TABLE table_name_78 (report VARCHAR, race_name VARCHAR)
SELECT third_place FROM table_1167698_1 WHERE runner_up = "Dynamo Moscow"
Who won third place with the runner up being dynamo moscow?
CREATE TABLE table_1167698_1 (third_place VARCHAR, runner_up VARCHAR)
SELECT opponent FROM table_name_94 WHERE record = "3–1"
Which opponent has a record of 3–1?
CREATE TABLE table_name_94 (opponent VARCHAR, record VARCHAR)
SELECT crowd FROM table_name_29 WHERE home_team = "carlton"
When the home team was carlton how many people were in the crowd?
CREATE TABLE table_name_29 (crowd VARCHAR, home_team VARCHAR)
SELECT 2009 FROM table_name_4 WHERE 2000 = "–" AND total = 3 AND 2004 = "9th"
What shows for 209 when the 2000 is –, and a Total of 3, and a 2004 of 9th?
CREATE TABLE table_name_4 (total VARCHAR)
SELECT COUNT(ends_won) FROM table_name_92 WHERE province = "saskatchewan" AND stolen_ends < 6
What is the total number of Ends Won, when Province is "Saskatchewan", and when Stolen Ends is less than 6?
CREATE TABLE table_name_92 (ends_won VARCHAR, province VARCHAR, stolen_ends VARCHAR)
SELECT others__percentage FROM table_20278716_2 WHERE others__number = 802
What percentage of voters voted for a third party in the county that had 802 third party voters?
CREATE TABLE table_20278716_2 (others__percentage VARCHAR, others__number VARCHAR)
SELECT set_2 FROM table_name_70 WHERE set_3 = "20–25"
Which Set 2 has a Set 3 of 20–25?
CREATE TABLE table_name_70 (set_2 VARCHAR, set_3 VARCHAR)
SELECT SUM(bronze) FROM table_name_9 WHERE gold = 2 AND rank > 2
How many bronzes for the nation with 2 golds and ranked below 2?
CREATE TABLE table_name_9 (bronze INTEGER, gold VARCHAR, rank VARCHAR)
SELECT nickname FROM table_1973842_2 WHERE location = "Maryville, Tennessee"
What's the nickname of the school in Maryville, Tennessee?
CREATE TABLE table_1973842_2 (nickname VARCHAR, location VARCHAR)
SELECT win_percentage FROM table_name_44 WHERE team = "1989-90"
What is the Win% of the 1989-90 Team?
CREATE TABLE table_name_44 (win_percentage VARCHAR, team VARCHAR)
SELECT name FROM table_name_62 WHERE nationality = "spain" AND ranking > 3
What is the name of the player from Spain with a rank lower than 3?
CREATE TABLE table_name_62 (name VARCHAR, nationality VARCHAR, ranking VARCHAR)
SELECT COUNT(silver) FROM table_name_14 WHERE team = "northwest territories" AND gold < 34
How many silver when the team is northwest territories and gold is less than 34?
CREATE TABLE table_name_14 (silver VARCHAR, team VARCHAR, gold VARCHAR)
SELECT country FROM table_name_33 WHERE to_par = "–9"
Which Country has a To par of –9?
CREATE TABLE table_name_33 (country VARCHAR, to_par VARCHAR)
SELECT MIN(overall) FROM table_11803648_17 WHERE club_team = "Omaha (USHL)"
NAME THE OVERALL FOR THE OMAHA (USHL) CLUB TEAM
CREATE TABLE table_11803648_17 (overall INTEGER, club_team VARCHAR)
SELECT date FROM table_name_33 WHERE venue = "westport"
What was the date for Westport?
CREATE TABLE table_name_33 (date VARCHAR, venue VARCHAR)
SELECT city FROM table_name_56 WHERE prize = "£1,000,000"
The prize of £1,000,000 was given by an event in what city?
CREATE TABLE table_name_56 (city VARCHAR, prize VARCHAR)
SELECT eliminated FROM table_28742659_2 WHERE finish = "15th voted Out 9th Jury Member Day 46"
What is listed in eliminated when the finish is 15th voted out 9th jury Member Day 46?
CREATE TABLE table_28742659_2 (eliminated VARCHAR, finish VARCHAR)
SELECT MAX(area__km²_) FROM table_2168295_1 WHERE headquarters = "Bharatpur"
If the headquarters is Bharatpur, what is the maximum area?
CREATE TABLE table_2168295_1 (area__km²_ INTEGER, headquarters VARCHAR)
SELECT home_team FROM table_name_74 WHERE tie_no = "20"
Which Home team that has a Tie no of 20?
CREATE TABLE table_name_74 (home_team VARCHAR, tie_no VARCHAR)
SELECT constructor FROM table_2911781_3 WHERE grand_prix = "Belgian grand_prix"
What was the constructor in the Belgian Grand Prix round?
CREATE TABLE table_2911781_3 (constructor VARCHAR, grand_prix VARCHAR)
SELECT compound_name FROM table_name_2 WHERE colour = "yellow"
What compound is yellow?
CREATE TABLE table_name_2 (compound_name VARCHAR, colour VARCHAR)
SELECT us_release FROM table_name_79 WHERE pages = "704"
Which US release has 704 pages?
CREATE TABLE table_name_79 (us_release VARCHAR, pages VARCHAR)
SELECT AVG(latitude) FROM table_name_72 WHERE land___sqmi__ < 35.874 AND pop__2010_ > 35 AND county = "cass" AND water__sqmi_ = 0.008
Cass county has 0.008 Water (sqmi), less than 35.874 Land (sqmi), more than 35 Pop. (2010), and what average latitude?
CREATE TABLE table_name_72 (latitude INTEGER, water__sqmi_ VARCHAR, county VARCHAR, land___sqmi__ VARCHAR, pop__2010_ VARCHAR)
SELECT run_1 FROM table_name_9 WHERE run_3 = "1:21.4" AND run_4 = "1:23.0"
What was the run 1 for the team with a run 3 of 1:21.4 and a run 4 of 1:23.0?
CREATE TABLE table_name_9 (run_1 VARCHAR, run_3 VARCHAR, run_4 VARCHAR)
SELECT COUNT(attendance) FROM table_17360840_4 WHERE opponent = "Atlanta Thrashers"
How many attended on mathches against atlanta thrashers
CREATE TABLE table_17360840_4 (attendance VARCHAR, opponent VARCHAR)
SELECT displacement FROM table_name_78 WHERE model = "2000"
What displacement has a model of 2000?
CREATE TABLE table_name_78 (displacement VARCHAR, model VARCHAR)
SELECT status FROM table_name_10 WHERE population = 10
What status has 10 as the population?
CREATE TABLE table_name_10 (status VARCHAR, population VARCHAR)
SELECT MAX(finish) FROM table_24119784_1 WHERE top_10 = 8
Name the finish top 10 being 8
CREATE TABLE table_24119784_1 (finish INTEGER, top_10 VARCHAR)
SELECT COUNT(laps) FROM table_name_67 WHERE time_retired = "+1:42.517" AND grid > 33
How many Laps have a Time/Retired of +1:42.517, and a Grid larger than 33?
CREATE TABLE table_name_67 (laps VARCHAR, time_retired VARCHAR, grid VARCHAR)
SELECT opponent FROM table_25229283_4 WHERE points_for = 177
Who was the opponent with a points for of 177?
CREATE TABLE table_25229283_4 (opponent VARCHAR, points_for VARCHAR)
SELECT time FROM table_name_32 WHERE opponent = "cagliari" AND round = "16"
What time was the game played against Cagliari that lasted 16 rounds?
CREATE TABLE table_name_32 (time VARCHAR, opponent VARCHAR, round VARCHAR)
SELECT COUNT(Champions) AS league FROM table_17505751_5 WHERE position = "Forward" AND league < 6.0
In the Champions league is the forward position smaller than 6.0
CREATE TABLE table_17505751_5 (Champions VARCHAR, position VARCHAR, league VARCHAR)
SELECT AVG(drawn) FROM table_name_56 WHERE points < 14 AND lost < 4 AND played > 9
Which average Drawn has Points smaller than 14, and a Lost smaller than 4, and a Played larger than 9?
CREATE TABLE table_name_56 (drawn INTEGER, played VARCHAR, points VARCHAR, lost VARCHAR)
SELECT points_for FROM table_name_73 WHERE played = "22" AND tries_for = "91"
Nam the points for when tries for is 91 and played of 22
CREATE TABLE table_name_73 (points_for VARCHAR, played VARCHAR, tries_for VARCHAR)
SELECT incumbent FROM table_19753079_36 WHERE district = "North Carolina 9"
Name the incumbent for north carolina 9
CREATE TABLE table_19753079_36 (incumbent VARCHAR, district VARCHAR)
SELECT MAX(apps) FROM table_name_35 WHERE season > 2008 AND team = "kairat" AND level < 1
What is the highest Apps of kairat after 2008 and a Level smaller than 1?
CREATE TABLE table_name_35 (apps INTEGER, level VARCHAR, season VARCHAR, team VARCHAR)
SELECT order_year FROM table_name_86 WHERE length__ft_ = "30" AND model = "05.505"
What order year has a 30 Length (ft.) and 05.505 model?
CREATE TABLE table_name_86 (order_year VARCHAR, length__ft_ VARCHAR, model VARCHAR)
SELECT MIN(episodes) FROM table_name_90 WHERE premiere = "february5,2007"
What is the earliest season with a premiere of february5,2007?
CREATE TABLE table_name_90 (episodes INTEGER, premiere VARCHAR)
SELECT land_area__hectares_ FROM table_16796625_1 WHERE urban_area__locality_ = "Landsbro"
How many hectares of land area is Landsbro?
CREATE TABLE table_16796625_1 (land_area__hectares_ VARCHAR, urban_area__locality_ VARCHAR)
SELECT AVG(byes) FROM table_name_70 WHERE ballarat_fl = "sunbury" AND against > 1167
What is the average Byes that has Ballarat FL of Sunbury against more than 1167?
CREATE TABLE table_name_70 (byes INTEGER, ballarat_fl VARCHAR, against VARCHAR)
SELECT AVG(week) FROM table_name_22 WHERE result = "w 34–24"
On what Week was the Result W 34–24?
CREATE TABLE table_name_22 (week INTEGER, result VARCHAR)
SELECT date FROM table_name_78 WHERE venue = "victoria park"
On what date was the match played in Victoria Park?
CREATE TABLE table_name_78 (date VARCHAR, venue VARCHAR)
SELECT player FROM table_25058562_2 WHERE height = 199
Name the player for 199 height
CREATE TABLE table_25058562_2 (player VARCHAR, height VARCHAR)
SELECT COUNT(pop__km²) FROM table_2252745_1 WHERE administrative_centre = "Egilsstaðir"
when administrative centre is egilsstaðir, what is the pop./ km²?
CREATE TABLE table_2252745_1 (pop__km² VARCHAR, administrative_centre VARCHAR)
SELECT venue FROM table_name_60 WHERE away_team = "melbourne"
What venue did melbourne play at as the away team?
CREATE TABLE table_name_60 (venue VARCHAR, away_team VARCHAR)
SELECT SUM(population) FROM table_name_50 WHERE area_km_2 < 342.4 AND official_name = "northfield"
What is the population of northfield parish that has an area less than 342.4?
CREATE TABLE table_name_50 (population INTEGER, area_km_2 VARCHAR, official_name VARCHAR)
SELECT MAX(against) FROM table_name_40 WHERE byes > 0
What is the largest Against with a Byes larger than 0?
CREATE TABLE table_name_40 (against INTEGER, byes INTEGER)
SELECT year FROM table_name_38 WHERE score = "385 runs"
What year has 385 runs as the score?
CREATE TABLE table_name_38 (year VARCHAR, score VARCHAR)
SELECT team FROM table_27712180_13 WHERE date = "May 6"
What was the name of the opposing team on the May 6 game?
CREATE TABLE table_27712180_13 (team VARCHAR, date VARCHAR)
SELECT MAX(wins) FROM table_name_65 WHERE byes > 0
Which Wins has a Byes larger than 0?
CREATE TABLE table_name_65 (wins INTEGER, byes INTEGER)
SELECT County_name, Population FROM county
Show the county name and population of all counties.
CREATE TABLE county (County_name VARCHAR, Population VARCHAR)
SELECT week FROM table_21796261_4 WHERE date = "July 10"
During what week was the July 10 game played?
CREATE TABLE table_21796261_4 (week VARCHAR, date VARCHAR)
SELECT AVG(base_pairs) FROM table_name_53 WHERE genes = 784
What is the average number of base pairs with 784 genes?
CREATE TABLE table_name_53 (base_pairs INTEGER, genes VARCHAR)
SELECT nhl_team FROM table_name_81 WHERE college_junior_club_team = "toronto marlboros (oha)" AND pick__number = "32"
Which team picked the player from the Toronto Marlboros (OHA) as Pick #32?
CREATE TABLE table_name_81 (nhl_team VARCHAR, college_junior_club_team VARCHAR, pick__number VARCHAR)
SELECT player FROM table_name_9 WHERE position = "guard-forward" AND nationality = "argentina"
What Player is from Argentina and whose position is a guard-forward?
CREATE TABLE table_name_9 (player VARCHAR, position VARCHAR, nationality VARCHAR)
SELECT AVG(number_of_electorates__2003_) FROM table_name_80 WHERE reserved_for___sc___st__none_ = "sc" AND constituency_number = "50"
What is the average number of electorates (2003) reserved for sc with a constituency number of 50?
CREATE TABLE table_name_80 (number_of_electorates__2003_ INTEGER, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)
SELECT position FROM table_name_58 WHERE points > 4 AND tries < 12 AND squad_no > 1 AND player = "ali lauitiiti"
Which position has more than 4 points, less than 12 tries, a squad number of more than 1, and where Ali Lauitiiti is a player?
CREATE TABLE table_name_58 (position VARCHAR, player VARCHAR, squad_no VARCHAR, points VARCHAR, tries VARCHAR)
SELECT COUNT(monarch) FROM table_24046134_1 WHERE crowned = "23 May 1059"
Name the total number of monarchs for 23 may 1059 crowned
CREATE TABLE table_24046134_1 (monarch VARCHAR, crowned VARCHAR)