question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
Who was responsible for the design of the Jasper National Park theme?
create table table_11900773_5 (design varchar, theme varchar, PRIMARY KEY (design))
select design from table_11900773_5 where theme = "jasper national park"
How many colors are never used by any product?
create table products (color_code varchar, PRIMARY KEY (color_code)); create table ref_colors (color_code varchar, PRIMARY KEY (color_code))
select count(*) from ref_colors where not color_code in (select color_code from products)
What are the phones and emails of workshop groups in which services are performed?
create table services (workshop_group_id varchar, PRIMARY KEY (workshop_group_id)); create table drama_workshop_groups (store_phone varchar, store_email_address varchar, workshop_group_id varchar, PRIMARY KEY (store_phone))
select t1.store_phone, t1.store_email_address from drama_workshop_groups as t1 join services as t2 on t1.workshop_group_id = t2.workshop_group_id
What is Kent State University's team nickname?
create table table_26351260_1 (team_nickname varchar, institution varchar, PRIMARY KEY (team_nickname))
select team_nickname from table_26351260_1 where institution = "kent state university"
what are all the playoffs for u.s. open cup in 1st round
create table table_1046170_5 (playoffs varchar, us_open_cup varchar, PRIMARY KEY (playoffs))
select playoffs from table_1046170_5 where us_open_cup = "1st round"
When did 6.09 million people in the US see the original airing of an episode of the show?
create table table_23242933_2 (original_air_date varchar, us_viewers__millions_ varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_23242933_2 where us_viewers__millions_ = "6.09"
Name the notes for samangan
create table table_16278349_1 (notes varchar, province varchar, PRIMARY KEY (notes))
select notes from table_16278349_1 where province = "samangan"
what is the mexico stat where mañana es para siempre is love never dies
create table table_18498743_1 (mexico varchar, mañana_es_para_siempre varchar, PRIMARY KEY (mexico))
select mexico from table_18498743_1 where mañana_es_para_siempre = "love never dies"
What is listed under chister tornell when karianne gulliksen is 7?
create table table_28677723_10 (christer_tornell integer, karianne_gulliksen varchar, PRIMARY KEY (christer_tornell))
select min(christer_tornell) from table_28677723_10 where karianne_gulliksen = 7
What is the name of the 375 crest length?
create table table_10020178_1 (name varchar, crest_length__meters_ varchar, PRIMARY KEY (name))
select name from table_10020178_1 where crest_length__meters_ = 375
What are the school colors of the University of New Hampshire?
create table table_1221089_1 (colors varchar, institution varchar, PRIMARY KEY (colors))
select colors from table_1221089_1 where institution = "university of new hampshire"
Who had the fastest lap in the race won by Team Impul at the Twin Ring Motegi circuit?
create table table_16670746_2 (fastest_lap varchar, winning_team varchar, circuit varchar, PRIMARY KEY (fastest_lap))
select fastest_lap from table_16670746_2 where winning_team = "team impul" and circuit = "twin ring motegi"
When ale is the main sponsor who is the secondary sponsor?
create table table_187239_1 (secondary_sponsor varchar, main_sponsor varchar, PRIMARY KEY (secondary_sponsor))
select secondary_sponsor from table_187239_1 where main_sponsor = "ale"
How many songs received a 10 from Goodman and were rated by Tonioli?
create table table_1014319_1 (tonioli varchar, goodman varchar, PRIMARY KEY (tonioli))
select count(tonioli) from table_1014319_1 where goodman = "10"
What is solidv4 when sequencer is data output per run?
create table table_127511_1 (solidv4 varchar, sequencer varchar, PRIMARY KEY (solidv4))
select solidv4 from table_127511_1 where sequencer = "data output per run"
Name the remarks for sawhouse
create table table_211791_1 (remarks varchar, nato_reporting_name varchar, PRIMARY KEY (remarks))
select remarks from table_211791_1 where nato_reporting_name = "sawhouse"
What was the date of the series premiere whose TV network was TV3?
create table table_29799700_2 (series_premiere varchar, tv_network_s_ varchar, PRIMARY KEY (series_premiere))
select series_premiere from table_29799700_2 where tv_network_s_ = "tv3"
Show the country name and capital of all countries.
create table country (country_name varchar, capital varchar, PRIMARY KEY (country_name))
select country_name, capital from country
What type of school is Stratford University?
create table table_2076608_1 (type varchar, school varchar, PRIMARY KEY (type))
select type from table_2076608_1 where school = "stratford university"
What's the smallest number of players?
create table table_10682862_68 (players integer, PRIMARY KEY (players))
select min(players) from table_10682862_68
Against whom did the Spartans score 73 points?
create table table_22860990_3 (opponent varchar, spartans_points varchar, PRIMARY KEY (opponent))
select opponent from table_22860990_3 where spartans_points = 73
When 24:31 is the run time how many measurements of viewers (in millions) are there?
create table table_2102945_1 (viewers__in_millions_ varchar, run_time varchar, PRIMARY KEY (viewers__in_millions_))
select count(viewers__in_millions_) from table_2102945_1 where run_time = "24:31"
Who directed the epsiode with production number 109?
create table table_2400842_1 (directed_by varchar, prod__number varchar, PRIMARY KEY (directed_by))
select directed_by from table_2400842_1 where prod__number = 109
What country does the player named Mark Cox play for?
create table table_29302711_13 (country varchar, name varchar, PRIMARY KEY (country))
select country from table_29302711_13 where name = "mark cox"
How many candidates ran in the election where Mike Doyle was the incumbent?
create table table_1341453_40 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select count(candidates) from table_1341453_40 where incumbent = "mike doyle"
What are the names and countries of members?
create table member (name varchar, country varchar, PRIMARY KEY (name))
select name, country from member
During November 3 where august 21-22 is august 21, 2017?
create table table_25287007_2 (november_3 varchar, august_21_22 varchar, PRIMARY KEY (november_3))
select november_3 from table_25287007_2 where august_21_22 = "august 21, 2017"
What are the candidates for noah m. mason?
create table table_1342149_13 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select count(candidates) from table_1342149_13 where incumbent = "noah m. mason"
Please show the nominee who has been nominated the greatest number of times.
create table musical (nominee varchar, PRIMARY KEY (nominee))
select nominee from musical group by nominee order by count(*) desc limit 1
If the Close ranged weapons are the knife (stone), knife (iron), what are the Long ranged weapons?
create table table_27704991_1 (long_ranged_weapons varchar, close_ranged_weapons varchar, PRIMARY KEY (long_ranged_weapons))
select long_ranged_weapons from table_27704991_1 where close_ranged_weapons = "knife (stone), knife (iron)"
Find the name of tracks which are in Movies playlist but not in music playlist.
create table playlists (id varchar, name varchar, PRIMARY KEY (id)); create table playlist_tracks (track_id varchar, playlist_id varchar, PRIMARY KEY (track_id)); create table tracks (name varchar, id varchar, PRIMARY KEY (name))
select t1.name from tracks as t1 join playlist_tracks as t2 on t1.id = t2.track_id join playlists as t3 on t2.playlist_id = t3.id where t3.name = 'movies' except select t1.name from tracks as t1 join playlist_tracks as t2 on t1.id = t2.track_id join playlists as t3 on t2.playlist_id = t3.id where t3.name = 'music'
What is the no party preference when republican is 45.3%?
create table table_27003186_3 (no_party_preference varchar, republican varchar, PRIMARY KEY (no_party_preference))
select no_party_preference from table_27003186_3 where republican = "45.3%"
Who were the candidates when Lamar S. Smith was incumbent?
create table table_1341577_44 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select candidates from table_1341577_44 where incumbent = "lamar s. smith"
What team did Alireza mansourian leave?
create table table_22297198_3 (team varchar, outgoing_manager varchar, PRIMARY KEY (team))
select team from table_22297198_3 where outgoing_manager = "alireza mansourian"
Name the episode number for tasers and mind erasers
create table table_24222929_4 (episode_number_production_number varchar, title varchar, PRIMARY KEY (episode_number_production_number))
select episode_number_production_number from table_24222929_4 where title = "tasers and mind erasers"
Name the rdiers for jir team scot motogp
create table table_15327489_1 (riders varchar, team_name varchar, PRIMARY KEY (riders))
select riders from table_15327489_1 where team_name = "jir team scot motogp"
How many solar eclipse during august 21-22 and January 15-16 is 141?
create table table_25287007_2 (august_21_22 varchar, january_15_16 varchar, PRIMARY KEY (august_21_22))
select august_21_22 from table_25287007_2 where january_15_16 = "141"
What is the velocity of the pilot named 'Thompson'?
create table flight (velocity integer, pilot varchar, PRIMARY KEY (velocity))
select avg(velocity) from flight where pilot = 'thompson'
What is the location of thierry boutsen?
create table table_1137707_2 (location varchar, fastest_lap varchar, PRIMARY KEY (location))
select location from table_1137707_2 where fastest_lap = "thierry boutsen"
What country offered a prize of 66400 US dollars?
create table table_29302711_13 (country varchar, prize_money__usd_ varchar, PRIMARY KEY (country))
select country from table_29302711_13 where prize_money__usd_ = 66400
Find the first name of students who have both cat and dog pets .
create table student (fname varchar, stuid varchar, PRIMARY KEY (fname)); create table has_pet (stuid varchar, petid varchar, PRIMARY KEY (stuid)); create table pets (petid varchar, pettype varchar, PRIMARY KEY (petid))
select t1.fname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat' intersect select t1.fname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'dog'
15.03 million u.s viewers seen what episode?
create table table_14847258_1 (title varchar, us_viewers__millions_ varchar, PRIMARY KEY (title))
select title from table_14847258_1 where us_viewers__millions_ = "15.03"
Name the broadcast date for 6.0 viewers
create table table_2102782_1 (broadcast_date varchar, viewers__in_millions_ varchar, PRIMARY KEY (broadcast_date))
select broadcast_date from table_2102782_1 where viewers__in_millions_ = "6.0"
What was the final score for the game that was contested on February 1, 2009?
create table table_10548224_1 (final_score varchar, date_contested varchar, PRIMARY KEY (final_score))
select final_score from table_10548224_1 where date_contested = "february 1, 2009"
Who had the high assists when the high rebounds were from Nick Collison (15)?
create table table_11964154_11 (high_assists varchar, high_rebounds varchar, PRIMARY KEY (high_assists))
select high_assists from table_11964154_11 where high_rebounds = "nick collison (15)"
How many titles were directed by Alex Chapple?
create table table_21002034_4 (title varchar, director varchar, PRIMARY KEY (title))
select count(title) from table_21002034_4 where director = "alex chapple"
When is the finish of the season that started on September 25?
create table table_22383603_1 (finish__incl_championship_ varchar, start__reg_season_ varchar, PRIMARY KEY (finish__incl_championship_))
select finish__incl_championship_ from table_22383603_1 where start__reg_season_ = "september 25"
What is the total amount o teams where winnings is $1,752,299?
create table table_1458412_1 (team_s_ varchar, winnings varchar, PRIMARY KEY (team_s_))
select count(team_s_) from table_1458412_1 where winnings = "$1,752,299"
Who was the artist with a start date of 1966-10-23?
create table table_2560677_1 (artist_s_ varchar, start_date varchar, PRIMARY KEY (artist_s_))
select artist_s_ from table_2560677_1 where start_date = "1966-10-23"
How many students have cat allergies?
create table has_allergy (allergy varchar, PRIMARY KEY (allergy))
select count(*) from has_allergy where allergy = "cat"
When 8.3 is the q-band what is the property?
create table table_186468_1 (property varchar, q_band varchar, PRIMARY KEY (property))
select property from table_186468_1 where q_band = "8.3"
What is the lowest GDP (ppp) per capita?
create table table_25869317_1 (gdp__ppp__per_capita integer, PRIMARY KEY (gdp__ppp__per_capita))
select min(gdp__ppp__per_capita) from table_25869317_1
Name the segment c for couscous
create table table_15187735_3 (segment_c varchar, segment_b varchar, PRIMARY KEY (segment_c))
select segment_c from table_15187735_3 where segment_b = "couscous"
What is the number of artists for each gender?
create table artist (gender varchar, PRIMARY KEY (gender))
select count(*), gender from artist group by gender
Is art school public or private?
create table table_2076595_1 (control varchar, type varchar, PRIMARY KEY (control))
select control from table_2076595_1 where type = "art school"
How many cash prizes were given for the hindi language film jodhaa akbar?
create table table_25926120_3 (cash_prize varchar, language varchar, name_of_film varchar, PRIMARY KEY (cash_prize))
select count(cash_prize) from table_25926120_3 where language = "hindi" and name_of_film = "jodhaa akbar"
Show the names of journalists that have reported more than one event.
create table journalist (name varchar, journalist_id varchar, PRIMARY KEY (name)); create table news_report (event_id varchar, journalist_id varchar, PRIMARY KEY (event_id)); create table event (event_id varchar, PRIMARY KEY (event_id))
select t3.name from news_report as t1 join event as t2 on t1.event_id = t2.event_id join journalist as t3 on t1.journalist_id = t3.journalist_id group by t3.name having count(*) > 1
What were Cruzeiro results in the Copa Mercosur in 1998
create table table_14962316_9 (copa_mercosur_1998 varchar, team varchar, PRIMARY KEY (copa_mercosur_1998))
select copa_mercosur_1998 from table_14962316_9 where team = "cruzeiro"
In how many different audition cities were the Bridgestone arena auditions held?
create table table_27455867_1 (audition_city varchar, audition_venue varchar, PRIMARY KEY (audition_city))
select count(audition_city) from table_27455867_1 where audition_venue = "bridgestone arena"
What is every record for the team Boston?
create table table_23248869_10 (record varchar, team varchar, PRIMARY KEY (record))
select record from table_23248869_10 where team = "boston"
Who were the opponents in the final where the score in the final is 6–4, 7–6 2?
create table table_22597626_17 (opponents_in_the_final varchar, score_in_the_final varchar, PRIMARY KEY (opponents_in_the_final))
select opponents_in_the_final from table_22597626_17 where score_in_the_final = "6–4, 7–6 2"
What circuit features the placemakers v8 supercars race?
create table table_20884163_2 (circuit varchar, race_title varchar, PRIMARY KEY (circuit))
select circuit from table_20884163_2 where race_title = "placemakers v8 supercars"
what is the model where the processor is yorkfield and the brand name is xeon?
create table table_24101118_1 (model__list_ varchar, processor varchar, brand_name varchar, PRIMARY KEY (model__list_))
select model__list_ from table_24101118_1 where processor = "yorkfield" and brand_name = "xeon"
List each test result and its count in descending order of count.
create table student_tests_taken (test_result varchar, PRIMARY KEY (test_result))
select test_result, count(*) from student_tests_taken group by test_result order by count(*) desc
What is the template type descriptions for template type code "AD".
create table ref_template_types (template_type_description varchar, template_type_code varchar, PRIMARY KEY (template_type_description))
select template_type_description from ref_template_types where template_type_code = "ad"
When Naomi Owen won the Womens Singles and Ricardo Walther won the Mens Singles, who won the mixed veteran?
create table table_28211674_3 (mixed_veteran varchar, womens_singles varchar, mens_singles varchar, PRIMARY KEY (mixed_veteran))
select mixed_veteran from table_28211674_3 where womens_singles = "naomi owen" and mens_singles = "ricardo walther"
what is the name for br no. 60501
create table table_20595642_2 (name varchar, br_no varchar, PRIMARY KEY (name))
select name from table_20595642_2 where br_no = 60501
What is the address of the restaurant Subway?
create table restaurant (address varchar, resname varchar, PRIMARY KEY (address))
select address from restaurant where resname = "subway"
What is the home location for team flora tallinn?
create table table_27409644_1 (ground varchar, club varchar, PRIMARY KEY (ground))
select ground from table_27409644_1 where club = "flora tallinn"
What are the Juntas de Regantes (WUB) within the Azua Valley?
create table table_20018310_1 (juntas_de_regantes__wub_ varchar, irrigation_district varchar, PRIMARY KEY (juntas_de_regantes__wub_))
select juntas_de_regantes__wub_ from table_20018310_1 where irrigation_district = "azua valley"
which representative is from willowick
create table table_29486189_4 (representative varchar, residence varchar, PRIMARY KEY (representative))
select representative from table_29486189_4 where residence = "willowick"
find the event names that have more than 2 records.
create table party_events (event_name varchar, PRIMARY KEY (event_name))
select event_name from party_events group by event_name having count(*) > 2
What is the title when the writer is Emily Halpern?
create table table_24910733_1 (title varchar, written_by varchar, PRIMARY KEY (title))
select title from table_24910733_1 where written_by = "emily halpern"
The callsign DWEC-TV has what branding?
create table table_2610582_2 (branding varchar, callsign varchar, PRIMARY KEY (branding))
select branding from table_2610582_2 where callsign = "dwec-tv"
what is the total number of total w–l where doubles w–l is 11–11
create table table_10294071_1 (total_w_l varchar, doubles_w_l varchar, PRIMARY KEY (total_w_l))
select count(total_w_l) from table_10294071_1 where doubles_w_l = "11–11"
What is every entry for America when Atlantic Europe is Hoxniense?
create table table_22860_1 (america varchar, atlantic_europe varchar, PRIMARY KEY (america))
select america from table_22860_1 where atlantic_europe = "hoxniense"
What is the party that has the largest number of representatives?
create table representative (party varchar, PRIMARY KEY (party))
select party, count(*) from representative group by party order by count(*) desc limit 1
What is the pole position for the ferrari at the austrian grand prix?
create table table_1132588_3 (pole_position varchar, constructor varchar, grand_prix varchar, PRIMARY KEY (pole_position))
select pole_position from table_1132588_3 where constructor = "ferrari" and grand_prix = "austrian grand_prix"
What is every value for Under-11 when value of under-17 is Salma Nassar?
create table table_26368963_2 (under_11 varchar, under_17 varchar, PRIMARY KEY (under_11))
select under_11 from table_26368963_2 where under_17 = "salma nassar"
What is the aircraft name for the flight with number 99
create table flight (aid varchar, flno varchar, PRIMARY KEY (aid)); create table aircraft (name varchar, aid varchar, PRIMARY KEY (name))
select t2.name from flight as t1 join aircraft as t2 on t1.aid = t2.aid where t1.flno = 99
What's the record in the game where Greg Monroe (8) did the high rebounds?
create table table_27755603_2 (record varchar, high_rebounds varchar, PRIMARY KEY (record))
select record from table_27755603_2 where high_rebounds = "greg monroe (8)"
What is the barrell profile that goes with the gas piston carbine?
create table table_12834315_5 (barrel_profile varchar, name varchar, PRIMARY KEY (barrel_profile))
select barrel_profile from table_12834315_5 where name = "gas piston carbine"
What is the number of S Barangay for Paracale?
create table table_255885_1 (no_of_s_barangay varchar, municipality varchar, PRIMARY KEY (no_of_s_barangay))
select no_of_s_barangay from table_255885_1 where municipality = "paracale"
What was the title of the episode with 5.04 million viewers?
create table table_17641206_4 (original_title varchar, viewership varchar, PRIMARY KEY (original_title))
select original_title from table_17641206_4 where viewership = "5.04 million"
Which country and state does staff with first name as Janessa and last name as Sawayn lived?
create table addresses (country varchar, state_province_county varchar, address_id varchar, PRIMARY KEY (country)); create table staff (staff_address_id varchar, first_name varchar, last_name varchar, PRIMARY KEY (staff_address_id))
select t1.country, t1.state_province_county from addresses as t1 join staff as t2 on t1.address_id = t2.staff_address_id where t2.first_name = "janessa" and t2.last_name = "sawayn"
Find the name of the swimmer who has the most records.
create table record (swimmer_id varchar, PRIMARY KEY (swimmer_id)); create table swimmer (name varchar, id varchar, PRIMARY KEY (name))
select t1.name from swimmer as t1 join record as t2 on t1.id = t2.swimmer_id group by t2.swimmer_id order by count(*) desc limit 1
Chassis model Scania K360ua has what minimum number in fleet?
create table table_1425948_1 (number_in_fleet integer, chassis_model varchar, PRIMARY KEY (number_in_fleet))
select min(number_in_fleet) from table_1425948_1 where chassis_model = "scania k360ua"
What is the most common singer citizenship ?
create table singer (citizenship varchar, PRIMARY KEY (citizenship))
select citizenship from singer group by citizenship order by count(*) desc limit 1
the date complted is 02/91, what framed size was used
create table table_15070195_1 (framed_size varchar, date_completed varchar, PRIMARY KEY (framed_size))
select framed_size from table_15070195_1 where date_completed = "02/91"
Name the location for trenton 300
create table table_22669375_1 (location varchar, race_name varchar, PRIMARY KEY (location))
select location from table_22669375_1 where race_name = "trenton 300"
What was gabriella ferrone's result on the 5th evening?
create table table_29857115_4 (singer varchar, PRIMARY KEY (singer))
select 5 as th_evening from table_29857115_4 where singer = "gabriella ferrone"
Who were the candidates when Noah M. Mason was incumbent?
create table table_1342249_13 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select candidates from table_1342249_13 where incumbent = "noah m. mason"
what was the reason Richard K. Meade ( d ) became a successor?
create table table_228439_4 (reason_for_change varchar, successor varchar, PRIMARY KEY (reason_for_change))
select reason_for_change from table_228439_4 where successor = "richard k. meade ( d )"
How many tree species are listed when the total plant species is 258?
create table table_16577990_1 (tree_species varchar, total_plant_species varchar, PRIMARY KEY (tree_species))
select tree_species from table_16577990_1 where total_plant_species = 258
how many programs are there?
create table program (id varchar, PRIMARY KEY (id))
select count(*) from program
How many millions of U.S. viewers watched the episode directed by Rob Bailey and written by Pam Veasey?
create table table_12570759_2 (us_viewers__millions_ varchar, directed_by varchar, written_by varchar, PRIMARY KEY (us_viewers__millions_))
select us_viewers__millions_ from table_12570759_2 where directed_by = "rob bailey" and written_by = "pam veasey"
Which CFL team did the player from British Columbia get drafted to
create table table_16441561_5 (cfl_team varchar, college varchar, PRIMARY KEY (cfl_team))
select cfl_team from table_16441561_5 where college = "british columbia"
Find the names of nurses who are on call.
create table on_call (nurse varchar, PRIMARY KEY (nurse)); create table nurse (name varchar, employeeid varchar, PRIMARY KEY (name))
select distinct t1.name from nurse as t1 join on_call as t2 on t1.employeeid = t2.nurse
All high points were record by corey maggette (25).
create table table_17080868_8 (record varchar, high_points varchar, PRIMARY KEY (record))
select record from table_17080868_8 where high_points = "corey maggette (25)"
How many new pageants does Aruba have?
create table table_14308895_2 (new_pageant varchar, country_territory varchar, PRIMARY KEY (new_pageant))
select count(new_pageant) from table_14308895_2 where country_territory = "aruba"