question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
What is every value of epoch if inclination is 90.063603?
create table table_206217_2 (epoch__utc_ varchar, inclination__deg___to_moon_equator_ varchar, PRIMARY KEY (epoch__utc_))
select epoch__utc_ from table_206217_2 where inclination__deg___to_moon_equator_ = "90.063603"
Who was the incumbent in the election of henry garland dupré (d) unopposed?
create table table_1342426_18 (incumbent varchar, candidates varchar, PRIMARY KEY (incumbent))
select incumbent from table_1342426_18 where candidates = "henry garland dupré (d) unopposed"
What is the result in the final versos Jennifer Capriati?
create table table_19047_2 (outcome varchar, opponent_in_the_final varchar, PRIMARY KEY (outcome))
select outcome from table_19047_2 where opponent_in_the_final = "jennifer capriati"
What is the language used most often in the songs?
create table song (languages varchar, PRIMARY KEY (languages))
select languages from song group by languages order by count(*) desc limit 1
Who was the successor for the reason for change being "died January 16, 1944?
create table table_2159537_3 (successor varchar, reason_for_change varchar, PRIMARY KEY (successor))
select successor from table_2159537_3 where reason_for_change = "died january 16, 1944"
What's the title of the episode written by David Simon?
create table table_13755296_1 (title varchar, teleplay_by varchar, PRIMARY KEY (title))
select title from table_13755296_1 where teleplay_by = "david simon"
If you are a pilot officer in the commonwealth then what will you called as in the US air force?
create table table_1015521_2 (us_air_force_equivalent varchar, commonwealth_equivalent varchar, PRIMARY KEY (us_air_force_equivalent))
select us_air_force_equivalent from table_1015521_2 where commonwealth_equivalent = "pilot officer"
What are the debut year for wrestlers born in Nara?
create table table_1557974_1 (debut varchar, birthplace varchar, PRIMARY KEY (debut))
select debut from table_1557974_1 where birthplace = "nara"
what's the operational period with camp  sajmište
create table table_10335_1 (operational varchar, camp varchar, PRIMARY KEY (operational))
select operational from table_10335_1 where camp = "sajmište"
Which chassis manufacturer is for fleet numbers range 2530-2558
create table table_1425948_1 (chassis_manufacturer varchar, fleet_numbers varchar, PRIMARY KEY (chassis_manufacturer))
select chassis_manufacturer from table_1425948_1 where fleet_numbers = "2530-2558"
How many songs have used the instrument "drums"?
create table instruments (instrument varchar, PRIMARY KEY (instrument))
select count(*) from instruments where instrument = "drums"
What is the most Champ Car wins for any driver with a USAC record of 2?
create table table_19524523_1 (champ_car_world_series__2004_2007_ integer, usac__1956_1995_ varchar, PRIMARY KEY (champ_car_world_series__2004_2007_))
select max(champ_car_world_series__2004_2007_) from table_19524523_1 where usac__1956_1995_ = 2
Find the total number of students and total number of instructors for each department.
create table department (dept_name varchar, PRIMARY KEY (dept_name)); create table student (id varchar, dept_name varchar, PRIMARY KEY (id)); create table instructor (dept_name varchar, id varchar, PRIMARY KEY (dept_name))
select count(distinct t2.id), count(distinct t3.id), t3.dept_name from department as t1 join student as t2 on t1.dept_name = t2.dept_name join instructor as t3 on t1.dept_name = t3.dept_name group by t3.dept_name
How many rooms are there?
create table rooms (id varchar, PRIMARY KEY (id))
select count(*) from rooms
Name the most male life expectancy for pakistan
create table table_2701625_1 (male_life_expectancy integer, country varchar, PRIMARY KEY (male_life_expectancy))
select max(male_life_expectancy) from table_2701625_1 where country = "pakistan"
Name the regular season record for standing 11th
create table table_20774360_2 (regular_season_record__w_l_ varchar, standing varchar, PRIMARY KEY (regular_season_record__w_l_))
select regular_season_record__w_l_ from table_20774360_2 where standing = "11th"
What was the polling percentage in Nov 2008 when it was 1.7% in Aug 2008?
create table table_23680576_2 (nov_2008 varchar, aug_2008 varchar, PRIMARY KEY (nov_2008))
select nov_2008 from table_23680576_2 where aug_2008 = "1.7%"
Which urban area has a 2011 population of 5010?
create table table_1940144_1 (urban_area varchar, population_2011 varchar, PRIMARY KEY (urban_area))
select urban_area from table_1940144_1 where population_2011 = 5010
Name the archive where run time 24:04
create table table_1776943_1 (archive varchar, run_time varchar, PRIMARY KEY (archive))
select archive from table_1776943_1 where run_time = "24:04"
What are the names and descriptions of the photos taken at the tourist attraction "film festival"?
create table tourist_attractions (tourist_attraction_id varchar, name varchar, PRIMARY KEY (tourist_attraction_id)); create table photos (name varchar, description varchar, tourist_attraction_id varchar, PRIMARY KEY (name))
select t1.name, t1.description from photos as t1 join tourist_attractions as t2 on t1.tourist_attraction_id = t2.tourist_attraction_id where t2.name = "film festival"
What is the party of the election in which Robert Bauman is the incumbent?
create table table_1341690_20 (party varchar, incumbent varchar, PRIMARY KEY (party))
select party from table_1341690_20 where incumbent = "robert bauman"
Show the names of people and the number of times they have been on the affirmative side of debates.
create table people (name varchar, people_id varchar, PRIMARY KEY (name)); create table debate_people (affirmative varchar, PRIMARY KEY (affirmative))
select t2.name, count(*) from debate_people as t1 join people as t2 on t1.affirmative = t2.people_id group by t2.name
what is the total number of deadline for completion where description is facebook becomes a publicly traded company
create table table_12078626_1 (deadline_for_completion varchar, description varchar, PRIMARY KEY (deadline_for_completion))
select count(deadline_for_completion) from table_12078626_1 where description = "facebook becomes a publicly traded company"
How many U.S. viewers, in millions, watched the episode that aired on November 13, 2007?
create table table_13301516_1 (us_viewers__millions_ varchar, original_air_date varchar, PRIMARY KEY (us_viewers__millions_))
select us_viewers__millions_ from table_13301516_1 where original_air_date = "november 13, 2007"
What is the document type description for document type named Film?
create table ref_document_types (document_type_description varchar, document_type_name varchar, PRIMARY KEY (document_type_description))
select document_type_description from ref_document_types where document_type_name = "film"
What unit of measurement for uruguay?
create table table_14098_1 (area__km²___per_sqmi_ varchar, country_or_territory_with_flag varchar, PRIMARY KEY (area__km²___per_sqmi_))
select area__km²___per_sqmi_ from table_14098_1 where country_or_territory_with_flag = "uruguay"
What driver(s) had over 65 stag wins?
create table table_23385853_19 (driver varchar, stage_wins varchar, PRIMARY KEY (driver))
select driver from table_23385853_19 where stage_wins = 65
who are all the winning constructors where fastest lap is riccardo patrese and location is interlagos
create table table_1137704_2 (winning_constructor varchar, fastest_lap varchar, location varchar, PRIMARY KEY (winning_constructor))
select winning_constructor from table_1137704_2 where fastest_lap = "riccardo patrese" and location = "interlagos"
Name the team for 19-34
create table table_23274514_7 (team varchar, record varchar, PRIMARY KEY (team))
select team from table_23274514_7 where record = "19-34"
What is williow canyon of Roberta Lockhart?
create table table_11340432_1 (willow_canyon varchar, dysart varchar, PRIMARY KEY (willow_canyon))
select willow_canyon from table_11340432_1 where dysart = "roberta lockhart"
What is the population in the city of Pomorskie?
create table table_11654169_1 (population_in_1000__1931_ varchar, voivodeship_separate_city varchar, PRIMARY KEY (population_in_1000__1931_))
select population_in_1000__1931_ from table_11654169_1 where voivodeship_separate_city = "pomorskie"
What is the special when the challenger is dominique bouchet?
create table table_23982399_12 (special varchar, challenger varchar, PRIMARY KEY (special))
select special from table_23982399_12 where challenger = "dominique bouchet"
When steve gomer is the director who is the writer?
create table table_14847258_1 (written_by varchar, directed_by varchar, PRIMARY KEY (written_by))
select written_by from table_14847258_1 where directed_by = "steve gomer"
What date did the episode air that had n/a for it's bbc three weekly ranking?
create table table_24399615_4 (airdate varchar, bbc_three_weekly_ranking varchar, PRIMARY KEY (airdate))
select airdate from table_24399615_4 where bbc_three_weekly_ranking = "n/a"
display the ID for those employees who did two or more jobs in the past.
create table job_history (employee_id varchar, PRIMARY KEY (employee_id))
select employee_id from job_history group by employee_id having count(*) >= 2
List the name of singers that do not have any song.
create table song (name varchar, singer_id varchar, PRIMARY KEY (name)); create table singer (name varchar, singer_id varchar, PRIMARY KEY (name))
select name from singer where not singer_id in (select singer_id from song)
What is the power of the 3.2i v8 32v?
create table table_1245350_1 (power varchar, quattroporte_iv varchar, PRIMARY KEY (power))
select power from table_1245350_1 where quattroporte_iv = "3.2i v8 32v"
How many distinct claim outcome codes are there?
create table claims_processing (claim_outcome_code varchar, PRIMARY KEY (claim_outcome_code))
select count(distinct claim_outcome_code) from claims_processing
Name the administrative county being area of 422372
create table table_14925084_1 (administrative_county varchar, area_1961__statute_acres_ varchar, PRIMARY KEY (administrative_county))
select administrative_county from table_14925084_1 where area_1961__statute_acres_ = 422372
What is the number of jurisdiction for 57.3 percent?
create table table_120778_1 (jurisdiction varchar, percent_for varchar, PRIMARY KEY (jurisdiction))
select count(jurisdiction) from table_120778_1 where percent_for = "57.3"
When the record was 2-29 who had the most assists?
create table table_22879323_6 (high_assists varchar, record varchar, PRIMARY KEY (high_assists))
select high_assists from table_22879323_6 where record = "2-29"
What station has a univision network affiliation?
create table table_12271718_1 (station varchar, network_affiliation varchar, PRIMARY KEY (station))
select station from table_12271718_1 where network_affiliation = "univision"
What are all the spectral types for star mismis24-# is 1sw?
create table table_10432351_1 (spectral_type varchar, star__pismis24__number_ varchar, PRIMARY KEY (spectral_type))
select spectral_type from table_10432351_1 where star__pismis24__number_ = "1sw"
Please show the titles of films and the types of market estimations.
create table film (title varchar, film_id varchar, PRIMARY KEY (title)); create table film_market_estimation (type varchar, film_id varchar, PRIMARY KEY (type))
select t1.title, t2.type from film as t1 join film_market_estimation as t2 on t1.film_id = t2.film_id
Find the total number of players.
create table players (id varchar, PRIMARY KEY (id))
select count(*) from players
What is the vessel type for vessel operator Jumbo shipping?
create table table_26168687_3 (vessel_type varchar, vessel_operator varchar, PRIMARY KEY (vessel_type))
select vessel_type from table_26168687_3 where vessel_operator = "jumbo shipping"
Which Country is the show aired on Fox?
create table table_14523485_9 (country varchar, channel varchar, PRIMARY KEY (country))
select country from table_14523485_9 where channel = "fox"
If the lees team is Clare Balding and Miranda Hart, what is the first broadcast total number?
create table table_23575917_7 (first_broadcast varchar, lees_team varchar, PRIMARY KEY (first_broadcast))
select count(first_broadcast) from table_23575917_7 where lees_team = "clare balding and miranda hart"
What was the name that had a starting price of 11/1 and a jockey named Garrett Cotter?
create table table_20668268_1 (name varchar, starting_price varchar, jockey varchar, PRIMARY KEY (name))
select name from table_20668268_1 where starting_price = "11/1" and jockey = "garrett cotter"
How many films were in hindi?
create table table_25926120_3 (name_of_film varchar, language varchar, PRIMARY KEY (name_of_film))
select count(name_of_film) from table_25926120_3 where language = "hindi"
How many episodes have been directed by David Duchovny?
create table table_13336122_3 (title varchar, directed_by varchar, PRIMARY KEY (title))
select count(title) from table_13336122_3 where directed_by = "david duchovny"
what is the racing club where copa libertadores 1997?
create table table_14310205_1 (copa_libertadores_1997 varchar, team varchar, PRIMARY KEY (copa_libertadores_1997))
select copa_libertadores_1997 from table_14310205_1 where team = "racing club"
What is the crystal structure for the formula yba 2 cu 3 o 7?
create table table_101336_1 (crystal_structure varchar, formula varchar, PRIMARY KEY (crystal_structure))
select crystal_structure from table_101336_1 where formula = "yba 2 cu 3 o 7"
What is every party A with a constituency of Tiruchendur?
create table table_22753439_1 (party varchar, constituency varchar, PRIMARY KEY (party))
select party as a from table_22753439_1 where constituency = "tiruchendur"
What the title of the song when the result is to the live shows?
create table table_29547777_1 (song_title varchar, result__placement_ varchar, PRIMARY KEY (song_title))
select song_title from table_29547777_1 where result__placement_ = "to the live shows"
What is the type of institution in Kent State University?
create table table_261946_3 (type varchar, location__all_in_ohio_ varchar, PRIMARY KEY (type))
select type from table_261946_3 where location__all_in_ohio_ = "kent"
What is the installation date for the Delta Chapter?
create table table_21821014_1 (installation_date varchar, chapter varchar, PRIMARY KEY (installation_date))
select installation_date from table_21821014_1 where chapter = "delta"
What is the segment C of the episode where segment B is Film Digitization?
create table table_15187735_19 (segment_c varchar, segment_b varchar, PRIMARY KEY (segment_c))
select segment_c from table_15187735_19 where segment_b = "film digitization"
What team's manager was replaced by Ercan Ertemçöz?
create table table_27091128_2 (team varchar, replaced_by varchar, PRIMARY KEY (team))
select team from table_27091128_2 where replaced_by = "ercan ertemçöz"
Was the result of the supercheap auto bathurst 1000 reported?
create table table_20884160_1 (report varchar, race_title varchar, PRIMARY KEY (report))
select report from table_20884160_1 where race_title = "supercheap auto bathurst 1000"
What is the colloquial translation of (s)he will sing?
create table table_23710609_2 (romanian__colloquial_ varchar, english varchar, PRIMARY KEY (romanian__colloquial_))
select romanian__colloquial_ from table_23710609_2 where english = "(s)he will sing"
Name the womens singles for raina tzvetkova petya nedelcheva
create table table_14903491_1 (womens_singles varchar, womens_doubles varchar, PRIMARY KEY (womens_singles))
select womens_singles from table_14903491_1 where womens_doubles = "raina tzvetkova petya nedelcheva"
When Richmond played as the away team, what was the ground?
create table table_29126507_1 (ground varchar, away_team varchar, PRIMARY KEY (ground))
select ground from table_29126507_1 where away_team = "richmond"
Find the number of members living in each address.
create table member (address varchar, PRIMARY KEY (address))
select count(*), address from member group by address
How many tv series had an adult rating of 1.2?
create table table_19188562_2 (tv_season varchar, rating__adults_18_49_ varchar, PRIMARY KEY (tv_season))
select count(tv_season) from table_19188562_2 where rating__adults_18_49_ = "1.2"
Find the name of the department that has the fewest members.
create table member_of (dno varchar, PRIMARY KEY (dno)); create table department (dname varchar, dno varchar, PRIMARY KEY (dname))
select t1.dname from department as t1 join member_of as t2 on t1.dno = t2.dno group by t2.dno order by count(*) limit 1
What is the name of the browser that became compatible with the accelerator 'CProxy' after year 1998 ?
create table accelerator_compatible_browser (browser_id varchar, accelerator_id varchar, compatible_since_year varchar, PRIMARY KEY (browser_id)); create table web_client_accelerator (id varchar, name varchar, PRIMARY KEY (id)); create table browser (name varchar, id varchar, PRIMARY KEY (name))
select t1.name from browser as t1 join accelerator_compatible_browser as t2 on t1.id = t2.browser_id join web_client_accelerator as t3 on t2.accelerator_id = t3.id where t3.name = 'cproxy' and t2.compatible_since_year > 1998
How many items are listed under gdp per capita under the nation of Burkina Faso?
create table table_2248991_2 (gdp_per_capita varchar, nation varchar, PRIMARY KEY (gdp_per_capita))
select count(gdp_per_capita) from table_2248991_2 where nation = "burkina faso"
How long is the orbital period for the planet that has a semimajor axis of 5.20 au?
create table table_10932739_2 (orbital_period varchar, semimajor_axis___au__ varchar, PRIMARY KEY (orbital_period))
select orbital_period from table_10932739_2 where semimajor_axis___au__ = "5.20"
Find the first name of students who are living in the Smith Hall.
create table student (fname varchar, stuid varchar, PRIMARY KEY (fname)); create table lives_in (stuid varchar, dormid varchar, PRIMARY KEY (stuid)); create table dorm (dormid varchar, dorm_name varchar, PRIMARY KEY (dormid))
select t1.fname from student as t1 join lives_in as t2 on t1.stuid = t2.stuid join dorm as t3 on t3.dormid = t2.dormid where t3.dorm_name = 'smith hall'
display the employee number and name( first name and last name ) for all employees who work in a department with any employee whose name contains a ’T’.
create table employees (employee_id varchar, first_name varchar, last_name varchar, department_id varchar, PRIMARY KEY (employee_id))
select employee_id, first_name, last_name from employees where department_id in (select department_id from employees where first_name like '%t%')
What aorist has bude in present tense?
create table table_27298240_26 (aorist varchar, present varchar, PRIMARY KEY (aorist))
select aorist from table_27298240_26 where present = "bude"
What playoff result happened during the season in which they finished 1st, southern?
create table table_12002388_1 (playoffs varchar, reg_season varchar, PRIMARY KEY (playoffs))
select playoffs from table_12002388_1 where reg_season = "1st, southern"
How many years was he car number 92?
create table table_181892_4 (speed_rank varchar, car_number varchar, PRIMARY KEY (speed_rank))
select count(speed_rank) from table_181892_4 where car_number = 92
When 4.5 is the rating (18-49) what is the air date?
create table table_28980706_4 (first_air_date varchar, rating__18_49_ varchar, PRIMARY KEY (first_air_date))
select first_air_date from table_28980706_4 where rating__18_49_ = "4.5"
What is the russian title of the ugly swans?
create table table_207795_1 (russian_title varchar, english_title varchar, PRIMARY KEY (russian_title))
select russian_title from table_207795_1 where english_title = "the ugly swans"
What was Barreto's song choice when the theme was samba?
create table table_27614571_1 (song_choice varchar, theme varchar, PRIMARY KEY (song_choice))
select song_choice from table_27614571_1 where theme = "samba"
Find the name of each user and number of tweets tweeted by each of them.
create table tweets (uid varchar, PRIMARY KEY (uid)); create table user_profiles (name varchar, uid varchar, PRIMARY KEY (name))
select t1.name, count(*) from user_profiles as t1 join tweets as t2 on t1.uid = t2.uid group by t2.uid
How many termini are there that have "east west" listed in their direction section, "none" listed in their junction section, and have a route name of "sh 202"?
create table table_11336756_6 (termini varchar, route_name varchar, direction varchar, junctions varchar, PRIMARY KEY (termini))
select count(termini) from table_11336756_6 where direction = "east west" and junctions = "none" and route_name = "sh 202"
Silvio Santos is the presenter in what country?
create table table_20780285_1 (country_region varchar, presenters varchar, PRIMARY KEY (country_region))
select country_region from table_20780285_1 where presenters = "silvio santos"
Show the apartment type codes and apartment numbers in the buildings managed by "Kyle".
create table apartment_buildings (building_id varchar, building_manager varchar, PRIMARY KEY (building_id)); create table apartments (apt_type_code varchar, apt_number varchar, building_id varchar, PRIMARY KEY (apt_type_code))
select t2.apt_type_code, t2.apt_number from apartment_buildings as t1 join apartments as t2 on t1.building_id = t2.building_id where t1.building_manager = "kyle"
What was the reason for change to the successor that was seated on December 13, 1880?
create table table_2417395_4 (reason_for_change varchar, date_successor_seated varchar, PRIMARY KEY (reason_for_change))
select reason_for_change from table_2417395_4 where date_successor_seated = "december 13, 1880"
If the spectral type is g1v, what is the total distance amount?
create table table_1820752_1 (distance___ly__ varchar, spectral_type varchar, PRIMARY KEY (distance___ly__))
select count(distance___ly__) from table_1820752_1 where spectral_type = "g1v"
What is the status of incumbent Charles Stenholm?
create table table_1341568_44 (status varchar, incumbent varchar, PRIMARY KEY (status))
select status from table_1341568_44 where incumbent = "charles stenholm"
Who is the director of movie Avatar?
create table movie (director varchar, title varchar, PRIMARY KEY (director))
select director from movie where title = 'avatar'
Leeds City Council is the local authority for what type of location?
create table table_2273738_1 (type varchar, local_authority varchar, PRIMARY KEY (type))
select type from table_2273738_1 where local_authority = "leeds city council"
Name the ptor-austronesian for father
create table table_15568886_14 (proto_austronesian varchar, kinship varchar, PRIMARY KEY (proto_austronesian))
select proto_austronesian from table_15568886_14 where kinship = "father"
what is the name of the episode whose premiere was in march 2, 1997?
create table table_2226817_12 (title varchar, original_air_date varchar, PRIMARY KEY (title))
select title from table_2226817_12 where original_air_date = "march 2, 1997"
How many caps figures are there for Norwich City, Coventry City?
create table table_28286776_52 (cap_s_ varchar, club_s_ varchar, PRIMARY KEY (cap_s_))
select count(cap_s_) from table_28286776_52 where club_s_ = "norwich city, coventry city"
When 8.9% is the electricity reduction percentage what is the £ saved?
create table table_29538735_1 (£_saved varchar, _percentage_electricity_reduction varchar, PRIMARY KEY (£_saved))
select £_saved from table_29538735_1 where _percentage_electricity_reduction = "8.9%"
How many provinces are named Wellington?
create table table_275023_1 (formed_date varchar, province varchar, PRIMARY KEY (formed_date))
select count(formed_date) from table_275023_1 where province = "wellington"
Which team has a match played of 10 4?
create table table_21824695_8 (team varchar, match_played varchar, PRIMARY KEY (team))
select team from table_21824695_8 where match_played = "10 4"
What is the Record at School of Tom O'Brien's team?
create table table_28744929_2 (record_at_school varchar, head_coach varchar, PRIMARY KEY (record_at_school))
select record_at_school from table_28744929_2 where head_coach = "tom o'brien"
What are all sail numbers for the yacht Yendys?
create table table_14882588_3 (sail_number varchar, yacht varchar, PRIMARY KEY (sail_number))
select sail_number from table_14882588_3 where yacht = "yendys"
What episode number is presented by Ben Okri ?
create table table_15211468_3 (episode_no varchar, presenter varchar, PRIMARY KEY (episode_no))
select episode_no from table_15211468_3 where presenter = "ben okri"
How many million viewers watched the episode with a run time of 25:22?
create table table_2108684_1 (viewers__in_millions_ varchar, run_time varchar, PRIMARY KEY (viewers__in_millions_))
select viewers__in_millions_ from table_2108684_1 where run_time = "25:22"
List the types of competition that have at most five competitions of that type.
create table competition (competition_type varchar, PRIMARY KEY (competition_type))
select competition_type from competition group by competition_type having count(*) <= 5
How many opponents were there with the record of 3-2-2?
create table table_23308178_4 (opponent varchar, record varchar, PRIMARY KEY (opponent))
select count(opponent) from table_23308178_4 where record = "3-2-2"
What user had a max demand charge of 1,100 and a unit/time range of h-2: off-peak (22:30-05:30)?
create table table_25479607_3 (user varchar, max_demand_charge___rs__kva_ varchar, unit__kwh__time_range varchar, PRIMARY KEY (user))
select user from table_25479607_3 where max_demand_charge___rs__kva_ = "1,100" and unit__kwh__time_range = "h-2: off-peak (22:30-05:30)"
for the ben williams name what was the previous club
create table table_27998152_1 (previous_club varchar, name varchar, PRIMARY KEY (previous_club))
select previous_club from table_27998152_1 where name = "ben williams"