question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
If the home is Atlético Tucumán, what is the name of the first leg?
create table table_17968229_1 (home__2nd_leg_ varchar, PRIMARY KEY (home__2nd_leg_))
select 1 as st_leg from table_17968229_1 where home__2nd_leg_ = "atlético tucumán"
Name the represents for los alcarrizos
create table table_26301697_2 (represents varchar, hometown varchar, PRIMARY KEY (represents))
select represents from table_26301697_2 where hometown = "los alcarrizos"
Find the names and number of works of all artists who have at least one English songs.
create table song (artist_name varchar, languages varchar, PRIMARY KEY (artist_name)); create table artist (artist_name varchar, PRIMARY KEY (artist_name))
select t1.artist_name, count(*) from artist as t1 join song as t2 on t1.artist_name = t2.artist_name where t2.languages = "english" group by t2.artist_name having count(*) >= 1
What is every weekly schedule in the country of Norway?
create table table_18821196_1 (weekly_schedule varchar, country varchar, PRIMARY KEY (weekly_schedule))
select weekly_schedule from table_18821196_1 where country = "norway"
Name the australian marquee for alessandro del piero
create table table_1301373_7 (australian_marquee varchar, international_marquee varchar, PRIMARY KEY (australian_marquee))
select australian_marquee from table_1301373_7 where international_marquee = "alessandro del piero"
Who did the high rebounds in the game where Douglas (28) did the high points?
create table table_18894744_6 (high_rebounds varchar, high_points varchar, PRIMARY KEY (high_rebounds))
select high_rebounds from table_18894744_6 where high_points = "douglas (28)"
What are all the distinct last names of all the engineers?
create table maintenance_engineers (last_name varchar, PRIMARY KEY (last_name))
select distinct last_name from maintenance_engineers
What was the rating in Brisbane the week it was 276000 in Melbourne?
create table table_24291077_8 (brisbane integer, melbourne varchar, PRIMARY KEY (brisbane))
select max(brisbane) from table_24291077_8 where melbourne = 276000
What couple had a vote percentage of 5.2%?
create table table_26375386_17 (couple varchar, vote_percentage varchar, PRIMARY KEY (couple))
select couple from table_26375386_17 where vote_percentage = "5.2%"
Name the class a for pearland
create table table_14601528_2 (class_a varchar, class_aaaaa varchar, pearland varchar, PRIMARY KEY (class_a))
select class_a from table_14601528_2 where class_aaaaa = pearland
Where was the tourney when Louisville won the regular season?
create table table_21269441_4 (tournament_venue__city_ varchar, regular_season_winner varchar, PRIMARY KEY (tournament_venue__city_))
select tournament_venue__city_ from table_21269441_4 where regular_season_winner = "louisville"
When 17.07 is the loa (metres) what is the type of yacht?
create table table_1858574_2 (yacht varchar, loa__metres_ varchar, PRIMARY KEY (yacht))
select yacht as type from table_1858574_2 where loa__metres_ = "17.07"
What is the indigenous mining production of the country that uses 3.4% of the world demand?
create table table_15624586_2 (indigenous_mining_production_2006 varchar, _percentage_of_world_demand varchar, PRIMARY KEY (indigenous_mining_production_2006))
select indigenous_mining_production_2006 from table_15624586_2 where _percentage_of_world_demand = "3.4%"
Name the label for traditional chinese 情歌沒有告訴你
create table table_1893815_1 (label varchar, chinese__traditional_ varchar, PRIMARY KEY (label))
select label from table_1893815_1 where chinese__traditional_ = "情歌沒有告訴你"
If -750m is 46.436, what is the name of the cyclist?
create table table_1912276_2 (name varchar, __750m varchar, PRIMARY KEY (name))
select name from table_1912276_2 where __750m = "46.436"
Name the fifth district for william womer
create table table_15442974_1 (fifth_district varchar, third_district varchar, PRIMARY KEY (fifth_district))
select fifth_district from table_15442974_1 where third_district = "william womer"
What is the death date of the archbishop who was ordained as bishop April 26, 1927?
create table table_1656555_1 (died varchar, ordained_bishop varchar, PRIMARY KEY (died))
select died from table_1656555_1 where ordained_bishop = "april 26, 1927"
Name the vessel type for dof subsea
create table table_26168687_5 (vessel_type varchar, vessel_operator varchar, PRIMARY KEY (vessel_type))
select vessel_type from table_26168687_5 where vessel_operator = "dof subsea"
If the high points were by Anthony Morrow (24), what was the team?
create table table_27700375_6 (team varchar, high_points varchar, PRIMARY KEY (team))
select team from table_27700375_6 where high_points = "anthony morrow (24)"
Which departments have M.Phil(Maths)?
create table table_17384764_1 (department varchar, qualification varchar, PRIMARY KEY (department))
select department from table_17384764_1 where qualification = "m.phil(maths)"
How many episodes were seen by 0.67 million US viewers on their original air dates?
create table table_13336122_7 (original_air_date varchar, us_viewers__million_ varchar, PRIMARY KEY (original_air_date))
select count(original_air_date) from table_13336122_7 where us_viewers__million_ = "0.67"
List the text of all tweets in the order of date.
create table tweets (text varchar, createdate varchar, PRIMARY KEY (text))
select text from tweets order by createdate
What is every Swedish name for residence city is Loviisa?
create table table_198175_2 (swedish_name varchar, residence_city varchar, PRIMARY KEY (swedish_name))
select swedish_name from table_198175_2 where residence_city = "loviisa"
Name the state class for iowa admitted to the union december 28, 1846
create table table_225205_3 (state__class_ varchar, reason_for_change varchar, PRIMARY KEY (state__class_))
select state__class_ from table_225205_3 where reason_for_change = "iowa admitted to the union december 28, 1846"
what are name and phone number of patients who had more than one appointment?
create table appointment (patient varchar, PRIMARY KEY (patient)); create table patient (ssn varchar, PRIMARY KEY (ssn))
select name, phone from appointment as t1 join patient as t2 on t1.patient = t2.ssn group by t1.patient having count(*) > 1
What are the average and minimum price (in Euro) of all products?
create table catalog_contents (price_in_euros integer, PRIMARY KEY (price_in_euros))
select avg(price_in_euros), min(price_in_euros) from catalog_contents
What are the census ranking(s) of maugerville?
create table table_176521_2 (census_ranking varchar, official_name varchar, PRIMARY KEY (census_ranking))
select census_ranking from table_176521_2 where official_name = "maugerville"
Who did the high rebounds in the game in which five players (3) did the high assists?
create table table_19778010_5 (high_rebounds varchar, high_assists varchar, PRIMARY KEY (high_rebounds))
select high_rebounds from table_19778010_5 where high_assists = "five players (3)"
The pink cytoplasm will have a nucleus of what color?
create table table_13570_1 (nucleus varchar, cytoplasm varchar, PRIMARY KEY (nucleus))
select nucleus from table_13570_1 where cytoplasm = "pink"
Which episode was directed by Jeff Woolnough and written by Christopher Ambrose?
create table table_26824484_1 (title varchar, directed_by varchar, written_by varchar, PRIMARY KEY (title))
select title from table_26824484_1 where directed_by = "jeff woolnough" and written_by = "christopher ambrose"
Which network broadcast the game when the Western Bulldogs played melbourne?
create table table_24919137_2 (broadcaster varchar, opposition varchar, PRIMARY KEY (broadcaster))
select broadcaster from table_24919137_2 where opposition = "melbourne"
What is the maximum number that a certain service is provided? List the service id, details and number.
create table services (service_id varchar, service_details varchar, PRIMARY KEY (service_id)); create table residents_services (service_id varchar, PRIMARY KEY (service_id))
select t1.service_id, t1.service_details, count(*) from services as t1 join residents_services as t2 on t1.service_id = t2.service_id group by t1.service_id order by count(*) desc limit 1
Who was the succesor that was formally installed on November 8, 1978?
create table table_1013168_2 (successor varchar, date_of_successors_formal_installation varchar, PRIMARY KEY (successor))
select successor from table_1013168_2 where date_of_successors_formal_installation = "november 8, 1978"
Who wrote the title that received 1.211 million total viewers?
create table table_12419515_4 (written_by varchar, total_viewers__in_millions_ varchar, PRIMARY KEY (written_by))
select written_by from table_12419515_4 where total_viewers__in_millions_ = "1.211"
Name the event 3 deadlift for hennie jordan
create table table_28540428_3 (event_3_deadlift varchar, name varchar, PRIMARY KEY (event_3_deadlift))
select event_3_deadlift from table_28540428_3 where name = "hennie jordan"
how many bosnian in cook islands is macedonian
create table table_24807774_1 (cook_islands varchar, bosnian varchar, PRIMARY KEY (cook_islands))
select count(cook_islands) from table_24807774_1 where bosnian = "macedonian"
What is the name of the jockey for Pink Gin?
create table table_28750142_1 (jockey varchar, name varchar, PRIMARY KEY (jockey))
select jockey from table_28750142_1 where name = "pink gin"
How many teams have a combination classification of Alejandro Valverde and a Points classification of Alessandro Petacchi?
create table table_15059783_1 (team_classification varchar, combination_classification varchar, points_classification varchar, PRIMARY KEY (team_classification))
select count(team_classification) from table_15059783_1 where combination_classification = "alejandro valverde" and points_classification = "alessandro petacchi"
How many titles are given for the episode directed by Joanna Kerns?
create table table_17356205_1 (title varchar, directed_by varchar, PRIMARY KEY (title))
select count(title) from table_17356205_1 where directed_by = "joanna kerns"
What is the number of jews where the rank is 1?
create table table_1131183_2 (number_of_jews__wjc_ varchar, rank__arda_ varchar, PRIMARY KEY (number_of_jews__wjc_))
select count(number_of_jews__wjc_) from table_1131183_2 where rank__arda_ = 1
How many different percentages of immigrants are there for the year of 2007 in the countries with 1.2% of the immigrants in the year of 2005?
create table table_23619212_1 (_percentage_of_all_immigrants_2007 varchar, _percentage_of_all_immigrants_2005 varchar, PRIMARY KEY (_percentage_of_all_immigrants_2007))
select count(_percentage_of_all_immigrants_2007) from table_23619212_1 where _percentage_of_all_immigrants_2005 = "1.2%"
Name the launch date for vladimir lyakhov , aleksandr pavlovich aleksandrov
create table table_245801_1 (launch_date varchar, crew varchar, PRIMARY KEY (launch_date))
select launch_date from table_245801_1 where crew = "vladimir lyakhov , aleksandr pavlovich aleksandrov"
What are the renting arrears tax ids related to the customer master index whose detail is not 'Schmidt, Kertzmann and Lubowitz'?
create table rent_arrears (council_tax_id varchar, cmi_cross_ref_id varchar, PRIMARY KEY (council_tax_id)); create table customer_master_index (master_customer_id varchar, cmi_details varchar, PRIMARY KEY (master_customer_id)); create table cmi_cross_references (cmi_cross_ref_id varchar, master_customer_id varchar, PRIMARY KEY (cmi_cross_ref_id))
select t1.council_tax_id from rent_arrears as t1 join cmi_cross_references as t2 on t1.cmi_cross_ref_id = t2.cmi_cross_ref_id join customer_master_index as t3 on t3.master_customer_id = t2.master_customer_id where t3.cmi_details <> 'schmidt , kertzmann and lubowitz'
When did the episode that had 3.69 million total viewers (Live and SD types combined) first air?
create table table_24222929_3 (original_airdate varchar, live varchar, sd_total_viewers varchar, PRIMARY KEY (original_airdate))
select original_airdate from table_24222929_3 where live + sd_total_viewers = "3.69 million"
What are the distinct secretary votes in the fall election cycle?
create table voting_record (secretary_vote varchar, election_cycle varchar, PRIMARY KEY (secretary_vote))
select distinct secretary_vote from voting_record where election_cycle = "fall"
How many different types of settlements does Nova Pazova fall into?
create table table_2562572_53 (type varchar, settlement varchar, PRIMARY KEY (type))
select count(type) from table_2562572_53 where settlement = "nova pazova"
What institution is represented by the lady saints?
create table table_2589963_1 (institution varchar, women varchar, PRIMARY KEY (institution))
select institution from table_2589963_1 where women = "lady saints"
How many primers annulus colors were there when the color of the bullet tip was white?
create table table_1036189_1 (primer_annulus_color varchar, bullet_tip_color varchar, PRIMARY KEY (primer_annulus_color))
select count(primer_annulus_color) from table_1036189_1 where bullet_tip_color = "white"
What is the name of the performance zhu xiaoming performed?
create table table_28180840_15 (act varchar, name_name_of_act varchar, PRIMARY KEY (act))
select act from table_28180840_15 where name_name_of_act = "zhu xiaoming"
How many years of nasl years did the accolades read "captained england to victory at the 1966 world cup"?
create table table_237757_9 (nasl_years varchar, accolades__pre_nasl_ varchar, PRIMARY KEY (nasl_years))
select count(nasl_years) from table_237757_9 where accolades__pre_nasl_ = "captained england to victory at the 1966 world cup"
Name the title for us viewers being 18.29
create table table_19501664_1 (title varchar, us_viewers__millions_ varchar, PRIMARY KEY (title))
select title from table_19501664_1 where us_viewers__millions_ = "18.29"
How many years did he have an average finish of 11.7?
create table table_2387790_2 (avg_start varchar, avg_finish varchar, PRIMARY KEY (avg_start))
select count(avg_start) from table_2387790_2 where avg_finish = "11.7"
What were all Yachts with a sail number of 6952?
create table table_14882588_3 (yacht varchar, sail_number varchar, PRIMARY KEY (yacht))
select yacht from table_14882588_3 where sail_number = "6952"
What kind of type is бока?
create table table_2562572_39 (type varchar, cyrillic_name_other_names varchar, PRIMARY KEY (type))
select type from table_2562572_39 where cyrillic_name_other_names = "бока"
Which department has the largest number of employees?
create table department (name varchar, departmentid varchar, PRIMARY KEY (name))
select name from department group by departmentid order by count(departmentid) desc limit 1
What is the date of successors formal installation when the reason for change is resigned december 4, 1819?
create table table_225099_3 (date_of_successors_formal_installation varchar, reason_for_change varchar, PRIMARY KEY (date_of_successors_formal_installation))
select date_of_successors_formal_installation from table_225099_3 where reason_for_change = "resigned december 4, 1819"
Find the first names of all customers that live in Brazil and have an invoice.
create table customer (firstname varchar, customerid varchar, country varchar, PRIMARY KEY (firstname)); create table invoice (customerid varchar, PRIMARY KEY (customerid))
select distinct t1.firstname from customer as t1 join invoice as t2 on t1.customerid = t2.customerid where t1.country = "brazil"
where was mazouz ghaouti executed?
create table table_2861364_1 (place_of_execution varchar, executed_person varchar, PRIMARY KEY (place_of_execution))
select place_of_execution from table_2861364_1 where executed_person = "mazouz ghaouti"
What week was themed disco?
create table table_21501511_1 (week__number varchar, theme varchar, PRIMARY KEY (week__number))
select week__number from table_21501511_1 where theme = "disco"
What was the original air date for the episode with 3.90 u.s. viewers (millions)?
create table table_12722302_2 (original_air_date varchar, us_viewers__million_ varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_12722302_2 where us_viewers__million_ = "3.90"
What is the rank of the company known for retailing?
create table table_21926985_2 (state_rank_by_revenue varchar, known_for varchar, PRIMARY KEY (state_rank_by_revenue))
select count(state_rank_by_revenue) from table_21926985_2 where known_for = "retailing"
What are the claim dates and settlement dates of all the settlements?
create table settlements (date_claim_made varchar, date_claim_settled varchar, PRIMARY KEY (date_claim_made))
select date_claim_made, date_claim_settled from settlements
What is every time(cet) for the name of Lillehammer 2?
create table table_21536557_2 (time__cet_ varchar, name varchar, PRIMARY KEY (time__cet_))
select time__cet_ from table_21536557_2 where name = "lillehammer 2"
Who had the high assists when the team was @ Minnesota?
create table table_17323092_7 (high_assists varchar, team varchar, PRIMARY KEY (high_assists))
select high_assists from table_17323092_7 where team = "@ minnesota"
Name the event for redouane bouchtouk
create table table_17417383_6 (event varchar, athlete varchar, PRIMARY KEY (event))
select event from table_17417383_6 where athlete = "redouane bouchtouk"
Which qualifying schools were in the Patriot conference?
create table table_16295365_1 (school varchar, conference varchar, PRIMARY KEY (school))
select school from table_16295365_1 where conference = "patriot"
List the name, origin and owner of each program.
create table program (name varchar, origin varchar, owner varchar, PRIMARY KEY (name))
select name, origin, owner from program
How many locations had a density (pop/km²) of 91.8 in the 2011 census?
create table table_1425958_1 (density__pop_km²_ varchar, PRIMARY KEY (density__pop_km²_))
select count(2011 as _census) from table_1425958_1 where density__pop_km²_ = "91.8"
what is the episode title on original air date of September 30, 2007?
create table table_23799417_2 (title varchar, original_airing varchar, PRIMARY KEY (title))
select title from table_23799417_2 where original_airing = "september 30, 2007"
What was the title of the episode where reg lacey (aka mr. b) played the villain?
create table table_23170118_2 (title varchar, villains varchar, PRIMARY KEY (title))
select title from table_23170118_2 where villains = "reg lacey (aka mr. b)"
Find the name of the program that is broadcast most frequently.
create table program (name varchar, program_id varchar, PRIMARY KEY (name)); create table broadcast (program_id varchar, PRIMARY KEY (program_id))
select t1.name from program as t1 join broadcast as t2 on t1.program_id = t2.program_id group by t2.program_id order by count(*) desc limit 1
What are the names listed in the family il-1f2?
create table table_29871617_1 (name varchar, family_name varchar, PRIMARY KEY (name))
select name from table_29871617_1 where family_name = "il-1f2"
What are the children per donor in the country where the allowed recipients are married or in cohabitation?
create table table_16175217_1 (children_per_donor varchar, allowed_recipients varchar, PRIMARY KEY (children_per_donor))
select children_per_donor from table_16175217_1 where allowed_recipients = "married or in cohabitation"
Name the uk air date for audience share in timeslot in 7.3%
create table table_19834691_4 (uk_air_date varchar, audience_share_in_timeslot varchar, PRIMARY KEY (uk_air_date))
select uk_air_date from table_19834691_4 where audience_share_in_timeslot = "7.3%"
Name the oberliga for where tsv 1860 munich and borussia neunkirchen
create table table_14242137_4 (oberliga_baden_württemberg varchar, oberliga_bayern varchar, oberliga_südwest varchar, PRIMARY KEY (oberliga_baden_württemberg))
select oberliga_baden_württemberg from table_14242137_4 where oberliga_bayern = "tsv 1860 munich" and oberliga_südwest = "borussia neunkirchen"
Name the segment c for paint rollers
create table table_15187735_8 (segment_c varchar, segment_b varchar, PRIMARY KEY (segment_c))
select segment_c from table_15187735_8 where segment_b = "paint rollers"
Who directed the episode that was watched by 2.67 million U.S. viewers?
create table table_29747178_3 (directed_by varchar, us_viewers__million_ varchar, PRIMARY KEY (directed_by))
select directed_by from table_29747178_3 where us_viewers__million_ = "2.67"
what's the percentage of votes with election date being 1981
create table table_13746866_2 (percentage_of_votes varchar, election_date varchar, PRIMARY KEY (percentage_of_votes))
select percentage_of_votes from table_13746866_2 where election_date = 1981
What is the name of department where has the largest number of professors with a Ph.D. degree?
create table professor (dept_code varchar, prof_high_degree varchar, PRIMARY KEY (dept_code)); create table department (dept_name varchar, dept_code varchar, PRIMARY KEY (dept_name))
select t2.dept_name, t1.dept_code from professor as t1 join department as t2 on t1.dept_code = t2.dept_code where t1.prof_high_degree = 'ph.d.' group by t1.dept_code order by count(*) desc limit 1
what are all the percent (1990) where state is united states
create table table_1182314_5 (percent__1990_ varchar, state varchar, PRIMARY KEY (percent__1990_))
select percent__1990_ from table_1182314_5 where state = "united states"
Name the vacator for reason for change died january 12, 1826
create table table_225102_4 (vacator varchar, reason_for_change varchar, PRIMARY KEY (vacator))
select vacator from table_225102_4 where reason_for_change = "died january 12, 1826"
Who is in group a when indiana is in group d?
create table table_15290638_1 (group_a varchar, group_d varchar, PRIMARY KEY (group_a))
select group_a from table_15290638_1 where group_d = "indiana"
Which driver won the i race of champions?
create table table_1140099_6 (winning_driver varchar, race_name varchar, PRIMARY KEY (winning_driver))
select winning_driver from table_1140099_6 where race_name = "i race of champions"
Name the 2011 gdp for 65 rank world
create table table_2248784_3 (rank_world varchar, PRIMARY KEY (rank_world))
select 2011 as _gdp__ppp__billions_of_usd from table_2248784_3 where rank_world = 65
timothy truman worked on what books
create table table_1420954_1 (book_title varchar, artist_s_ varchar, PRIMARY KEY (book_title))
select book_title from table_1420954_1 where artist_s_ = "timothy truman"
How many airlines do we have?
create table airlines (id varchar, PRIMARY KEY (id))
select count(*) from airlines
What kind of animal corresponds to the accession number xp_852505.1?
create table table_15417439_1 (common_name varchar, accession_number varchar, PRIMARY KEY (common_name))
select common_name from table_15417439_1 where accession_number = "xp_852505.1"
Count the number of likes for each student id.
create table likes (student_id varchar, PRIMARY KEY (student_id))
select student_id, count(*) from likes group by student_id
Which premiere had languages in danish?
create table table_11323532_2 (premiere varchar, languages varchar, PRIMARY KEY (premiere))
select premiere from table_11323532_2 where languages = "danish"
Where was the race where Cole Morgan had the fastest lap and Daniel Erickson had pole position?
create table table_25773116_2 (location varchar, pole_position varchar, fastest_lap varchar, PRIMARY KEY (location))
select location from table_25773116_2 where pole_position = "daniel erickson" and fastest_lap = "cole morgan"
Which of the airport names contains the word 'international'?
create table airport (name varchar, PRIMARY KEY (name))
select name from airport where name like '%international%'
How many companies named cenovus energy?
create table table_23950611_2 (rank__all__2013 varchar, name varchar, PRIMARY KEY (rank__all__2013))
select count(rank__all__2013) from table_23950611_2 where name = "cenovus energy"
What was the name of the episode that bill lawrence directed?
create table table_25548213_1 (title varchar, directed_by varchar, PRIMARY KEY (title))
select title from table_25548213_1 where directed_by = "bill lawrence"
Name the reason for change for jonathan jennings
create table table_225094_4 (reason_for_change varchar, successor varchar, PRIMARY KEY (reason_for_change))
select count(reason_for_change) from table_225094_4 where successor = "jonathan jennings"
how many acc football titles have been won by the institution nicknamed tar heels?
create table table_28744929_1 (acc_football_titles varchar, nickname varchar, PRIMARY KEY (acc_football_titles))
select acc_football_titles from table_28744929_1 where nickname = "tar heels"
Who was the vocal percussionist when stevie wonder was the original artist?
create table table_28715942_3 (vocal_percussionist varchar, original_artist varchar, PRIMARY KEY (vocal_percussionist))
select vocal_percussionist from table_28715942_3 where original_artist = "stevie wonder"
What is the 2007 population for Corazon de Jesus?
create table table_2144436_1 (population__2007_ varchar, barangay varchar, PRIMARY KEY (population__2007_))
select population__2007_ from table_2144436_1 where barangay = "corazon de jesus"
Name the languages for estonia
create table table_21133193_1 (languages varchar, member_countries varchar, PRIMARY KEY (languages))
select languages from table_21133193_1 where member_countries = "estonia"
What is the original air date for episode graeme clifford directed and lindsay sturman wrote?
create table table_28859177_3 (original_air_date varchar, directed_by varchar, written_by varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_28859177_3 where directed_by = "graeme clifford" and written_by = "lindsay sturman"
how many times was 27 missing kisses used in nomination
create table table_18069789_1 (e_ varchar, film_title_used_in_nomination varchar, year_ varchar, PRIMARY KEY (e_))
select count(year_)[e_] as __ceremony_ from table_18069789_1 where film_title_used_in_nomination = "27 missing kisses"