question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
Which lava domes erupted or had a growth episode during the Holocene period?
create table table_1081235_1 (name_of_lava_dome varchar, last_eruption_or_growth_episode varchar, PRIMARY KEY (name_of_lava_dome))
select name_of_lava_dome from table_1081235_1 where last_eruption_or_growth_episode = "holocene"
When fc schwandorf is the oberpfalz what is the oberbayern b?
create table table_23224961_1 (oberbayern_b varchar, oberpfalz varchar, PRIMARY KEY (oberbayern_b))
select oberbayern_b from table_23224961_1 where oberpfalz = "fc schwandorf"
Which team was played when the high points was from Wallace (20)?
create table table_11960944_4 (team varchar, high_points varchar, PRIMARY KEY (team))
select team from table_11960944_4 where high_points = "wallace (20)"
What was the home team score when Brisbane lions was the home team?
create table table_16388398_1 (home_team varchar, PRIMARY KEY (home_team))
select home_team as score from table_16388398_1 where home_team = "brisbane lions"
What is the represent province for the contestant whose hometown is Woerden?
create table table_27946889_2 (represent_province varchar, hometown varchar, PRIMARY KEY (represent_province))
select represent_province from table_27946889_2 where hometown = "woerden"
If the census ranking is 693 of 5,008, what is the status?
create table table_171236_1 (status varchar, census_ranking varchar, PRIMARY KEY (status))
select status from table_171236_1 where census_ranking = "693 of 5,008"
What is the BBM when the strike rate is 42.2?
create table table_19662262_6 (bbm varchar, strike_rate varchar, PRIMARY KEY (bbm))
select bbm from table_19662262_6 where strike_rate = "42.2"
What is the additional information in the song mera yaar bana hai dulha
create table table_2528382_2 (additional_info varchar, song varchar, PRIMARY KEY (additional_info))
select additional_info from table_2528382_2 where song = "mera yaar bana hai dulha"
What was the title of the episode viewed by 5.03 million viewers?
create table table_27987623_1 (title varchar, us_viewers__in_million_ varchar, PRIMARY KEY (title))
select title from table_27987623_1 where us_viewers__in_million_ = "5.03"
Name the number of package/option for sky primafila 24
create table table_15887683_6 (package_option varchar, television_service varchar, PRIMARY KEY (package_option))
select count(package_option) from table_15887683_6 where television_service = "sky primafila 24"
What are the names of representatives whose party is not "Republican"?
create table representative (name varchar, party varchar, PRIMARY KEY (name))
select name from representative where party <> "republican"
which year was the original title გაღმა ნაპირი
create table table_18069789_1 (year_ varchar, e_ varchar, original_title varchar, PRIMARY KEY (year_))
select year_[e_] as __ceremony_ from table_18069789_1 where original_title = "გაღმა ნაპირი"
what are the first name and last name of all candidates?
create table candidates (candidate_id varchar, PRIMARY KEY (candidate_id)); create table people (first_name varchar, last_name varchar, person_id varchar, PRIMARY KEY (first_name))
select t2.first_name, t2.last_name from candidates as t1 join people as t2 on t1.candidate_id = t2.person_id
Name the date of vacancy for daniel uberti
create table table_18522916_5 (date_of_vacancy varchar, outgoing_manager varchar, PRIMARY KEY (date_of_vacancy))
select date_of_vacancy from table_18522916_5 where outgoing_manager = "daniel uberti"
What is the name of the episode written by Sheila Lawrence & Henry Alonso Myers?
create table table_12146637_1 (episode_title varchar, writer_s_ varchar, PRIMARY KEY (episode_title))
select episode_title from table_12146637_1 where writer_s_ = "sheila lawrence & henry alonso myers"
How many titles does the episode written by Joe Toplyn have?
create table table_25716397_1 (title varchar, written_by varchar, PRIMARY KEY (title))
select count(title) from table_25716397_1 where written_by = "joe toplyn"
What is the international use of the 1 единица flag?
create table table_29997112_3 (international_use varchar, flag_name varchar, PRIMARY KEY (international_use))
select international_use from table_29997112_3 where flag_name = "1 единица"
How many polls show different percentages for Tom Emmer and 38% for Matt Entenza?
create table table_20032301_3 (tom_emmer__r_ varchar, matt_entenza__dfl_ varchar, PRIMARY KEY (tom_emmer__r_))
select count(tom_emmer__r_) from table_20032301_3 where matt_entenza__dfl_ = "38%"
What is the rate limit when budget plans (£m) is limit agreed?
create table table_25316812_1 (rate_limit__p_ varchar, budget_plans__£m_ varchar, PRIMARY KEY (rate_limit__p_))
select rate_limit__p_ from table_25316812_1 where budget_plans__£m_ = "limit agreed"
Who placed fourth when the winner was Greg Hancock?
create table table_21808535_1 (winner varchar, PRIMARY KEY (winner))
select 4 as th_placed from table_21808535_1 where winner = "greg hancock"
Where was the game against Atlanta Falcons held?
create table table_14971788_1 (game_site varchar, opponent varchar, PRIMARY KEY (game_site))
select game_site from table_14971788_1 where opponent = "atlanta falcons"
Who directed the episode with an audience of 14.11 million?
create table table_27776266_1 (directed_by varchar, us_viewers__million_ varchar, PRIMARY KEY (directed_by))
select directed_by from table_27776266_1 where us_viewers__million_ = "14.11"
Find the number of orchestras whose record format is "CD" or "DVD".
create table orchestra (major_record_format varchar, PRIMARY KEY (major_record_format))
select count(*) from orchestra where major_record_format = "cd" or major_record_format = "dvd"
Who directed the eposide that was watched by 1.95 million US viewers?
create table table_26736342_1 (directed_by varchar, us_viewers__millions_ varchar, PRIMARY KEY (directed_by))
select directed_by from table_26736342_1 where us_viewers__millions_ = "1.95"
How many RolePlay actors played the same role as FlatSpin's Tracy Taylor?
create table table_17827271_1 (roleplay varchar, flatspin varchar, PRIMARY KEY (roleplay))
select count(roleplay) from table_17827271_1 where flatspin = "tracy taylor"
Find the name of the instructors who taught C Programming course before.
create table teaches (id varchar, course_id varchar, PRIMARY KEY (id)); create table course (course_id varchar, title varchar, PRIMARY KEY (course_id)); create table instructor (name varchar, id varchar, PRIMARY KEY (name))
select t1.name from instructor as t1 join teaches as t2 on t1.id = t2.id join course as t3 on t2.course_id = t3.course_id where t3.title = 'c programming'
how many hometowns for faisal aden?
create table table_29598261_1 (hometown varchar, name varchar, PRIMARY KEY (hometown))
select count(hometown) from table_29598261_1 where name = "faisal aden"
What type of school is Jefferson College of Health Sciences?
create table table_2076608_1 (type varchar, school varchar, PRIMARY KEY (type))
select type from table_2076608_1 where school = "jefferson college of health sciences"
What is the LOA of Brindabella?
create table table_25595209_1 (loa__metres_ varchar, yacht varchar, PRIMARY KEY (loa__metres_))
select loa__metres_ from table_25595209_1 where yacht = "brindabella"
For how many players from UTEP can one calculate how many years they've played for Jazz?
create table table_11545282_6 (years_for_jazz varchar, school_club_team varchar, PRIMARY KEY (years_for_jazz))
select count(years_for_jazz) from table_11545282_6 where school_club_team = "utep"
What is the Spanish word for cas [ˈkas]?
create table table_26614365_1 (spanish varchar, central varchar, PRIMARY KEY (spanish))
select spanish from table_26614365_1 where central = "cas [ˈkas]"
what was Casey Martin's minimum yearly earnings?
create table table_1697190_2 (earnings___ integer, PRIMARY KEY (earnings___))
select min(earnings___) as $__ from table_1697190_2
Show all distinct publishers for books.
create table book_club (publisher varchar, PRIMARY KEY (publisher))
select distinct publisher from book_club
Name the winning pilot for hungary
create table table_20036882_2 (winning_pilot varchar, country varchar, PRIMARY KEY (winning_pilot))
select winning_pilot from table_20036882_2 where country = "hungary"
Please list all album titles in alphabetical order.
create table album (title varchar, PRIMARY KEY (title))
select title from album order by title
Find the number of shops in each location.
create table shop (location varchar, PRIMARY KEY (location))
select count(*), location from shop group by location
Name the number of international frieghts for domestic mail of 260
create table table_1754531_4 (international_freight varchar, domestic_mail varchar, PRIMARY KEY (international_freight))
select count(international_freight) from table_1754531_4 where domestic_mail = 260
Name the colorado when alaska is connecticut
create table table_17425749_1 (colorado varchar, alaska varchar, PRIMARY KEY (colorado))
select colorado from table_17425749_1 where alaska = "connecticut"
Name the number of playoffs for 3rd round
create table table_2511876_1 (playoffs varchar, open_cup varchar, PRIMARY KEY (playoffs))
select count(playoffs) from table_2511876_1 where open_cup = "3rd round"
Name the number of cab size for 4 medium tanker
create table table_2155350_2 (cab_size varchar, category varchar, PRIMARY KEY (cab_size))
select count(cab_size) from table_2155350_2 where category = "4 medium tanker"
How many times did the sounddock series II aux in?
create table table_24384861_1 (aux_in varchar, version varchar, PRIMARY KEY (aux_in))
select count(aux_in) from table_24384861_1 where version = "sounddock series ii"
Name the most released for right here, right now
create table table_24600706_1 (released integer, song varchar, PRIMARY KEY (released))
select max(released) from table_24600706_1 where song = "right here, right now"
Who were the challenge leaders of the games won by boston college (88-76)?
create table table_29535057_4 (challenge_leader varchar, winner varchar, PRIMARY KEY (challenge_leader))
select challenge_leader from table_29535057_4 where winner = "boston college (88-76)"
Show student ids who don't have any sports.
create table sportsinfo (stuid varchar, PRIMARY KEY (stuid)); create table student (stuid varchar, PRIMARY KEY (stuid))
select stuid from student except select stuid from sportsinfo
How many socialists correspond to a 7.5% People's Party?
create table table_1463383_1 (socialist varchar, peoples_party varchar, PRIMARY KEY (socialist))
select count(socialist) from table_1463383_1 where peoples_party = "7.5%"
Who was the GTU winning team when the TO winning team was #3 Camaro?
create table table_13642023_2 (gtu_winning_team varchar, to_winning_team varchar, PRIMARY KEY (gtu_winning_team))
select gtu_winning_team from table_13642023_2 where to_winning_team = "#3 camaro"
What June 10-11 is is that corresponds to March 28, 1968?
create table table_25284864_3 (june_10_11 varchar, march_27_29 varchar, PRIMARY KEY (june_10_11))
select june_10_11 from table_25284864_3 where march_27_29 = "march 28, 1968"
Where is Dwain Chambers from
create table table_1231316_4 (location varchar, athlete varchar, PRIMARY KEY (location))
select location from table_1231316_4 where athlete = "dwain chambers"
What was the capacity for the Denver Broncos?
create table table_28884858_2 (capacity_percentage varchar, team varchar, PRIMARY KEY (capacity_percentage))
select capacity_percentage from table_28884858_2 where team = "denver broncos"
What year did the team who played at the Scottrade Center leave the city?
create table table_21564794_3 (left_st_louis integer, venue varchar, PRIMARY KEY (left_st_louis))
select min(left_st_louis) from table_21564794_3 where venue = "scottrade center"
what is the percentage for john kerry and dates administered is april 22, 2008?
create table table_16751596_5 (democrat varchar, dates_administered varchar, PRIMARY KEY (democrat))
select democrat as :_john_kerry from table_16751596_5 where dates_administered = "april 22, 2008"
How many countries spent $83.7 billion on international tourism in 2012?
create table table_29789_3 (_percentage_change varchar, international_tourism_expenditure_2012 varchar, PRIMARY KEY (_percentage_change))
select count(_percentage_change) from table_29789_3 where international_tourism_expenditure_2012 = "$83.7 billion"
what's the fcc info with call sign being w221aw
create table table_13998897_1 (fcc_info varchar, call_sign varchar, PRIMARY KEY (fcc_info))
select fcc_info from table_13998897_1 where call_sign = "w221aw"
How many election results in 2012 had a Cook PVI of D+16?
create table table_19283806_4 (cook_pvi varchar, PRIMARY KEY (cook_pvi))
select count(2012 as _election_results) from table_19283806_4 where cook_pvi = "d+16"
What is every value for Under-13 when value for Under-15 is Maria Elena Ubina?
create table table_26368963_2 (under_13 varchar, under_15 varchar, PRIMARY KEY (under_13))
select under_13 from table_26368963_2 where under_15 = "maria elena ubina"
List the states which have between 2 to 4 staffs living there.
create table addresses (state_province_county varchar, address_id varchar, PRIMARY KEY (state_province_county)); create table staff (staff_address_id varchar, PRIMARY KEY (staff_address_id))
select t1.state_province_county from addresses as t1 join staff as t2 on t1.address_id = t2.staff_address_id group by t1.state_province_county having count(*) between 2 and 4
Who is the director for the film title Eldra?
create table table_26385848_1 (director varchar, film_title varchar, PRIMARY KEY (director))
select director from table_26385848_1 where film_title = "eldra"
Namw the total number for domestic freight for international mail is larger than 1.0 with domestic mail for 260
create table table_1754531_4 (domestic_freight varchar, international_mail varchar, domestic_mail varchar, PRIMARY KEY (domestic_freight))
select count(domestic_freight) from table_1754531_4 where international_mail > 1.0 and domestic_mail = 260
find the id of tv channels that do not play any cartoon directed by Ben Jones.
create table tv_channel (id varchar, channel varchar, directed_by varchar, PRIMARY KEY (id)); create table cartoon (id varchar, channel varchar, directed_by varchar, PRIMARY KEY (id))
select id from tv_channel except select channel from cartoon where directed_by = 'ben jones'
What is the highest total for evm votes
create table table_24051013_3 (total_evm_votes integer, PRIMARY KEY (total_evm_votes))
select max(total_evm_votes) from table_24051013_3
When Peter Sagan won the youth classification and Thomas Rabou won the most corageous, who won the sprint classification?
create table table_25055040_22 (sprint_classification varchar, youth_classification varchar, most_courageous varchar, PRIMARY KEY (sprint_classification))
select sprint_classification from table_25055040_22 where youth_classification = "peter sagan" and most_courageous = "thomas rabou"
What change caused a change of staff in March 9, 1865?
create table table_2147588_3 (reason_for_change varchar, date_of_successors_formal_installation varchar, PRIMARY KEY (reason_for_change))
select reason_for_change from table_2147588_3 where date_of_successors_formal_installation = "march 9, 1865"
Who were the successors when the date the successors were installed was February 23, 1870?
create table table_2417345_3 (successor varchar, date_of_successors_formal_installation varchar, PRIMARY KEY (successor))
select successor from table_2417345_3 where date_of_successors_formal_installation = "february 23, 1870"
What were the result(s) of the election featuring grace napolitano as the incumbent?
create table table_1805191_6 (results varchar, incumbent varchar, PRIMARY KEY (results))
select results from table_1805191_6 where incumbent = "grace napolitano"
How many drivers had the fastest lap at Silverstone?
create table table_1137718_2 (fastest_lap varchar, location varchar, PRIMARY KEY (fastest_lap))
select count(fastest_lap) from table_1137718_2 where location = "silverstone"
What is Inaba's maximum score?
create table table_18595004_7 (inaba integer, PRIMARY KEY (inaba))
select max(inaba) from table_18595004_7
What is the English name of the country whose official native language is Dutch Papiamento?
create table table_1008653_1 (country___exonym__ varchar, official_or_native_language_s___alphabet_script_ varchar, PRIMARY KEY (country___exonym__))
select country___exonym__ from table_1008653_1 where official_or_native_language_s___alphabet_script_ = "dutch papiamento"
What was the nominated film title of শ্যামল ছায়া (shyamol chhaya)?
create table table_17156199_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_17156199_1 where original_title = "শ্যামল ছায়া (shyamol chhaya)"
How many viewers (in millions) watched the episode written by deidre shaw?
create table table_22951088_3 (us_viewers__in_millions_ varchar, written_by varchar, PRIMARY KEY (us_viewers__in_millions_))
select us_viewers__in_millions_ from table_22951088_3 where written_by = "deidre shaw"
How many drivers won the Italian Grand Prix?
create table table_1132600_3 (winning_driver varchar, grand_prix varchar, PRIMARY KEY (winning_driver))
select count(winning_driver) from table_1132600_3 where grand_prix = "italian grand_prix"
What is every school for the Adelaide location?
create table table_22043925_1 (school varchar, location varchar, PRIMARY KEY (school))
select school from table_22043925_1 where location = "adelaide"
Name all the candidates vying for Albert Bustamante's seat.
create table table_1341586_44 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select candidates from table_1341586_44 where incumbent = "albert bustamante"
Which mission number has alternate name 1962-f01
create table table_191323_2 (mission_no varchar, alt_name varchar, PRIMARY KEY (mission_no))
select mission_no from table_191323_2 where alt_name = "1962-f01"
How many opengl have the ironlake ( clarkdale ) code name?
create table table_25839957_5 (opengl varchar, code_name varchar, PRIMARY KEY (opengl))
select count(opengl) from table_25839957_5 where code_name = "ironlake ( clarkdale )"
Name the sepal width for i.virginica with petal length of 5.1
create table table_10477224_1 (sepal_width varchar, species varchar, petal_length varchar, PRIMARY KEY (sepal_width))
select sepal_width from table_10477224_1 where species = "i.virginica" and petal_length = "5.1"
Find the country of origin for the artist who made the least number of songs?
create table song (artist_name varchar, PRIMARY KEY (artist_name)); create table artist (country varchar, artist_name varchar, PRIMARY KEY (country))
select t1.country from artist as t1 join song as t2 on t1.artist_name = t2.artist_name group by t2.artist_name order by count(*) limit 1
What are all the reports where Paul Tracy had the fastest lap?
create table table_11056278_3 (report varchar, fastest_lap varchar, PRIMARY KEY (report))
select report from table_11056278_3 where fastest_lap = "paul tracy"
Show the names and details of all the staff members.
create table staff (name varchar, other_details varchar, PRIMARY KEY (name))
select name, other_details from staff
What is the current account balance for a GDP at current prices of 142.640?
create table table_30133_1 (current_account_balance__percent_of_gdp_ varchar, gdp_at_current_prices__usd_billions_ varchar, PRIMARY KEY (current_account_balance__percent_of_gdp_))
select current_account_balance__percent_of_gdp_ from table_30133_1 where gdp_at_current_prices__usd_billions_ = "142.640"
Who had the fastest lap when the winning driver was kristian ghedina?
create table table_26920192_5 (fastest_lap varchar, winning_driver varchar, PRIMARY KEY (fastest_lap))
select fastest_lap from table_26920192_5 where winning_driver = "kristian ghedina"
list in alphabetic order all course names and their instructors' names in year 2008.
create table course (title varchar, course_id varchar, PRIMARY KEY (title)); create table teaches (course_id varchar, id varchar, PRIMARY KEY (course_id)); create table instructor (name varchar, id varchar, PRIMARY KEY (name))
select t1.title, t3.name from course as t1 join teaches as t2 on t1.course_id = t2.course_id join instructor as t3 on t2.id = t3.id where year = 2008 order by t1.title
The province/city corregidor island (2) is where the lighthouse is located.
create table table_25597136_1 (province_city varchar, lighthouse varchar, PRIMARY KEY (province_city))
select province_city from table_25597136_1 where lighthouse = "corregidor island (2)"
Who was the winning driver when the grand Prix was at Belgian Grand Prix?
create table table_1137702_3 (winning_driver varchar, grand_prix varchar, PRIMARY KEY (winning_driver))
select winning_driver from table_1137702_3 where grand_prix = "belgian grand_prix"
When was the new manager of the team on 21st position appointed?
create table table_19359427_6 (date_of_appointment varchar, position_in_table varchar, PRIMARY KEY (date_of_appointment))
select date_of_appointment from table_19359427_6 where position_in_table = "21st"
What is every population density if name is Beaubassin East?
create table table_26321719_1 (population_density varchar, name varchar, PRIMARY KEY (population_density))
select population_density from table_26321719_1 where name = "beaubassin east"
What is the gender of the teacher with last name "Medhurst"?
create table teachers (gender varchar, last_name varchar, PRIMARY KEY (gender))
select gender from teachers where last_name = "medhurst"
For the episode(s) aired in the U.S. on 4 april 2008, what were the names?
create table table_10935205_1 (title varchar, us_airdate varchar, PRIMARY KEY (title))
select title from table_10935205_1 where us_airdate = "4 april 2008"
How many viewers did the episode written by Warren Lieberstein & Halsted Sullivan have?
create table table_17482534_1 (us_viewers__millions_ varchar, written_by varchar, PRIMARY KEY (us_viewers__millions_))
select us_viewers__millions_ from table_17482534_1 where written_by = "warren lieberstein & halsted sullivan"
Which club has the most members majoring in "600"?
create table student (stuid varchar, major varchar, PRIMARY KEY (stuid)); create table member_of_club (clubid varchar, stuid varchar, PRIMARY KEY (clubid)); create table club (clubname varchar, clubid varchar, PRIMARY KEY (clubname))
select t1.clubname from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t3.major = "600" group by t1.clubname order by count(*) desc limit 1
Who are the candidates in the race where Wright Patman is the incumbent?
create table table_1342315_42 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select candidates from table_1342315_42 where incumbent = "wright patman"
Who is the opponent in the match with final score 3–6, 4–6, 7–5, 4–6?
create table table_22839669_1 (opponent_in_the_final varchar, score_in_the_final varchar, PRIMARY KEY (opponent_in_the_final))
select opponent_in_the_final from table_22839669_1 where score_in_the_final = "3–6, 4–6, 7–5, 4–6"
Show the most common nationality for journalists.
create table journalist (nationality varchar, PRIMARY KEY (nationality))
select nationality from journalist group by nationality order by count(*) desc limit 1
Name the number of judges for dré steemans ann van elsen
create table table_16884579_1 (judges varchar, host_s_ varchar, PRIMARY KEY (judges))
select count(judges) from table_16884579_1 where host_s_ = "dré steemans ann van elsen"
How many stations own Bounce TV?
create table table_1404984_1 (station_ownership varchar, network varchar, PRIMARY KEY (station_ownership))
select count(station_ownership) from table_1404984_1 where network = "bounce tv"
what's the 3rd day with finbeingh position being 16th
create table table_1340667_3 (finish_position varchar, PRIMARY KEY (finish_position))
select 3 as rd_day from table_1340667_3 where finish_position = "16th"
When hit by sam at 38,500 feet just after bomb release was the cause of loss what is the mission/target?
create table table_18933037_3 (mission_target varchar, cause_of_loss varchar, PRIMARY KEY (mission_target))
select mission_target from table_18933037_3 where cause_of_loss = "hit by sam at 38,500 feet just after bomb release"
What is the maximum fc matches?
create table table_1176371_1 (fc_matches integer, PRIMARY KEY (fc_matches))
select max(fc_matches) from table_1176371_1
How many figures are given for the New Democratic for the polling range May 11–31, 2010?
create table table_24778847_2 (new_democratic varchar, date_of_polling varchar, PRIMARY KEY (new_democratic))
select count(new_democratic) from table_24778847_2 where date_of_polling = "may 11–31, 2010"
How many products are there?
create table products (id varchar, PRIMARY KEY (id))
select count(*) from products
Who wrote the episode directed by Jos Humphrey that had an original Canadian air date that was unknown and a United States original air date of August 27, 2011?
create table table_29087004_2 (written_by varchar, united_states_original_airdate varchar, directed_by varchar, canada_original_airdate varchar, PRIMARY KEY (written_by))
select written_by from table_29087004_2 where directed_by = "jos humphrey" and canada_original_airdate = "unknown" and united_states_original_airdate = "august 27, 2011"