question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
When the change (2011 to 2012) is +13.4% what is the country?
create table table_14752049_6 (country varchar, change__2011_to_2012_ varchar, PRIMARY KEY (country))
select country from table_14752049_6 where change__2011_to_2012_ = "+13.4%"
Who won the spanish grand prix?
create table table_15299235_1 (grand_prix varchar, PRIMARY KEY (grand_prix))
select 250 as cc_winner from table_15299235_1 where grand_prix = "spanish grand_prix"
Which parishes have a railroad length of 51.8 meters?
create table table_16226584_1 (parish varchar, length_meters varchar, PRIMARY KEY (parish))
select parish from table_16226584_1 where length_meters = "51.8"
What is the status when livery is blue?
create table table_1090916_2 (status varchar, livery varchar, PRIMARY KEY (status))
select status from table_1090916_2 where livery = "blue"
What type of school would you see when visiting Missouri Western State University?
create table table_2076463_2 (control varchar, school varchar, PRIMARY KEY (control))
select control from table_2076463_2 where school = "missouri western state university"
What is the percentage of land area in the ecozone that the percentage protected is 15.28?
create table table_15555661_2 (percentage_of_land_area varchar, percentage_protected varchar, PRIMARY KEY (percentage_of_land_area))
select percentage_of_land_area from table_15555661_2 where percentage_protected = "15.28"
How many numbers were recorded for Qatari female when Qatari male was 97?
create table table_19309079_2 (qatari_female varchar, qatari_male varchar, PRIMARY KEY (qatari_female))
select count(qatari_female) from table_19309079_2 where qatari_male = 97
When 1873-12-25 is the founding date how many organizations are there?
create table table_28436909_4 (organization varchar, founding_date varchar, PRIMARY KEY (organization))
select count(organization) from table_28436909_4 where founding_date = "1873-12-25"
Name the fifth district for steve rudoni
create table table_15442974_1 (fifth_district varchar, fourth_district varchar, PRIMARY KEY (fifth_district))
select fifth_district from table_15442974_1 where fourth_district = "steve rudoni"
Name the volume for co 2 for 168 g/km
create table table_17941111_2 (volume varchar, co_2 varchar, PRIMARY KEY (volume))
select volume from table_17941111_2 where co_2 = "168 g/km"
Who directed an episode with 1.19 million?
create table table_29273390_1 (directed_by varchar, us_viewers__million_ varchar, PRIMARY KEY (directed_by))
select directed_by from table_29273390_1 where us_viewers__million_ = "1.19"
Name the name for doncaster newbury
create table table_22977424_8 (name varchar, promoted_to_league varchar, PRIMARY KEY (name))
select name from table_22977424_8 where promoted_to_league = "doncaster newbury"
What official or native languages are spoken in the country whose capital city is Canberra?
create table table_1008653_1 (official_or_native_language_s___alphabet_script_ varchar, capital___exonym__ varchar, PRIMARY KEY (official_or_native_language_s___alphabet_script_))
select official_or_native_language_s___alphabet_script_ from table_1008653_1 where capital___exonym__ = "canberra"
When the second intermediate period of egypt is the ubaid period in mesopotamia how many early calcolithics are there?
create table table_23537091_1 (early_chalcolithic varchar, ubaid_period_in_mesopotamia varchar, PRIMARY KEY (early_chalcolithic))
select count(early_chalcolithic) from table_23537091_1 where ubaid_period_in_mesopotamia = "second intermediate period of egypt"
Name the original title for the counterfeiters
create table table_16255245_1 (original_title varchar, film_title_used_in_nomination varchar, PRIMARY KEY (original_title))
select original_title from table_16255245_1 where film_title_used_in_nomination = "the counterfeiters"
Name the total number of director for oro diablo
create table table_18123274_1 (director varchar, original_title varchar, PRIMARY KEY (director))
select count(director) from table_18123274_1 where original_title = "oro diablo"
What is the form ("to sing") when brazilian portuguese is [kɐ̃ˈtẽmus]?
create table table_25401_2 (form__to_sing_ varchar, brazilian_portuguese varchar, PRIMARY KEY (form__to_sing_))
select form__to_sing_ from table_25401_2 where brazilian_portuguese = "[kɐ̃ˈtẽmus]"
Name the mission name for 21 november 1969
create table table_1558077_8 (mission_name varchar, lunar_blastoff_date varchar, PRIMARY KEY (mission_name))
select mission_name from table_1558077_8 where lunar_blastoff_date = "21 november 1969"
How many status figures does James Finch have?
create table table_27514362_7 (status varchar, entrant varchar, PRIMARY KEY (status))
select count(status) from table_27514362_7 where entrant = "james finch"
The U.S. airdate of 8 august 2008 also had canadian airdates of what?
create table table_10935205_1 (canadian_airdate varchar, us_airdate varchar, PRIMARY KEY (canadian_airdate))
select canadian_airdate from table_10935205_1 where us_airdate = "8 august 2008"
What was the total number of weeks on peak for the Ireland Albums Top 75 chart?
create table table_1160304_2 (weeks_on_peak varchar, chart varchar, PRIMARY KEY (weeks_on_peak))
select count(weeks_on_peak) from table_1160304_2 where chart = "ireland albums top 75"
How to you write плавна with the latin alphabet?
create table table_2562572_11 (settlement varchar, cyrillic_name_other_names varchar, PRIMARY KEY (settlement))
select settlement from table_2562572_11 where cyrillic_name_other_names = "плавна"
How many sprint classifications are there where marco frapporti is the winner?
create table table_25655781_17 (sprint_classification varchar, winner varchar, PRIMARY KEY (sprint_classification))
select count(sprint_classification) from table_25655781_17 where winner = "marco frapporti"
when was the premiere when a 3.3 millions of North American watched the episode whose writer was Rob Wright?
create table table_21313498_1 (original_air_date varchar, us_viewers__millions_ varchar, written_by varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_21313498_1 where us_viewers__millions_ = "3.3" and written_by = "rob wright"
How economically free is the country of Armenia?
create table table_1604579_2 (country varchar, PRIMARY KEY (country))
select 2013 as _index_of_economic_freedom from table_1604579_2 where country = "armenia"
Who were the candidates if the incumbent was Henry Logan?
create table table_2668173_4 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select candidates from table_2668173_4 where incumbent = "henry logan"
What is Tony Stewart's average speed?
create table table_1963459_2 (average_speed__mph_ varchar, driver varchar, PRIMARY KEY (average_speed__mph_))
select average_speed__mph_ from table_1963459_2 where driver = "tony stewart"
What is the name of the school/s in North Manchester?
create table table_1984697_85 (school varchar, city___town varchar, PRIMARY KEY (school))
select school from table_1984697_85 where city___town = "north manchester"
What village has an area of 27.19 km2?
create table table_2588674_1 (village varchar, area_km² varchar, PRIMARY KEY (village))
select village from table_2588674_1 where area_km² = "27.19"
Against which team does Missouri Tigers have a record of mu, 2-1 at a neutral site?
create table table_16201038_4 (missouri_vs varchar, at_neutral_site varchar, PRIMARY KEY (missouri_vs))
select missouri_vs from table_16201038_4 where at_neutral_site = "mu, 2-1"
Who had the high points when high assists is tim duncan (5)?
create table table_27715173_8 (high_points varchar, high_assists varchar, PRIMARY KEY (high_points))
select high_points from table_27715173_8 where high_assists = "tim duncan (5)"
What is the name of the breed with the most dogs?
create table dogs (breed_code varchar, PRIMARY KEY (breed_code)); create table breeds (breed_name varchar, breed_code varchar, PRIMARY KEY (breed_name))
select t1.breed_name from breeds as t1 join dogs as t2 on t1.breed_code = t2.breed_code group by t1.breed_name order by count(*) desc limit 1
How many tariff codes have a bts retail price of 2p/min or inclusive?
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_ = "2p/min or inclusive"
Name the hdtv for sky famiglia and dar 16:9 for mydeejay
create table table_15887683_10 (hdtv varchar, television_service varchar, package_option varchar, dar varchar, PRIMARY KEY (hdtv))
select hdtv from table_15887683_10 where package_option = "sky famiglia" and dar = "16:9" and television_service = "mydeejay"
What is the smallest 07-08 oi best value?
create table table_23938357_7 (id varchar, PRIMARY KEY (id))
select min(07 as _08_oi_best) from table_23938357_7
Name the outgoing manager for mantova
create table table_17275810_7 (outgoing_manager varchar, team varchar, PRIMARY KEY (outgoing_manager))
select outgoing_manager from table_17275810_7 where team = "mantova"
What's the storage case of the buttonholer described as ivory and red metal?
create table table_28652521_1 (storage_case varchar, description varchar, PRIMARY KEY (storage_case))
select storage_case from table_28652521_1 where description = "ivory and red metal"
List the names of courses in alphabetical order?
create table courses (course_name varchar, PRIMARY KEY (course_name))
select course_name from courses order by course_name
Find all the instruments ever used by the musician with last name "Heilo"?
create table instruments (bandmateid varchar, PRIMARY KEY (bandmateid)); create table band (id varchar, lastname varchar, PRIMARY KEY (id))
select instrument from instruments as t1 join band as t2 on t1.bandmateid = t2.id where t2.lastname = "heilo"
What was the record when they played the Los Angeles Rams?
create table table_13259009_2 (record varchar, opponent varchar, PRIMARY KEY (record))
select record from table_13259009_2 where opponent = "los angeles rams"
How many parties were represented for Charles R. Crisp?
create table table_1342370_10 (party varchar, incumbent varchar, PRIMARY KEY (party))
select count(party) from table_1342370_10 where incumbent = "charles r. crisp"
How many products are there in the records?
create table catalog_contents (id varchar, PRIMARY KEY (id))
select count(*) from catalog_contents
What is the original air date for the episode written by daniel dratch?
create table table_25716399_1 (original_air_date varchar, written_by varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_25716399_1 where written_by = "daniel dratch"
What is the lifetime (years) for chemical formula ch 4?
create table table_21350772_2 (lifetime__years_ varchar, chemical_formula varchar, PRIMARY KEY (lifetime__years_))
select lifetime__years_ from table_21350772_2 where chemical_formula = "ch 4"
Who was Class AAA during the same year that Class A was (tie) Apple Springs/Texline?
create table table_10399701_2 (class_aaa varchar, class_a varchar, PRIMARY KEY (class_aaa))
select class_aaa from table_10399701_2 where class_a = "(tie) apple springs/texline"
When there are 10.02 million viewers what is the rating (18-49)?
create table table_28980706_4 (rating__18_49_ varchar, viewers__millions_ varchar, PRIMARY KEY (rating__18_49_))
select rating__18_49_ from table_28980706_4 where viewers__millions_ = "10.02"
display those departments where more than ten employees work who got a commission percentage.
create table employees (department_id varchar, commission_pct varchar, PRIMARY KEY (department_id))
select department_id from employees group by department_id having count(commission_pct) > 10
What wast the percent cut for the nation with an 80% full gas storage?
create table table_21690339_1 (_percentage_cut varchar, gas_storage varchar, PRIMARY KEY (_percentage_cut))
select _percentage_cut from table_21690339_1 where gas_storage = "80% full"
How many north american brands have world headquarters in sagamihara?
create table table_237199_1 (north_american_brands varchar, world_headquarters varchar, PRIMARY KEY (north_american_brands))
select count(north_american_brands) from table_237199_1 where world_headquarters = "sagamihara"
What city licensed the broadcast on virtual channel 8.2?
create table table_2857352_3 (city_of_license varchar, virtual_channel varchar, PRIMARY KEY (city_of_license))
select city_of_license from table_2857352_3 where virtual_channel = "8.2"
How many times has a wrestler whose federation was roh, wwe competed in this event?
create table table_2305948_1 (other_placings varchar, federation varchar, PRIMARY KEY (other_placings))
select count(other_placings) from table_2305948_1 where federation = "roh, wwe"
Show different nationalities along with the number of hosts of each nationality.
create table host (nationality varchar, PRIMARY KEY (nationality))
select nationality, count(*) from host group by nationality
Which major town is located within the Outback Areas Community Development Trust?
create table table_23685890_2 (major_town varchar, local_government_area varchar, PRIMARY KEY (major_town))
select major_town from table_23685890_2 where local_government_area = "outback areas community development trust"
Name the candidates where incumbent Carl Vinson is?
create table table_1341884_12 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select candidates from table_1341884_12 where incumbent = "carl vinson"
What is the meaning of the constellation that has puppis /ˈpʌpɨs/ as genitive?
create table table_287159_1 (meaning varchar, genitive varchar, PRIMARY KEY (meaning))
select meaning from table_287159_1 where genitive = "puppis /ˈpʌpɨs/"
What opponents played Waldstadion in a game?
create table table_24951872_2 (opponent varchar, game_site varchar, PRIMARY KEY (opponent))
select opponent from table_24951872_2 where game_site = "waldstadion"
How many documents do not have any expense?
create table documents (document_id varchar, PRIMARY KEY (document_id)); create table documents_with_expenses (document_id varchar, PRIMARY KEY (document_id))
select count(*) from documents where not document_id in (select document_id from documents_with_expenses)
How many total team penalties are there when cross country penalties is 30.40?
create table table_18666752_3 (total_team_penalties varchar, cross_country_penalties varchar, PRIMARY KEY (total_team_penalties))
select total_team_penalties from table_18666752_3 where cross_country_penalties = "30.40"
How many professionals have performed any treatment to dogs?
create table treatments (professional_id varchar, PRIMARY KEY (professional_id))
select count(distinct professional_id) from treatments
What was Brian Moran's share of the votes when Creigh Deeds had 30%?
create table table_21535453_1 (brian_moran varchar, creigh_deeds varchar, PRIMARY KEY (brian_moran))
select brian_moran from table_21535453_1 where creigh_deeds = "30%"
Who ran in the race for Jack Brooks' seat?
create table table_1341865_45 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select candidates from table_1341865_45 where incumbent = "jack brooks"
In connecticut the school/club team/country had a set height in ft. what is true for them?
create table table_11734041_10 (height_in_ft varchar, school_club_team_country varchar, PRIMARY KEY (height_in_ft))
select height_in_ft from table_11734041_10 where school_club_team_country = "connecticut"
How many letters were given to the organization with a founding date of 1997-12-12?
create table table_2538117_12 (letters varchar, founding_date varchar, PRIMARY KEY (letters))
select count(letters) from table_2538117_12 where founding_date = "1997-12-12"
How many trains arrive at 11:00?
create table table_27011761_2 (train_no varchar, arrival varchar, PRIMARY KEY (train_no))
select count(train_no) from table_27011761_2 where arrival = "11:00"
What was the college for the player with the cfl team of Edmonton Eskimos (via calgary)?
create table table_10812938_3 (college varchar, cfl_team varchar, PRIMARY KEY (college))
select college from table_10812938_3 where cfl_team = "edmonton eskimos (via calgary)"
When samai amari is the asian rider classification how many asian team classifications are there?
create table table_21573750_2 (asian_team_classification varchar, asian_rider_classification varchar, PRIMARY KEY (asian_team_classification))
select count(asian_team_classification) from table_21573750_2 where asian_rider_classification = "samai amari"
How many winning teams are there on LMP2 if Gabriele Gardel Patrice Goueslard Fernando Rees was the GT1 Winning Team on the Algarve circuit?
create table table_24865763_2 (lmp2_winning_team varchar, gt1_winning_team varchar, circuit varchar, PRIMARY KEY (lmp2_winning_team))
select count(lmp2_winning_team) from table_24865763_2 where gt1_winning_team = "gabriele gardel patrice goueslard fernando rees" and circuit = "algarve"
What are the slovenian names of the villages that had 16.7% of slovenes in 1991?
create table table_10797463_1 (village__slovenian_ varchar, percent_of_slovenes_1991 varchar, PRIMARY KEY (village__slovenian_))
select village__slovenian_ from table_10797463_1 where percent_of_slovenes_1991 = "16.7%"
Name the mens singles when womens singles is wang lin and mixed doubles is joachim fischer nielsen christinna pedersen
create table table_14496232_2 (mens_singles varchar, womens_singles varchar, mixed_doubles varchar, PRIMARY KEY (mens_singles))
select mens_singles from table_14496232_2 where womens_singles = "wang lin" and mixed_doubles = "joachim fischer nielsen christinna pedersen"
on how many days did the episode written by harold hayes jr. & craig s. phillips originally air
create table table_29196086_4 (original_air_date varchar, written_by varchar, PRIMARY KEY (original_air_date))
select count(original_air_date) from table_29196086_4 where written_by = "harold hayes jr. & craig s. phillips"
Name the circuit for gt3 alex mortimer bradley ellis
create table table_14574130_3 (circuit varchar, gt3_winner varchar, PRIMARY KEY (circuit))
select circuit from table_14574130_3 where gt3_winner = "alex mortimer bradley ellis"
what is г г [ɡ] when а а [a] is ҕә ҕә [ʁʷ/ɣʷ]?
create table table_202365_2 (г_г_ varchar, ɡ varchar, а_а_ varchar, a varchar, PRIMARY KEY (г_г_))
select г_г_[ɡ] from table_202365_2 where а_а_[a] = "ҕә ҕә [ʁʷ/ɣʷ]"
Who directed the episode that originally aired on January 15, 2008?
create table table_13301516_1 (directed_by varchar, original_air_date varchar, PRIMARY KEY (directed_by))
select directed_by from table_13301516_1 where original_air_date = "january 15, 2008"
What are the statuses of the districts whose successor is Wiltshire?
create table table_2801185_2 (status varchar, successor varchar, PRIMARY KEY (status))
select status from table_2801185_2 where successor = "wiltshire"
Who won the stage when Fumiyuki Beppu won the combativity award?
create table table_14395920_2 (winner varchar, combativity_award varchar, PRIMARY KEY (winner))
select winner from table_14395920_2 where combativity_award = "fumiyuki beppu"
Which film title used in nomination has the year (ceremony) 1990 (63rd)?
create table table_21655290_1 (film_title_used_in_nomination varchar, year__ceremony_ varchar, PRIMARY KEY (film_title_used_in_nomination))
select film_title_used_in_nomination from table_21655290_1 where year__ceremony_ = "1990 (63rd)"
Name the reporters for dave johnson for eddie arcaro and howard cosell
create table table_22514845_5 (reporters varchar, race_caller varchar, s_analyst varchar, PRIMARY KEY (reporters))
select reporters from table_22514845_5 where race_caller = "dave johnson" and s_analyst = "eddie arcaro and howard cosell"
Show the booking status code and the corresponding number of bookings.
create table apartment_bookings (booking_status_code varchar, PRIMARY KEY (booking_status_code))
select booking_status_code, count(*) from apartment_bookings group by booking_status_code
List title of albums have the number of tracks greater than 10.
create table tracks (album_id varchar, PRIMARY KEY (album_id)); create table albums (title varchar, id varchar, PRIMARY KEY (title))
select t1.title from albums as t1 join tracks as t2 on t1.id = t2.album_id group by t1.id having count(t1.id) > 10
Where can you find Colorado and Southern Railway #9?
create table table_1057316_1 (disposition varchar, operational_owner_s_ varchar, PRIMARY KEY (disposition))
select disposition from table_1057316_1 where operational_owner_s_ = "colorado and southern railway #9"
What is title of episode aired on March 2, 2003?
create table table_1876825_5 (title varchar, original_air_date varchar, PRIMARY KEY (title))
select title from table_1876825_5 where original_air_date = "march 2, 2003"
Which network has s analyst of eddie arcaro?
create table table_22514845_4 (network varchar, s_analyst varchar, PRIMARY KEY (network))
select network from table_22514845_4 where s_analyst = "eddie arcaro"
Name who directed the air date of 12 july 2010
create table table_27218002_1 (directed_by varchar, originalairdate varchar, PRIMARY KEY (directed_by))
select directed_by from table_27218002_1 where originalairdate = "12 july 2010"
how many porphyria have substrate δ-aminolevulinic acid
create table table_182499_1 (porphyria varchar, substrate varchar, PRIMARY KEY (porphyria))
select count(porphyria) from table_182499_1 where substrate = "δ-aminolevulinic acid"
What are the phones of departments in Room 268?
create table department (dphone varchar, room varchar, PRIMARY KEY (dphone))
select dphone from department where room = 268
What is Jon Thorne's average speed?
create table table_1963459_2 (average_speed__mph_ varchar, team varchar, PRIMARY KEY (average_speed__mph_))
select average_speed__mph_ from table_1963459_2 where team = "jon thorne"
What name is listed under representative for the 112th congress?
create table table_2841865_2 (representative varchar, congress varchar, PRIMARY KEY (representative))
select representative from table_2841865_2 where congress = "112th"
What is the title of the episode watched by 0.88 million U.S. viewers?
create table table_28680377_2 (title varchar, us_viewers__million_ varchar, PRIMARY KEY (title))
select title from table_28680377_2 where us_viewers__million_ = "0.88"
What team has draft picks from Mississippi?
create table table_16729063_1 (nfl_team varchar, college varchar, PRIMARY KEY (nfl_team))
select nfl_team from table_16729063_1 where college = "mississippi"
What's the meaning of the verb whose part 1 is slapen?
create table table_1745843_7 (verb_meaning varchar, part_1 varchar, PRIMARY KEY (verb_meaning))
select verb_meaning from table_1745843_7 where part_1 = "slapen"
What is the Raptors' record against New Jersey?
create table table_15780718_9 (record varchar, team varchar, PRIMARY KEY (record))
select record from table_15780718_9 where team = "new jersey"
Who was seat no 6 when seat no 1 and seat no 5 were jacques lachapelle and donald s. dutton
create table table_2231241_1 (seat_no_6 varchar, seat_no_1 varchar, seat_no_5 varchar, PRIMARY KEY (seat_no_6))
select seat_no_6 from table_2231241_1 where seat_no_1 = "jacques lachapelle" and seat_no_5 = "donald s. dutton"
In what prefecture is Nihon Bunri located?
create table table_2518850_4 (prefecture varchar, high_school_name varchar, PRIMARY KEY (prefecture))
select prefecture from table_2518850_4 where high_school_name = "nihon bunri"
In how many countries is Itaipu a supply point for electricity?
create table table_19001916_2 (country varchar, supply_point varchar, PRIMARY KEY (country))
select count(country) from table_19001916_2 where supply_point = "itaipu"
What is the population per km2 in Fishing Lake?
create table table_2500440_1 (population_density__per_km_2__ varchar, name varchar, PRIMARY KEY (population_density__per_km_2__))
select population_density__per_km_2__ from table_2500440_1 where name = "fishing lake"
How many stadiums are not in country "Russia"?
create table stadium (country varchar, PRIMARY KEY (country))
select count(*) from stadium where country <> 'russia'
Show the school name and driver name for all school buses.
create table school (school varchar, school_id varchar, PRIMARY KEY (school)); create table school_bus (school_id varchar, driver_id varchar, PRIMARY KEY (school_id)); create table driver (name varchar, driver_id varchar, PRIMARY KEY (name))
select t2.school, t3.name from school_bus as t1 join school as t2 on t1.school_id = t2.school_id join driver as t3 on t1.driver_id = t3.driver_id
Name the most rr 1 pts
create table table_21457754_2 (rr1_pts integer, PRIMARY KEY (rr1_pts))
select max(rr1_pts) from table_21457754_2
What is the name of the episode written by karina csolty?
create table table_27969432_2 (title varchar, written_by varchar, PRIMARY KEY (title))
select title from table_27969432_2 where written_by = "karina csolty"
What was the total ITV1 viewers in millions for the episode with a share (%) of 28.9?
create table table_27319183_5 (total_itv1_viewers__millions_ varchar, share___percentage_ varchar, PRIMARY KEY (total_itv1_viewers__millions_))
select total_itv1_viewers__millions_ from table_27319183_5 where share___percentage_ = "28.9"