db_id
stringlengths
4
31
SQL
stringlengths
18
1.45k
input_sequence
stringlengths
148
11k
question
stringlengths
16
325
simpson_episodes
select count(award_id) from award where person = 'ian maxtone-graham' and organization = 'writers guild of america, usa' and result = 'nominee';
Question: how many times was ian maxtone-graham nominated for an award in writers guild of america, usa? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_met...
how many times was ian maxtone-graham nominated for an award in writers guild of america, usa?
simpson_episodes
select person from award where result = 'nominee' group by person order by count(person) desc limit 1;
Question: what is the name of the person that has the highest number of nominated award but didn't win? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_mete...
what is the name of the person that has the highest number of nominated award but didn't win?
simpson_episodes
select title from episode order by rating limit 1;
Question: what is the title of the episode that received the lowest rating? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> award...
what is the title of the episode that received the lowest rating?
simpson_episodes
select year from award where result = 'winner' and award = 'favorite animated comedy' order by year desc limit 1;
Question: what year did the simpsons receive its first ever award for favorite animated comedy in people's choice award? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_cou...
what year did the simpsons receive its first ever award for favorite animated comedy in people's choice award?
simpson_episodes
select count(*) from credit where person = 'dell hake' and credited = 'false';
Question: how many episodes was dell hake not included in the credit list? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> award_...
how many episodes was dell hake not included in the credit list?
simpson_episodes
select t2.year - cast(substr(t1.birthdate, 1, 4) as int) as age from person as t1 inner join award as t2 on t1.name = t2.person where t2.award = 'outstanding voice-over performance' and t2.organization = 'primetime emmy awards' and t2.result = 'winner';
Question: how old was the awardee when he/she won the first-ever award for outstanding voice-over performance in primetime emmy awards? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_re...
how old was the awardee when he/she won the first-ever award for outstanding voice-over performance in primetime emmy awards?
simpson_episodes
select distinct t2.character from award as t1 inner join character_award as t2 on t1.award_id = t2.award_id where t1.person = 'dan castellaneta' and t1.award = 'outstanding voice-over performance' and t1.organization = 'primetime emmy awards' and t1.year = 2009;
Question: what character did dan castellaneta play that won him an award for outstanding voice-over performance in 2009 in the primetime emmy awards? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_p...
what character did dan castellaneta play that won him an award for outstanding voice-over performance in 2009 in the primetime emmy awards?
simpson_episodes
select count(t1.episode_id) from award as t1 inner join episode as t2 on t1.episode_id = t2.episode_id where substr(t1.year, 1, 4) = '2009' and t2.air_date like '2009-04%';
Question: among the episodes aired on april of 2009, how many episodes won an award? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award...
among the episodes aired on april of 2009, how many episodes won an award?
simpson_episodes
select t1.birth_place from person as t1 inner join award as t2 on t1.name = t2.person where t2.award = 'best voice-over performance' and t2.organization = 'online film & television association' and t2.year = 2009;
Question: what is the birth place of the cast or crew member who won the best voice-over performance in online film & television association in 2009? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_p...
what is the birth place of the cast or crew member who won the best voice-over performance in online film & television association in 2009?
simpson_episodes
select sum(t1.votes) from episode as t1 inner join vote as t2 on t2.episode_id = t1.episode_id where t2.stars = 10 order by t1.rating desc limit 4;
Question: how many 10 star votes did the top 4 episodes with the highest rating received? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. ...
how many 10 star votes did the top 4 episodes with the highest rating received?
simpson_episodes
select count(*) from episode as t1 inner join vote as t2 on t2.episode_id = t1.episode_id where t1.title = 'no loan again, naturally' and t2.votes < 50;
Question: in 'no loan again, naturally', how many stars received votes of no more than 50? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname....
in 'no loan again, naturally', how many stars received votes of no more than 50?
simpson_episodes
select count(*) from person as t1 inner join award as t2 on t1.name = t2.person where t1.birth_country = 'usa' and t2.result = 'winner';
Question: how many award winners are from the usa? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> award_id, organization, year, ...
how many award winners are from the usa?
simpson_episodes
select count(*) from person as t1 inner join credit as t2 on t1.name = t2.person where t1.nickname = 'doofus' and t2.credited = 'true' and t2.episode_id = 's20-e11';
Question: in season 20 episode 11, how many times was doofus included in the credit list? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. ...
in season 20 episode 11, how many times was doofus included in the credit list?
simpson_episodes
select t2.award, t1.name from person as t1 inner join award as t2 on t1.name = t2.person where t2.result = 'winner' order by t2.year limit 1;
Question: what was the first award won by the cast or crew member of the show? give the name of the person who won the said award. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region,...
what was the first award won by the cast or crew member of the show? give the name of the person who won the said award.
simpson_episodes
select t2.percent from episode as t1 inner join vote as t2 on t2.episode_id = t1.episode_id where t1.title = 'sex, pies and idiot scrapes' and t2.stars = 9;
Question: in 'sex, pies and idiot scrapes', how many percentage of votes did the 9 star score has? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, n...
in 'sex, pies and idiot scrapes', how many percentage of votes did the 9 star score has?
simpson_episodes
select award, person from award where result = 'winner' and substr(year, 1, 4) = '2009';
Question: list the award name and persons who won the award in 2009. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> award_id, or...
list the award name and persons who won the award in 2009.
simpson_episodes
select name, birthdate from person where birth_place = 'los angeles' and height_meters >= 1.8;
Question: among the casts who were born in los angeles, describe the name and birth date of who have 1.8 m and above in height. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, bi...
among the casts who were born in los angeles, describe the name and birth date of who have 1.8 m and above in height.
simpson_episodes
select episode, title, rating from episode where substr(air_date, 1, 7) like '2008-10%';
Question: provide the episode number, title and rating of which were aired in october, 2008. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nicknam...
provide the episode number, title and rating of which were aired in october, 2008.
simpson_episodes
select t1.award_id, t1.award, t1.person from award as t1 inner join character_award as t2 on t1.award_id = t2.award_id where t2.character = 'homer simpson' and t1.result = 'winner';
Question: write down the award id, award name and winner for character named 'homer simpson 20'. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nic...
write down the award id, award name and winner for character named 'homer simpson 20'.
simpson_episodes
select distinct t1.award, t1.result, t2.category, t2.credited from award as t1 inner join credit as t2 on t2.episode_id = t1.episode_id where t2.person = 'billy kimball';
Question: list down the award name, result, credit category and credited status of the 'billy kimball'. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_mete...
list down the award name, result, credit category and credited status of the 'billy kimball'.
simpson_episodes
select t1.person, t1.award, t1.organization, t1.result, t2.credited from award as t1 inner join credit as t2 on t2.episode_id = t1.episode_id where t2.episode_id = 's20-e13' and t2.role = 'assistant director';
Question: name the person, award, organization, result and credited status of the assistant director in s20-e13. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, he...
name the person, award, organization, result and credited status of the assistant director in s20-e13.
simpson_episodes
select t1.birth_country, t1.height_meters, t1.name from person as t1 inner join credit as t2 on t1.name = t2.person where t2.category = 'cast' and t2.credited = 'false';
Question: describe the birth country, height and person name who were not included in credit list with category of casting. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_...
describe the birth country, height and person name who were not included in credit list with category of casting.
simpson_episodes
select t3.person, t1.keyword, t1.episode_id from keyword as t1 inner join episode as t2 on t1.episode_id = t2.episode_id inner join award as t3 on t2.episode_id = t3.episode_id where t2.title = 'the good, the sad and the drugly' and t3.result = 'nominee';
Question: list the nominee, keywords and episode id of the title 'the good, the sad and the drugly'. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters,...
list the nominee, keywords and episode id of the title 'the good, the sad and the drugly'.
simpson_episodes
select t2.votes, t2.percent from keyword as t1 inner join vote as t2 on t1.episode_id = t2.episode_id where t1.keyword = 'arab stereotype' and t2.stars = 10;
Question: what is the voting numbers and percentage of the best rating scale of the episode which had keyword of 'arab stereotype'? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region...
what is the voting numbers and percentage of the best rating scale of the episode which had keyword of 'arab stereotype'?
simpson_episodes
select t1.award, t2.air_date, t2.rating from award as t1 inner join episode as t2 on t1.episode_id = t2.episode_id where t1.organization = 'jupiter award' and t1.result = 'winner';
Question: for the episode who won the award held by jupiter award, describe award name, aired date and rating of that episode. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, bir...
for the episode who won the award held by jupiter award, describe award name, aired date and rating of that episode.
simpson_episodes
select distinct t3.episode_id, t2.title, t1.keyword from keyword as t1 inner join episode as t2 on t1.episode_id = t2.episode_id inner join vote as t3 on t2.episode_id = t3.episode_id where t3.stars = 1 order by t3.votes desc limit 3;
Question: mention the episode id, title and any three keywords of the episode which get the most number of votes in star classification of worst. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place...
mention the episode id, title and any three keywords of the episode which get the most number of votes in star classification of worst.
simpson_episodes
select t2.title, t2.episode_image, t1.award, t1.person from award as t1 inner join episode as t2 on t1.episode_id = t2.episode_id where t2.rating between 7 and 10 and substr(t2.air_date, 1, 4) = '2008' and t1.result = 'nominee';
Question: among the episodes with excellent rating which were aired in 2008, describe the title, episode's image, award name and person who were nominated. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, b...
among the episodes with excellent rating which were aired in 2008, describe the title, episode's image, award name and person who were nominated.
simpson_episodes
select distinct t1.award, t1.person, t2.character from award as t1 inner join character_award as t2 on t1.award_id = t2.award_id where t2.award_id = 326;
Question: describe the award title, person and character name of the award id 326. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -...
describe the award title, person and character name of the award id 326.
simpson_episodes
select t1.name, t1.birth_place, t2.role, 2022 - cast(substr(t1.birthdate, 1, 4) as int) as age from person as t1 inner join credit as t2 on t1.name = t2.person where t1.birthdate is not null order by t1.birthdate limit 1;
Question: describe name, birth country, role in episode and age in 2022 of the oldest crew member.. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, ...
describe name, birth country, role in episode and age in 2022 of the oldest crew member..
simpson_episodes
select distinct t2.credited, t2.category, t2.role, t1.birth_place from person as t1 inner join credit as t2 on t1.name = t2.person where t1.birth_country = 'north korea';
Question: provide the number of credits, category, role and birthplace of the crew member who was born in north korea. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_count...
provide the number of credits, category, role and birthplace of the crew member who was born in north korea.
simpson_episodes
select t3.rate, t4.person, t4.award, t5.title, t4.role from ( select cast(sum(case when t1.result = 'winner' then 1 else 0 end) as real) / sum(case when t1.result in ('winner', 'nominee') then 1 else 0 end) as rate , t1.person, t1.award, t2.title, t1.role from award as t1 inner join episode as t2 on t1.episode_id = t2....
Question: find the winning rate of award in 2010. describe the winner name, award name, episode title and role of the winner in that episode. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, bi...
find the winning rate of award in 2010. describe the winner name, award name, episode title and role of the winner in that episode.
simpson_episodes
select t1.title from episode as t1 inner join vote as t2 on t2.episode_id = t1.episode_id order by t2.stars desc, t2.votes desc limit 1;
Question: name the title of the episode that received the highest star score and the highest number of votes. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, heigh...
name the title of the episode that received the highest star score and the highest number of votes.
simpson_episodes
select count(award_id) from award where result = 'winner';
Question: what is the total number of awards won by the simpson 20s: season 20? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> a...
what is the total number of awards won by the simpson 20s: season 20?
simpson_episodes
select t2.title from award as t1 inner join episode as t2 on t1.episode_id = t2.episode_id where t1.organization = 'primetime emmy awards' and t1.award = 'outstanding animated program (for programming less than one hour)' and t1.result = 'nominee' group by t1.episode_id having count(t1.episode_id) = 21;
Question: name the title of the episode that was nominated for emmy's outstanding animated program 21 times. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height...
name the title of the episode that was nominated for emmy's outstanding animated program 21 times.
simpson_episodes
select avg(t2.stars), t1.summary from episode as t1 inner join vote as t2 on t2.episode_id = t1.episode_id where t1.episode_id = 's20-e12';
Question: what is the average number of stars assigned to the simpson 20s: s20-e12? what is the said episode all about? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_coun...
what is the average number of stars assigned to the simpson 20s: s20-e12? what is the said episode all about?
simpson_episodes
select t1.person from award as t1 inner join character_award as t2 on t1.award_id = t2.award_id where t2.character = 'homer simpson 20' and t1.organization = 'primetime emmy awards' and t1.award = 'outstanding voice-over performance' and t1.result = 'winner';
Question: name the performer who won emmy award for outstanding voice-over performance by playing homer simpson 20. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country,...
name the performer who won emmy award for outstanding voice-over performance by playing homer simpson 20.
simpson_episodes
select distinct t1.birth_name, t2.role from person as t1 inner join credit as t2 on t1.name = t2.person where t1.name = 'al jean';
Question: what is the birth name of al jean and his role in creating the simpson 20s: season 20? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nic...
what is the birth name of al jean and his role in creating the simpson 20s: season 20?
simpson_episodes
select count(award_id) from award where person = 'billy kimball' and substr(year, 1, 4) = '2010' and result = 'nominee';
Question: how many nominations have billy kimball received in 2010 for the simpson 20s: season 20? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, n...
how many nominations have billy kimball received in 2010 for the simpson 20s: season 20?
simpson_episodes
select t2.keyword from episode as t1 inner join keyword as t2 on t1.episode_id = t2.episode_id where t1.title = 'take my life, please';
Question: list all keywords associated with the episode 'take my life, please'. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> a...
list all keywords associated with the episode 'take my life, please'.
simpson_episodes
select award, award_category from award where result = 'winner' order by year desc limit 1;
Question: indicate the name and category of the most recent award received by the show. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Aw...
indicate the name and category of the most recent award received by the show.
simpson_episodes
select cast(sum(case when result = 'winner' then 1 else 0 end) as real) * 100 / count(award) as rate from award;
Question: what is the simpson 20s: season 20 average awards winning rate? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> award_i...
what is the simpson 20s: season 20 average awards winning rate?
simpson_episodes
select count(episode_id) from episode where air_date like '2008-10%' or air_date like '2008-11%';
Question: how many episodes were aired between october and november 2008? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> award_i...
how many episodes were aired between october and november 2008?
simpson_episodes
select episode_id from episode where air_date like '2009%' order by rating limit 1;
Question: among episodes aired in 2009, which episode has received the worst response based on the rating. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_m...
among episodes aired in 2009, which episode has received the worst response based on the rating.
simpson_episodes
select distinct category, role from credit where person = 'bonita pietila';
Question: list the categories for which bonita pietila was given credit and her role in creating the episodes. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, heig...
list the categories for which bonita pietila was given credit and her role in creating the episodes.
simpson_episodes
select name from person where birthdate = '1957-10-29' and birth_place = 'chicago' and birth_region = 'illinois';
Question: who from the simpson 20s: season 20 cast and crew was born in october 29, 1957 in chicago, illinois? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, heig...
who from the simpson 20s: season 20 cast and crew was born in october 29, 1957 in chicago, illinois?
simpson_episodes
select distinct person from credit where role = 'producer';
Question: who produced the simpson 20s: season 20? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> award_id, organization, year, ...
who produced the simpson 20s: season 20?
simpson_episodes
select t1.year - t2.birthdate as agein2009, t2.name from award as t1 inner join person as t2 on t1.person = t2.name where t1.role = 'composer' and t1.organization = 'primetime emmy awards' and t1.award = 'outstanding music composition for a series (original dramatic score)' and t1.result = 'nominee' and t1.year = 2009;
Question: how old was composer of the show when he was nominated for emmy's outstanding music composition for a series in 2009. indicate his full name as well. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_nam...
how old was composer of the show when he was nominated for emmy's outstanding music composition for a series in 2009. indicate his full name as well.
simpson_episodes
select t2.title from award as t1 inner join episode as t2 on t1.episode_id = t2.episode_id group by t1.episode_id order by count(*) desc limit 1;
Question: which episode of the simpson 20s: season 20 has received the most nominations? indicate the title. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height...
which episode of the simpson 20s: season 20 has received the most nominations? indicate the title.
simpson_episodes
select birth_place from person where name = 'dan castellaneta';
Question: please indicate the birthplace of the crew which name is dan castellaneta. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award...
please indicate the birthplace of the crew which name is dan castellaneta.
simpson_episodes
select count(name) from person where birth_country = 'usa';
Question: how many crews were born in the usa? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> award_id, organization, year, awar...
how many crews were born in the usa?
simpson_episodes
select name from person where substr(birthdate, 1, 4) < '1970';
Question: please list the name of crew that were born before 1970. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> award_id, orga...
please list the name of crew that were born before 1970.
simpson_episodes
select name from person where substr(birthdate, 1, 4) = '1958' and birth_place = 'california' and birth_country = 'usa';
Question: name of the crew that were born in california, usa between 1958 and 1969. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award ...
name of the crew that were born in california, usa between 1958 and 1969.
simpson_episodes
select episode_id from vote where stars = 5 and votes > 100;
Question: which episode ids are rated 5 stars and have more than 100 votes? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> award...
which episode ids are rated 5 stars and have more than 100 votes?
simpson_episodes
select t2.keyword from episode as t1 inner join keyword as t2 on t1.episode_id = t2.episode_id where t1.title = 'double, double, boy in trouble';
Question: please indicate the keywords of the title 'double, double, boy in trouble'. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Awar...
please indicate the keywords of the title 'double, double, boy in trouble'.
simpson_episodes
select distinct t1.episode from episode as t1 inner join vote as t2 on t2.episode_id = t1.episode_id where t1.episode between 10 and 20 and t2.votes > 200;
Question: among episodes from 10 to 20, which episode has more than 200 votes? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> aw...
among episodes from 10 to 20, which episode has more than 200 votes?
simpson_episodes
select t2.keyword from award as t1 inner join keyword as t2 on t2.episode_id = t1.episode_id where t1.award_category = 'primetime emmy';
Question: please indicate the keywords of the episode that won the primetime emmy award category. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, ni...
please indicate the keywords of the episode that won the primetime emmy award category.
simpson_episodes
select t1.person from award as t1 inner join vote as t2 on t2.episode_id = t1.episode_id where t1.award_category = 'primetime emmy' order by t2.votes desc limit 1;
Question: who is the recipient of the primetime emmy award with the most votes? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> a...
who is the recipient of the primetime emmy award with the most votes?
simpson_episodes
select distinct t1.episode_id from award as t1 inner join vote as t2 on t2.episode_id = t1.episode_id where t1.award = 'outstanding animated program (for programming less than one hour)' and t2.stars = 10;
Question: which episode id did award outstanding animated program (for programming less than one hour) with an episode star score of 10? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_r...
which episode id did award outstanding animated program (for programming less than one hour) with an episode star score of 10?
simpson_episodes
select t1.person from award as t1 inner join episode as t2 on t1.episode_id = t2.episode_id where t1.role = 'director' and t1.award = 'outstanding animated program (for programming less than one hour)' and t2.title = 'no loan again, naturally';
Question: please give the name of the director who achieved the outstanding animated program (for programming less than one hour) award whose episode title is 'no loan again, naturally'. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person ->...
please give the name of the director who achieved the outstanding animated program (for programming less than one hour) award whose episode title is 'no loan again, naturally'.
simpson_episodes
select t1.person from award as t1 inner join episode as t2 on t1.episode_id = t2.episode_id where substr(t1.year, 1, 4) = '2009' and t1.role = 'writer' and t2.votes > 5;
Question: please indicate which writer has an episode star score greater than 5 in 2009. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. A...
please indicate which writer has an episode star score greater than 5 in 2009.
simpson_episodes
select count(*) from person as t1 inner join award as t2 on t1.name = t2.person where t2.award_category = 'wga award (tv)' and t1.birth_country = 'usa' and t2.year between 2009 and 2010;
Question: how many wga award (tv) award recipients were born in the usa from 2009 to 2010? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname....
how many wga award (tv) award recipients were born in the usa from 2009 to 2010?
simpson_episodes
select distinct t1.episode_id from award as t1 inner join vote as t2 on t2.episode_id = t1.episode_id where t1.role = 'composer' and t1.award = 'outstanding music composition for a series (original dramatic score)' and t2.votes > 200;
Question: which episode did the composer win for outstanding music composition for a series (original dramatic score) with more than 200 votes? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, ...
which episode did the composer win for outstanding music composition for a series (original dramatic score) with more than 200 votes?
simpson_episodes
select t2.episode_id from award as t1 inner join episode as t2 on t1.episode_id = t2.episode_id where substr(t1.year, 1, 4) = '2009' and t1.person = 'al jean' and t1.award_category = 'primetime emmy';
Question: the person named al jean achieved the primetime emmy award category in 2009, which episode did ai jean achieve? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_co...
the person named al jean achieved the primetime emmy award category in 2009, which episode did ai jean achieve?
simpson_episodes
select sum(case when t1.episode = 1 then t2.votes else 0 end) - sum(case when t1.episode = 5 then t2.votes else 0 end) as diff from episode as t1 inner join vote as t2 on t2.episode_id = t1.episode_id;
Question: how much more votes for episode 1 than for episode 5? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> award_id, organiz...
how much more votes for episode 1 than for episode 5?
simpson_episodes
select distinct t1.award from award as t1 inner join character_award as t2 on t1.award_id = t2.award_id where t1.year = 2009 and t2.character = 'homer simpson';
Question: what award did the character homer simpson 20 achieve in 2009? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> award_id...
what award did the character homer simpson 20 achieve in 2009?
simpson_episodes
select sum(case when t2.votes < 100 then 1 else 0 end) as num , cast(sum(case when t2.votes < 100 then 1 else 0 end) as real) * 100 / count(*) from award as t1 inner join vote as t2 on t1.episode_id = t2.episode_id inner join episode as t3 on t1.episode_id = t3.episode_id where t1.award = 'outstanding animated program ...
Question: how many episodes have won the award for outstanding animated program (programming under one hour) with less than 100 votes? calculate the percentage of episodes with less than 100 votes out of total episodes. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episod...
how many episodes have won the award for outstanding animated program (programming under one hour) with less than 100 votes? calculate the percentage of episodes with less than 100 votes out of total episodes.
simpson_episodes
select sum(case when t1.birth_country = 'usa' then 1 else 0 end) as num , cast(sum(case when t1.birth_country = 'usa' then 1 else 0 end) as real) * 100 / count(*) from person as t1 inner join award as t2 on t1.name = t2.person where t2.award_category = 'primetime emmy' and t2.person = 'dan castellaneta';
Question: how many recipients of the primetime emmy award category that were born in the usa? find the percentage of americans in the total number of the country. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_...
how many recipients of the primetime emmy award category that were born in the usa? find the percentage of americans in the total number of the country.
simpson_episodes
select person from award where result = 'nominee' and award = 'outstanding voice-over performance' and episode_id like 's20%' limit 2;
Question: please list two people who are the nominees for the 'outstanding voice-over performance' award for season 20. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_coun...
please list two people who are the nominees for the 'outstanding voice-over performance' award for season 20.
simpson_episodes
select count(*) from award where role = 'executive producer' and result = 'nominee' and award = 'outstanding animated program (for programming less than one hour)';
Question: how many executive producers are the nominees for the award of 'outstanding animated program (for programming less than one hour)'? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, bi...
how many executive producers are the nominees for the award of 'outstanding animated program (for programming less than one hour)'?
simpson_episodes
select name from person where substr(birthdate, 1, 4) = '1962' and birth_region = 'california';
Question: in the crew, who was born in 1962 in california? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> award_id, organization...
in the crew, who was born in 1962 in california?
simpson_episodes
select count(name) from person where height_meters > 1.70 and birth_country = 'canada';
Question: how many of the crew members who are taller than 1.70m were born in canada? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Awar...
how many of the crew members who are taller than 1.70m were born in canada?
simpson_episodes
select count(*) from award where award = 'animation' and result = 'nominee';
Question: how many people were considered as prospective recipients of the 'animation' award? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickna...
how many people were considered as prospective recipients of the 'animation' award?
simpson_episodes
select title from episode where rating between 7 and 10 limit 3;
Question: please list any three episodes that have an excellent rating. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> award_id,...
please list any three episodes that have an excellent rating.
simpson_episodes
select episode_id from episode order by votes desc limit 5;
Question: what are the top five most popular episodes? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> award_id, organization, ye...
what are the top five most popular episodes?
simpson_episodes
select t1.title from episode as t1 inner join vote as t2 on t2.episode_id = t1.episode_id where t2.stars = ( select min(stars) from vote ) order by t2.votes desc limit 3;
Question: please list the three episodes with the highest number of votes for the worst star rating. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters,...
please list the three episodes with the highest number of votes for the worst star rating.
simpson_episodes
select distinct t2.character from award as t1 inner join character_award as t2 on t1.award_id = t2.award_id where t1.award like '%voice-over%' and t1.person = 'dan castellaneta';
Question: what was the character that dan castellaneta did the voice over for and was awarded? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickn...
what was the character that dan castellaneta did the voice over for and was awarded?
simpson_episodes
select t1.episode_id from episode as t1 inner join vote as t2 on t2.episode_id = t1.episode_id where substr(t1.air_date, 1, 4) = '2008' order by t2.votes desc limit 1;
Question: please list all of the episodes that aired in 2008 that have the highest number of votes for the maximum star rating. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, bi...
please list all of the episodes that aired in 2008 that have the highest number of votes for the maximum star rating.
simpson_episodes
select t2.keyword from episode as t1 inner join keyword as t2 on t1.episode_id = t2.episode_id where t1.title = 'take my life, please';
Question: what are the keywords of the episode 'take my life, please'? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> award_id, ...
what are the keywords of the episode 'take my life, please'?
simpson_episodes
select t1.title from episode as t1 inner join keyword as t2 on t1.episode_id = t2.episode_id where t2.keyword = '1930s to 2020s' limit 2;
Question: please provide any two episodes' names that have the same keyword of '1930s to 2020s'. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nic...
please provide any two episodes' names that have the same keyword of '1930s to 2020s'.
simpson_episodes
select t2.title from award as t1 inner join episode as t2 on t1.episode_id = t2.episode_id where substr(t1.year, 1, 4) = '2010' and t1.person = 'joel h. cohen';
Question: in 2010, which episode did joel h. cohen win an award for? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> award_id, or...
in 2010, which episode did joel h. cohen win an award for?
simpson_episodes
select sum(t2.votes) from episode as t1 inner join vote as t2 on t2.episode_id = t1.episode_id where t1.title = 'lisa the drama queen' and t2.stars = 5;
Question: how many votes of 5-star did the episode 'lisa the drama queen' receive? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -...
how many votes of 5-star did the episode 'lisa the drama queen' receive?
simpson_episodes
select t2.votes from keyword as t1 inner join vote as t2 on t1.episode_id = t2.episode_id where t2.stars = 10 and t1.keyword = 'reference to the fantastic four';
Question: what is the number of votes for 10-star for the episode that has the keyword 'reference to the fantastic four'? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_co...
what is the number of votes for 10-star for the episode that has the keyword 'reference to the fantastic four'?
simpson_episodes
select sum(case when t2.stars = 10 then t2.votes else 0 end) - sum(case when t2.stars = 1 then t2.votes else 0 end) as difference from episode as t1 inner join vote as t2 on t2.episode_id = t1.episode_id where t1.title = 'the burns and the bees';
Question: what is the difference between the number of votes for 1-star vs. 10-star for the episode 'the burns and the bees'? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birt...
what is the difference between the number of votes for 1-star vs. 10-star for the episode 'the burns and the bees'?
simpson_episodes
select t2.keyword from episode as t1 inner join keyword as t2 on t1.episode_id = t2.episode_id order by t1.votes limit 1;
Question: what are the keywords of the least popular episode? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> award_id, organizat...
what are the keywords of the least popular episode?
simpson_episodes
select distinct t1.episode_id from episode as t1 inner join vote as t2 on t2.episode_id = t1.episode_id where t2.stars = 2 and t2.votes > 20 and t1.rating > 5.0 and t1.rating <= 7.0;
Question: what are the episodes that have the average rating with more than 20 of 2-star votes? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nick...
what are the episodes that have the average rating with more than 20 of 2-star votes?
simpson_episodes
select episode from episode where votes = ( select max(votes) from episode );
Question: which episode has the largest number of votes? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> award_id, organization, ...
which episode has the largest number of votes?
simpson_episodes
select name from person order by birthdate asc limit 1;
Question: who is the oldest among all the casts and crews? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> award_id, organization...
who is the oldest among all the casts and crews?
simpson_episodes
select episode_id from credit where person = 'oscar cervantes' and credited = 'true';
Question: what are the episodes oscar cervantes is credited with? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> award_id, organ...
what are the episodes oscar cervantes is credited with?
simpson_episodes
select t2.role from person as t1 inner join credit as t2 on t1.name = t2.person where t1.birth_country != 'usa';
Question: what are the roles of the cast and crew from countries other than the usa? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award...
what are the roles of the cast and crew from countries other than the usa?
simpson_episodes
select count(*) from episode as t1 inner join vote as t2 on t2.episode_id = t1.episode_id where t2.stars = 1 order by t1.rating limit 1;
Question: how many 1 star ratings are there in the worst rated episode of the season? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Awar...
how many 1 star ratings are there in the worst rated episode of the season?
simpson_episodes
select distinct t2.character from award as t1 inner join character_award as t2 on t1.award_id = t2.award_id where t1.award = 'outstanding voice-over performance' and t1.result = 'winner';
Question: which character did the 'outstanding voice-over performance' winner voice? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award...
which character did the 'outstanding voice-over performance' winner voice?
simpson_episodes
select t1.summary from episode as t1 inner join credit as t2 on t1.episode_id = t2.episode_id where t2.person = 'emily blunt';
Question: what is the summary of the episode in which emily blunt is featured in? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award ->...
what is the summary of the episode in which emily blunt is featured in?
simpson_episodes
select t2.role from person as t1 inner join credit as t2 on t1.name = t2.person where t1.nickname = 'the tiny canadian';
Question: who did 'the tiny canadian' play as in the show? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> award_id, organization...
who did 'the tiny canadian' play as in the show?
simpson_episodes
select t1.episode_id from award as t1 inner join vote as t2 on t2.episode_id = t1.episode_id where t2.stars = 5 order by t2.percent desc limit 1;
Question: among the episodes with an award nominee or winner, which has the highest percent of 5 star votes? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height...
among the episodes with an award nominee or winner, which has the highest percent of 5 star votes?
simpson_episodes
select distinct t2.person from episode as t1 inner join credit as t2 on t1.episode_id = t2.episode_id where t1.title = 'in the name of the grandfather' and t2.category = 'cast' and t2.credited = 'true';
Question: what is the credited cast for the episode 'in the name of the grandfather'? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Awar...
what is the credited cast for the episode 'in the name of the grandfather'?
simpson_episodes
select t1.birthdate from person as t1 inner join award as t2 on t1.name = t2.person where t2.result = 'winner';
Question: list all of the award winners' birth dates. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> award_id, organization, yea...
list all of the award winners' birth dates.
simpson_episodes
select t1.person from credit as t1 inner join vote as t2 on t1.episode_id = t2.episode_id where t1.role = 'writer' and t2.stars = 10 group by t1.person order by count(*) desc limit 1;
Question: who is the writer for the episode with the most 10 star votes? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> award_id...
who is the writer for the episode with the most 10 star votes?
simpson_episodes
select t1.award from award as t1 inner join episode as t2 on t1.episode_id = t2.episode_id where t1.result = 'winner' and t2.air_date = '2008-11-30';
Question: what award did the episode that aired on 11/30/2008 win? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> award_id, orga...
what award did the episode that aired on 11/30/2008 win?
simpson_episodes
select distinct person, name, birthdate, birth_name, birth_place , birth_region, birth_country, height_meters, nickname from person as t1 inner join credit as t2 on t1.name = t2.person where t2.category = 'music department';
Question: list all of the information about the music department's casts and crews. | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award ...
list all of the information about the music department's casts and crews.
simpson_episodes
select t2.keyword from episode as t1 inner join keyword as t2 on t1.episode_id = t2.episode_id where t1.number_in_series = 426;
Question: what are the keywords for episode 426 of the series? | Tables: Episode -> episode_id, season, episode, number_in_series, title, summary, air_date, episode_image, rating, votes. Person -> name, birthdate, birth_name, birth_place, birth_region, birth_country, height_meters, nickname. Award -> award_id, organiza...
what are the keywords for episode 426 of the series?