question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
What is the Netflix where Segment C is car washes?
create table table_15187735_12 (netflix varchar, segment_c varchar, PRIMARY KEY (netflix))
select netflix from table_15187735_12 where segment_c = "car washes"
What is the brand name associated with a model name e4xxx?
create table table_24099628_1 (brand_name varchar, model__list_ varchar, PRIMARY KEY (brand_name))
select brand_name from table_24099628_1 where model__list_ = "e4xxx"
what is the nightly rank where the episode number production number is 06 1-06?
create table table_17004367_3 (nightly_rank varchar, episode_number_production_number varchar, PRIMARY KEY (nightly_rank))
select count(nightly_rank) from table_17004367_3 where episode_number_production_number = "06 1-06"
Name the film title for la boca del lobo
create table table_20963074_1 (film_title_used_in_nomination varchar, original_title varchar, PRIMARY KEY (film_title_used_in_nomination))
select film_title_used_in_nomination from table_20963074_1 where original_title = "la boca del lobo"
How many entries for Italian correspond to the Conservative Central Italian of Unu?
create table table_25401_15 (italian varchar, conservative_central_italian_1 varchar, PRIMARY KEY (italian))
select count(italian) from table_25401_15 where conservative_central_italian_1 = "unu"
How many semifinals did ferhat pehlivan attend?
create table table_27294107_11 (semifinals varchar, athlete varchar, PRIMARY KEY (semifinals))
select count(semifinals) from table_27294107_11 where athlete = "ferhat pehlivan"
How many different original U.S. air dates appear where the U.S. viewers were 2.5 million?
create table table_25246990_5 (original_us_air_date varchar, us_viewers__millions_ varchar, PRIMARY KEY (original_us_air_date))
select count(original_us_air_date) from table_25246990_5 where us_viewers__millions_ = "2.5"
Name the young rider classification with laudelino cubino
create table table_12261806_2 (young_rider_classification varchar, winner varchar, PRIMARY KEY (young_rider_classification))
select young_rider_classification from table_12261806_2 where winner = "laudelino cubino"
How many 4 credits is the hand two pair?
create table table_11200856_1 (hand varchar, PRIMARY KEY (hand))
select count(4 as _credits) from table_11200856_1 where hand = "two pair"
How many gas companies are there?
create table company (id varchar, PRIMARY KEY (id))
select count(*) from company
List the status for the operator Toronto transit commission.
create table table_22481967_1 (status varchar, operator varchar, PRIMARY KEY (status))
select status from table_22481967_1 where operator = "toronto transit commission"
What is the 2008 rank of Djibouti?
create table table_23050383_1 (country varchar, PRIMARY KEY (country))
select 2008 as _rank from table_23050383_1 where country = "djibouti"
Give me the minimum number of people in 1991 with 92.5% of Slovenes in 1991.
create table table_10798421_1 (number_of_people_1991 integer, percent_of_slovenes_1991 varchar, PRIMARY KEY (number_of_people_1991))
select min(number_of_people_1991) from table_10798421_1 where percent_of_slovenes_1991 = "92.5%"
What is the planet associated with the direction of south?
create table table_14850099_18 (planet varchar, cardinal_direction varchar, PRIMARY KEY (planet))
select planet from table_14850099_18 where cardinal_direction = "south"
How many products were not included in any order?
create table products (product_id varchar, PRIMARY KEY (product_id)); create table order_items (product_id varchar, PRIMARY KEY (product_id))
select count(*) from products where not product_id in (select product_id from order_items)
List document id of documents status is done and document type is Paper and the document is shipped by shipping agent named USPS.
create table ref_shipping_agents (document_id varchar, document_status_code varchar, document_type_code varchar, PRIMARY KEY (document_id)); create table documents (document_id varchar, document_status_code varchar, document_type_code varchar, PRIMARY KEY (document_id))
select document_id from documents where document_status_code = "done" and document_type_code = "paper" intersect select document_id from documents join ref_shipping_agents on documents.shipping_agent_code = ref_shipping_agents.shipping_agent_code where ref_shipping_agents.shipping_agent_name = "usps"
What are the different nationalities of pilots? Show each nationality and the number of pilots of each nationality.
create table pilot (nationality varchar, PRIMARY KEY (nationality))
select nationality, count(*) from pilot group by nationality
What was the team record after the Frankfurt Galaxy matchup?
create table table_24852001_2 (team_record varchar, opponent varchar, PRIMARY KEY (team_record))
select team_record from table_24852001_2 where opponent = "frankfurt galaxy"
Name the total number of japanese for amagasaki
create table table_1585609_2 (japanese varchar, name varchar, PRIMARY KEY (japanese))
select count(japanese) from table_1585609_2 where name = "amagasaki"
Which assets did not incur any fault log? List the asset model.
create table fault_log (asset_model varchar, asset_id varchar, PRIMARY KEY (asset_model)); create table assets (asset_model varchar, asset_id varchar, PRIMARY KEY (asset_model))
select asset_model from assets where not asset_id in (select asset_id from fault_log)
Name the team for mario somma
create table table_17275810_7 (team varchar, replaced_by varchar, PRIMARY KEY (team))
select team from table_17275810_7 where replaced_by = "mario somma"
Find the total and average amount paid in claim headers.
create table claim_headers (amount_piad integer, PRIMARY KEY (amount_piad))
select sum(amount_piad), avg(amount_piad) from claim_headers
What is the population density of the administrative division with a population in 2010 of 264170 according to the census?
create table table_21734764_1 (population_density___km²_2010_ varchar, population_2010_census varchar, PRIMARY KEY (population_density___km²_2010_))
select population_density___km²_2010_ from table_21734764_1 where population_2010_census = 264170
What team is sponsored by hydroxycut?
create table table_2503102_1 (team varchar, car_sponsor_s_ varchar, PRIMARY KEY (team))
select team from table_2503102_1 where car_sponsor_s_ = "hydroxycut"
Find the ids of all the order items whose product id is 11.
create table order_items (order_item_id varchar, product_id varchar, PRIMARY KEY (order_item_id))
select order_item_id from order_items where product_id = 11
How many gb's have an iso number of cn-65?
create table table_254234_1 (gb varchar, iso_№ varchar, PRIMARY KEY (gb))
select count(gb) from table_254234_1 where iso_№ = "cn-65"
Show station names without any trains.
create table station (name varchar, station_id varchar, PRIMARY KEY (name)); create table train_station (name varchar, station_id varchar, PRIMARY KEY (name))
select name from station where not station_id in (select station_id from train_station)
What is the GDP (PPP) (USD, per capita) for Algeria?
create table table_2155836_1 (_per_capita_ varchar, gdp__ppp___usd integer, country varchar, PRIMARY KEY (_per_capita_))
select min(gdp__ppp___usd), _per_capita_ from table_2155836_1 where country = "algeria"
What is the name of Rhode Island College's softball stadium?
create table table_1974545_3 (softball_stadium varchar, school varchar, PRIMARY KEY (softball_stadium))
select softball_stadium from table_1974545_3 where school = "rhode island college"
Name the kinship for *t-ina
create table table_15568886_14 (kinship varchar, proto_malayo_polynesian varchar, PRIMARY KEY (kinship))
select kinship from table_15568886_14 where proto_malayo_polynesian = "*t-ina"
Where is the University that is also called Owls?
create table table_19210115_1 (location varchar, nickname varchar, PRIMARY KEY (location))
select location from table_19210115_1 where nickname = "owls"
Who were the guests on the episode that first aired August 16?
create table table_25691838_8 (guest varchar, original_airdate varchar, PRIMARY KEY (guest))
select guest from table_25691838_8 where original_airdate = "august 16"
List the carriers of devices that have no devices in stock.
create table stock (carrier varchar, device_id varchar, PRIMARY KEY (carrier)); create table device (carrier varchar, device_id varchar, PRIMARY KEY (carrier))
select carrier from device where not device_id in (select device_id from stock)
How many players' hometown was Akron, Ohio?
create table table_11677691_4 (school varchar, hometown varchar, PRIMARY KEY (school))
select count(school) from table_11677691_4 where hometown = "akron, ohio"
What is the nickname of the Adrian, Michigan team?
create table table_27361255_1 (team_nickname varchar, location varchar, PRIMARY KEY (team_nickname))
select team_nickname from table_27361255_1 where location = "adrian, michigan"
What is every value for Croats if the value of Roma is 3.1%?
create table table_2374338_2 (croats varchar, roma varchar, PRIMARY KEY (croats))
select croats from table_2374338_2 where roma = "3.1%"
How many figures for Other in the district where the GN division is 95?
create table table_23777640_1 (other varchar, gn_divisions varchar, PRIMARY KEY (other))
select count(other) from table_23777640_1 where gn_divisions = 95
for the drumset name td-15k how many snare pads are
create table table_2889300_6 (snare_pad varchar, drumset_name varchar, PRIMARY KEY (snare_pad))
select count(snare_pad) from table_2889300_6 where drumset_name = "td-15k"
which country won swimming track & field when lexington won swimming and madison won volleyball
create table table_16423070_4 (track_ varchar, _field varchar, swimming varchar, volleyball varchar, PRIMARY KEY (track_))
select track_ & _field from table_16423070_4 where swimming = "lexington" and volleyball = "madison"
What is the height in inches if the represented is Erongo?
create table table_23576576_2 (height__in_ varchar, represented varchar, PRIMARY KEY (height__in_))
select height__in_ from table_23576576_2 where represented = "erongo"
which episode was Transmitted on wednesday if the episode of "307 vs." was transmitted on friday?
create table table_18173916_8 (wednesday varchar, friday varchar, PRIMARY KEY (wednesday))
select wednesday from table_18173916_8 where friday = "307 vs."
What is the title of the episode directed by Rodney Clouden?
create table table_23242958_1 (title varchar, directed_by varchar, PRIMARY KEY (title))
select title from table_23242958_1 where directed_by = "rodney clouden"
When Matt Ware won the mens singles, who won the mixed restricted?
create table table_28211674_3 (mixed_restricted varchar, mens_singles varchar, PRIMARY KEY (mixed_restricted))
select mixed_restricted from table_28211674_3 where mens_singles = "matt ware"
How many documents were shipped by USPS?
create table documents (id varchar, PRIMARY KEY (id)); create table ref_shipping_agents (id varchar, PRIMARY KEY (id))
select count(*) from ref_shipping_agents join documents on documents.shipping_agent_code = ref_shipping_agents.shipping_agent_code where ref_shipping_agents.shipping_agent_name = "usps"
What is every entry for Saturday August 27 when the entry for Thursday August 25 is 23' 56.90 94.528mph?
create table table_30058355_7 (sat_27_aug varchar, thurs_25_aug varchar, PRIMARY KEY (sat_27_aug))
select sat_27_aug from table_30058355_7 where thurs_25_aug = "23' 56.90 94.528mph"
Name the number of direction for debrecen
create table table_197286_4 (direction varchar, further_cities varchar, PRIMARY KEY (direction))
select count(direction) from table_197286_4 where further_cities = "debrecen"
What's the process technology of the Intel WiFi Link 5100 wireless LAN?
create table table_199666_1 (process_technology varchar, wireless_lan varchar, PRIMARY KEY (process_technology))
select process_technology from table_199666_1 where wireless_lan = "intel wifi link 5100"
What's the ijekavian translation of the ikavian word grijati?
create table table_27730_9 (ijekavian varchar, ikavian varchar, PRIMARY KEY (ijekavian))
select ijekavian from table_27730_9 where ikavian = "grijati"
Name the number of application for modeling, computer aided design, animation
create table table_19495707_1 (application varchar, mainly_used_for varchar, PRIMARY KEY (application))
select count(application) from table_19495707_1 where mainly_used_for = "modeling, computer aided design, animation"
Who won the regular season when Maryland won the tournament?
create table table_22779004_1 (regular_season_winner varchar, tournament_winner varchar, PRIMARY KEY (regular_season_winner))
select regular_season_winner from table_22779004_1 where tournament_winner = "maryland"
what's the premiere with hk viewers of 2.09 million
create table table_11174272_1 (premiere varchar, hk_viewers varchar, PRIMARY KEY (premiere))
select premiere from table_11174272_1 where hk_viewers = "2.09 million"
How many mens doubles when womens doubles is catrine bengtsson margit borg?
create table table_12171145_1 (mens_doubles varchar, womens_doubles varchar, PRIMARY KEY (mens_doubles))
select count(mens_doubles) from table_12171145_1 where womens_doubles = "catrine bengtsson margit borg"
Name the minimum 11-12 enrollment for washington school
create table table_17641314_3 (school varchar, PRIMARY KEY (school))
select min(11 as _12_enrollment) from table_17641314_3 where school = "washington"
Who plays Overton Moyle in casino theatre 1888 & savoy theatre 1906?
create table table_148386_2 (casino_theatre_1888 varchar, savoy_theatre_1906 varchar, PRIMARY KEY (casino_theatre_1888))
select casino_theatre_1888 from table_148386_2 where savoy_theatre_1906 = "overton moyle"
What town has the reserve with an area of 163,62?
create table table_26013618_1 (district___town varchar, area__ha_ varchar, PRIMARY KEY (district___town))
select district___town from table_26013618_1 where area__ha_ = "163,62"
How many dorms are there?
create table dorm (id varchar, PRIMARY KEY (id))
select count(*) from dorm
What is the record of wins and losses for Denver's ball club?
create table table_17311759_5 (record varchar, team varchar, PRIMARY KEY (record))
select record from table_17311759_5 where team = "denver"
Name the landesliga nord for asv neumarkt
create table table_20181270_3 (landesliga_nord varchar, landesliga_mitte varchar, PRIMARY KEY (landesliga_nord))
select landesliga_nord from table_20181270_3 where landesliga_mitte = "asv neumarkt"
Who are all of the telecom providers for which the upload rate is 1024 kbits and the resale category is yes?
create table table_1773908_3 (provider varchar, up__up_to_kbit_s_ varchar, resale varchar, PRIMARY KEY (provider))
select provider from table_1773908_3 where up__up_to_kbit_s_ = 1024 and resale = "yes"
What is the name of the document with the most number of sections?
create table document_sections (document_code varchar, PRIMARY KEY (document_code)); create table documents (document_name varchar, document_code varchar, PRIMARY KEY (document_name))
select t1.document_name from documents as t1 join document_sections as t2 on t1.document_code = t2.document_code group by t1.document_code order by count(*) desc limit 1
Who were the cover models in the edition that included Benicio Del Toro as the interview subject?
create table table_1566852_10 (cover_model varchar, interview_subject varchar, PRIMARY KEY (cover_model))
select cover_model from table_1566852_10 where interview_subject = "benicio del toro"
What is the report for the race that Mike Spence won.
create table table_1140099_6 (report varchar, winning_driver varchar, PRIMARY KEY (report))
select report from table_1140099_6 where winning_driver = "mike spence"
what's the salmonella with shigella being ipgc
create table table_10321124_1 (salmonella varchar, shigella varchar, PRIMARY KEY (salmonella))
select salmonella from table_10321124_1 where shigella = "ipgc"
Which countries have more than two members?
create table member (country varchar, PRIMARY KEY (country))
select country from member group by country having count(*) > 2
When dietrich fischer-dieskau is the olivier who is the conductor?
create table table_29728787_1 (conductor varchar, olivier varchar, PRIMARY KEY (conductor))
select conductor from table_29728787_1 where olivier = "dietrich fischer-dieskau"
What Marisa Monte song choice was song during top 5?
create table table_27614707_1 (song_choice varchar, week__number varchar, original_artist varchar, PRIMARY KEY (song_choice))
select song_choice from table_27614707_1 where week__number = "top 5" and original_artist = "marisa monte"
Who's the partner at Tamara, Hon?
create table table_18268930_1 (partner varchar, location varchar, PRIMARY KEY (partner))
select partner from table_18268930_1 where location = "tamara, hon"
In which album can Dil De De Nahin Nahin Dil Le Le be found?
create table table_2528382_1 (movie_album varchar, song varchar, PRIMARY KEY (movie_album))
select movie_album from table_2528382_1 where song = "dil de de nahin nahin dil le le"
Name the fsb for atom z540
create table table_16729930_11 (fsb varchar, model_number varchar, PRIMARY KEY (fsb))
select fsb from table_16729930_11 where model_number = "atom z540"
What are the winnings for the season where the average finish is 11.1?
create table table_1637041_6 (winnings varchar, avg_finish varchar, PRIMARY KEY (winnings))
select winnings from table_1637041_6 where avg_finish = "11.1"
In the region where the rainfall by volume (km 3 /year) was 13.2, what was the evapotranspiration (km 3 /year)?
create table table_25983027_1 (evapotranspiration__km_3__year_ varchar, rainfall_by_volume__km_3__year_ varchar, PRIMARY KEY (evapotranspiration__km_3__year_))
select evapotranspiration__km_3__year_ from table_25983027_1 where rainfall_by_volume__km_3__year_ = "13.2"
How many episodes were shown on Friday if 210 Kirby's Epic Yarn was shown on Wednesday?
create table table_18173916_6 (friday varchar, wednesday varchar, PRIMARY KEY (friday))
select count(friday) from table_18173916_6 where wednesday = "210 kirby's epic yarn"
Who was the composer of te3rafy?
create table table_28005100_1 (composer varchar, title varchar, PRIMARY KEY (composer))
select composer from table_28005100_1 where title = "te3rafy"
What was the Breeder's Cup Friday attendance for the year the Breeder's Cup Saturday had 52,987?
create table table_24089503_1 (breeders_cup_friday varchar, breeders_cup_saturday varchar, PRIMARY KEY (breeders_cup_friday))
select breeders_cup_friday from table_24089503_1 where breeders_cup_saturday = "52,987"
Who were the starting actors in the time frame of tuesday 22:00~22:54 8 april 2008 to 17 june 2008?
create table table_18539834_2 (starring_actors varchar, time_frame varchar, PRIMARY KEY (starring_actors))
select starring_actors from table_18539834_2 where time_frame = "tuesday 22:00~22:54 8 april 2008 to 17 june 2008"
Name the number of other builders for nant, visual studio
create table table_22903426_1 (other_builders varchar, windows_builders varchar, PRIMARY KEY (other_builders))
select count(other_builders) from table_22903426_1 where windows_builders = "nant, visual studio"
Name the film title for wohin und zurück - welcome in vienna
create table table_16255245_1 (film_title_used_in_nomination varchar, original_title varchar, PRIMARY KEY (film_title_used_in_nomination))
select film_title_used_in_nomination from table_16255245_1 where original_title = "wohin und zurück - welcome in vienna"
When 10% is the percentage of electricity reduction how many sets of universities are there?
create table table_29538735_1 (universities varchar, _percentage_electricity_reduction varchar, PRIMARY KEY (universities))
select count(universities) from table_29538735_1 where _percentage_electricity_reduction = "10%"
Tell me the number of dogs that have not received any treatment .
create table treatments (dog_id varchar, PRIMARY KEY (dog_id)); create table dogs (dog_id varchar, PRIMARY KEY (dog_id))
select count(*) from dogs where not dog_id in (select dog_id from treatments)
What was team number 2's Fluminense's 2nd leg?
create table table_24426072_1 (team__number2 varchar, PRIMARY KEY (team__number2))
select 2 as nd_leg from table_24426072_1 where team__number2 = "fluminense"
What is the repeat date of the episode that aired 22/12/1968?
create table table_13403120_1 (repeatairdate_s_ varchar, originalairdate varchar, PRIMARY KEY (repeatairdate_s_))
select repeatairdate_s_ from table_13403120_1 where originalairdate = "22/12/1968"
Who had the most assists and how many did they have in the game against Miami?
create table table_17001658_5 (high_assists varchar, team varchar, PRIMARY KEY (high_assists))
select high_assists from table_17001658_5 where team = "miami"
Who was the composer of ain shams?
create table table_28005100_1 (composer varchar, title varchar, PRIMARY KEY (composer))
select composer from table_28005100_1 where title = "ain shams"
what are all the people where the entries is peugeot sport polska
create table table_28046929_2 (driver varchar, entrant varchar, PRIMARY KEY (driver))
select driver from table_28046929_2 where entrant = "peugeot sport polska"
How many railroads have the numbers 864-873?
create table table_2351952_1 (railroad varchar, numbers varchar, PRIMARY KEY (railroad))
select count(railroad) from table_2351952_1 where numbers = "864-873"
Name the successor for election was successfully contested july 30, 1861
create table table_2417330_4 (successor varchar, reason_for_change varchar, PRIMARY KEY (successor))
select successor from table_2417330_4 where reason_for_change = "election was successfully contested july 30, 1861"
Name the number of going to for thurlby, braceborough spa at departure being 16.50
create table table_17200372_2 (going_to varchar, calling_at varchar, departure varchar, PRIMARY KEY (going_to))
select count(going_to) from table_17200372_2 where calling_at = "thurlby, braceborough spa" and departure = "16.50"
Provide me with the name of all the village (German) that are part of the village (Slovenian) with sele srednji kot.
create table table_10798421_1 (village__german_ varchar, village__slovenian_ varchar, PRIMARY KEY (village__german_))
select village__german_ from table_10798421_1 where village__slovenian_ = "sele srednji kot"
How many tests have result "Fail"?
create table student_tests_taken (test_result varchar, PRIMARY KEY (test_result))
select count(*) from student_tests_taken where test_result = "fail"
what is the title when the writer(s) is jack turley?
create table table_21146729_6 (title varchar, writer_s_ varchar, PRIMARY KEY (title))
select title from table_21146729_6 where writer_s_ = "jack turley"
Show the ids of all employees who have authorized destruction.
create table documents_to_be_destroyed (destruction_authorised_by_employee_id varchar, PRIMARY KEY (destruction_authorised_by_employee_id))
select distinct destruction_authorised_by_employee_id from documents_to_be_destroyed
how many crew had u15 3rd iv being bgs and u15 1st iv being acgs and open 1st viii being acgs
create table table_11318462_5 (crew varchar, open_1st_viii varchar, u15_3rd_iv varchar, u15_1st_iv varchar, PRIMARY KEY (crew))
select count(crew) from table_11318462_5 where u15_3rd_iv = "bgs" and u15_1st_iv = "acgs" and open_1st_viii = "acgs"
Name the overall record for road record being 4-3
create table table_22825679_1 (overall_record varchar, road_record varchar, PRIMARY KEY (overall_record))
select overall_record from table_22825679_1 where road_record = "4-3"
On how many different dates did the episode directed by Marcos Siega and written by Scott Buck air for the first time?
create table table_24132083_1 (original_air_date varchar, directed_by varchar, written_by varchar, PRIMARY KEY (original_air_date))
select count(original_air_date) from table_24132083_1 where directed_by = "marcos siega" and written_by = "scott buck"
who are the candidates where the incumbent is sam m. gibbons?
create table table_1341663_10 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select candidates from table_1341663_10 where incumbent = "sam m. gibbons"
Name the accession number for rhodopseudomonas palustris
create table table_27155678_2 (accession_number varchar, genus_species varchar, PRIMARY KEY (accession_number))
select accession_number from table_27155678_2 where genus_species = "rhodopseudomonas palustris"
What record was set on Tue 11/02/75?
create table table_21436373_8 (type_of_record varchar, date_year varchar, PRIMARY KEY (type_of_record))
select type_of_record from table_21436373_8 where date_year = "tue 11/02/75"
What is the largest number of DVDs?
create table table_1467951_4 (dvd_no integer, PRIMARY KEY (dvd_no))
select max(dvd_no) from table_1467951_4
How many times was the overall attendance 17807?
create table table_2771237_1 (overall_attendance varchar, average_attendance varchar, PRIMARY KEY (overall_attendance))
select count(overall_attendance) from table_2771237_1 where average_attendance = 17807
Name the 20 questions for derek jeter
create table table_1566852_5 (interview_subject varchar, PRIMARY KEY (interview_subject))
select 20 as _questions from table_1566852_5 where interview_subject = "derek jeter"