Chinastark/bird_dataset huggingface dataset:
Database: simpson_episodes
Question: How many episodes have more than 1000 votes?
Evidence: more than 1000 votes refers to votes > 1000
SQL: SELECT COUNT(episode_id) FROM Episode WHERE votes > 1000;
Database: simpson_episodes
Question: How many persons were born in New York, USA?
Evidence: "New York" is the birth_place; 'USA' is the birth_region
SQL: SELECT COUNT(name) FROM Person WHERE birth_place = 'New York City' AND birth_country = 'USA';
Database: simpson_episodes
Question: List the name of all awards along with the award category, nominated by Marc Wilmore.
Evidence: "Marc Wilmore" is the name of person
SQL: SELECT award_id, award_category FROM Award WHERE person = 'Marc Wilmore';
Database: simpson_episodes
Question: How many crew have their own nickname? List their full name along with the nickname.
Evidence: crew refers to Person; full name refers to name; have nickname refers to nickname IS NOT NULL
SQL: SELECT COUNT(name) FROM Person WHERE nickname IS NOT NULL;
Database: simpson_episodes
Question: Find the average height for each person.
Evidence: average high = Divide(Sum(height_meters), Count(name))
SQL: SELECT AVG(height_meters) FROM Person;
Database: simpson_episodes
Question: Calculate the difference between the highest votes for episode and the lowest votes for episode.
Evidence: highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))
SQL: SELECT MAX(votes) - MIN(votes) FROM Vote;
Database: simpson_episodes
Question: List the name character awarded for the Outstanding Voice-Over Performance award in 2009.
Evidence: in 2009 refers to year = 2009
SQL: SELECT T2.character FROM Award AS T1 INNER JOIN Character_Award AS T2 ON T1.award_id = T2.award_id WHERE T1.year = 2009 AND T1.award = 'Outstanding Voice-Over Performance';
Database: simpson_episodes
Question: Among the person nominated for the Comedy Series Award in 2009, how many of them were born in California?
Evidence: nominated refers to result = 'Nominee'; born in California refers to birth_place = 'California'; in 2009 refers to year = 2009
SQL: SELECT COUNT(*) FROM Person AS T1 INNER JOIN Award AS T2 ON T1.name = T2.person WHERE T2.year = 2009 AND T2.award = 'Comedy Series' AND T1.birth_region = 'California';
Database: simpson_episodes
Question: What is the title of episode that won the Best International TV Series Award in 2017?
Evidence: won refers to result = 'Winner'; in 2017 refers to year = 2017
SQL: 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) = '2017' AND T1.award = 'Best International TV Series' AND T1.result = 'Winner';
Database: simpson_episodes
Question: List the name of persons who were not included in the credit for the 'How the Test Was Won' episode.
Evidence: "How the Test Was Won" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person
SQL: SELECT T2.person FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'How the Test Was Won' AND T2.credited = 'false';
Database: simpson_episodes
Question: What is the title of episode that has a keyword of 'riot' and 'cake'?
Evidence: "riot" and "cake" are both keyword
SQL: SELECT DISTINCT T1.title FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T2.keyword IN ('riot', 'cake');
Database: simpson_episodes
Question: Which episode has the most vote for 10 stars rating?
Evidence: 10 stars rating refers to stars = 10; most vote refers to Max(votes)
SQL: SELECT T1.title FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T2.stars = 10 ORDER BY T1.votes DESC LIMIT 1;
Database: simpson_episodes
Question: Name all the person who involved in the making of simpson 20s episode that aired between October to November.
Evidence: aired between October to November refers to strftime('%m', air_date) between '10' and '11';
SQL: SELECT DISTINCT T2.person FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE SUBSTR(T1.air_date, 6, 2) BETWEEN '10' AND '11';
Database: simpson_episodes
Question: State the name of director for the 'Treehouse of Horror XIX' episode.
Evidence: "Treehouse of Horror XIX" is the title of episode; 'director' is the role of person; name refers to person
SQL: SELECT T2.person FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Treehouse of Horror XIX' AND T2.role = 'director';
Database: simpson_episodes
Question: Based on the credits, state how many roles were played in the 5th episode of simpson 20.
Evidence: 5th episode refers to episode = 5
SQL: SELECT COUNT(DISTINCT T2.role) FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T1.episode = 5;
Database: simpson_episodes
Question: List all the keyword for 'Take My Life, Please' episode.
Evidence: "Take My Life,Please" is the title of episode
SQL: 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';
Database: simpson_episodes
Question: Among the episode that get more than 950 votes, how many of the episodes were nominated for the 'Outstanding Voice-Over Performance Award in 2009'? Find the percentage of the episodes.
Evidence: more than 950 votes refers to votes > 950; in 2009 refers to year = 2009; number of episode = Count(episode_id); nominated refers to result = 'Nominee'; percentage = Divide(Count(award = 'Outstanding Voice-Over Performance'), Count(episode_id)) * 100
SQL: SELECT CAST(SUM(CASE WHEN T1.award = 'Outstanding Voice-Over Performance' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.episode_id) FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T2.votes > 950 AND T1.year = 2009;
Database: simpson_episodes
Question: What is the ratio between the 5 stars votes for 'No Loan Again, Naturally' episode and 'Coming to Homerica' episode?
Evidence: 5 stars votes refers to stars = 5 ; 'No Loan Again, Naturally' and 'Coming to Homerica' are both the title of episode;  ratio = Divide (votes where title = 'No Loan Again, Naturally', votes where title = 'Coming to Homerica')
SQL: SELECT CAST(SUM(CASE WHEN T1.title = 'No Loan Again, Naturally' THEN T1.votes ELSE 0 END) AS REAL) / SUM(CASE WHEN T1.title = 'Coming to Homerica' THEN T1.votes ELSE 0 END) AS ratio FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T2.stars = 5;
Database: simpson_episodes
Question: How many times was Ian Maxtone-Graham nominated for an award in Writers Guild of America, USA?
Evidence: "Ian Maxtone-Graham" is the person; nominated refers to result = 'Nominee'; 'Writers Guild of America, USA' is the organization
SQL: SELECT COUNT(award_id) FROM Award WHERE person = 'Ian Maxtone-Graham' AND organization = 'Writers Guild of America, USA' AND result = 'Nominee';
Database: simpson_episodes
Question: What is the name of the person that has the highest number of nominated award but didn't win?
Evidence: nominated refers to result = 'Nominee'; highest number of nominated award refers to Max(Count(person))
SQL: SELECT person FROM Award WHERE result = 'Nominee' GROUP BY person ORDER BY COUNT(person) DESC LIMIT 1;
Database: simpson_episodes
Question: What is the title of the episode that received the lowest rating?
Evidence: lowest rating refers to Min(rating)
SQL: SELECT title FROM Episode ORDER BY rating LIMIT 1;
Database: simpson_episodes
Question: What year did the Simpsons receive its first ever award for Favorite Animated Comedy in People's Choice Award?
Evidence: "Favorite Animated Comedy" is the award; 'People's Choice Award' is the award_category; received award refers to result = 'Winner'; first ever award refers to Min(year)
SQL: SELECT year FROM Award WHERE result = 'Winner' AND award = 'Favorite Animated Comedy' ORDER BY year DESC LIMIT 1;
Database: simpson_episodes
Question: How many episodes was Dell Hake not included in the credit list?
Evidence: "Dell Hake" is the person; not included in the credit list refers to credited = ''
SQL: SELECT COUNT(*) FROM Credit WHERE person = 'Dell Hake' AND credited = 'false';
Database: simpson_episodes
Question: How old was the awardee when he/she won the first-ever award for Outstanding Voice-Over Performance in Primetime Emmy Awards?
Evidence: "Outstanding Voice-Over Performance" is the award; 'Primetime Emmy Awards' is the organization; awardee refers to result = 'Winner'; first ever award refers to Min(year); age at the time of awarded refers to Subtract(year, SUBSTR(birthdate, 0, 5))
SQL: 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';
Database: simpson_episodes
Question: What character did Dan Castellaneta play that won him an award for Outstanding Voice-Over Performance in 2009 in the Primetime Emmy Awards?
Evidence: "Dan Castellaneta" is the person; won refers to result = 'Winner'; 'Outstanding Voice-Over Performance' is the award; 'Primetime Emmy Awards' is the organization; in 2009 refers to year = 2009
SQL: 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;
Database: simpson_episodes
Question: Among the episodes aired on April of 2009, how many episodes won an award?
Evidence: aired on refers to air_date, April refers to SUBSTR(air_date, 6, 2) = '04'; 2009 refers to SUBSTR (air_date, 0, 5) = '2009'
SQL: 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%';
Database: simpson_episodes
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?
Evidence: won refers to result = 'Winner'; 'Best Voice-Over Performance' is the award; ' Online Film & Television Association' is the organization; in 2009 refers to year = 2009
SQL: 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;
Database: simpson_episodes
Question: How many 10 star votes did the top 4 episodes with the highest rating received?
Evidence: 10 stars votes refers to stars = 10; highest rating refers to Max(rating); number of votes refers to SUM(votes)
SQL: 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;
Database: simpson_episodes
Question: In "No Loan Again, Naturally", how many stars received votes of no more than 50?
Evidence: "No Loan Again, Naturally" is the title of episode; votes of no more than 50 refers to votes < 50; number of stars refers to SUM(stars)
SQL: 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;
Database: simpson_episodes
Question: How many award winners are from the USA?
Evidence: award winner refers to result = 'Winner'; 'USA' is the birth_country
SQL: 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';
Database: simpson_episodes
Question: In Season 20 Episode 11, how many times was Doofus included in the credit list?
Evidence: in Season 20 Episode 11 refers to episode_id = 'S20-E11'; 'Doofus' is the nickname of person; include in credit list refers to credited = 'true'
SQL: 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';
Database: simpson_episodes
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.
Evidence: won refers to result = 'Winner'; first award refers to Min(year)
SQL: 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;
Database: simpson_episodes
Question: In "Sex, Pies and Idiot Scrapes", how many percentage of votes did the 9 star score has?
Evidence: "Sex, Pies and Idiot Scrapes" is the title of episode; 9 star score refers to stars = 9; percentage refers to percent
SQL: 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;
Database: simpson_episodes
Question: List the award name and persons who won the award in 2009.
Evidence: won the award refers to result = 'Winner'; in 2009 refers to year = 2009
SQL: SELECT award, person FROM Award WHERE result = 'Winner' AND SUBSTR(year, 1, 4) = '2009';
Database: simpson_episodes
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.
Evidence: "Los Angeles" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8
SQL: SELECT name, birthdate FROM Person WHERE birth_place = 'Los Angeles' AND height_meters >= 1.8;
Database: simpson_episodes
Question: Provide the episode number, title and rating of which were aired in October, 2008.
Evidence: episode number refers to episode; aired in refers to air_date; October refers to Substr(air_date, 6, 2) = '10': 2008 refers to Substr(air_date, 0, 5) = '2008'
SQL: SELECT episode, title, rating FROM Episode WHERE SUBSTR(air_date, 1, 7) LIKE '2008-10%';
Database: simpson_episodes
Question: Write down the award ID, award name and winner for character named "Homer simpson 20".
Evidence: "Homer simpson 20" is the character; "Winner" is the result; award name refers to award
SQL: 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';
Database: simpson_episodes
Question: List down the award name, result, credit category and credited status of the "Billy Kimball".
Evidence: "Billy Kimball" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa
SQL: 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';
Database: simpson_episodes
Question: Name the person, award, organization, result and credited status of the assistant director in S20-E13.
Evidence: "assistant director" is the role of person; 'S20-E13' is the episode_id; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa
SQL: 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';
Database: simpson_episodes
Question: Describe the birth country, height and person name who were not included in credit list with category of casting.
Evidence: height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'
SQL: 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';
Database: simpson_episodes
Question: List the nominee, keywords and episode ID of the title "The Good, the Sad and the Drugly".
Evidence: nominee refers to result = 'Nominee'
SQL: 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';
Database: simpson_episodes
Question: What is the voting numbers and percentage of the best rating scale of the episode which had keyword of "arab stereotype"?
Evidence: best rating scale refers to stars = 10
SQL: 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;
Database: simpson_episodes
Question: For the episode who won the award held by Jupiter Award, describe award name, aired date and rating of that episode.
Evidence: held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'
SQL: 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';
Database: simpson_episodes
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.
Evidence: star classification of worst refers to stars = 1; most number of votes refers to MAX(votes)
SQL: 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;
Database: simpson_episodes
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.
Evidence: excellent rating refers to 7 < = rating < = 10; aired in 2008 refers to SUBSTRACT(air_date, 0, 5) = '2008'; who were nominated refers to result = 'Nominee'
SQL: 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';
Database: simpson_episodes
Question: Describe the award title, person and character name of the award ID 326.
SQL: 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;
Database: simpson_episodes
Question: Describe name, birth country, role in episode and age in 2022 of the oldest crew member..
Evidence: age in 2022 refers to SUBTRACT(2022, substr(birthdate, 0, 5)); oldest refers to MIN(birthdate)
SQL: 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;
Database: simpson_episodes
Question: Provide the number of credits, category, role and birthplace of the crew member who was born in North Korea.
Evidence: number of credits refers to credited; born in North Korea refers to birth_country = 'North Korea'
SQL: 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';
Database: simpson_episodes
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.
Evidence: in 2010 refers to year = 2010; winning rate refers to DIVIDE(COUNT(result = 'winner'), COUNT(*));
SQL: 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.episode_id WHERE SUBSTR(T1.year, 1, 4) = '2010' ) AS T3 INNER JOIN Award AS T4 INNER JOIN Episode AS T5 ON T4.episode_id = T5.episode_id WHERE T4.year = 2010 AND T4.result = 'Winner';
Database: simpson_episodes
Question: Name the title of the episode that received the highest star score and the highest number of votes.
Evidence: received the highest star score refers to MAX(stars); the highest number of votes refers to MAX(votes)
SQL: 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;
Database: simpson_episodes
Question: What is the total number of awards won by The simpson 20s: Season 20?
Evidence: total number of awards refers to COUNT(award); awards won refers to result = 'Winner';
SQL: SELECT COUNT(award_id) FROM Award WHERE result = 'Winner';
Database: simpson_episodes
Question: Name the title of the episode that was nominated for Emmy's Outstanding Animated Program 21 times.
Evidence: nominated for refers to result = 'Nominee'; Outstanding Animated Program refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)'; Emmy's refers to organization = 'Primetime Emmy Awards'; 21 times refers to COUNT(episode_id) = 21;
SQL: 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;
Database: simpson_episodes
Question: What is the average number of stars assigned to The simpson 20s: S20-E12? What is the said episode all about?
Evidence: average number of stars refers to AVG(stars); simpson 20s: S20-E12 refers to episode_id = 'S20-E12'; episode all about refers to summary
SQL: 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';
Database: simpson_episodes
Question: Name the performer who won Emmy Award for Outstanding Voice-Over Performance by playing Homer simpson 20.
Evidence: Outstanding Voice-Over Performance refers to award = 'Outstanding Voice-Over Performance'; who won refers to result = 'Winner'; Emmy refers to organization = 'Primetime Emmy Awards'; playing Homer simpson 20 refers to character = 'Homer simpson 20'
SQL: 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';
Database: simpson_episodes
Question: What is the birth name of Al Jean and his role in creating The simpson 20s: Season 20?
SQL: 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';
Database: simpson_episodes
Question: How many nominations have Billy Kimball received in 2010 for The simpson 20s: Season 20?
Evidence: in 2010 refers to year = 2010; nominations refers to result = 'Nominee'
SQL: SELECT COUNT(award_id) FROM Award WHERE person = 'Billy Kimball' AND SUBSTR(year, 1, 4) = '2010' AND result = 'Nominee';
Database: simpson_episodes
Question: List all keywords associated with the episode 'Take My Life, Please'.
Evidence: episode 'Take My Life, Please' refers to title =   'Take My Life, Please'
SQL: 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';
Database: simpson_episodes
Question: Indicate the name and category of the most recent award received by the show.
Evidence: most recent refers to MAX(year); received refers to result = 'Winner'; name of award refers to award; category refers to award_category
SQL: SELECT award, award_category FROM Award WHERE result = 'Winner' ORDER BY year DESC LIMIT 1;
Database: simpson_episodes
Question: What is The simpson 20s: Season 20 average awards winning rate?
Evidence: average awards winning rate refers to DIVIDE(SUM(result = 'winner'), COUNT(award));
SQL: SELECT CAST(SUM(CASE WHEN result = 'Winner' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(award) AS rate FROM Award;