question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
Who is the original artist with a theme of N/A?
create table table_21501565_1 (original_artist varchar, theme varchar, PRIMARY KEY (original_artist))
select original_artist from table_21501565_1 where theme = "n/a"
How many candidates ran against barratt o'hara?
create table table_1342198_13 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select count(candidates) from table_1342198_13 where incumbent = "barratt o'hara"
what is the number of original airdate written by allan hawco?
create table table_27547668_4 (original_airdate varchar, written_by varchar, PRIMARY KEY (original_airdate))
select count(original_airdate) from table_27547668_4 where written_by = "allan hawco"
What January 15-16 is is that corresponds to November 3, 2013?
create table table_25284864_3 (january_15_16 varchar, november_3 varchar, PRIMARY KEY (january_15_16))
select january_15_16 from table_25284864_3 where november_3 = "november_3, 2013"
What is the sellout % when the gross sales is $1,727,400?
create table table_16331025_2 (sellout___percentage_ varchar, gross_sales varchar, PRIMARY KEY (sellout___percentage_))
select sellout___percentage_ from table_16331025_2 where gross_sales = "$1,727,400"
When 0,4, or 8 mb is the nupowr 117 what is the nupowr 183?
create table table_3002894_4 (nupowr_183 varchar, nupowr_117 varchar, PRIMARY KEY (nupowr_183))
select nupowr_183 from table_3002894_4 where nupowr_117 = "0,4, or 8 mb"
List the pictorals from issues when lindsey roeper was the cover model.
create table table_1566852_8 (pictorials varchar, cover_model varchar, PRIMARY KEY (pictorials))
select pictorials from table_1566852_8 where cover_model = "lindsey roeper"
Which vocal type did the musician with first name "Solveig" played in the song with title "A Bar in Amsterdam"?
create table vocals (songid varchar, bandmate varchar, PRIMARY KEY (songid)); create table band (id varchar, firstname varchar, PRIMARY KEY (id)); create table songs (songid varchar, title varchar, PRIMARY KEY (songid))
select type from vocals as t1 join songs as t2 on t1.songid = t2.songid join band as t3 on t1.bandmate = t3.id where t3.firstname = "solveig" and t2.title = "a bar in amsterdam"
List the branding for krca-tv.
create table table_2523809_1 (branding varchar, callsign varchar, PRIMARY KEY (branding))
select branding from table_2523809_1 where callsign = "krca-tv"
Find the first name of students not enrolled in any course.
create table student (fname varchar, stuid varchar, PRIMARY KEY (fname)); create table enrolled_in (fname varchar, stuid varchar, PRIMARY KEY (fname))
select fname from student where not stuid in (select stuid from enrolled_in)
What was the record when the team played Boston?
create table table_17325580_10 (record varchar, team varchar, PRIMARY KEY (record))
select record from table_17325580_10 where team = "boston"
Who was the head coach in season 2?
create table table_14015965_1 (head_coach varchar, previous_season varchar, PRIMARY KEY (head_coach))
select head_coach from table_14015965_1 where previous_season = "2"
What are the vocal types used in song "Badlands"?
create table vocals (songid varchar, PRIMARY KEY (songid)); create table songs (songid varchar, PRIMARY KEY (songid))
select type from vocals as t1 join songs as t2 on t1.songid = t2.songid where title = "badlands"
Where did Test Mission: War Heads and Missile Payload launch when there was a partial failure?
create table table_11869952_3 (launch_site varchar, mission varchar, results varchar, PRIMARY KEY (launch_site))
select launch_site from table_11869952_3 where mission = "test mission: war heads and missile payload" and results = "partial failure"
Name the period for michel prost
create table table_24565004_17 (period varchar, name varchar, PRIMARY KEY (period))
select period from table_24565004_17 where name = "michel prost"
Which TV network had its series finale on May 7, 2012?
create table table_29799700_2 (tv_network_s_ varchar, series_finale varchar, PRIMARY KEY (tv_network_s_))
select tv_network_s_ from table_29799700_2 where series_finale = "may 7, 2012"
Who are the villains in the episodes where Megan is the storyteller and Lorette LeBlanc is the director?
create table table_10470082_7 (villains varchar, storyteller varchar, director varchar, PRIMARY KEY (villains))
select villains from table_10470082_7 where storyteller = "megan" and director = "lorette leblanc"
What was the little league team from Kentucky when the little league team from Indiana and Wisconsin were Brownsburg LL Brownsburg and Merrill LL Merrill?
create table table_18461045_1 (kentucky varchar, indiana varchar, wisconsin varchar, PRIMARY KEY (kentucky))
select kentucky from table_18461045_1 where indiana = "brownsburg ll brownsburg" and wisconsin = "merrill ll merrill"
What was the gas storage status for the nation that had "yes" for alternative fuel?
create table table_21690339_1 (gas_storage varchar, alternative_fuel varchar, PRIMARY KEY (gas_storage))
select gas_storage from table_21690339_1 where alternative_fuel = "yes"
What horses does r. a. Scott own?
create table table_19624708_1 (horse varchar, owner varchar, PRIMARY KEY (horse))
select horse from table_19624708_1 where owner = "r. a. scott"
Show all majors and corresponding number of students.
create table student (major varchar, PRIMARY KEY (major))
select major, count(*) from student group by major
Show all locations and the number of gas stations in each location ordered by the count.
create table gas_station (location varchar, PRIMARY KEY (location))
select location, count(*) from gas_station group by location order by count(*)
what's the transmission where turbo is yes (mitsubishi td04-16t )
create table table_11167610_1 (transmission varchar, turbo varchar, PRIMARY KEY (transmission))
select transmission from table_11167610_1 where turbo = "yes (mitsubishi td04-16t )"
what is the political affiliation of ray roberts
create table table_1341884_45 (party varchar, incumbent varchar, PRIMARY KEY (party))
select party from table_1341884_45 where incumbent = "ray roberts"
Find the forename and surname of drivers whose nationality is German?
create table drivers (forename varchar, surname varchar, nationality varchar, PRIMARY KEY (forename))
select forename, surname from drivers where nationality = "german"
If the WS points is 947, what is the 08-09 gp/jgp 2nd ?
create table table_24990183_7 (ws_points varchar, PRIMARY KEY (ws_points))
select 08 as _09_gp_jgp_2nd from table_24990183_7 where ws_points = 947
Name the total number of troops per one million being 2.76
create table table_30108346_1 (troops_per_one_million_population varchar, troops_per_$1_billion___usd___gdp varchar, PRIMARY KEY (troops_per_one_million_population))
select count(troops_per_one_million_population) from table_30108346_1 where troops_per_$1_billion___usd___gdp = "2.76"
Who pubilshed isbn 1-937007-44-8?
create table table_16907214_1 (publisher varchar, hardcover varchar, PRIMARY KEY (publisher))
select publisher from table_16907214_1 where hardcover = "isbn 1-937007-44-8"
What is the African Spoonbill when the Ostrich is Brown-hooded Kingfisher?
create table table_20042805_2 (african_spoonbill varchar, ostrich varchar, PRIMARY KEY (african_spoonbill))
select african_spoonbill from table_20042805_2 where ostrich = "brown-hooded kingfisher"
What is the name of the race in the Modena circuit?
create table table_1140116_5 (race_name varchar, circuit varchar, PRIMARY KEY (race_name))
select race_name from table_1140116_5 where circuit = "modena"
Where was the game played that had a record of 19-6?
create table table_18904831_7 (location varchar, record varchar, PRIMARY KEY (location))
select location from table_18904831_7 where record = "19-6"
What is the organisation type and id of the organisation which has the most number of research staff?
create table research_staff (employer_organisation_id varchar, PRIMARY KEY (employer_organisation_id)); create table organisations (organisation_type varchar, organisation_id varchar, PRIMARY KEY (organisation_type))
select t1.organisation_type, t1.organisation_id from organisations as t1 join research_staff as t2 on t1.organisation_id = t2.employer_organisation_id group by t1.organisation_id order by count(*) desc limit 1
Who won the men's double when Chou Tien-Chen won the men's single?
create table table_12275654_1 (mens_doubles varchar, mens_singles varchar, PRIMARY KEY (mens_doubles))
select mens_doubles from table_12275654_1 where mens_singles = "chou tien-chen"
What is the total number of semi-final losses for the Kitchener Rangers?
create table table_17751942_4 (final_losses varchar, semi integer, team varchar, PRIMARY KEY (final_losses))
select max(semi) - final_losses from table_17751942_4 where team = "kitchener rangers"
What is the paper type for the date of issue July 8?
create table table_25468520_1 (paper_type varchar, date_of_issue varchar, PRIMARY KEY (paper_type))
select paper_type from table_25468520_1 where date_of_issue = "july 8"
What air date had 1.01 million U.S. viewers?
create table table_28334498_3 (original_air_date varchar, us_viewers__millions_ varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_28334498_3 where us_viewers__millions_ = "1.01"
What is the lowest ru?
create table table_10818465_1 (ru integer, PRIMARY KEY (ru))
select min(ru) from table_10818465_1
What was the airdate of the episode with 106000 dave ja vu viewers?
create table table_25721_3 (airdate varchar, dave_ja_vu_viewers varchar, PRIMARY KEY (airdate))
select airdate from table_25721_3 where dave_ja_vu_viewers = 106000
How many drivers had a time of 3:09:45?
create table table_2175858_1 (driver varchar, race_time varchar, PRIMARY KEY (driver))
select count(driver) from table_2175858_1 where race_time = "3:09:45"
Who was in the three darts challenge that aired on 10 may 2010?
create table table_26733129_1 (three_darts_challenge varchar, air_date varchar, PRIMARY KEY (three_darts_challenge))
select three_darts_challenge from table_26733129_1 where air_date = "10 may 2010"
What the name of the school where the last win in 2007-08?
create table table_14286908_1 (school varchar, year_of_last_win varchar, PRIMARY KEY (school))
select school from table_14286908_1 where year_of_last_win = "2007-08"
How many entries are there for vote when the air date was 15 november 1997?
create table table_25016824_2 (vote varchar, air_date varchar, PRIMARY KEY (vote))
select count(vote) from table_25016824_2 where air_date = "15 november 1997"
What is the voltage range (v) if the clock multiplier is 3x or 2x mode and part number is a80486dx4wb-100?
create table table_15261_1 (voltage_range__v_ varchar, clock_multiplier varchar, part_number varchar, PRIMARY KEY (voltage_range__v_))
select count(voltage_range__v_) from table_15261_1 where clock_multiplier = "3x or 2x mode" and part_number = "a80486dx4wb-100"
who was in the 2005 role when the original broadway cast was played by jesse l. martin?
create table table_26436_2 (original_broadway_cast varchar, PRIMARY KEY (original_broadway_cast))
select 2005 as _film from table_26436_2 where original_broadway_cast = "jesse l. martin"
How many tariff codes have a bts retail price of 2.553p/min?
create table table_10408617_5 (tariff_code varchar, bts_retail_price__regulated_ varchar, PRIMARY KEY (tariff_code))
select count(tariff_code) from table_10408617_5 where bts_retail_price__regulated_ = "2.553p/min"
On what date did Kim Fogh replace the previous manager?
create table table_27782699_3 (date_of_appointment varchar, replaced_by varchar, PRIMARY KEY (date_of_appointment))
select date_of_appointment from table_27782699_3 where replaced_by = "kim fogh"
Who was the lyricist for gopal krishna and co singer of solo?
create table table_11827596_4 (lyricist varchar, film_name varchar, co_singer varchar, PRIMARY KEY (lyricist))
select lyricist from table_11827596_4 where film_name = "gopal krishna" and co_singer = "solo"
Who was on the pole position at the monaco grand prix?
create table table_1137695_3 (pole_position varchar, grand_prix varchar, PRIMARY KEY (pole_position))
select pole_position from table_1137695_3 where grand_prix = "monaco grand_prix"
which brand have drivers who won with the names of ryan briscoe and tomas scheckter
create table table_13512105_3 (winning_team varchar, winning_driver varchar, fastest_lap varchar, PRIMARY KEY (winning_team))
select winning_team from table_13512105_3 where winning_driver = "ryan briscoe" and fastest_lap = "tomas scheckter"
Please show the categories of the music festivals and the count.
create table music_festival (category varchar, PRIMARY KEY (category))
select category, count(*) from music_festival group by category
How many violent catagories are listed for the year forcible rapes were 1156?
create table table_25271777_1 (violent varchar, forcible_rape varchar, PRIMARY KEY (violent))
select count(violent) from table_25271777_1 where forcible_rape = 1156
What was the callback venue for the audition city in the episode aired on January 20, 2011?
create table table_27455867_1 (callback_venue varchar, episode_air_date varchar, PRIMARY KEY (callback_venue))
select callback_venue from table_27455867_1 where episode_air_date = "january 20, 2011"
What's the version of AutoCAD Architectural Desktop 3?
create table table_19329117_1 (version varchar, official_name varchar, PRIMARY KEY (version))
select version from table_19329117_1 where official_name = "autocad architectural desktop 3"
The candidates Charles Fisher (DR) 65.1% W. Jones (F) 34.9% is for what incumbent?
create table table_2668336_17 (incumbent varchar, candidates varchar, PRIMARY KEY (incumbent))
select incumbent from table_2668336_17 where candidates = "charles fisher (dr) 65.1% w. jones (f) 34.9%"
What is the location with the most cinemas opened in year 2010 or later?
create table cinema (location varchar, openning_year varchar, PRIMARY KEY (location))
select location from cinema where openning_year >= 2010 group by location order by count(*) desc limit 1
Show different type codes of products and the number of products with each type code.
create table products (product_type_code varchar, PRIMARY KEY (product_type_code))
select product_type_code, count(*) from products group by product_type_code
When 48-30 is the record who has the highest amount of points?
create table table_23286158_10 (high_points varchar, record varchar, PRIMARY KEY (high_points))
select high_points from table_23286158_10 where record = "48-30"
Name the total number of nicknames for st. bonaventure university
create table table_16383772_1 (nickname varchar, school varchar, PRIMARY KEY (nickname))
select count(nickname) from table_16383772_1 where school = "st. bonaventure university"
Find all the papers published by "Aaron Turon".
create table authorship (authid varchar, paperid varchar, PRIMARY KEY (authid)); create table papers (title varchar, paperid varchar, PRIMARY KEY (title)); create table authors (authid varchar, fname varchar, lname varchar, PRIMARY KEY (authid))
select t3.title from authors as t1 join authorship as t2 on t1.authid = t2.authid join papers as t3 on t2.paperid = t3.paperid where t1.fname = "aaron" and t1.lname = "turon"
Which providers use version 2008?
create table table_14465871_2 (provider varchar, version varchar, PRIMARY KEY (provider))
select provider from table_14465871_2 where version = "2008"
What is the name of the DS division where the divisional secretary is S. H. Muzammil?
create table table_12485020_1 (ds_division varchar, divisional_secretary varchar, PRIMARY KEY (ds_division))
select ds_division from table_12485020_1 where divisional_secretary = "s. h. muzammil"
What department irrigated 2170 Ha?
create table table_17118006_2 (department varchar, irrigated_ha varchar, PRIMARY KEY (department))
select department from table_17118006_2 where irrigated_ha = 2170
What type of settlement is rabe?
create table table_2562572_30 (type varchar, settlement varchar, PRIMARY KEY (type))
select type from table_2562572_30 where settlement = "rabe"
What candidate is a member of the Republican party?
create table table_1341640_39 (candidates varchar, party varchar, PRIMARY KEY (candidates))
select candidates from table_1341640_39 where party = "republican"
What is every value for passing yards per game if rushing yards per game is 113.6?
create table table_27487336_1 (passing_yards_per_game varchar, rushing_yards_per_game varchar, PRIMARY KEY (passing_yards_per_game))
select passing_yards_per_game from table_27487336_1 where rushing_yards_per_game = "113.6"
How many titles are there for the original air date April 3, 2012?
create table table_26150013_1 (title varchar, original_air_date varchar, PRIMARY KEY (title))
select count(title) from table_26150013_1 where original_air_date = "april 3, 2012"
What is the TV Channel that shows the cartoon "The Rise of the Blue Beetle!"? List the TV Channel's series name.
create table cartoon (channel varchar, title varchar, PRIMARY KEY (channel)); create table tv_channel (series_name varchar, id varchar, PRIMARY KEY (series_name))
select t1.series_name from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t2.title = "the rise of the blue beetle!"
How many dams are there in the Nome (CA) area?
create table table_17978052_2 (_number_s_dam_and_gnis_query_link integer, borough_or_census_area varchar, PRIMARY KEY (_number_s_dam_and_gnis_query_link))
select min(_number_s_dam_and_gnis_query_link) from table_17978052_2 where borough_or_census_area = "nome (ca)"
What is the route for the destination of guruvayur?
create table table_29770377_1 (route_via varchar, destination varchar, PRIMARY KEY (route_via))
select route_via from table_29770377_1 where destination = "guruvayur"
What time in eastern standard time was game held at denver broncos?
create table table_14433719_1 (time___et__ varchar, opponent varchar, PRIMARY KEY (time___et__))
select time___et__ from table_14433719_1 where opponent = "at denver broncos"
Name the dominant religion 2002 for village banatski despotovac
create table table_2562572_35 (dominant_religion__2002_ varchar, type varchar, settlement varchar, PRIMARY KEY (dominant_religion__2002_))
select dominant_religion__2002_ from table_2562572_35 where type = "village" and settlement = "banatski despotovac"
How many members are not living in Hartford?
create table member (address varchar, PRIMARY KEY (address))
select count(*) from member where address <> 'hartford'
The name cheung, raymond man-to is listed as a romanised name is cheung, raymond man-to?
create table table_17964087_2 (foreign_nationality varchar, romanised_name varchar, PRIMARY KEY (foreign_nationality))
select foreign_nationality from table_17964087_2 where romanised_name = "cheung, raymond man-to"
Who was the candidate when the result - % was 0.4%?
create table table_25818630_2 (candidate varchar, result____percentage varchar, PRIMARY KEY (candidate))
select candidate from table_25818630_2 where result____percentage = "0.4%"
what's the cover date where character(s) is x-men ; magneto
create table table_1217448_1 (cover_date varchar, character_s_ varchar, PRIMARY KEY (cover_date))
select cover_date from table_1217448_1 where character_s_ = "x-men ; magneto"
Show order ids and the total quantity in each order.
create table order_items (order_id varchar, product_quantity integer, PRIMARY KEY (order_id))
select order_id, sum(product_quantity) from order_items group by order_id
What is listed in segment b when segment c is artificial flowers?
create table table_15187735_21 (segment_b varchar, segment_c varchar, PRIMARY KEY (segment_b))
select segment_b from table_15187735_21 where segment_c = "artificial flowers"
what are the names of people who did not participate in the candidate election.
create table candidate (name varchar, people_id varchar, PRIMARY KEY (name)); create table people (name varchar, people_id varchar, PRIMARY KEY (name))
select name from people where not people_id in (select people_id from candidate)
what's the title with original air date being september23,1995
create table table_14637853_3 (title varchar, original_air_date varchar, PRIMARY KEY (title))
select title from table_14637853_3 where original_air_date = "september23,1995"
Incumbent Deborah Pryce was a member of what party?
create table table_1341395_36 (party varchar, incumbent varchar, PRIMARY KEY (party))
select party from table_1341395_36 where incumbent = "deborah pryce"
What was the report for the Sunday race where the winner had an average speed of 128.27 mph?
create table table_22298383_1 (report varchar, day varchar, average_speed__mph_ varchar, PRIMARY KEY (report))
select report from table_22298383_1 where day = "sunday" and average_speed__mph_ = "128.27"
what is the title where the airdate is december 5, 1964?
create table table_25800134_9 (title varchar, airdate varchar, PRIMARY KEY (title))
select title from table_25800134_9 where airdate = "december 5, 1964"
Find the different first names and cities of the students who have allergy to milk or cat.
create table has_allergy (stuid varchar, allergy varchar, PRIMARY KEY (stuid)); create table student (fname varchar, city_code varchar, stuid varchar, PRIMARY KEY (fname))
select distinct t1.fname, t1.city_code from student as t1 join has_allergy as t2 on t1.stuid = t2.stuid where t2.allergy = "milk" or t2.allergy = "cat"
Find the total and average amount of settlements.
create table settlements (settlement_amount integer, PRIMARY KEY (settlement_amount))
select sum(settlement_amount), avg(settlement_amount) from settlements
How many brandings are there where the Power kW (ERP) is 1kW (29.94kW ERP)?
create table table_2610582_2 (branding varchar, power_kw__erp_ varchar, PRIMARY KEY (branding))
select count(branding) from table_2610582_2 where power_kw__erp_ = "1kw (29.94kw erp)"
how many canton with commune being waldbillig
create table table_1417184_1 (canton varchar, commune varchar, PRIMARY KEY (canton))
select count(canton) from table_1417184_1 where commune = "waldbillig"
what's the numer of jamaicans granted british citizenship with naturalisation by residence being 927
create table table_11214212_1 (numer_of_jamaicans_granted_british_citizenship varchar, naturalisation_by_residence varchar, PRIMARY KEY (numer_of_jamaicans_granted_british_citizenship))
select numer_of_jamaicans_granted_british_citizenship from table_11214212_1 where naturalisation_by_residence = 927
What's the lower house majority in the state whose Senior senator is J. Shaheen?
create table table_21531764_2 (lower_house_majority varchar, senior_us_senator varchar, PRIMARY KEY (lower_house_majority))
select lower_house_majority from table_21531764_2 where senior_us_senator = "j. shaheen"
Name the aircraft type for jagdgeschwader 26
create table table_28342423_1 (aircraft_type varchar, parent_unit varchar, PRIMARY KEY (aircraft_type))
select aircraft_type from table_28342423_1 where parent_unit = "jagdgeschwader 26"
Who are all the candidates vying for Henry B. Gonzalez' seat?
create table table_1341586_44 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select candidates from table_1341586_44 where incumbent = "henry b. gonzalez"
What was the mls cup playoffs when concacaf champions cup / concacaf champions league was quarter-finals (09-10)?
create table table_245695_2 (mls_cup_playoffs varchar, concacaf_champions_cup___concacaf_champions_league varchar, PRIMARY KEY (mls_cup_playoffs))
select mls_cup_playoffs from table_245695_2 where concacaf_champions_cup___concacaf_champions_league = "quarter-finals (09-10)"
If the UK air date is February 18, 2013, who was the episode written by?
create table table_25640730_7 (written_by varchar, uk_air_date varchar, PRIMARY KEY (written_by))
select written_by from table_25640730_7 where uk_air_date = "february 18, 2013"
What is the affiliation of Davenport University?
create table table_28211213_1 (affiliation varchar, institution varchar, PRIMARY KEY (affiliation))
select affiliation from table_28211213_1 where institution = "davenport university"
How many lap two's did marco andretti do?
create table table_23018775_3 (lap_two varchar, name varchar, PRIMARY KEY (lap_two))
select count(lap_two) from table_23018775_3 where name = "marco andretti"
When do all the researcher role staff start to work, and when do they stop working?
create table project_staff (date_from varchar, date_to varchar, role_code varchar, PRIMARY KEY (date_from))
select date_from, date_to from project_staff where role_code = 'researcher'
What is the epa rated combined fuel economy for the Nissan Leaf?
create table table_23840623_4 (epa_rated_combined_fuel_economy varchar, vehicle varchar, PRIMARY KEY (epa_rated_combined_fuel_economy))
select epa_rated_combined_fuel_economy from table_23840623_4 where vehicle = "nissan leaf"
How many different scientists are assigned to any project?
create table assignedto (scientist varchar, PRIMARY KEY (scientist))
select count(distinct scientist) from assignedto
How many editions did Club Q-base concept have ?
create table table_29788320_2 (number_of_editions varchar, concept varchar, PRIMARY KEY (number_of_editions))
select count(number_of_editions) from table_29788320_2 where concept = "club q-base"
what is the name of award when the awardee(s) is elangbam natasha?
create table table_25926120_7 (name_of_award varchar, awardee_s_ varchar, PRIMARY KEY (name_of_award))
select name_of_award from table_25926120_7 where awardee_s_ = "elangbam natasha"
Name the incumbent for jacob spangler (dr) 67.1% jacob hay (f) 32.9%
create table table_2668347_17 (incumbent varchar, candidates varchar, PRIMARY KEY (incumbent))
select incumbent from table_2668347_17 where candidates = "jacob spangler (dr) 67.1% jacob hay (f) 32.9%"