output
stringlengths
18
557
instruction
stringlengths
22
540
SELECT us_viewers__millions_ FROM table_21313327_1 WHERE written_by = "Brad Kern"
CREATE TABLE table_21313327_1 (us_viewers__millions_ VARCHAR, written_by VARCHAR), when the writer is Brad Kern, how many u.s viewers (in millions) had the episode?
SELECT 100 AS _yr FROM table_21350772_2 WHERE gas_name = "Carbon dioxide"
CREATE TABLE table_21350772_2 (gas_name VARCHAR), What is the 100 year for Carbon Dioxide?
SELECT 20 AS _yr FROM table_21350772_2 WHERE gas_name = "Nitrous oxide"
CREATE TABLE table_21350772_2 (gas_name VARCHAR), What is the 20 year for Nitrous Oxide?
SELECT lifetime__years_ FROM table_21350772_2 WHERE chemical_formula = "CH 4"
CREATE TABLE table_21350772_2 (lifetime__years_ VARCHAR, chemical_formula VARCHAR), What is the lifetime (years) for chemical formula ch 4?
SELECT 20 AS _yr FROM table_21350772_2 WHERE gas_name = "Sulfur hexafluoride"
CREATE TABLE table_21350772_2 (gas_name VARCHAR), What is the 20 year for Sulfur Hexafluoride?
SELECT traditional FROM table_2135222_2 WHERE simplified = "永城市"
CREATE TABLE table_2135222_2 (traditional VARCHAR, simplified VARCHAR), What is the traditional form for 永城市?
SELECT COUNT(density) FROM table_2135222_2 WHERE english_name = "Yucheng County"
CREATE TABLE table_2135222_2 (density VARCHAR, english_name VARCHAR), How many figures are there for density for Yucheng County?
SELECT traditional FROM table_2135222_2 WHERE simplified = "宁陵县"
CREATE TABLE table_2135222_2 (traditional VARCHAR, simplified VARCHAR), What is the traditional form for 宁陵县?
SELECT traditional FROM table_2135222_2 WHERE density = 820
CREATE TABLE table_2135222_2 (traditional VARCHAR, density VARCHAR), What is the traditional with density of 820?
SELECT pinyin FROM table_2135222_2 WHERE simplified = "虞城县"
CREATE TABLE table_2135222_2 (pinyin VARCHAR, simplified VARCHAR), What is the Pinyin for the simplified 虞城县?
SELECT COUNT(area) FROM table_2135222_2 WHERE population = 703379
CREATE TABLE table_2135222_2 (area VARCHAR, population VARCHAR), How many areas have a population of 703379?
SELECT episode AS Summary FROM table_2140071_12 WHERE coach = "Torae Carr"
CREATE TABLE table_2140071_12 (episode VARCHAR, coach VARCHAR), Name the episode summary for torae carr
SELECT episode AS Summary FROM table_2140071_12 WHERE coach = "Travis Brown"
CREATE TABLE table_2140071_12 (episode VARCHAR, coach VARCHAR), Name the episode summary for travis brown
SELECT MIN(episode) FROM table_2140071_12 WHERE coach = "Donnie Klang"
CREATE TABLE table_2140071_12 (episode INTEGER, coach VARCHAR), Name the least episode for donnie klang
SELECT episode FROM table_2140071_12 WHERE coach = "Travis Brown"
CREATE TABLE table_2140071_12 (episode VARCHAR, coach VARCHAR), Name the episode for travis brown
SELECT COUNT(external_link) FROM table_2140071_7 WHERE premier_date = "July 24, 2006"
CREATE TABLE table_2140071_7 (external_link VARCHAR, premier_date VARCHAR), How many episodes have a premier date of july 24, 2006
SELECT MAX(season) FROM table_2140071_7
CREATE TABLE table_2140071_7 (season INTEGER), What is the newest season?
SELECT COUNT(episode) AS Summary FROM table_2140071_7 WHERE coach = "Valerie"
CREATE TABLE table_2140071_7 (episode VARCHAR, coach VARCHAR), How many episodes have Valerie?
SELECT episode AS Summary FROM table_2140071_7 WHERE episode = 15
CREATE TABLE table_2140071_7 (episode VARCHAR), What the summary of episode 15?
SELECT MAX(episode) FROM table_2140071_8 WHERE premier_date = "March 8, 2008"
CREATE TABLE table_2140071_8 (episode INTEGER, premier_date VARCHAR), Which Maximum episode premiered March 8, 2008?
SELECT coach FROM table_2140071_8 WHERE episode = 15
CREATE TABLE table_2140071_8 (coach VARCHAR, episode VARCHAR), Who was the coach for episode 15?
SELECT coach FROM table_2140071_8 WHERE premier_date = "February 16, 2008" AND episode > 21.0
CREATE TABLE table_2140071_8 (coach VARCHAR, premier_date VARCHAR, episode VARCHAR), What coach premiered February 16, 2008 later than episode 21.0?
SELECT MIN(season) FROM table_2140071_8 WHERE coach = "Cici Kelley"
CREATE TABLE table_2140071_8 (season INTEGER, coach VARCHAR), What was Cici Kelley's minimum season?
SELECT COUNT(season) FROM table_2140071_8 WHERE coach = "Rob Masek"
CREATE TABLE table_2140071_8 (season VARCHAR, coach VARCHAR), How many seasons feature Rob Masek?
SELECT stadium FROM table_21436373_4 WHERE type_of_record = "Regular season game"
CREATE TABLE table_21436373_4 (stadium VARCHAR, type_of_record VARCHAR), What was the stadium that had the regular season game?
SELECT y_ = _2008 FROM table_214479_8 WHERE y_ = _2011 = a = 3
CREATE TABLE table_214479_8 (y_ VARCHAR, _2008 VARCHAR, a VARCHAR, _2011 VARCHAR), What is the y = 2008 when y = 2011 is a = 3?
SELECT y_ = _2011 FROM table_214479_8 WHERE expression = month = FLOOR((d + e + 114) / 31)
CREATE TABLE table_214479_8 (y_ VARCHAR, _2011 VARCHAR, expression VARCHAR, month VARCHAR, d VARCHAR, e VARCHAR), What is the y = 2011 when the expression is month = floor ((d + e + 114) / 31)?
SELECT y_ = _2008 FROM table_214479_8 WHERE expression = "Easter Day (Julian calendar)"
CREATE TABLE table_214479_8 (y_ VARCHAR, _2008 VARCHAR, expression VARCHAR), what is the y = 2008 when the expression is easter day (julian calendar)?
SELECT y_ = _2009 FROM table_214479_8 WHERE expression = month = FLOOR((d + e + 114) / 31)
CREATE TABLE table_214479_8 (y_ VARCHAR, _2009 VARCHAR, expression VARCHAR, month VARCHAR, d VARCHAR, e VARCHAR), what is the y = 2009 when the expression is month = floor ((d + e + 114) / 31)?
SELECT MAX(rr1_pts) FROM table_21471897_2 WHERE ranking = 7
CREATE TABLE table_21471897_2 (rr1_pts INTEGER, ranking VARCHAR), Name the most rr1 pts for 7 ranking
SELECT races FROM table_21471897_2 WHERE team_name = "Prada Challenge"
CREATE TABLE table_21471897_2 (races VARCHAR, team_name VARCHAR), Name the races for the prada challenge
SELECT MIN(total_pts) FROM table_21471897_2 WHERE team_name = "Team Dennis Conner"
CREATE TABLE table_21471897_2 (total_pts INTEGER, team_name VARCHAR), Name the min total pts for team dennis conner
SELECT ranking FROM table_21471897_2 WHERE rr2_pts = 8
CREATE TABLE table_21471897_2 (ranking VARCHAR, rr2_pts VARCHAR), Name the ranking for rr2 pts being 8
SELECT COUNT(rr3_pts) FROM table_21471897_2 WHERE won = 11
CREATE TABLE table_21471897_2 (rr3_pts VARCHAR, won VARCHAR), Name the total number of rr2 pts for won being 11
SELECT r1b1a2__r_m269_ FROM table_21481509_4 WHERE r1b1c__r_v88_ = "77.8%"
CREATE TABLE table_21481509_4 (r1b1a2__r_m269_ VARCHAR, r1b1c__r_v88_ VARCHAR), What percentage is listed in column r1b1a2 (r-m269) for the 77.8% r1b1c (r-v88)?
SELECT r1b1c__r_v88_ FROM table_21481509_4 WHERE total_percentage = "4.5%"
CREATE TABLE table_21481509_4 (r1b1c__r_v88_ VARCHAR, total_percentage VARCHAR), What percentage is listed in column r1b1c (r-v88) for the 4.5% total percentage?
SELECT COUnT AS n FROM table_21481509_4 WHERE r1b1a2__r_m269_ = "0.6%"
CREATE TABLE table_21481509_4 (COUnT VARCHAR, r1b1a2__r_m269_ VARCHAR), How many n are listed for 0.6% r1b1a2 (r-m269)?
SELECT COUnT AS n FROM table_21481509_4 WHERE population = "Berbers from Siwa"
CREATE TABLE table_21481509_4 (COUnT VARCHAR, population VARCHAR), How many n are listed for berbers from siwa?
SELECT MAX(n) FROM table_21481509_4 WHERE r1b1c4__r_v69_ = "55.6%"
CREATE TABLE table_21481509_4 (n INTEGER, r1b1c4__r_v69_ VARCHAR), What is the largest n value for 55.6% r1b1c4 (r-v69)?
SELECT seat_of_rcm FROM table_214920_1 WHERE density__pop_per_km2_ = "9.7"
CREATE TABLE table_214920_1 (seat_of_rcm VARCHAR, density__pop_per_km2_ VARCHAR), What is the seat of the RCM in the county that has a density of 9.7?
SELECT seat_of_rcm FROM table_214920_1 WHERE density__pop_per_km2_ = "14.1"
CREATE TABLE table_214920_1 (seat_of_rcm VARCHAR, density__pop_per_km2_ VARCHAR), What is the seat of the county that has a density of 14.1?
SELECT land_area FROM table_214920_1 WHERE population_canada_2011_census = 18847
CREATE TABLE table_214920_1 (land_area VARCHAR, population_canada_2011_census VARCHAR), What is the land area for the RCM that has a population of 18847?
SELECT regional_county_municipality__rcm_ FROM table_214920_1 WHERE density__pop_per_km2_ = "9.7"
CREATE TABLE table_214920_1 (regional_county_municipality__rcm_ VARCHAR, density__pop_per_km2_ VARCHAR), What is the RCM that has a density of 9.7?
SELECT land_area FROM table_214920_1 WHERE density__pop_per_km2_ = "21.1"
CREATE TABLE table_214920_1 (land_area VARCHAR, density__pop_per_km2_ VARCHAR), What is the land area of the RCM having a density of 21.1?
SELECT withdrawal_rate__2010_11_ FROM table_21514460_1 WHERE graduation_rate__2011_12_ = "89.3%"
CREATE TABLE table_21514460_1 (withdrawal_rate__2010_11_ VARCHAR, graduation_rate__2011_12_ VARCHAR), What is the withdrawal rate for the school district with a graduation rate of 89.3%?
SELECT headquarters FROM table_21514460_1 WHERE school_district = "Annapolis Valley Regional School Board"
CREATE TABLE table_21514460_1 (headquarters VARCHAR, school_district VARCHAR), Where is the headquarter located for the Annapolis Valley Regional School Board?
SELECT withdrawal_rate__2010_11_ FROM table_21514460_1 WHERE headquarters = "Truro"
CREATE TABLE table_21514460_1 (withdrawal_rate__2010_11_ VARCHAR, headquarters VARCHAR), What is their withdrawal rate for the school district with headquarters located in Truro?
SELECT graduation_rate__2011_12_ FROM table_21514460_1 WHERE headquarters = "Sydney"
CREATE TABLE table_21514460_1 (graduation_rate__2011_12_ VARCHAR, headquarters VARCHAR), What is the graduation rate for the school district with headquarters located in Sydney?
SELECT surface FROM table_2151643_3 WHERE year = 1983
CREATE TABLE table_2151643_3 (surface VARCHAR, year VARCHAR), What was the surface for events held in 1983?
SELECT COUNT(opponents) FROM table_2151643_3 WHERE outcome = "Winner" AND partner = "John Lloyd" AND surface = "Clay"
CREATE TABLE table_2151643_3 (opponents VARCHAR, surface VARCHAR, outcome VARCHAR, partner VARCHAR), What was the total number of matches that had an outcome of Winner, a partner of John Lloyd, and a clay surface?
SELECT opponents FROM table_2151643_3 WHERE outcome = "Winner" AND surface = "Grass"
CREATE TABLE table_2151643_3 (opponents VARCHAR, outcome VARCHAR, surface VARCHAR), Who were the opponents that led to an outcome of winner on a grass surface?
SELECT COUNT(original_air_date) FROM table_21550897_1 WHERE _number = 6
CREATE TABLE table_21550897_1 (original_air_date VARCHAR, _number VARCHAR), How many times did episode 6 originally air?
SELECT MAX(production_code) FROM table_21550897_1 WHERE us_viewers__million_ = "9.18"
CREATE TABLE table_21550897_1 (production_code INTEGER, us_viewers__million_ VARCHAR), What is the production code for the episode that had 9.18 million viewers (U.S.)?
SELECT _number FROM table_21550897_1 WHERE directed_by = "Craig Ross, Jr."
CREATE TABLE table_21550897_1 (_number VARCHAR, directed_by VARCHAR), What episode number was directed by Craig Ross, Jr.
SELECT MIN(_number) FROM table_21550897_1 WHERE us_viewers__million_ = "10.14"
CREATE TABLE table_21550897_1 (_number INTEGER, us_viewers__million_ VARCHAR), What episode had 10.14 million viewers (U.S.)?
SELECT written_by FROM table_21550897_1 WHERE production_code = 519
CREATE TABLE table_21550897_1 (written_by VARCHAR, production_code VARCHAR), Who wrote the episode with the production code 519?
SELECT successor FROM table_2159506_4 WHERE reason_for_change = "Died May 12, 1964"
CREATE TABLE table_2159506_4 (successor VARCHAR, reason_for_change VARCHAR), Who are all successors when reason for change is died May 12, 1964?
SELECT district FROM table_2159506_4 WHERE reason_for_change = "Died August 9, 1964"
CREATE TABLE table_2159506_4 (district VARCHAR, reason_for_change VARCHAR), What is every district for reason for change is died August 9, 1964?
SELECT MIN(division) FROM table_21602734_1
CREATE TABLE table_21602734_1 (division INTEGER), What is the lowest division number?
SELECT reg_season FROM table_21602734_1 WHERE playoffs = "Did not qualify" AND year = 2009
CREATE TABLE table_21602734_1 (reg_season VARCHAR, playoffs VARCHAR, year VARCHAR), What was the regular season name where they did not qualify for the playoffs in 2009?
SELECT league FROM table_21602734_1 WHERE year = 2010
CREATE TABLE table_21602734_1 (league VARCHAR, year VARCHAR), What league was involved in 2010?
SELECT MAX(division) FROM table_21602734_1
CREATE TABLE table_21602734_1 (division INTEGER), What is the highest number of divisions mentioned?
SELECT league FROM table_21602734_1 WHERE year = 2008
CREATE TABLE table_21602734_1 (league VARCHAR, year VARCHAR), What league was involved in 2008?
SELECT administrative_division FROM table_21734764_1 WHERE population_2011_siak_database = "3,672,994"
CREATE TABLE table_21734764_1 (administrative_division VARCHAR, population_2011_siak_database VARCHAR), Which administrative division had a population of 2011 according to the siak database of 3,672,994?
SELECT population_density___km²_2010_ FROM table_21734764_1 WHERE administrative_division = "Bandung Regency"
CREATE TABLE table_21734764_1 (population_density___km²_2010_ VARCHAR, administrative_division VARCHAR), What is the population density of bandung regency?
SELECT administrative_division FROM table_21734764_1 WHERE population_2011_siak_database = "606,699"
CREATE TABLE table_21734764_1 (administrative_division VARCHAR, population_2011_siak_database VARCHAR), Which administrative division had a 2011 population of 606,699 according to the siak database?
SELECT area__km²__2005 FROM table_21734764_1 WHERE administrative_division = "Cimahi City"
CREATE TABLE table_21734764_1 (area__km²__2005 VARCHAR, administrative_division VARCHAR), What is the area of cimahi city?
SELECT population_density___km²_2010_ FROM table_21734764_1 WHERE population_2010_census = 264170
CREATE TABLE table_21734764_1 (population_density___km²_2010_ VARCHAR, population_2010_census VARCHAR), What is the population density of the administrative division with a population in 2010 of 264170 according to the census?
SELECT installation_date FROM table_21821014_1 WHERE location = "El Paso, Texas"
CREATE TABLE table_21821014_1 (installation_date VARCHAR, location VARCHAR), What was the installation date in El Paso, Texas?
SELECT chapter FROM table_21821014_1 WHERE institution = "Illinois Wesleyan"
CREATE TABLE table_21821014_1 (chapter VARCHAR, institution VARCHAR), What is the chapter for Illinois Wesleyan?
SELECT inactive FROM table_21821014_1 WHERE institution = "University of Texas, El Paso"
CREATE TABLE table_21821014_1 (inactive VARCHAR, institution VARCHAR), What does the inactive state for University of Texas, El Paso?
SELECT installation_date FROM table_21821014_1 WHERE chapter = "Delta"
CREATE TABLE table_21821014_1 (installation_date VARCHAR, chapter VARCHAR), What is the installation date for the Delta Chapter?
SELECT lowest FROM table_21824695_8 WHERE stadium = "Pohang Steelyard"
CREATE TABLE table_21824695_8 (lowest VARCHAR, stadium VARCHAR), What is the lowest when pohang steelyard is the stadium?
SELECT match_played FROM table_21824695_8 WHERE highest = 32250
CREATE TABLE table_21824695_8 (match_played VARCHAR, highest VARCHAR), How many match played have the highest as 32250?
SELECT team FROM table_21824695_8 WHERE match_played = "10 4"
CREATE TABLE table_21824695_8 (team VARCHAR, match_played VARCHAR), Which team has a match played of 10 4?
SELECT highest FROM table_21824695_8 WHERE team = "Pohang Steelers"
CREATE TABLE table_21824695_8 (highest VARCHAR, team VARCHAR), What is the highest when pohang steelers is the team?
SELECT team FROM table_21824695_8 WHERE average = 7757
CREATE TABLE table_21824695_8 (team VARCHAR, average VARCHAR), Which team has 7757 as the average?
SELECT MAX(no_in_season) FROM table_2182654_6 WHERE written_by = "Nancy Oliver"
CREATE TABLE table_2182654_6 (no_in_season INTEGER, written_by VARCHAR), What s the episode number in the season that was written by Nancy Oliver?
SELECT original_air_date FROM table_2182654_6 WHERE no_in_season = 10
CREATE TABLE table_2182654_6 (original_air_date VARCHAR, no_in_season VARCHAR), What date was episode 10 in the season originally aired?
SELECT title FROM table_2182654_6 WHERE directed_by = "Mary Harron"
CREATE TABLE table_2182654_6 (title VARCHAR, directed_by VARCHAR), What was the name of the episode that was directed by Mary Harron?
SELECT average_grade FROM table_21829580_1 WHERE song = "Şımarık Tarkan"
CREATE TABLE table_21829580_1 (average_grade VARCHAR, song VARCHAR), Name the average grade for şımarık tarkan
SELECT classification__judges_ FROM table_21829580_1 WHERE detailed_grades = "9, 9, 8, 9"
CREATE TABLE table_21829580_1 (classification__judges_ VARCHAR, detailed_grades VARCHAR), Name the classification for 9, 9, 8, 9
SELECT poles FROM table_2190919_1 WHERE team_s_ = "#08 Miller Racing"
CREATE TABLE table_2190919_1 (poles VARCHAR, team_s_ VARCHAR), What are the poles is #08 Miller racing?
SELECT MAX(year) FROM table_2190919_1 WHERE avg_start = "8.5"
CREATE TABLE table_2190919_1 (year INTEGER, avg_start VARCHAR), What is the most recent year where the average start is 8.5?
SELECT team_s_ FROM table_2190919_1 WHERE avg_finish = "23.3"
CREATE TABLE table_2190919_1 (team_s_ VARCHAR, avg_finish VARCHAR), What are the racing teams for which the average finish is 23.3?
SELECT team_s_ FROM table_2190919_1 WHERE position = "92nd"
CREATE TABLE table_2190919_1 (team_s_ VARCHAR, position VARCHAR), What racing team/s had the 92nd position?
SELECT COUNT(top_10) FROM table_2190919_1 WHERE avg_finish = "23.3"
CREATE TABLE table_2190919_1 (top_10 VARCHAR, avg_finish VARCHAR), How many teams finished in the top team with an average finish of 23.3?
SELECT COUNT(country) FROM table_21907770_4 WHERE versus = "India"
CREATE TABLE table_21907770_4 (country VARCHAR, versus VARCHAR), How many times was the opponent country India?
SELECT date FROM table_21907770_4 WHERE versus = "South Africa"
CREATE TABLE table_21907770_4 (date VARCHAR, versus VARCHAR), What are the dates where the versus team is South Africa?
SELECT championship__titles_finals_ FROM table_2201541_3 WHERE year = 1981
CREATE TABLE table_2201541_3 (championship__titles_finals_ VARCHAR, year VARCHAR), What championship was played in 1981?
SELECT COUNT(outcome) FROM table_2201541_3 WHERE partner = "Paul McNamee"
CREATE TABLE table_2201541_3 (outcome VARCHAR, partner VARCHAR), How many different outcomes did the final with Paul McNamee as a partner have?
SELECT COUNT(partner) FROM table_2201541_3 WHERE championship__titles_finals_ = "French Open (0/1)"
CREATE TABLE table_2201541_3 (partner VARCHAR, championship__titles_finals_ VARCHAR), How many different partners were played with during French Open (0/1)?
SELECT original_air_date FROM table_2221374_3 WHERE directed_by = "James Widdoes" AND production_code = 320
CREATE TABLE table_2221374_3 (original_air_date VARCHAR, directed_by VARCHAR, production_code VARCHAR), What date was the episode originally aired that was directed by James Widdoes and the production code is 320?
SELECT production_code FROM table_2221374_3 WHERE no_in_season = 3
CREATE TABLE table_2221374_3 (production_code VARCHAR, no_in_season VARCHAR), What is the production code for episode 3 of the season?
SELECT orchestra FROM table_222198_1 WHERE year_of_recording = 1951
CREATE TABLE table_222198_1 (orchestra VARCHAR, year_of_recording VARCHAR), Which orchestra has a recording year of 1951?
SELECT orchestra FROM table_222198_1 WHERE year_of_recording = 1934
CREATE TABLE table_222198_1 (orchestra VARCHAR, year_of_recording VARCHAR), Where is the orchestra when the year of recording is 1934?
SELECT former_codes FROM table_222666_1 WHERE new_country_names_and_codes = "Merged into Panama ( PA , PAN , 591 )"
CREATE TABLE table_222666_1 (former_codes VARCHAR, new_country_names_and_codes VARCHAR), Name the former codes for merged into panama ( pa , pan , 591 )
SELECT COUNT(period_of_validity) FROM table_222666_1 WHERE former_country_name = "Upper Volta"
CREATE TABLE table_222666_1 (period_of_validity VARCHAR, former_country_name VARCHAR), Name the total number for period of validity for upper volta
SELECT seat_no_4 FROM table_2231241_1 WHERE election = "January 25, 1967"
CREATE TABLE table_2231241_1 (seat_no_4 VARCHAR, election VARCHAR), Who was the winner of seat no 4 for the election on January 25, 1967
SELECT seat_no_1 FROM table_2231241_1 WHERE mayor = "John J. Seguier"
CREATE TABLE table_2231241_1 (seat_no_1 VARCHAR, mayor VARCHAR), Who is seat no 1 when the mayor was john j. seguier