answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT title FROM table_22181917_2 WHERE us_viewers__millions_ = "9.76"
What is the title of the episode that had 9.76 million U.S. viewers?
CREATE TABLE table_22181917_2 (title VARCHAR, us_viewers__millions_ VARCHAR)
SELECT COUNT(denominations__gold_weight_) FROM table_2592308_1 WHERE country = "Austria"
How many catagories for denominations does Austria have?
CREATE TABLE table_2592308_1 (denominations__gold_weight_ VARCHAR, country VARCHAR)
SELECT artist FROM table_name_54 WHERE week = "top 12"
Which Artist has a Week of Top 12?
CREATE TABLE table_name_54 (artist VARCHAR, week VARCHAR)
SELECT MIN(silver) FROM table_name_21 WHERE rank = "11" AND gold < 0
What is the amount of silver for rank 11 having less than 0 gold?
CREATE TABLE table_name_21 (silver INTEGER, rank VARCHAR, gold VARCHAR)
SELECT COUNT(*) FROM club_rank WHERE Total < 10
How many clubs have total medals less than 10?
CREATE TABLE club_rank (Total INTEGER)
SELECT MAX(lost) FROM table_name_13 WHERE goals_against > 92
Which Lost has Goals Against larger than 92?
CREATE TABLE table_name_13 (lost INTEGER, goals_against INTEGER)
SELECT tv_time FROM table_name_84 WHERE attendance = "69,551"
Name the tv time for attendance of 69,551
CREATE TABLE table_name_84 (tv_time VARCHAR, attendance VARCHAR)
SELECT MIN(sexual_abuse_1) FROM table_15652027_1 WHERE conflict = "Burundi Civil War"
What is the sexual abuse rate where the conflict is the Burundi Civil War?
CREATE TABLE table_15652027_1 (sexual_abuse_1 INTEGER, conflict VARCHAR)
SELECT winner FROM table_name_70 WHERE venue = "royal st george's golf club" AND year = "1969"
What winner has royal st george's golf club as the venue, and 1969 as the year?
CREATE TABLE table_name_70 (winner VARCHAR, venue VARCHAR, year VARCHAR)
SELECT fbs_opponent FROM table_26240481_1 WHERE result = "L, 62-3"
Who played FBS where the result was L, 62-3?
CREATE TABLE table_26240481_1 (fbs_opponent VARCHAR, result VARCHAR)
SELECT away FROM table_name_68 WHERE round = "q3"
What away is there for the q3 round?
CREATE TABLE table_name_68 (away VARCHAR, round VARCHAR)
SELECT SUM(episode) FROM table_name_37 WHERE performer_4 = "chip esten" AND performer_2 = "christopher smith"
What is the sum of the episode numbers where chip esten is the 4th performer and christopher smith was the 2nd performer?
CREATE TABLE table_name_37 (episode INTEGER, performer_4 VARCHAR, performer_2 VARCHAR)
SELECT title FROM table_name_73 WHERE date = 2001 AND artist = "mellow"
Which title was created in 2001 by Mellow?
CREATE TABLE table_name_73 (title VARCHAR, date VARCHAR, artist VARCHAR)
SELECT notes FROM table_name_74 WHERE method = "decision"
What are the Notes when the Method is decision?
CREATE TABLE table_name_74 (notes VARCHAR, method VARCHAR)
SELECT method FROM table_name_30 WHERE race = "native american" AND date_of_execution = "july 1836"
How was the native american executed in July 1836?
CREATE TABLE table_name_30 (method VARCHAR, race VARCHAR, date_of_execution VARCHAR)
SELECT rank FROM table_13836704_6 WHERE freight___metric_tonnes__ = 23791
What is the rank of the airport with a freight ( metric tonnes ) of 23791?
CREATE TABLE table_13836704_6 (rank VARCHAR, freight___metric_tonnes__ VARCHAR)
SELECT COUNT(na__350_) FROM table_13663434_1 WHERE title_and_source = "Bokumo Sekai wo Sukuitai: Battle Tournament"
how many na -350- with title and source being bokumo sekai wo sukuitai: battle tournament
CREATE TABLE table_13663434_1 (na__350_ VARCHAR, title_and_source VARCHAR)
SELECT tally FROM table_name_73 WHERE total > 8 AND opposition = "waterford"
What is the tally with a total larger than 8, Waterford was the opposition?
CREATE TABLE table_name_73 (tally VARCHAR, total VARCHAR, opposition VARCHAR)
SELECT AVG(game) FROM table_name_18 WHERE record = "4-1"
What is the average game number when the record is 4-1?
CREATE TABLE table_name_18 (game INTEGER, record VARCHAR)
SELECT finish FROM table_name_71 WHERE start = "22"
When the start is 22, what is the finish?
CREATE TABLE table_name_71 (finish VARCHAR, start VARCHAR)
SELECT 1 AS st_leg FROM table_name_31 WHERE agg = "10-2"
What is the first leg with an agg of 10-2?
CREATE TABLE table_name_31 (agg VARCHAR)
SELECT remixed_by FROM table_name_80 WHERE version = "album version" AND album = "les mots"
Which Remixed by has a Version of album version, and an Album of les mots?
CREATE TABLE table_name_80 (remixed_by VARCHAR, version VARCHAR, album VARCHAR)
SELECT home_team AS score FROM table_name_80 WHERE venue = "kardinia park"
What was the home teams score when the VFL played at Kardinia Park?
CREATE TABLE table_name_80 (home_team VARCHAR, venue VARCHAR)
SELECT winner FROM table_name_1 WHERE winning_song = "kemenangan cinta"
Who won with the song kemenangan cinta?
CREATE TABLE table_name_1 (winner VARCHAR, winning_song VARCHAR)
SELECT COUNT(year_location) FROM table_28138035_20 WHERE womens_doubles = "Jing Junhong Li Jiawei"
How many year locations are there for the womens doubles in jing junhong li jiawei?
CREATE TABLE table_28138035_20 (year_location VARCHAR, womens_doubles VARCHAR)
SELECT COUNT(decile) FROM table_name_33 WHERE area = "mount roskill" AND name = "monte cecilia school" AND roll > 170
How many values for decile occur in Mount Roskill with Monte Cecilia school with a roll greater than 170?
CREATE TABLE table_name_33 (decile VARCHAR, roll VARCHAR, area VARCHAR, name VARCHAR)
SELECT country FROM table_name_55 WHERE format = "lp"
What country that has LP as a format?
CREATE TABLE table_name_55 (country VARCHAR, format VARCHAR)
SELECT np___nnp FROM table_name_73 WHERE acdp = 1 AND others = 1 AND dp___da = 5
Name the NP/NNP for ACDP of 1 and others of 1 and DP/DA of 5
CREATE TABLE table_name_73 (np___nnp VARCHAR, dp___da VARCHAR, acdp VARCHAR, others VARCHAR)
SELECT visitor FROM table_name_30 WHERE home = "vancouver" AND decision = "cloutier"
Which Visitor has a Home of vancouver, and a Decision of cloutier?
CREATE TABLE table_name_30 (visitor VARCHAR, home VARCHAR, decision VARCHAR)
SELECT COUNT(agricultural_panel) FROM table_name_59 WHERE national_university_of_ireland > 3
What is the total number of agriculatural panels of the composition with more than 3 National Universities of Ireland?
CREATE TABLE table_name_59 (agricultural_panel VARCHAR, national_university_of_ireland INTEGER)
SELECT head_of_household FROM table_11647327_2 WHERE single = "$171,551–$372,950"
What is the range of the head of household whereas single is $171,551–$372,950?
CREATE TABLE table_11647327_2 (head_of_household VARCHAR, single VARCHAR)
SELECT order FROM table_name_84 WHERE species_authority = "hydrochaeris hydrochaeris (linnaeus, 1766)"
What order has the Species Authority of hydrochaeris hydrochaeris (linnaeus, 1766)?
CREATE TABLE table_name_84 (order VARCHAR, species_authority VARCHAR)
SELECT record FROM table_name_93 WHERE score = "l 121–127"
Which record has a score of l 121–127?
CREATE TABLE table_name_93 (record VARCHAR, score VARCHAR)
SELECT country FROM table_name_18 WHERE 2012 > 0 AND 2009 > 0 AND 2008 = 0 AND 2004 > 0
Which country has more than 0 in 2012 and 2009, 0 in 2008 and more than 0 in 2004?
CREATE TABLE table_name_18 (country VARCHAR)
SELECT score FROM table_name_46 WHERE opponent = "detroit pistons"
What was the score when the opponent was Detroit Pistons?
CREATE TABLE table_name_46 (score VARCHAR, opponent VARCHAR)
SELECT MAX(lane) FROM table_name_74 WHERE name = "inna nikitina"
what lane did inna nikitina have?
CREATE TABLE table_name_74 (lane INTEGER, name VARCHAR)
SELECT club FROM table_name_97 WHERE player = "hristo stoitchkov"
What club wast he player hristo stoitchkov from?
CREATE TABLE table_name_97 (club VARCHAR, player VARCHAR)
SELECT position FROM table_name_32 WHERE player = "sal martinez"
What position is Sal Martinez?
CREATE TABLE table_name_32 (position VARCHAR, player VARCHAR)
SELECT MIN(played) FROM table_14460085_3 WHERE team = "Deportivo Español"
What is the lowest number of games played for deportivo español?
CREATE TABLE table_14460085_3 (played INTEGER, team VARCHAR)
SELECT COUNT(segment_c) FROM table_15187735_10 WHERE segment_d = "Crash Test Dummies"
Name the segment c for crash test dummies
CREATE TABLE table_15187735_10 (segment_c VARCHAR, segment_d VARCHAR)
SELECT MIN(game) FROM table_name_95 WHERE opponent = "minnesota north stars" AND february < 25
What is the lowest numbered game with an opponent of Minnesota North Stars earlier than February 25?
CREATE TABLE table_name_95 (game INTEGER, opponent VARCHAR, february VARCHAR)
SELECT position__eliminated FROM table_name_29 WHERE age¹ < 22 AND full_name = "muhammad fairul azreen bin mohd zahid"
What is Position/ Eliminated, when Age¹ is less than 22, and when Full Name is "Muhammad Fairul Azreen Bin Mohd Zahid"?
CREATE TABLE table_name_29 (position__eliminated VARCHAR, age¹ VARCHAR, full_name VARCHAR)
SELECT north_american_release_date FROM table_name_25 WHERE european_release_date = "2013-03-20"
What is the North American release date of the remake with a European release date on 2013-03-20?
CREATE TABLE table_name_25 (north_american_release_date VARCHAR, european_release_date VARCHAR)
SELECT COUNT(elevation__m_) FROM table_2251578_4 WHERE district = "Paratia"
How many elevations are listed for Paratia?
CREATE TABLE table_2251578_4 (elevation__m_ VARCHAR, district VARCHAR)
SELECT COUNT(episode) FROM table_24910733_2 WHERE rating = "8.2"
How many episodes received rating of 8.2?
CREATE TABLE table_24910733_2 (episode VARCHAR, rating VARCHAR)
SELECT name__year_commissioned_ FROM table_name_7 WHERE licence_number = "pl 22"
What is the name where the license number is PL 22?
CREATE TABLE table_name_7 (name__year_commissioned_ VARCHAR, licence_number VARCHAR)
SELECT venue FROM table_name_77 WHERE competition = "1990 asian games"
What is the venue of the 1990 Asian games?
CREATE TABLE table_name_77 (venue VARCHAR, competition VARCHAR)
SELECT odds FROM table_name_87 WHERE trainer = "barclay tagg"
What are the Odds for Trainer Barclay Tagg?
CREATE TABLE table_name_87 (odds VARCHAR, trainer VARCHAR)
SELECT SUM(wins) FROM table_name_2 WHERE year = 2011 AND drivers = "michael meadows"
In 2011, how many wins did Michael Meadows have?
CREATE TABLE table_name_2 (wins INTEGER, year VARCHAR, drivers VARCHAR)
SELECT product, chromosome, porphyria FROM enzyme WHERE LOCATION = 'Cytosol'
What is the product, chromosome and porphyria related to the enzymes which take effect at the location 'Cytosol'?
CREATE TABLE enzyme (product VARCHAR, chromosome VARCHAR, porphyria VARCHAR, LOCATION VARCHAR)
SELECT name FROM table_name_48 WHERE source = "world bank" AND rank < 110 AND out_of < 199
Which Name had the Source, World Bank, and a Rank smaller than 110, Out of a number smaller than 199?
CREATE TABLE table_name_48 (name VARCHAR, out_of VARCHAR, source VARCHAR, rank VARCHAR)
SELECT record FROM table_23248940_7 WHERE team = "Milwaukee"
Name the record for milwaukee
CREATE TABLE table_23248940_7 (record VARCHAR, team VARCHAR)
SELECT callsign FROM table_23915973_1 WHERE power_kw = "25kW"
What is the callsign when power kw is 25kw?
CREATE TABLE table_23915973_1 (callsign VARCHAR, power_kw VARCHAR)
SELECT venue FROM table_name_63 WHERE opponent = "zimbabwe"
Where did Zimbabwe play?
CREATE TABLE table_name_63 (venue VARCHAR, opponent VARCHAR)
SELECT MAX(year_named) FROM table_16799784_12 WHERE name = "Tie Fluctus"
What is the highest year named for the name Tie Fluctus?
CREATE TABLE table_16799784_12 (year_named INTEGER, name VARCHAR)
SELECT weight FROM table_name_70 WHERE club = "panionios g.c." AND date_of_birth = "1975-05-21"
What is the weight of the player from club panionios g.c. and was born on 1975-05-21?
CREATE TABLE table_name_70 (weight VARCHAR, club VARCHAR, date_of_birth VARCHAR)
SELECT circuit FROM table_name_68 WHERE date = "may 27" AND class = "gts-2"
On what circuit is there a class gts-2 race that takes place on May 27?
CREATE TABLE table_name_68 (circuit VARCHAR, date VARCHAR, class VARCHAR)
SELECT COUNT(february) FROM table_1539201_1
Name the number of februaries
CREATE TABLE table_1539201_1 (february VARCHAR)
SELECT directed_by FROM table_27714573_1 WHERE us_viewers__millions_ = "20.5"
who are the directors of the episode that had 20.5 millions of north american viewers?
CREATE TABLE table_27714573_1 (directed_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT winning_driver FROM table_name_7 WHERE fastest_lap = "ryan hunter-reay" AND most_laps_led = "ryan briscoe"
What is Winning Driver, when Fastest Lap is Ryan Hunter-Reay, and when Most Laps Led is Ryan Briscoe?
CREATE TABLE table_name_7 (winning_driver VARCHAR, fastest_lap VARCHAR, most_laps_led VARCHAR)
SELECT date FROM table_2896329_1 WHERE handicap = "8 st 12 lb"
On what date was the handicap 8 st 12 lb?
CREATE TABLE table_2896329_1 (date VARCHAR, handicap VARCHAR)
SELECT date FROM table_name_98 WHERE home = "ny rangers"
On what date were the NY Rangers home?
CREATE TABLE table_name_98 (date VARCHAR, home VARCHAR)
SELECT proper_velocity_w_dx_dτ_in_units_of_c FROM table_15314901_1 WHERE condition_parameter = "Rapidity of 1 hyperbolic radian"
If the condition/parameter is rapidity of 1 hyperbolic radian, what is the proper velocity w dx/dτ in units of c?
CREATE TABLE table_15314901_1 (proper_velocity_w_dx_dτ_in_units_of_c VARCHAR, condition_parameter VARCHAR)
SELECT record FROM table_name_86 WHERE loss = "brandon (4–8)"
What was the record at the game that had a loss of Brandon (4–8)?
CREATE TABLE table_name_86 (record VARCHAR, loss VARCHAR)
SELECT height_in_ft FROM table_name_87 WHERE years_with_spurs = "1973-74"
What is Height in Ft., when Years With Spurs is 1973-74?
CREATE TABLE table_name_87 (height_in_ft VARCHAR, years_with_spurs VARCHAR)
SELECT qual FROM table_name_63 WHERE rank = "2"
What was the qual when the rank was 2?
CREATE TABLE table_name_63 (qual VARCHAR, rank VARCHAR)
SELECT MAX(pick) FROM table_name_76 WHERE position = "ss"
What's the highest pick for SS position?
CREATE TABLE table_name_76 (pick INTEGER, position VARCHAR)
SELECT MAX(week) FROM table_name_89 WHERE result = "w 34-21"
What is the highest Week, when Result is W 34-21?
CREATE TABLE table_name_89 (week INTEGER, result VARCHAR)
SELECT died FROM table_1656555_1 WHERE ordained_bishop = "April 26, 1927"
What is the death date of the archbishop who was ordained as bishop April 26, 1927?
CREATE TABLE table_1656555_1 (died VARCHAR, ordained_bishop VARCHAR)
SELECT MIN(track) FROM table_11839306_2
What is the smallest track number?
CREATE TABLE table_11839306_2 (track INTEGER)
SELECT voltage FROM table_27277284_27 WHERE order_part_number = "AMQL64DAM22GG"
What is the operating voltage of part number amql64dam22gg?
CREATE TABLE table_27277284_27 (voltage VARCHAR, order_part_number VARCHAR)
SELECT MAX(to_par) FROM table_name_83 WHERE place = "t7" AND score = 73 - 74 = 147 AND player = "len mattiace"
What is the highest to par of player len mattiace, who has a t7 place and a score of 73-74=147?
CREATE TABLE table_name_83 (to_par INTEGER, player VARCHAR, place VARCHAR, score VARCHAR)
SELECT COUNT(master_recording) FROM table_22457674_1 WHERE artist = "Doobie Brothers The Doobie Brothers"
Name the number of master recording for doobie brothers the doobie brothers
CREATE TABLE table_22457674_1 (master_recording VARCHAR, artist VARCHAR)
SELECT writer FROM table_12919003_3 WHERE episode = "episode 1"
What's the writer of Episode 1?
CREATE TABLE table_12919003_3 (writer VARCHAR, episode VARCHAR)
SELECT title FROM table_name_2 WHERE season < 1.8 AND first_broadcast = "march 6, 1981"
What is Title, when Season is less than 1.8, and when First Broadcast is March 6, 1981?
CREATE TABLE table_name_2 (title VARCHAR, season VARCHAR, first_broadcast VARCHAR)
SELECT MIN(blocks) FROM table_19722233_5
what is the lowest number of blocks
CREATE TABLE table_19722233_5 (blocks INTEGER)
SELECT model FROM table_name_62 WHERE seats = "37-78"
Which Model had 37-78 seats?
CREATE TABLE table_name_62 (model VARCHAR, seats VARCHAR)
SELECT aircraft FROM table_name_75 WHERE tail_number = "ya-bao"
What type of aircraft was the plane with a tail number of ya-bao?
CREATE TABLE table_name_75 (aircraft VARCHAR, tail_number VARCHAR)
SELECT result FROM table_25505246_7 WHERE against = "Austria"
What were the round results when Hanne Skak Jensen faced Austria?
CREATE TABLE table_25505246_7 (result VARCHAR, against VARCHAR)
SELECT city FROM table_27378582_1 WHERE enrollment = 19900
Name the city for enrollment being 19900
CREATE TABLE table_27378582_1 (city VARCHAR, enrollment VARCHAR)
SELECT season FROM table_name_81 WHERE position = "2nd"
What season was there a 2nd place finish?
CREATE TABLE table_name_81 (season VARCHAR, position VARCHAR)
SELECT AVG(played) FROM table_name_85 WHERE lost > 17 AND drawn = 15 AND goals_against < 75
How many played when lost is more than 17, drawn is 15 and goals against is less than 75?
CREATE TABLE table_name_85 (played INTEGER, goals_against VARCHAR, lost VARCHAR, drawn VARCHAR)
SELECT venue FROM table_name_83 WHERE year = 1951 AND date = "november 4"
What was the venue in 1951 on November 4?
CREATE TABLE table_name_83 (venue VARCHAR, year VARCHAR, date VARCHAR)
SELECT cover_date FROM table_1217448_1 WHERE character_s_ = "Sandman (Wesley Dodds)"
what's the cover date where character(s) is sandman (wesley dodds)
CREATE TABLE table_1217448_1 (cover_date VARCHAR, character_s_ VARCHAR)
SELECT diameter FROM table_name_49 WHERE year = 2006 AND reverse = "equestrian"
What's the diameter of the 2006 equestrian Reverse?
CREATE TABLE table_name_49 (diameter VARCHAR, year VARCHAR, reverse VARCHAR)
SELECT SUM(run_4) FROM table_name_78 WHERE country = "united states" AND athlete = "bree schaaf emily azevedo" AND run_3 < 58.04
Which Run 4 has a Country of united states, and an Athlete of bree schaaf emily azevedo, and a Run 3 smaller than 58.04?
CREATE TABLE table_name_78 (run_4 INTEGER, run_3 VARCHAR, country VARCHAR, athlete VARCHAR)
SELECT POSITION FROM player WHERE Points > 20 INTERSECT SELECT POSITION FROM player WHERE Points < 10
What are the positions with both players having more than 20 points and less than 10 points.
CREATE TABLE player (POSITION VARCHAR, Points INTEGER)
SELECT airdate FROM table_24399615_8 WHERE cable_rank = "N/A" AND viewers = 656000
When 656000 is the amount of viewers and n/a is the cable rank what is the airdate?
CREATE TABLE table_24399615_8 (airdate VARCHAR, cable_rank VARCHAR, viewers VARCHAR)
SELECT player FROM table_name_3 WHERE pick < 126 AND team = "houston oilers"
What player was picked earlier than 126 by the Houston Oilers?
CREATE TABLE table_name_3 (player VARCHAR, pick VARCHAR, team VARCHAR)
SELECT no_of_athletes FROM table_26669939_1 WHERE edition = "7th"
What was the number of athletes for the 7th edition?
CREATE TABLE table_26669939_1 (no_of_athletes VARCHAR, edition VARCHAR)
SELECT event FROM table_name_10 WHERE score_points = "10"
What is the event where there are 10 score points?
CREATE TABLE table_name_10 (event VARCHAR, score_points VARCHAR)
SELECT pc_intro FROM table_2490289_1 WHERE amiga_demo = "My Kingdom (Haujobb & Scoopex)"
What won best pc intro when my kingdom (haujobb & scoopex) won best amiga demo?
CREATE TABLE table_2490289_1 (pc_intro VARCHAR, amiga_demo VARCHAR)
SELECT COUNT(points) FROM table_name_72 WHERE lost < 4
Tell me the total number of points for lost less than 4
CREATE TABLE table_name_72 (points VARCHAR, lost INTEGER)
SELECT result FROM table_name_10 WHERE field = "frontier field"
What is the result of games played at frontier field
CREATE TABLE table_name_10 (result VARCHAR, field VARCHAR)
SELECT T1.Name, T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID ORDER BY T2.Height DESC LIMIT 1
Show the name and population of the country that has the highest roller coaster.
CREATE TABLE roller_coaster (Country_ID VARCHAR, Height VARCHAR); CREATE TABLE country (Name VARCHAR, population VARCHAR, Country_ID VARCHAR)
SELECT MIN(population__1991_) FROM table_2562572_7 WHERE cyrillic_name = "Панчево"
What is the population (1991) when cyrillic name is панчево?
CREATE TABLE table_2562572_7 (population__1991_ INTEGER, cyrillic_name VARCHAR)
SELECT COUNT(Ends) AS won FROM table_25714995_2 WHERE stolen_ends = 8
How many ends won catagories are listed when there are 8 stolen ends?
CREATE TABLE table_25714995_2 (Ends VARCHAR, stolen_ends VARCHAR)
SELECT record FROM table_30054758_3 WHERE date = "December 3"
What is the record for december 3?
CREATE TABLE table_30054758_3 (record VARCHAR, date VARCHAR)
SELECT margin_of_victory FROM table_name_41 WHERE runner_s__up = "stuart appleby"
In the tournament where Stuart Appleby was the runner-up, what was the margin of victory?
CREATE TABLE table_name_41 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT MAX(year_start) FROM table_name_41 WHERE number = 28
Which Year Start has a Number of 28?
CREATE TABLE table_name_41 (year_start INTEGER, number VARCHAR)