question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
What was the altitude of the explosion Hardtack Teak?
create table table_148578_1 (altitude__km_ varchar, explosion varchar, PRIMARY KEY (altitude__km_))
select altitude__km_ from table_148578_1 where explosion = "hardtack teak"
What are the titles of segment a for series episode 21-12?
create table table_15187735_21 (segment_a varchar, series_ep varchar, PRIMARY KEY (segment_a))
select segment_a from table_15187735_21 where series_ep = "21-12"
What were the home team scores at york park?
create table table_16388478_2 (home_team varchar, ground varchar, PRIMARY KEY (home_team))
select home_team as score from table_16388478_2 where ground = "york park"
How many power stations are connected to grid at Heysham 2
create table table_143352_1 (connected_to_grid varchar, agr_power_station varchar, PRIMARY KEY (connected_to_grid))
select count(connected_to_grid) from table_143352_1 where agr_power_station = "heysham 2"
Name the man of the maatch for sheffield scimitars
create table table_17120964_5 (man_of_the_match varchar, opponent varchar, PRIMARY KEY (man_of_the_match))
select man_of_the_match from table_17120964_5 where opponent = "sheffield scimitars"
When 3rd, sedgemoor division 1 is the ladies 1st xi what is the mens 3rd xi?
create table table_21576644_2 (mens_3rd_xi varchar, ladies_1st_xi varchar, PRIMARY KEY (mens_3rd_xi))
select mens_3rd_xi from table_21576644_2 where ladies_1st_xi = "3rd, sedgemoor division 1"
Find the number of students in total.
create table list (id varchar, PRIMARY KEY (id))
select count(*) from list
Name the men doubles for els baert
create table table_14903355_2 (men_doubles varchar, womens_singles varchar, PRIMARY KEY (men_doubles))
select men_doubles from table_14903355_2 where womens_singles = "els baert"
What station on the network is tv3?
create table table_160728_4 (network varchar, station varchar, PRIMARY KEY (network))
select network from table_160728_4 where station = "tv3"
Name the assets when the rank is 1435
create table table_24307126_3 (assets_2013__bil$_ varchar, rank_2013 varchar, PRIMARY KEY (assets_2013__bil$_))
select assets_2013__bil$_ from table_24307126_3 where rank_2013 = 1435
What year and ceremony was the original title বৃত্তের বাইরে (britter baire)?
create table table_17156199_1 (year__ceremony_ varchar, original_title varchar, PRIMARY KEY (year__ceremony_))
select year__ceremony_ from table_17156199_1 where original_title = "বৃত্তের বাইরে (britter baire)"
Who is performing in the back stage position for the song "Badlands"? Show the first name and the last name.
create table band (firstname varchar, lastname varchar, id varchar, PRIMARY KEY (firstname)); create table performance (bandmate varchar, songid varchar, stageposition varchar, PRIMARY KEY (bandmate)); create table songs (songid varchar, title varchar, PRIMARY KEY (songid))
select t2.firstname, t2.lastname from performance as t1 join band as t2 on t1.bandmate = t2.id join songs as t3 on t3.songid = t1.songid where t3.title = "badlands" and t1.stageposition = "back"
Who published the title in the pet-raising simulator genre?
create table table_21458142_1 (publisher varchar, genre varchar, PRIMARY KEY (publisher))
select publisher from table_21458142_1 where genre = "pet-raising simulator"
How many parties received 29.9% of the vote in Manhattan?
create table table_1108394_47 (party varchar, manhattan varchar, PRIMARY KEY (party))
select count(party) from table_1108394_47 where manhattan = "29.9_percentage"
What's the name of train number 15647/48?
create table table_12095519_1 (train_name varchar, train_no varchar, PRIMARY KEY (train_name))
select train_name from table_12095519_1 where train_no = "15647/48"
Who is the captain of Neil Warnock's team?
create table table_26593762_2 (team varchar, manager varchar, PRIMARY KEY (team))
select team as captain from table_26593762_2 where manager = "neil warnock"
When the stamp duty reserve tax is 3,669 what is the percentage over gdp?
create table table_1618358_1 (over_gdp__in__percentage_ varchar, stamp_duty_reserve_tax varchar, PRIMARY KEY (over_gdp__in__percentage_))
select over_gdp__in__percentage_ from table_1618358_1 where stamp_duty_reserve_tax = "3,669"
Who were the candidates when Noble Jones Gregory was incumbent?
create table table_1342270_17 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select candidates from table_1342270_17 where incumbent = "noble jones gregory"
Which network has bob costas as the studio host and darren pang as the ice level reporters?
create table table_22485543_1 (network varchar, studio_host varchar, ice_level_reporters varchar, PRIMARY KEY (network))
select network from table_22485543_1 where studio_host = "bob costas" and ice_level_reporters = "darren pang"
How many juries are there for Brolle?
create table table_27994983_8 (juries integer, artist varchar, PRIMARY KEY (juries))
select max(juries) from table_27994983_8 where artist = "brolle"
Who currently affiliates in San Francisco - Oakland - San Jose?
create table table_1553485_1 (current_affiliation varchar, city_of_license__market varchar, PRIMARY KEY (current_affiliation))
select current_affiliation from table_1553485_1 where city_of_license__market = "san francisco - oakland - san jose"
Show the number of locations.
create table ref_locations (id varchar, PRIMARY KEY (id))
select count(*) from ref_locations
What is the model number with a release price of $496?
create table table_16400024_1 (model_number varchar, release_price___usd__ varchar, PRIMARY KEY (model_number))
select model_number from table_16400024_1 where release_price___usd__ = "$496"
Which routes have "replaced by US 81" listed in their remarks section?
create table table_11336756_6 (route_name varchar, remarks varchar, PRIMARY KEY (route_name))
select route_name from table_11336756_6 where remarks = "replaced by us 81"
What was the record when the Clippers played Philadelphia?
create table table_27756572_10 (record varchar, team varchar, PRIMARY KEY (record))
select record from table_27756572_10 where team = "philadelphia"
What were the match points when Bordeaux-Bègles was eliminated from competition?
create table table_27986200_3 (match_points varchar, eliminated_from_competition varchar, PRIMARY KEY (match_points))
select match_points from table_27986200_3 where eliminated_from_competition = "bordeaux-bègles"
Show the protein name and the institution name.
create table institution (institution varchar, institution_id varchar, PRIMARY KEY (institution)); create table protein (protein_name varchar, institution_id varchar, PRIMARY KEY (protein_name))
select t2.protein_name, t1.institution from institution as t1 join protein as t2 on t1.institution_id = t2.institution_id
Name the aspect ratio for 720
create table table_15928363_1 (aspect_ratio varchar, horizontal varchar, PRIMARY KEY (aspect_ratio))
select aspect_ratio from table_15928363_1 where horizontal = 720
How many provinces are named 青海省 qīnghǎi shěng?
create table table_254234_1 (iso_ varchar, chinese_name varchar, PRIMARY KEY (iso_))
select count(iso_) as № from table_254234_1 where chinese_name = "青海省 qīnghǎi shěng"
How many winners did I Dessau Autobahnspinne have?
create table table_1140116_6 (winning_driver varchar, race_name varchar, PRIMARY KEY (winning_driver))
select count(winning_driver) from table_1140116_6 where race_name = "i dessau autobahnspinne"
What is the i/o bus for the brand name Core i3-21xx?
create table table_24538587_11 (i_o_bus varchar, brand_name__list_ varchar, PRIMARY KEY (i_o_bus))
select i_o_bus from table_24538587_11 where brand_name__list_ = "core i3-21xx"
Who was the original artist when the theme was 1980s?
create table table_15796072_1 (original_artist varchar, theme varchar, PRIMARY KEY (original_artist))
select original_artist from table_15796072_1 where theme = "1980s"
How many participants belong to the type 'Organizer'?
create table participants (participant_type_code varchar, PRIMARY KEY (participant_type_code))
select count(*) from participants where participant_type_code = 'organizer'
What is the distinguished service cross when the navy cross is Coast Guard commendation medal?
create table table_2104176_1 (distinguished_service_cross varchar, navy_cross varchar, PRIMARY KEY (distinguished_service_cross))
select distinguished_service_cross from table_2104176_1 where navy_cross = "coast guard commendation medal"
Name the callback date for amway arena
create table table_22897967_1 (callback_date varchar, audition_venue varchar, PRIMARY KEY (callback_date))
select callback_date from table_22897967_1 where audition_venue = "amway arena"
When 21' 10.25 106.930mph is Tuesday August 24th what is Saturday August 29th?
create table table_26986076_5 (sat_29_aug varchar, tues_24_aug varchar, PRIMARY KEY (sat_29_aug))
select sat_29_aug from table_26986076_5 where tues_24_aug = "21' 10.25 106.930mph"
What is the deficit (-surplus) of France?
create table table_15624586_2 (deficit___surplus_ varchar, country varchar, PRIMARY KEY (deficit___surplus_))
select deficit___surplus_ from table_15624586_2 where country = "france"
List the type of the services in alphabetical order.
create table services (service_type_code varchar, PRIMARY KEY (service_type_code))
select service_type_code from services order by service_type_code
What is the order number for songs by the original artist Luis Fonsi?
create table table_12175755_1 (order__number varchar, original_artist varchar, PRIMARY KEY (order__number))
select order__number from table_12175755_1 where original_artist = "luis fonsi"
What is the current series where the new series began in June 2011?
create table table_1000181_1 (current_series varchar, notes varchar, PRIMARY KEY (current_series))
select current_series from table_1000181_1 where notes = "new series began in june 2011"
Which department has more than 1 head at a time? List the id, name and the number of heads.
create table management (department_id varchar, PRIMARY KEY (department_id)); create table department (department_id varchar, name varchar, PRIMARY KEY (department_id))
select t1.department_id, t1.name, count(*) from management as t2 join department as t1 on t1.department_id = t2.department_id group by t1.department_id having count(*) > 1
List the names of all music genres.
create table genre (name varchar, PRIMARY KEY (name))
select name from genre
How many seasons in the top division for the team that finished 005 5th in 2012-2013
create table table_1510519_1 (number_of_seasons_in_top_division varchar, position_in_2012_13 varchar, PRIMARY KEY (number_of_seasons_in_top_division))
select count(number_of_seasons_in_top_division) from table_1510519_1 where position_in_2012_13 = "005 5th"
Name the number for fifth district for richard houskamp
create table table_15442974_1 (fifth_district varchar, third_district varchar, PRIMARY KEY (fifth_district))
select count(fifth_district) from table_15442974_1 where third_district = "richard houskamp"
How many episodes aired in Region 2 beginning May 26, 2008?
create table table_1067134_1 (_number_of_ep integer, region_2 varchar, PRIMARY KEY (_number_of_ep))
select min(_number_of_ep) from table_1067134_1 where region_2 = "may 26, 2008"
Show the ids of the students who don't participate in any activity.
create table participates_in (stuid varchar, PRIMARY KEY (stuid)); create table student (stuid varchar, PRIMARY KEY (stuid))
select stuid from student except select stuid from participates_in
What is the latest year a division was established?
create table table_1784514_1 (year_established integer, PRIMARY KEY (year_established))
select max(year_established) from table_1784514_1
What is the original air date of the episode that was directed by Bruce Seth Green?
create table table_29584044_1 (original_air_date varchar, directed_by varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_29584044_1 where directed_by = "bruce seth green"
How many dogs went through any treatments?
create table treatments (dog_id varchar, PRIMARY KEY (dog_id))
select count(distinct dog_id) from treatments
Does the sky calcio 6 hd have PPV?
create table table_15887683_4 (ppv varchar, television_service varchar, PRIMARY KEY (ppv))
select ppv from table_15887683_4 where television_service = "sky calcio 6 hd"
What channels have stations that were affiliated in 2002?
create table table_11147852_1 (channel_tv___dt__ varchar, year_of_affiliation varchar, PRIMARY KEY (channel_tv___dt__))
select channel_tv___dt__ from table_11147852_1 where year_of_affiliation = "2002"
How many mountains classifications when Rui Costa is the winner?
create table table_25999087_2 (mountains_classification varchar, winner varchar, PRIMARY KEY (mountains_classification))
select count(mountains_classification) from table_25999087_2 where winner = "rui costa"
What are the scores in matches against Tony Roche?
create table table_2201724_1 (score_in_the_final varchar, opponent_in_the_final varchar, PRIMARY KEY (score_in_the_final))
select score_in_the_final from table_2201724_1 where opponent_in_the_final = "tony roche"
How many original titles did Marriage Italian-Style have?
create table table_10321805_1 (original_title varchar, film_title_used_in_nomination varchar, PRIMARY KEY (original_title))
select count(original_title) from table_10321805_1 where film_title_used_in_nomination = "marriage italian-style"
What are the approximate translations when the morphological category is masc. sing. active participle?
create table table_2784232_1 (approximate_translation varchar, morphological_category varchar, PRIMARY KEY (approximate_translation))
select approximate_translation from table_2784232_1 where morphological_category = "masc. sing. active participle"
Name the saka era for malayalam മിഥുനം
create table table_169955_1 (saka_era varchar, in_malayalam varchar, PRIMARY KEY (saka_era))
select saka_era from table_169955_1 where in_malayalam = "മിഥുനം"
what was the appointment date for outgoing manager luis césar sampedro
create table table_27495117_3 (date_of_appointment varchar, outgoing_manager varchar, PRIMARY KEY (date_of_appointment))
select date_of_appointment from table_27495117_3 where outgoing_manager = "luis césar sampedro"
United kingdom is the country what is the change (2011 to 2012)?
create table table_14752049_6 (change__2011_to_2012_ varchar, country varchar, PRIMARY KEY (change__2011_to_2012_))
select change__2011_to_2012_ from table_14752049_6 where country = "united kingdom"
Which orchestra has a recording year of 1951?
create table table_222198_1 (orchestra varchar, year_of_recording varchar, PRIMARY KEY (orchestra))
select orchestra from table_222198_1 where year_of_recording = 1951
List the physicians' employee ids together with their primary affiliation departments' ids.
create table affiliated_with (physician varchar, department varchar, primaryaffiliation varchar, PRIMARY KEY (physician))
select physician, department from affiliated_with where primaryaffiliation = 1
List all institutions with a team name of the Cardinals.
create table table_18483171_1 (institution varchar, team_nickname varchar, PRIMARY KEY (institution))
select institution from table_18483171_1 where team_nickname = "cardinals"
Find all invoice dates corresponding to customers with first name Astrid and last name Gruber.
create table customer (customerid varchar, firstname varchar, PRIMARY KEY (customerid)); create table invoice (invoicedate varchar, customerid varchar, PRIMARY KEY (invoicedate))
select t2.invoicedate from customer as t1 join invoice as t2 on t1.customerid = t2.customerid where t1.firstname = "astrid" and lastname = "gruber"
Where was the game with a 4-1 record played?
create table table_23243769_4 (location varchar, record varchar, PRIMARY KEY (location))
select location from table_23243769_4 where record = "4-1"
If the title if the Lost Boy, how many directors were there?
create table table_19517621_3 (directed_by varchar, title varchar, PRIMARY KEY (directed_by))
select count(directed_by) from table_19517621_3 where title = "the lost boy"
How many times was the viewer target group 0.63?
create table table_2639433_4 (market_share__target_group_14_49_ varchar, viewers__in_millions_target_group_14_49_ varchar, PRIMARY KEY (market_share__target_group_14_49_))
select count(market_share__target_group_14_49_) from table_2639433_4 where viewers__in_millions_target_group_14_49_ = "0.63"
what is the report where the location is kyalami?
create table table_1140085_2 (report varchar, location varchar, PRIMARY KEY (report))
select report from table_1140085_2 where location = "kyalami"
How many owners temporarily do not have any dogs?
create table dogs (owner_id varchar, PRIMARY KEY (owner_id)); create table owners (owner_id varchar, PRIMARY KEY (owner_id))
select count(*) from owners where not owner_id in (select owner_id from dogs)
In the game resulting in a 5-11 record, who scored the high rebounds?
create table table_17118657_8 (high_rebounds varchar, record varchar, PRIMARY KEY (high_rebounds))
select high_rebounds from table_17118657_8 where record = "5-11"
For opponent is sandra kristjánsdóttir, outcome is winner and edition is 2009 europe/africa group iiib mention all the opponent team.
create table table_27877656_7 (opponent_team varchar, opponent varchar, edition varchar, outcome varchar, PRIMARY KEY (opponent_team))
select opponent_team from table_27877656_7 where edition = "2009 europe/africa group iiib" and outcome = "winner" and opponent = "sandra kristjánsdóttir"
Find the first and last name of the author(s) who wrote the paper "Nameless, Painless".
create table authorship (authid varchar, paperid varchar, PRIMARY KEY (authid)); create table papers (paperid varchar, title varchar, PRIMARY KEY (paperid)); create table authors (fname varchar, lname varchar, authid varchar, PRIMARY KEY (fname))
select t1.fname, t1.lname from authors as t1 join authorship as t2 on t1.authid = t2.authid join papers as t3 on t2.paperid = t3.paperid where t3.title = "nameless , painless"
How many targets are there with an approval date of 1997?
create table table_1661124_1 (target varchar, approval_date varchar, PRIMARY KEY (target))
select count(target) from table_1661124_1 where approval_date = 1997
List all total poll percentages when the for percentage is 59,532 (54).
create table table_1289762_1 (total_poll___percentage_ varchar, for___percentage_ varchar, PRIMARY KEY (total_poll___percentage_))
select total_poll___percentage_ from table_1289762_1 where for___percentage_ = "59,532 (54)"
What is the constructor for the Silverstone circuit?
create table table_1140117_5 (constructor varchar, circuit varchar, PRIMARY KEY (constructor))
select constructor from table_1140117_5 where circuit = "silverstone"
what is the production where the parent company is ariel?
create table table_250309_1 (production__latest_figures_ varchar, parent_company varchar, PRIMARY KEY (production__latest_figures_))
select production__latest_figures_ from table_250309_1 where parent_company = "ariel"
Name the ebit for eps being 10.6
create table table_18304259_1 (ebit__£m_ varchar, earnings_per_share__p_ varchar, PRIMARY KEY (ebit__£m_))
select ebit__£m_ from table_18304259_1 where earnings_per_share__p_ = "10.6"
How many video game types exist?
create table video_games (gtype varchar, PRIMARY KEY (gtype))
select count(distinct gtype) from video_games
Name the gene name for methylobacterium nodulans
create table table_27155678_2 (gene_name varchar, genus_species varchar, PRIMARY KEY (gene_name))
select gene_name from table_27155678_2 where genus_species = "methylobacterium nodulans"
What is the title when the catalog number is cal01 / 0091037137319?
create table table_27303975_3 (title varchar, catalog_number varchar, PRIMARY KEY (title))
select title from table_27303975_3 where catalog_number = "cal01 / 0091037137319"
Show all storm names except for those with at least two affected regions.
create table storm (name varchar, PRIMARY KEY (name)); create table affected_region (storm_id varchar, PRIMARY KEY (storm_id)); create table storm (name varchar, storm_id varchar, PRIMARY KEY (name))
select name from storm except select t1.name from storm as t1 join affected_region as t2 on t1.storm_id = t2.storm_id group by t1.storm_id having count(*) >= 2
What was the record when the Bruins had 41 points?
create table table_20760407_1 (record varchar, bruins_points varchar, PRIMARY KEY (record))
select record from table_20760407_1 where bruins_points = 41
What was the departure time of the train going to Boston?
create table table_18365784_3 (departure varchar, going_to varchar, PRIMARY KEY (departure))
select departure from table_18365784_3 where going_to = "boston"
where births is 388 000 how many number is natural increase
create table table_21258_1 (natural_increase varchar, births varchar, PRIMARY KEY (natural_increase))
select count(natural_increase) from table_21258_1 where births = "388 000"
What is the record when jameer nelson (19) had the high points?
create table table_27700530_10 (record varchar, high_points varchar, PRIMARY KEY (record))
select record from table_27700530_10 where high_points = "jameer nelson (19)"
What horse had a starting price of 66/1?
create table table_29562161_1 (name varchar, starting_price varchar, PRIMARY KEY (name))
select name from table_29562161_1 where starting_price = "66/1"
how many innings had bbi 4/26?
create table table_28846752_5 (innings varchar, bbi varchar, PRIMARY KEY (innings))
select innings from table_28846752_5 where bbi = "4/26"
How many episodes were written by Alexander Woo and directed by Scott Winant?
create table table_26493520_1 (title varchar, written_by varchar, directed_by varchar, PRIMARY KEY (title))
select count(title) from table_26493520_1 where written_by = "alexander woo" and directed_by = "scott winant"
How many distinct transaction types are used in the transactions?
create table transactions (transaction_type_code varchar, PRIMARY KEY (transaction_type_code))
select count(distinct transaction_type_code) from transactions
Name the number of cyrillic name for stanišić
create table table_2562572_22 (cyrillic_name_other_names varchar, settlement varchar, PRIMARY KEY (cyrillic_name_other_names))
select count(cyrillic_name_other_names) from table_2562572_22 where settlement = "stanišić"
How many instances are there of party in the situation where Robert Bauman is the incumbent politician?
create table table_1341690_20 (party varchar, incumbent varchar, PRIMARY KEY (party))
select count(party) from table_1341690_20 where incumbent = "robert bauman"
Name the total number of wd number for lms number being 7638
create table table_20236726_2 (wd_no varchar, lms_no varchar, PRIMARY KEY (wd_no))
select count(wd_no) from table_20236726_2 where lms_no = 7638
What are that status(es) of saint-jacques?
create table table_171250_2 (status varchar, official_name varchar, PRIMARY KEY (status))
select status from table_171250_2 where official_name = "saint-jacques"
Show the names of festivals that have nominated artworks of type "Program Talent Show".
create table nomination (artwork_id varchar, festival_id varchar, PRIMARY KEY (artwork_id)); create table artwork (artwork_id varchar, type varchar, PRIMARY KEY (artwork_id)); create table festival_detail (festival_name varchar, festival_id varchar, PRIMARY KEY (festival_name))
select t3.festival_name from nomination as t1 join artwork as t2 on t1.artwork_id = t2.artwork_id join festival_detail as t3 on t1.festival_id = t3.festival_id where t2.type = "program talent show"
What was the original air date of an episode set in 1544?
create table table_10413597_5 (original_air_date varchar, setting varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_10413597_5 where setting = "1544"
Who operates the xfm station?
create table table_1601792_3 (operator varchar, station varchar, PRIMARY KEY (operator))
select operator from table_1601792_3 where station = "xfm"
what's the wine style with village being puligny-montrachet [d ]
create table table_13981938_1 (wine_style varchar, village varchar, PRIMARY KEY (wine_style))
select wine_style from table_13981938_1 where village = "puligny-montrachet [d ]"
What is the molecular target listed under the trademark of irvalec ®
create table table_12715053_1 (molecular_target varchar, trademark varchar, PRIMARY KEY (molecular_target))
select molecular_target from table_12715053_1 where trademark = "irvalec ®"
What was the model's DirectX if it has a Core of 700 700 mhz?
create table table_26860595_2 (directx varchar, core___mhz__ varchar, PRIMARY KEY (directx))
select directx from table_26860595_2 where core___mhz__ = "700 700"
What is the label that has the most albums?
create table albums (label varchar, PRIMARY KEY (label))
select label from albums group by label order by count(*) desc limit 1
How many production stage managers worked with secretary Rachel Hartmann?
create table table_22410780_1 (production_stagemanager varchar, secretary varchar, PRIMARY KEY (production_stagemanager))
select count(production_stagemanager) from table_22410780_1 where secretary = "rachel hartmann"
How many millions of U.S. viewers watched the episode directed by Allison Liddi-Brown?
create table table_18102421_2 (us_viewers__millions_ varchar, directed_by varchar, PRIMARY KEY (us_viewers__millions_))
select us_viewers__millions_ from table_18102421_2 where directed_by = "allison liddi-brown"