context
stringlengths 11
9.12k
| question
stringlengths 0
1.06k
| SQL
stringlengths 2
4.44k
| source
stringclasses 28
values |
---|---|---|---|
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Among the episodes with excellent rating which were aired in 2008, describe the title, episode's image, award name and person who were nominated. | 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'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Describe the award title, person and character name of the award ID 326. | 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; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Describe name, birth country, role in episode and age in 2022 of the oldest crew member.. | 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; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Provide the number of credits, category, role and birthplace of the crew member who was born in North Korea. | 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'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Find the winning rate of award in 2010. Describe the winner name, award name, episode title and role of the winner in that episode. | 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'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Name the title of the episode that received the highest star score and the highest number of votes. | 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; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | What is the total number of awards won by The simpson 20s: Season 20? | SELECT COUNT(award_id) FROM Award WHERE result = 'Winner'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Name the title of the episode that was nominated for Emmy's Outstanding Animated Program 21 times. | 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; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | What is the average number of stars assigned to The simpson 20s: S20-E12? What is the said episode all about? | 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'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Name the performer who won Emmy Award for Outstanding Voice-Over Performance by playing Homer simpson 20. | 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'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | What is the birth name of Al Jean and his role in creating The simpson 20s: Season 20? | 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'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | How many nominations have Billy Kimball received in 2010 for The simpson 20s: Season 20? | SELECT COUNT(award_id) FROM Award WHERE person = 'Billy Kimball' AND SUBSTR(year, 1, 4) = '2010' AND result = 'Nominee'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | List all keywords associated with the episode 'Take My Life, Please'. | 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'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Indicate the name and category of the most recent award received by the show. | SELECT award, award_category FROM Award WHERE result = 'Winner' ORDER BY year DESC LIMIT 1; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | What is The simpson 20s: Season 20 average awards winning rate? | SELECT CAST(SUM(CASE WHEN result = 'Winner' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(award) AS rate FROM Award; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | How many episodes were aired between October and November 2008? | SELECT COUNT(episode_id) FROM Episode WHERE air_date LIKE '2008-10%' OR air_date LIKE '2008-11%'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Among episodes aired in 2009, which episode has received the worst response based on the rating. | SELECT episode_id FROM Episode WHERE air_date LIKE '2009%' ORDER BY rating LIMIT 1; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | List the categories for which Bonita Pietila was given credit and her role in creating the episodes. | SELECT DISTINCT category, role FROM Credit WHERE person = 'Bonita Pietila'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Who from The simpson 20s: Season 20 cast and crew was born in October 29, 1957 in Chicago, Illinois? | SELECT name FROM Person WHERE birthdate = '1957-10-29' AND birth_place = 'Chicago' AND birth_region = 'Illinois'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Who produced The simpson 20s: Season 20? | SELECT DISTINCT person FROM Credit WHERE role = 'producer'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | 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. | 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; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Which episode of The simpson 20s: Season 20 has received the most nominations? Indicate the title. | 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; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Please indicate the birthplace of the crew which name is Dan Castellaneta. | SELECT birth_place FROM Person WHERE name = 'Dan Castellaneta'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | How many crews were born in the USA? | SELECT COUNT(name) FROM Person WHERE birth_country = 'USA'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Please list the name of crew that were born before 1970. | SELECT name FROM Person WHERE SUBSTR(birthdate, 1, 4) < '1970'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Name of the crew that were born in California, USA between 1958 and 1969. | SELECT name FROM Person WHERE SUBSTR(birthdate, 1, 4) = '1958' AND birth_place = 'California' AND birth_country = 'USA'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Which episode ids are rated 5 stars and have more than 100 votes? | SELECT episode_id FROM Vote WHERE stars = 5 AND votes > 100; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Please indicate the keywords of the title "Double, Double, Boy in Trouble". | 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'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Among episodes from 10 to 20, which episode has more than 200 votes? | 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; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Please indicate the keywords of the episode that won the Primetime Emmy Award category. | 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'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Who is the recipient of the Primetime Emmy Award with the most votes? | 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; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Which episode id did award Outstanding Animated Program (For Programming Less Than One Hour) with an episode star score of 10? | 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; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | 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". | 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'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Please indicate which writer has an episode star score greater than 5 in 2009. | 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; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | How many WGA Award (TV) award recipients were born in the USA from 2009 to 2010? | 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; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Which episode did the composer win for Outstanding Music Composition for a Series (Original Dramatic Score) with more than 200 votes? | 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; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | The person named Al Jean achieved the Primetime Emmy Award category in 2009, which episode did AI Jean achieve? | 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'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | How much more votes for episode 1 than for episode 5? | 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; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | What award did the character Homer simpson 20 achieve in 2009? | 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'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | 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. | 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 (For Programming Less Than One Hour)'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | 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. | 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'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Please list two people who are the nominees for the "Outstanding Voice-Over Performance" award for season 20. | SELECT person FROM Award WHERE result = 'Nominee' AND award = 'Outstanding Voice-Over Performance' AND episode_id LIKE 'S20%' LIMIT 2; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | How many executive producers are the nominees for the award of "Outstanding Animated Program (For Programming Less Than One Hour)"? | SELECT COUNT(*) FROM Award WHERE role = 'executive producer' AND result = 'Nominee' AND award = 'Outstanding Animated Program (For Programming Less Than One Hour)'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | In the crew, who was born in 1962 in California? | SELECT name FROM Person WHERE SUBSTR(birthdate, 1, 4) = '1962' AND birth_region = 'California'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | How many of the crew members who are taller than 1.70m were born in Canada? | SELECT COUNT(name) FROM Person WHERE height_meters > 1.70 AND birth_country = 'Canada'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | How many people were considered as prospective recipients of the "Animation" award? | SELECT COUNT(*) FROM Award WHERE award = 'Animation' AND result = 'Nominee'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Please list any three episodes that have an excellent rating. | SELECT title FROM Episode WHERE rating BETWEEN 7 AND 10 LIMIT 3; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | What are the top five most popular episodes? | SELECT episode_id FROM Episode ORDER BY votes DESC LIMIT 5; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Please list the three episodes with the highest number of votes for the worst star rating. | 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; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | What was the character that Dan Castellaneta did the voice over for and was awarded? | 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'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Please list all of the episodes that aired in 2008 that have the highest number of votes for the maximum star rating. | 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; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | What are the keywords of the episode "Take My Life, Please"? | 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'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Please provide any two episodes' names that have the same keyword of "1930s to 2020s". | 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; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | In 2010, which episode did Joel H. Cohen win an award for? | 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'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | How many votes of 5-star did the episode "Lisa the Drama Queen" receive? | 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; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | What is the number of votes for 10-star for the episode that has the keyword "reference to the fantastic four"? | 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'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | What is the difference between the number of votes for 1-star vs. 10-star for the episode "The Burns and the Bees"? | 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'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | What are the keywords of the least popular episode? | 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; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | What are the episodes that have the average rating with more than 20 of 2-star votes? | 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; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Which episode has the largest number of votes? | SELECT episode FROM Episode WHERE votes = ( SELECT MAX(votes) FROM Episode ); | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Who is the oldest among all the casts and crews? | SELECT name FROM Person ORDER BY birthdate ASC LIMIT 1; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | What are the episodes Oscar Cervantes is credited with? | SELECT episode_id FROM Credit WHERE person = 'Oscar Cervantes' AND credited = 'true'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | What are the roles of the cast and crew from countries other than the USA? | SELECT T2.role FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.name = T2.person WHERE T1.birth_country != 'USA'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | How many 1 star ratings are there in the worst rated episode of the season? | 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; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Which character did the "Outstanding Voice-Over Performance" winner voice? | 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'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | What is the summary of the episode in which Emily Blunt is featured in? | SELECT T1.summary FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T2.person = 'Emily Blunt'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Who did "The Tiny Canadian" play as in the show? | SELECT T2.role FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.name = T2.person WHERE T1.nickname = 'The Tiny Canadian'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Among the episodes with an award nominee or winner, which has the highest percent of 5 star votes? | 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; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | What is the credited cast for the episode "In the Name of the Grandfather"? | 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'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | List all of the award winners' birth dates. | SELECT T1.birthdate FROM Person AS T1 INNER JOIN Award AS T2 ON T1.name = T2.person WHERE T2.result = 'Winner'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Who is the writer for the episode with the most 10 star votes? | 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; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | What award did the episode that aired on 11/30/2008 win? | 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'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | List all of the information about the music department's casts and crews. | 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'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | What are the keywords for episode 426 of the series? | 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; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | What are the titles of the episodes that have received more 7-star votes than the season average? | SELECT DISTINCT T1.episode_id FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T2.stars = 7 AND T2.votes > 0.7 * ( SELECT CAST(COUNT(votes) AS REAL) / COUNT(CASE WHEN stars = 7 THEN 1 ELSE 0 END) FROM Vote ); | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | What percentage of votes are from the nominated episodes? | SELECT CAST(SUM(CASE WHEN T1.result = 'Nominee' THEN T2.votes ELSE 0 END) AS REAL) * 100 / SUM(T2.votes) FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | List down person's name who has nickname. | SELECT name FROM Person WHERE nickname IS NOT NULL; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Which country has the tallest person in the crew? | SELECT birth_country FROM Person ORDER BY height_meters DESC LIMIT 1; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | What is the average height of people from USA? | SELECT AVG(height_meters) FROM Person WHERE birth_country = 'USA'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Calculate the percentage of people who were born after 1970 and from California. | SELECT CAST(SUM(CASE WHEN birth_region = 'California' AND SUBSTR(birthdate, 1, 4) > '1970' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(birthdate) FROM Person; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | How many people were not born in Connecticut, USA? | SELECT COUNT(name) FROM Person WHERE birth_region != 'Connecticut' AND birth_country != 'USA'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | List down the title of episode S20-E1, S20-E2 & S20-E3. | SELECT title FROM Episode WHERE episode_id IN ('S20-E1', 'S20-E2', 'S20-E3'); | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Write down the website address which stores the episode image of episode 5. | SELECT episode_image FROM Episode WHERE episode = 5; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | State the number of votes for episode with rating of 7 and above. | SELECT votes FROM Episode WHERE rating > 7; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | How many title's crew members are working from Casting Department? | SELECT COUNT(*) FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T2.category = 'Casting Department'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | How many additional timers were born in USA? | SELECT COUNT(*) FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.name = T2.person WHERE T2.role = 'additional timer' AND T1.birth_country = 'USA'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | How many people who were born after 1970 are animation executive producer? | SELECT COUNT(*) FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.name = T2.person WHERE STRFTIME(T1.birthdate) > '1970' AND T2.role = 'animation executive producer'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Write down the summary of episode whereby it has crew members that are not included in the credit list. | SELECT T1.summary FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T2.credited = 'false'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | List down the rating of episodes that were produced by Jason Bikowski. | SELECT T1.rating FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T2.person = 'Jason Bikowski'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | What is the average heights of crew members from Animation Department? | SELECT AVG(T1.height_meters) FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.name = T2.person WHERE T2.category = 'Animation Department'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | What is the character that won the award in Primetime Emmy 2009? | SELECT DISTINCT T2.character FROM Award AS T1 INNER JOIN Character_Award AS T2 ON T1.award_id = T2.award_id WHERE T1.award_category = 'Primetime Emmy' AND T1.year = 2009 AND T1.result = 'Winner'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | What are the characters that were nominated for Primetime Emmy Award from 2009 to 2010 but did not win? | SELECT T2.character FROM Award AS T1 INNER JOIN Character_Award AS T2 ON T1.award_id = T2.award_id WHERE T1.award_category = 'Primetime Emmy' AND T1.year BETWEEN 2009 AND 2010 AND T1.result != 'Winner'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Calculate the total votes of episodes that Adam Kuhlman had involved. | SELECT SUM(T1.votes) FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T2.person = 'Adam Kuhlman'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | List down the keyword and crew member's name for episode id S20-E1. | SELECT T1.keyword, T2.person FROM Keyword AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T1.episode_id = 'S20-E1'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | What is the keyword for episodes with stars score of 10 at 30% and above? | SELECT T1.keyword FROM Keyword AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id WHERE T2.stars = 10 AND T2.percent > 29; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | What is the percentage of star score 5 that was collected by title "Sex, Pies and Idiot Scrapes"? | SELECT CAST(SUM(CASE WHEN T2.stars = 5 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.title = 'Sex, Pies and Idiot Scrapes'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Please check is "limbo dancing" the keyword for title "Dangerous Curves"? | SELECT CASE WHEN T2.Keyword = 'limbo dancing' THEN 'Yes' ELSE 'No' END AS result FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Dangerous Curves'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Which title is the winner of Best International TV Series in 2017? | SELECT T2.title FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.award = 'Best International TV Series' AND SUBSTR(T1.year, 1, 4) = '2017'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | Write down all the keywords for winner of "WGA Award (TV)" award. | SELECT T2.keyword FROM Award AS T1 INNER JOIN Keyword AS T2 ON T2.episode_id = T1.episode_id WHERE T1.award_category = 'WGA Award (TV)'; | bird |
CREATE TABLE simpson_episodes (episode_id text, season integer, episode integer, number_in_series integer, title text, summary text, air_date text, episode_image text, rating real, votes integer, name text, birthdate text, birth_name text, birth_place text, birth_region text, birth_country text, height_meters real, nickname text, award_id integer, organization text, year integer, award_category text, award text, person text, role text, episode_id text, season text, song text, result text, award_id integer, character text, episode_id text, category text, person text, role text, credited text, episode_id text, keyword text, episode_id text, stars integer, votes integer, percent real) | State the birth place of co-executive producer for nominee of "Outstanding Animated Program (For Programming Less Than One Hour)" award. | SELECT T1.birth_place FROM Person AS T1 INNER JOIN Award AS T2 ON T1.name = T2.person WHERE T2.award = 'Outstanding Animated Program (For Programming Less Than One Hour)' AND T2.role = 'co-executive producer'; | bird |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.