query
stringlengths
24
325
positive
stringlengths
1
580
negative_1
stringlengths
6
580
negative_2
stringlengths
1
576
negative_3
stringlengths
1
576
negative_4
stringlengths
1
580
negative_5
stringlengths
1
580
negative_6
stringlengths
1
580
negative_7
stringlengths
5
576
negative_8
stringlengths
1
576
negative_9
stringlengths
1
580
negative_10
stringlengths
1
580
List down the rating of episodes that were produced by Jason Bikowski.
produced by Jason Bikowski refers to person = 'Jason Bikowski'
additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'
worst rated episode refers to MIN(rating)
won refers to result = 'Winner'; first award refers to Min(year)
award won refers to result = 'Winner'
credited cast refers to category = 'Cast' and  credited = 'true'; episode "In the Name of the Grandfather" refers to title = 'In the Name of the Grandfather'
"The Tiny Canadian" refers to nickname = 'The Tiny Canadian'; play as in the show refers to role
"Primetime Emmy' is the award_category;  rating over 7 refers to rating > 7; nominated refers to result = 'Nominee'; percentage = Divide(Count(episode_id(award_category = 'Primetime Emmy')), Count (episode_id)) * 100
"Favorite Animated Comedy" is the award; 'People's Choice Award' is the award_category; received award refers to result = 'Winner'; first ever award refers to Min(year)
in 2009 refers to year = 2009
2 stars refers to stars = 2; 9 votes refers to votes = 9
Among the episodes which have star score less than 8, how many episodes were aired in 2009?
star score less than 8 refers to stars < 8; aired in 2009 refers to air_date LIKE '2009%'
more than 1000 votes refers to votes > 1000
won refers to result = 'Winner'; first award refers to Min(year)
5 stars refers to stars = 5; nominated refers to result = 'Nominee'; Prism Award refers to award_category = 'Prism Award'; on April 19 2009 refers to air_date = '2009-04-19'
oldest refers to Min(birthdate)
won refers to result = 'Winner'; in 2017 refers to year = 2017
average high = Divide(Sum(height_meters), Count(name))
star score of 10 refers to stars = 10
born in USA refers to birth_country = 'USA'; were nominated refers to result = 'Nominee'; 'Outstanding Animated Program (For Programming Less Than One Hour)' is the award; in 2009 refers to year = 2009
aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10
additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'
In 2010, which episode did Joel H. Cohen win an award for?
In 2010 refers to year = 2010
from Animation Department refers to category = 'Animation Department'; AVG(height_meters) where category = 'Animation Department'
star score less than 8 refers to stars < 8; aired in 2009 refers to air_date LIKE '2009%'
highest votes refers to max(votes); nominated refers to result = 'Nominee'
"The Tiny Canadian" refers to nickname = 'The Tiny Canadian'; play as in the show refers to role
"Marc Wilmore" is the name of person
born in the USA refers to birth_country = 'USA'
people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)
won refers to result = 'Winner'; in Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'; 2009 refers to year = 2009
won refers to result = 'Winner'; 'Best Voice-Over Performance' is the award; ' Online Film & Television Association' is the organization; in 2009 refers to year = 2009
between October and November 2008 refers to air_date BETWEEN '2008-10-01' and '2008-11-30'
How many crew have their own nickname? List their full name along with the nickname.
crew refers to Person; full name refers to name; have nickname refers to nickname IS NOT NULL
star score of 10 refers to stars = 10
worst rated episode refers to MIN(rating)
people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)
winners refers to result = 'Winner'; in OFTA Television Award and WGA Award (TV) refers to award = 'OFTA Television Award' and award = 'WGA Award (TV)'
taller than 1.70m refers to height_meters > 1.70; born in Canada refers to birth_country = 'Canada'
aired in 2008 refers to air_date LIKE '2008%'; votes ranges from 920 to 950 refers to votes BETWEEN 920 AND 950
between October and November 2008 refers to air_date BETWEEN '2008-10-01' and '2008-11-30'
average high = Divide(Sum(height_meters), Count(name))
WGA Award (TV) award refers to award_category = 'WGA Award (TV)'; born in the USA refers to birth_country = 'USA'; from 2009 to 2010 refers to birthdate BETWEEN '2019-01-01' and '2019-12-31'
"Dell Hake" is the person; not included in the credit list refers to credited = ''
What are the keywords for episode 426 of the series?
episode 426 refers to number_in_series = 426
highest votes refers to max(votes); nominated refers to result = 'Nominee'
credited cast refers to category = 'Cast' and  credited = 'true'; episode "In the Name of the Grandfather" refers to title = 'In the Name of the Grandfather'
episode 'Take My Life, Please' refers to title =   'Take My Life, Please'
in November 2008 refers to air_date LIKE '2008-11%'
more than 100 votes refers to votes > 100
aired between October to November refers to strftime('%m', air_date) between '10' and '11';
WGA Award (TV) award refers to award_category = 'WGA Award (TV)'; born in the USA refers to birth_country = 'USA'; from 2009 to 2010 refers to birthdate BETWEEN '2019-01-01' and '2019-12-31'
in 2010 refers to year = 2010; nominations refers to result = 'Nominee'
highest number of vote of the star score refers to max(votes)
5 stars refers to stars = 5; nominated refers to result = 'Nominee'; Prism Award refers to award_category = 'Prism Award'; on April 19 2009 refers to air_date = '2009-04-19'
How many 1 star ratings are there in the worst rated episode of the season?
worst rated episode refers to MIN(rating)
aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5
"The Tiny Canadian" refers to nickname = 'The Tiny Canadian'; play as in the show refers to role
director refers to role = 'director'
star score greater than 8 refers to stars > 8
between October and November 2008 refers to air_date BETWEEN '2008-10-01' and '2008-11-30'
stars score of 10 at 30% and above refers to stars = 10 and percent > 29
in Season 20 Episode 11 refers to episode_id = 'S20-E11'; 'Doofus' is the nickname of person; include in credit list refers to credited = 'true'
star score greater than 5 refers to stars > 5; have air date in 2008 refers to air_date LIKE '2008%'
born in USA refers to birth_country = 'USA'; were nominated refers to result = 'Nominee'; 'Outstanding Animated Program (For Programming Less Than One Hour)' is the award; in 2009 refers to year = 2009
star score of 10 refers to stars = 10
Which country has the tallest person in the crew?
country refers to birth_country; tallest person refers to max(height_meters)
between October and November 2008 refers to air_date BETWEEN '2008-10-01' and '2008-11-30'
nominees refers to result = 'Nominee'; born in USA refers to birth_country = 'USA'; percentage = divide(sum(result = 'Nominee' and birth_country = 'USA'), count(Person.name)) * 100%
episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200
winner refers to result = 'Winner'; Best International TV Series in 2017 refers to award = 'Best International TV Series' and year = '2017'
received the most nomination refers to MAX(COUNT(episode_id))
aired on 11/30/2008 refers to air_date = '11/30/2008'; win refers to result = 'Winner'
episode "Lisa the Drama Queen" refers to title = 'Lisa the Drama Queen';
information about the music department refers to category = 'Music Department'
average high = Divide(Sum(height_meters), Count(name))
people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)
Among the episodes which have star score greater than 5, how many episodes have air date in 2008?
star score greater than 5 refers to stars > 5; have air date in 2008 refers to air_date LIKE '2008%'
"Primetime Emmy' is the award_category;  rating over 7 refers to rating > 7; nominated refers to result = 'Nominee'; percentage = Divide(Count(episode_id(award_category = 'Primetime Emmy')), Count (episode_id)) * 100
"Dan Castellaneta" is the person;  2009 is year;  won refers result = 'Winner'
co-executive producer refers to role = 'co-executive producer'; higher than 1.60 meters refers to height_meters > 1.60
writer refers to role = 'writer'; star score greater than 5 refers to stars > 5; in 2009 refers to year = 2009
in Season 20 Episode 11 refers to episode_id = 'S20-E11'; 'Doofus' is the nickname of person; include in credit list refers to credited = 'true'
percentage = DIVIDE(SUM(stars = 5), COUNT(stars)) as percentage
awarded category refers to award_category
"Pamela Hayden" is the person; voice the character 'Ruthie' refers to role = 'Ruthie'
produced by Jason Bikowski refers to person = 'Jason Bikowski'
"riot" and "cake" are both keyword
What are the keywords of the episodes which have the air date in 2008?
have air date in 2008 refers to air_date LIKE '2008%'
director refers to role = 'director'
highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))
episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200
from Animation Department refers to category = 'Animation Department'; AVG(height_meters) where category = 'Animation Department'
won the award refers to result = 'Winner'; in 2009 refers to year = 2009
star score less than 8 refers to stars < 8; aired in 2009 refers to air_date LIKE '2009%'
country refers to birth_country; tallest person refers to max(height_meters)
won refers to result = 'Winner'; first award refers to Min(year)
stars greater than the 70% of average stars refers to stars > multiply(avg(stars), 0.7)
average high = Divide(Sum(height_meters), Count(name))
What is the episode ID that received 2 stars and 9 votes?
2 stars refers to stars = 2; 9 votes refers to votes = 9
"riot" and "cake" are both keyword
produced by Jason Bikowski refers to person = 'Jason Bikowski'
aired on 3/22/2009 refers to air_date = '2009-03-22'
between the episode 5 and 10 of season 20 refers to episode_id IN('S20-E5', 'S20-E6', 'S20-E7', 'S20-E8', 'S20-E9', 'S20-E10'); credited refers to credited = 'true'; for casting refers to role = 'casting'
episode 426 refers to number_in_series = 426
winner refers to result = 'Winner'; Best International TV Series in 2017 refers to award = 'Best International TV Series' and year = '2017'
nominated episodes refers to result = 'Nominee'; percentage of votes = DIVIDE(SUM(result = 'Nominee), SUM(Votes)) as percentage
website address refers to episode_image
additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'
taller than 1.70m refers to height_meters > 1.70; born in Canada refers to birth_country = 'Canada'
Calculate the total rating of winners in OFTA Television Award and WGA Award (TV).
winners refers to result = 'Winner'; in OFTA Television Award and WGA Award (TV) refers to award = 'OFTA Television Award' and award = 'WGA Award (TV)'
winners refers to result = 'Winner'; higher than 1.75 meters refers to height_meters > 1.75; percentage = divide(sum(result = 'Winner' and height_meters > 1.75), count(result = 'Winner' )) * 100%
highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))
in 2009 refers to year = 2009
people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)
aired between October to November refers to strftime('%m', air_date) between '10' and '11';
aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10
taller than 1.70m refers to height_meters > 1.70; born in Canada refers to birth_country = 'Canada'
episodes that have received more 7-star votes than the season average refers to votes > DIVIDE(SUM(votes), COUNT(stars = 7))
being nominated refers to result = 'Nominee'; percentage = divide(count(result = 'Nominee'), count(result)) * 100%
in 2010 refers to year = 2010; winning rate refers to DIVIDE(COUNT(result = 'winner'), COUNT(*));
In Season 20 Episode 11, how many times was Doofus included in the credit list?
in Season 20 Episode 11 refers to episode_id = 'S20-E11'; 'Doofus' is the nickname of person; include in credit list refers to credited = 'true'
voice over for and was awarded refers to award like '%Voice-Over%';
best rating scale refers to stars = 10
star score greater than 5 refers to stars > 5; have air date in 2008 refers to air_date LIKE '2008%'
scores 5 to 10 refers to TOTAL(percent) where 1 < = stars < 5
largest number of votes refers to MAX(votes)
co-executive producer refers to role = 'co-executive producer'; nominee of "Outstanding Animated Program (For Programming Less Than One Hour)" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'
additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'
produced by Jason Bikowski refers to person = 'Jason Bikowski'
"Dan Castellaneta" is the person; won refers to result = 'Winner'; 'Outstanding Voice-Over Performance' is the award; 'Primetime Emmy Awards' is the organization; in 2009 refers to year = 2009
in 2010 refers to year = 2010; nominations refers to result = 'Nominee'
Please list the names of all the awards won by the crew member whose nickname is Doofus.
award won refers to result = 'Winner'
nominated episodes refers to result = 'Nominee'; percentage of votes = DIVIDE(SUM(result = 'Nominee), SUM(Votes)) as percentage
being nominated refers to result = 'Nominee'; percentage = divide(count(result = 'Nominee'), count(result)) * 100%
website address refers to episode_image
stars score of 10 at 30% and above refers to stars = 10 and percent > 29
5th episode refers to episode = 5
lowest rating refers to Min(rating)
more than 200 votes refer to votes > 200; composer refers to role = 'composer'; Outstanding Music Composition for a Series (Original Dramatic Score) refers to award = 'Outstanding Music Composition for a Series (Original Dramatic Score)'
voiced refers to role; role = 'Helen Lovejoy"
awarded category refers to award_category
"Matt Groening" is the person; 'In the Name of the Grandfather' is the title of episode; episode number refers to episode; series number refers to number_in_series
What was the character that Dan Castellaneta did the voice over for and was awarded?
voice over for and was awarded refers to award like '%Voice-Over%';
episode S20-E1, S20-E2 & S20-E3 refers to episode_id = 'S20-E1' and episode_id = 'S20-E2' and episode_id = 'S20-E3'
from countries other than the USA refers to birth_country ! = 'USA'
produced by Jason Bikowski refers to person = 'Jason Bikowski'
won refers to result = 'Winner'; 'Best Voice-Over Performance' is the award; ' Online Film & Television Association' is the organization; in 2009 refers to year = 2009
more than 100 votes refers to votes > 100
average high = Divide(Sum(height_meters), Count(name))
"Pamela Hayden" is the person; voice the character 'Ruthie' refers to role = 'Ruthie'
"How the Test Was Won" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person
credited cast refers to category = 'Cast' and  credited = 'true'; episode "In the Name of the Grandfather" refers to title = 'In the Name of the Grandfather'
"Primetime Emmy' is the award_category;  rating over 7 refers to rating > 7; nominated refers to result = 'Nominee'; percentage = Divide(Count(episode_id(award_category = 'Primetime Emmy')), Count (episode_id)) * 100
In episode nominated in Annie Awards, how many of the episodes have a percent greater than 6?
nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6
have air date in 2008 refers to air_date LIKE '2008%'
"Favorite Animated Comedy" is the award; 'People's Choice Award' is the award_category; received award refers to result = 'Winner'; first ever award refers to Min(year)
co-executive producer refers to role = 'co-executive producer'; higher than 1.60 meters refers to height_meters > 1.60
produced by Jason Bikowski refers to person = 'Jason Bikowski'
taller than 1.70m refers to height_meters > 1.70; born in Canada refers to birth_country = 'Canada'
aired on 3/22/2009 refers to air_date = '2009-03-22'
voiced refers to role; role = 'Helen Lovejoy"
stars greater than the 70% of average stars refers to stars > multiply(avg(stars), 0.7)
"Los Angeles" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8
in 2009 refers to year = 2009
How many votes of 5-star did the episode "Lisa the Drama Queen" receive?
episode "Lisa the Drama Queen" refers to title = 'Lisa the Drama Queen';
average awards winning rate refers to DIVIDE(SUM(result = 'winner'), COUNT(award));
in 2009 refers to year = 2009
won the award refers to result = 'Winner'; in 2009 refers to year = 2009
co-executive producer refers to role = 'co-executive producer'; higher than 1.60 meters refers to height_meters > 1.60
from countries other than the USA refers to birth_country ! = 'USA'
voiced refers to role; role = 'Helen Lovejoy"
average high = Divide(Sum(height_meters), Count(name))
star score of 10 refers to stars = 10
produced by Jason Bikowski refers to person = 'Jason Bikowski'
In 2010 refers to year = 2010
List down the title of episode S20-E1, S20-E2 & S20-E3.
episode S20-E1, S20-E2 & S20-E3 refers to episode_id = 'S20-E1' and episode_id = 'S20-E2' and episode_id = 'S20-E3'
"Marc Wilmore" is the name of person
"Favorite Animated Comedy" is the award; 'People's Choice Award' is the award_category; received award refers to result = 'Winner'; first ever award refers to Min(year)
taller than 1.70m refers to height_meters > 1.70; born in Canada refers to birth_country = 'Canada'
aired on 3/22/2009 refers to air_date = '2009-03-22'
winner refers to result = 'Winner'; Best International TV Series in 2017 refers to award = 'Best International TV Series' and year = '2017'
aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10
born in USA refers to birth_country = 'USA'; were nominated refers to result = 'Nominee'; 'Outstanding Animated Program (For Programming Less Than One Hour)' is the award; in 2009 refers to year = 2009
credited cast refers to category = 'Cast' and  credited = 'true'; episode "In the Name of the Grandfather" refers to title = 'In the Name of the Grandfather'
writer refers to role = 'Writer'; most 10 star votes refers to max(votes) where stars = 10
held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'
Which title is the winner of Best International TV Series in 2017?
winner refers to result = 'Winner'; Best International TV Series in 2017 refers to award = 'Best International TV Series' and year = '2017'
award won refers to result = 'Winner'
episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200
more than 100 votes refers to votes > 100
name refers to person; the role Smithers refers to character = 'Smithers'
"Dan Castellaneta" is the person; won refers to result = 'Winner'; 'Outstanding Voice-Over Performance' is the award; 'Primetime Emmy Awards' is the organization; in 2009 refers to year = 2009
born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970
won refers to result = 'Winner'; in Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'; 2009 refers to year = 2009
nominated episodes refers to result = 'Nominee'; percentage of votes = DIVIDE(SUM(result = 'Nominee), SUM(Votes)) as percentage
won the award refers to result = 'Winner'; in 2009 refers to year = 2009
voice over for and was awarded refers to award like '%Voice-Over%';
What is the total number of episode with a rating below 7?
rating below 7 refers to rating < 7
produced by Jason Bikowski refers to person = 'Jason Bikowski'
stars score of 10 at 30% and above refers to stars = 10 and percent > 29
prospective recipients refers to result = 'Nominee'
being nominated refers to result = 'Nominee'; percentage = divide(count(result = 'Nominee'), count(result)) * 100%
"Dan Castellaneta" is the person;  2009 is year;  won refers result = 'Winner'
between the episode 5 and 10 of season 20 refers to episode_id IN('S20-E5', 'S20-E6', 'S20-E7', 'S20-E8', 'S20-E9', 'S20-E10'); credited refers to credited = 'true'; for casting refers to role = 'casting'
award won refers to result = 'Winner'
are not included in the credit list refers to credited = ''
more than 100 votes refers to votes > 100
star score of 10 refers to stars = 10
List the name of all awards along with the award category, nominated by Marc Wilmore.
"Marc Wilmore" is the name of person
people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)
nominated episodes refers to result = 'Nominee'; percentage of votes = DIVIDE(SUM(result = 'Nominee), SUM(Votes)) as percentage
website address refers to episode_image
highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))
"Pamela Hayden" is the person; voice the character 'Ruthie' refers to role = 'Ruthie'
"Primetime Emmy' is the award_category;  rating over 7 refers to rating > 7; nominated refers to result = 'Nominee'; percentage = Divide(Count(episode_id(award_category = 'Primetime Emmy')), Count (episode_id)) * 100
writer refers to role = 'writer'; star score greater than 5 refers to stars > 5; in 2009 refers to year = 2009
"How the Test Was Won" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person
highest votes refers to max(votes); to Carlton Batten refers to person = 'Carlton Batten'
aired in 2008 refers to air_date LIKE '2008%'; votes ranges from 920 to 950 refers to votes BETWEEN 920 AND 950
In between the episode 5 and10 of season 2, how many of them are credited for casting?
between the episode 5 and 10 of season 20 refers to episode_id IN('S20-E5', 'S20-E6', 'S20-E7', 'S20-E8', 'S20-E9', 'S20-E10'); credited refers to credited = 'true'; for casting refers to role = 'casting'
aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10
director refers to role = 'director'
percentage = DIVIDE(SUM(stars = 5), COUNT(stars)) as percentage
"Pamela Hayden" is the person; voice the character 'Ruthie' refers to role = 'Ruthie'
aired on 11/30/2008 refers to air_date = '11/30/2008'; win refers to result = 'Winner'
aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5
writer refers to role = 'Writer'; most 10 star votes refers to max(votes) where stars = 10
in 2010 refers to year = 2010; winning rate refers to DIVIDE(COUNT(result = 'winner'), COUNT(*));
"Los Angeles" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8
star score greater than 5 refers to stars > 5; have air date in 2008 refers to air_date LIKE '2008%'
What is the percentage of Primetime Emmy nominated episodes with a rating over 7 to all the episodes that have a rating over 7?
"Primetime Emmy' is the award_category;  rating over 7 refers to rating > 7; nominated refers to result = 'Nominee'; percentage = Divide(Count(episode_id(award_category = 'Primetime Emmy')), Count (episode_id)) * 100
aired between October to November refers to strftime('%m', air_date) between '10' and '11';
star score less than 8 refers to stars < 8; aired in 2009 refers to air_date LIKE '2009%'
lowest rating refers to Min(rating)
won refers to result = 'Winner'; first award refers to Min(year)
"Dan Castellaneta" is the person; won refers to result = 'Winner'; 'Outstanding Voice-Over Performance' is the award; 'Primetime Emmy Awards' is the organization; in 2009 refers to year = 2009
stars score of 10 at 30% and above refers to stars = 10 and percent > 29
people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)
Outstanding Voice-Over Performance refers to award = 'Outstanding Voice-Over Performance'; who won refers to result = 'Winner'; Emmy refers to organization = 'Primetime Emmy Awards'; playing Homer simpson 20 refers to character = 'Homer simpson 20'
"How the Test Was Won" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person
most recent refers to MAX(year); received refers to result = 'Winner'; name of award refers to award; category refers to award_category
What is the title of episode that has a keyword of 'riot' and 'cake'?
"riot" and "cake" are both keyword
average high = Divide(Sum(height_meters), Count(name))
in 2009 refers to year = 2009
information about the music department refers to category = 'Music Department'
WGA Award (TV) award refers to award_category = 'WGA Award (TV)'; born in the USA refers to birth_country = 'USA'; from 2009 to 2010 refers to birthdate BETWEEN '2019-01-01' and '2019-12-31'
country refers to birth_country; tallest person refers to max(height_meters)
"Take My Life,Please" is the title of episode
additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'
"New York" is the birth_place; 'USA' is the birth_region
stars score of 10 at 30% and above refers to stars = 10 and percent > 29
nominated for Primetime Emmy Award but did not win refers to award_category = 'Primetime Emmy' and result = 'Nominee';  from 2009 to 2010 refers to year > = '2009' and  year < = '2010'
What percentage of votes are from the nominated episodes?
nominated episodes refers to result = 'Nominee'; percentage of votes = DIVIDE(SUM(result = 'Nominee), SUM(Votes)) as percentage
held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'
writer refers to role = 'Writer'; most 10 star votes refers to max(votes) where stars = 10
winners refers to result = 'Winner'; in OFTA Television Award and WGA Award (TV) refers to award = 'OFTA Television Award' and award = 'WGA Award (TV)'
in 2010 refers to year = 2010; nominations refers to result = 'Nominee'
website address refers to episode_image
born in the USA refers to birth_country = 'USA'
co-executive producer refers to role = 'co-executive producer'; nominee of "Outstanding Animated Program (For Programming Less Than One Hour)" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'
"Primetime Emmy' is the award_category;  rating over 7 refers to rating > 7; nominated refers to result = 'Nominee'; percentage = Divide(Count(episode_id(award_category = 'Primetime Emmy')), Count (episode_id)) * 100
highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))
"Outstanding Voice-Over Performance" is the award; 'Primetime Emmy Awards' is the organization; awardee refers to result = 'Winner'; first ever award refers to Min(year); age at the time of awarded refers to Subtract(year, SUBSTR(birthdate, 0, 5))
State the number of votes for episode with rating of 7 and above.
rating of 7 and above refers to rating > 7.0
"Dan Castellaneta" is the person;  2009 is year;  won refers result = 'Winner'
Outstanding Voice-Over Performance refers to award = 'Outstanding Voice-Over Performance'; who won refers to result = 'Winner'; Emmy refers to organization = 'Primetime Emmy Awards'; playing Homer simpson 20 refers to character = 'Homer simpson 20'
director refers to role = 'director'
"Dell Hake" is the person; not included in the credit list refers to credited = ''
prospective recipients refers to result = 'Nominee'
co-executive producer refers to role = 'co-executive producer'; nominee of "Outstanding Animated Program (For Programming Less Than One Hour)" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'
nominated refers to result = 'Nominee'; highest number of nominated award refers to Max(Count(person))
"The Tiny Canadian" refers to nickname = 'The Tiny Canadian'; play as in the show refers to role
average awards winning rate refers to DIVIDE(SUM(result = 'winner'), COUNT(award));
height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'
How many crews were born in the USA?
born in the USA refers to birth_country = 'USA'
"Primetime Emmy' is the award_category;  rating over 7 refers to rating > 7; nominated refers to result = 'Nominee'; percentage = Divide(Count(episode_id(award_category = 'Primetime Emmy')), Count (episode_id)) * 100
co-executive producer refers to role = 'co-executive producer'; nominee of "Outstanding Animated Program (For Programming Less Than One Hour)" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'
scores 5 to 10 refers to TOTAL(percent) where 1 < = stars < 5
average high = Divide(Sum(height_meters), Count(name))
winner refers to result = 'Winner'; Best International TV Series in 2017 refers to award = 'Best International TV Series' and year = '2017'
aired in 2008 refers to air_date LIKE '2008%'; votes ranges from 920 to 950 refers to votes BETWEEN 920 AND 950
information about the music department refers to category = 'Music Department'
born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970
has nickname refers to nickname is NOT NULL
height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'
What are the keywords of the episode "Take My Life, Please"?
episode "Take My Life, Please" refers to title = 'Take My Life, Please'
"Favorite Animated Comedy" is the award; 'People's Choice Award' is the award_category; received award refers to result = 'Winner'; first ever award refers to Min(year)
writer refers to role = 'Writer'; most 10 star votes refers to max(votes) where stars = 10
rating below 7 refers to rating < 7
highest number of vote of the star score refers to max(votes)
percentage = DIVIDE(SUM(stars = 5), COUNT(stars)) as percentage
winner refers to result = 'Winner'; Best International TV Series in 2017 refers to award = 'Best International TV Series' and year = '2017'
highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))
scores 5 to 10 refers to TOTAL(percent) where 1 < = stars < 5
aired on 3/22/2009 refers to air_date = '2009-03-22'
5 stars refers to stars = 5; nominated refers to result = 'Nominee'; Prism Award refers to award_category = 'Prism Award'; on April 19 2009 refers to air_date = '2009-04-19'
Which episode has the largest number of votes?
largest number of votes refers to MAX(votes)
stars greater than the 70% of average stars refers to stars > multiply(avg(stars), 0.7)
star score greater than 8 refers to stars > 8
most recent refers to MAX(year); received refers to result = 'Winner'; name of award refers to award; category refers to award_category
won refers to result = 'Winner'; in Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'; 2009 refers to year = 2009
website address refers to episode_image
nominated episodes refers to result = 'Nominee'; percentage of votes = DIVIDE(SUM(result = 'Nominee), SUM(Votes)) as percentage
winner refers to result = 'Winner'; Best International TV Series in 2017 refers to award = 'Best International TV Series' and year = '2017'
winners refers to result = 'Winner'; in OFTA Television Award and WGA Award (TV) refers to award = 'OFTA Television Award' and award = 'WGA Award (TV)'
WGA Award (TV) award refers to award_category = 'WGA Award (TV)'; born in the USA refers to birth_country = 'USA'; from 2009 to 2010 refers to birthdate BETWEEN '2019-01-01' and '2019-12-31'
"Billy Kimball" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa
What is the credited cast for the episode "In the Name of the Grandfather"?
credited cast refers to category = 'Cast' and  credited = 'true'; episode "In the Name of the Grandfather" refers to title = 'In the Name of the Grandfather'
star score greater than 8 refers to stars > 8
episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200
highest votes refers to max(votes); to Carlton Batten refers to person = 'Carlton Batten'
"How the Test Was Won" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person
aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5
additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'
most recent refers to MAX(year); received refers to result = 'Winner'; name of award refers to award; category refers to award_category
being nominated refers to result = 'Nominee'; percentage = divide(count(result = 'Nominee'), count(result)) * 100%
winners refers to result = 'Winner'; in OFTA Television Award and WGA Award (TV) refers to award = 'OFTA Television Award' and award = 'WGA Award (TV)'
average awards winning rate refers to DIVIDE(SUM(result = 'winner'), COUNT(award));
Who did "The Tiny Canadian" play as in the show?
"The Tiny Canadian" refers to nickname = 'The Tiny Canadian'; play as in the show refers to role
in 2009 refers to year = 2009
aired between October to November refers to strftime('%m', air_date) between '10' and '11';
aired on 11/30/2008 refers to air_date = '11/30/2008'; win refers to result = 'Winner'
episode 426 refers to number_in_series = 426
in 2010 refers to year = 2010; nominations refers to result = 'Nominee'
"Marc Wilmore" is the name of person
in 2009 refers to year = 2009; name of awarded character refers to character
from Animation Department refers to category = 'Animation Department'; AVG(height_meters) where category = 'Animation Department'
"Favorite Animated Comedy" is the award; 'People's Choice Award' is the award_category; received award refers to result = 'Winner'; first ever award refers to Min(year)
taller than 1.70m refers to height_meters > 1.70; born in Canada refers to birth_country = 'Canada'
Describe the birth country, height and person name who were not included in credit list with category of casting.
height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'
being nominated refers to result = 'Nominee'; percentage = divide(count(result = 'Nominee'), count(result)) * 100%
episode 426 refers to number_in_series = 426
episode "Take My Life, Please" refers to title = 'Take My Life, Please'
winners refers to result = 'Winner'; higher than 1.75 meters refers to height_meters > 1.75; percentage = divide(sum(result = 'Winner' and height_meters > 1.75), count(result = 'Winner' )) * 100%
born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970
In 2010 refers to year = 2010
award won refers to result = 'Winner'
information about the music department refers to category = 'Music Department'
WGA Award (TV) award refers to award_category = 'WGA Award (TV)'; born in the USA refers to birth_country = 'USA'; from 2009 to 2010 refers to birthdate BETWEEN '2019-01-01' and '2019-12-31'
country refers to birth_country; tallest person refers to max(height_meters)
How many additional timers were born in USA?
additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'
episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200
born before 1970 refers to birthdate < '1970-01-01'
nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6
country refers to birth_country; tallest person refers to max(height_meters)
5th episode refers to episode = 5
is credited refers to credited = 'true';
lowest rating refers to Min(rating)
voice over for and was awarded refers to award like '%Voice-Over%';
crew refers to Person; full name refers to name; have nickname refers to nickname IS NOT NULL
awarded category refers to award_category
Based on the credits, state how many roles were played in the 5th episode of simpson 20.
5th episode refers to episode = 5
In 2010 refers to year = 2010
rating below 7 refers to rating < 7
being nominated refers to result = 'Nominee'; percentage = divide(count(result = 'Nominee'), count(result)) * 100%
crew refers to Person; full name refers to name; have nickname refers to nickname IS NOT NULL
director refers to role = 'director'
co-executive producer refers to role = 'co-executive producer'; higher than 1.60 meters refers to height_meters > 1.60
episodes that have received more 7-star votes than the season average refers to votes > DIVIDE(SUM(votes), COUNT(stars = 7))
Primetime Emmy Award refers to award_category = 'Primetime Emmy'
won refers to result = 'Winner'; 'Best Voice-Over Performance' is the award; ' Online Film & Television Association' is the organization; in 2009 refers to year = 2009
award won refers to result = 'Winner'
What is the voting numbers and percentage of the best rating scale of the episode which had keyword of "arab stereotype"?
best rating scale refers to stars = 10
writer refers to role = 'writer'; star score greater than 5 refers to stars > 5; in 2009 refers to year = 2009
writer refers to role = 'Writer'; most 10 star votes refers to max(votes) where stars = 10
highest votes refers to max(votes); nominated refers to result = 'Nominee'
website address refers to episode_image
episode "Lisa the Drama Queen" refers to title = 'Lisa the Drama Queen';
has nickname refers to nickname is NOT NULL
voice over for and was awarded refers to award like '%Voice-Over%';
won refers to result = 'Winner'; in Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'; 2009 refers to year = 2009
rating of 7 and above refers to rating > 7.0
episode 426 refers to number_in_series = 426
Indicate the name and category of the most recent award received by the show.
most recent refers to MAX(year); received refers to result = 'Winner'; name of award refers to award; category refers to award_category
episode 'Take My Life, Please' refers to title =   'Take My Life, Please'
prospective recipients refers to result = 'Nominee'
awarded category refers to award_category
produced by Jason Bikowski refers to person = 'Jason Bikowski'
won refers to result = 'Winner'; in Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'; 2009 refers to year = 2009
writer refers to role = 'Writer'; most 10 star votes refers to max(votes) where stars = 10
information about the music department refers to category = 'Music Department'
born in USA refers to birth_country = 'USA'; were nominated refers to result = 'Nominee'; 'Outstanding Animated Program (For Programming Less Than One Hour)' is the award; in 2009 refers to year = 2009
highest number of vote of the star score refers to max(votes)
highest votes refers to max(votes); to Carlton Batten refers to person = 'Carlton Batten'
Please list the name of crew that were born before 1970.
born before 1970 refers to birthdate < '1970-01-01'
episodes that have received more 7-star votes than the season average refers to votes > DIVIDE(SUM(votes), COUNT(stars = 7))
5th episode refers to episode = 5
WGA Award (TV) award refers to award_category = 'WGA Award (TV)'; born in the USA refers to birth_country = 'USA'; from 2009 to 2010 refers to birthdate BETWEEN '2019-01-01' and '2019-12-31'
people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)
Primetime Emmy Award refers to award_category = 'Primetime Emmy'
highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))
won refers to result = 'Winner'; 'Best Voice-Over Performance' is the award; ' Online Film & Television Association' is the organization; in 2009 refers to year = 2009
have air date in 2008 refers to air_date LIKE '2008%'
rating below 7 refers to rating < 7
writer refers to role = 'writer'; star score greater than 5 refers to stars > 5; in 2009 refers to year = 2009
Please list all of the episodes that aired in 2008 that have the highest number of votes for the maximum star rating.
aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10
height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'
taller than 1.70m refers to height_meters > 1.70; born in Canada refers to birth_country = 'Canada'
information about the music department refers to category = 'Music Department'
worst rated episode refers to MIN(rating)
aired on 11/30/2008 refers to air_date = '11/30/2008'; win refers to result = 'Winner'
Outstanding Voice-Over Performance refers to award = 'Outstanding Voice-Over Performance'; who won refers to result = 'Winner'; Emmy refers to organization = 'Primetime Emmy Awards'; playing Homer simpson 20 refers to character = 'Homer simpson 20'
episodes that have received more 7-star votes than the season average refers to votes > DIVIDE(SUM(votes), COUNT(stars = 7))
aired in 2008 refers to air_date LIKE '2008%'; votes ranges from 920 to 950 refers to votes BETWEEN 920 AND 950
average high = Divide(Sum(height_meters), Count(name))
largest number of votes refers to MAX(votes)
What was the first award won by the cast or crew member of the show? Give the name of the person who won the said award.
won refers to result = 'Winner'; first award refers to Min(year)
held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'
nominees refers to result = 'Nominee'; born in USA refers to birth_country = 'USA'; percentage = divide(sum(result = 'Nominee' and birth_country = 'USA'), count(Person.name)) * 100%
crew refers to Person; full name refers to name; have nickname refers to nickname IS NOT NULL
taller than 1.70m refers to height_meters > 1.70; born in Canada refers to birth_country = 'Canada'
star score greater than 8 refers to stars > 8
from countries other than the USA refers to birth_country ! = 'USA'
"Matt Groening" is the person; 'In the Name of the Grandfather' is the title of episode; episode number refers to episode; series number refers to number_in_series
born before 1970 refers to birthdate < '1970-01-01'
more than 100 votes refers to votes > 100
people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)
Calculate the percentage of the nominees who were born in USA.
nominees refers to result = 'Nominee'; born in USA refers to birth_country = 'USA'; percentage = divide(sum(result = 'Nominee' and birth_country = 'USA'), count(Person.name)) * 100%
largest number of votes refers to MAX(votes)
information about the music department refers to category = 'Music Department'
aired on 3/22/2009 refers to air_date = '2009-03-22'
"Pamela Hayden" is the person; voice the character 'Ruthie' refers to role = 'Ruthie'
director refers to role = 'director'
episode 426 refers to number_in_series = 426
"Favorite Animated Comedy" is the award; 'People's Choice Award' is the award_category; received award refers to result = 'Winner'; first ever award refers to Min(year)
star score greater than 8 refers to stars > 8
oldest refers to Min(birthdate)
"Dell Hake" is the person; not included in the credit list refers to credited = ''
Out of the rating of 6.8 scored by title "No Loan Again, Naturally", how many percent of it consists of scores 5 to 10?
scores 5 to 10 refers to TOTAL(percent) where 1 < = stars < 5
Outstanding Voice-Over Performance refers to award = 'Outstanding Voice-Over Performance'; who won refers to result = 'Winner'; Emmy refers to organization = 'Primetime Emmy Awards'; playing Homer simpson 20 refers to character = 'Homer simpson 20'
held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'
in 2010 refers to year = 2010; nominations refers to result = 'Nominee'
won the award refers to result = 'Winner'; in 2009 refers to year = 2009
star score of 10 refers to stars = 10
oldest refers to Min(birthdate)
star score greater than 8 refers to stars > 8
produced by Jason Bikowski refers to person = 'Jason Bikowski'
people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)
aired on 3/22/2009 refers to air_date = '2009-03-22'
List down the episode ID of episodes aired in 2008 with 5 stars and below.
aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5
Primetime Emmy Award refers to award_category = 'Primetime Emmy'
name refers to person; the role Smithers refers to character = 'Smithers'
information about the music department refers to category = 'Music Department'
born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970
additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'
taller than 1.70m refers to height_meters > 1.70; born in Canada refers to birth_country = 'Canada'
largest number of votes refers to MAX(votes)
"Billy Kimball" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa
aired on 11/30/2008 refers to air_date = '11/30/2008'; win refers to result = 'Winner'
born before 1970 refers to birthdate < '1970-01-01'
Find the winning rate of award in 2010. Describe the winner name, award name, episode title and role of the winner in that episode.
in 2010 refers to year = 2010; winning rate refers to DIVIDE(COUNT(result = 'winner'), COUNT(*));
aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5
"riot" and "cake" are both keyword
rating of 7 and above refers to rating > 7.0
award won refers to result = 'Winner'
nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6
aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10
winners refers to result = 'Winner'; in OFTA Television Award and WGA Award (TV) refers to award = 'OFTA Television Award' and award = 'WGA Award (TV)'
"Dell Hake" is the person; not included in the credit list refers to credited = ''
"New York" is the birth_place; 'USA' is the birth_region
born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970
Name all the person who involved in the making of simpson 20s episode that aired between October to November.
aired between October to November refers to strftime('%m', air_date) between '10' and '11';
in 2009 refers to year = 2009
won refers to result = 'Winner'; 'Best Voice-Over Performance' is the award; ' Online Film & Television Association' is the organization; in 2009 refers to year = 2009
in Season 20 Episode 11 refers to episode_id = 'S20-E11'; 'Doofus' is the nickname of person; include in credit list refers to credited = 'true'
between the episode 5 and 10 of season 20 refers to episode_id IN('S20-E5', 'S20-E6', 'S20-E7', 'S20-E8', 'S20-E9', 'S20-E10'); credited refers to credited = 'true'; for casting refers to role = 'casting'
award winner refers to result = 'Winner'; 'USA' is the birth_country
more than 200 votes refer to votes > 200; composer refers to role = 'composer'; Outstanding Music Composition for a Series (Original Dramatic Score) refers to award = 'Outstanding Music Composition for a Series (Original Dramatic Score)'
star score less than 8 refers to stars < 8; aired in 2009 refers to air_date LIKE '2009%'
episodes that have received more 7-star votes than the season average refers to votes > DIVIDE(SUM(votes), COUNT(stars = 7))
5 stars votes refers to stars = 5 ; 'No Loan Again, Naturally' and 'Coming to Homerica' are both the title of episode;  ratio = Divide (votes where title = 'No Loan Again, Naturally', votes where title = 'Coming to Homerica')
average awards winning rate refers to DIVIDE(SUM(result = 'winner'), COUNT(award));
What is the birth name of the person who voiced 'Helen Lovejoy?'
voiced refers to role; role = 'Helen Lovejoy"
aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5
Primetime Emmy Award refers to award_category = 'Primetime Emmy'
"Dell Hake" is the person; not included in the credit list refers to credited = ''
episode "Lisa the Drama Queen" refers to title = 'Lisa the Drama Queen';
highest votes refers to max(votes); nominated refers to result = 'Nominee'
"Los Angeles" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8
has nickname refers to nickname is NOT NULL
voice over for and was awarded refers to award like '%Voice-Over%';
oldest refers to Min(birthdate)
"Dan Castellaneta" is the person;  2009 is year;  won refers result = 'Winner'
In year 2009, what is the percentage of the episode titled by "Gone Maggie Gone" being nominated?
being nominated refers to result = 'Nominee'; percentage = divide(count(result = 'Nominee'), count(result)) * 100%
2 stars refers to stars = 2; 9 votes refers to votes = 9
credited cast refers to category = 'Cast' and  credited = 'true'; episode "In the Name of the Grandfather" refers to title = 'In the Name of the Grandfather'
winner refers to result = 'Winner'; Best International TV Series in 2017 refers to award = 'Best International TV Series' and year = '2017'
from countries other than the USA refers to birth_country ! = 'USA'
episode 426 refers to number_in_series = 426
received the most nomination refers to MAX(COUNT(episode_id))
voiced refers to role; role = 'Helen Lovejoy"
episode "Take My Life, Please" refers to title = 'Take My Life, Please'
additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'
"Dan Castellaneta" is the person; won refers to result = 'Winner'; 'Outstanding Voice-Over Performance' is the award; 'Primetime Emmy Awards' is the organization; in 2009 refers to year = 2009
Who is the writer for the episode with the most 10 star votes?
writer refers to role = 'Writer'; most 10 star votes refers to max(votes) where stars = 10
"Outstanding Voice-Over Performance" is the award; 'Primetime Emmy Awards' is the organization; awardee refers to result = 'Winner'; first ever award refers to Min(year); age at the time of awarded refers to Subtract(year, SUBSTR(birthdate, 0, 5))
in November 2008 refers to air_date LIKE '2008-11%'
won refers to result = 'Winner'; first award refers to Min(year)
"Dan Castellaneta" is the person;  2009 is year;  won refers result = 'Winner'
from Animation Department refers to category = 'Animation Department'; AVG(height_meters) where category = 'Animation Department'
more than 100 votes refers to votes > 100
"The Tiny Canadian" refers to nickname = 'The Tiny Canadian'; play as in the show refers to role
average awards winning rate refers to DIVIDE(SUM(result = 'winner'), COUNT(award));
WGA Award (TV) award refers to award_category = 'WGA Award (TV)'; born in the USA refers to birth_country = 'USA'; from 2009 to 2010 refers to birthdate BETWEEN '2019-01-01' and '2019-12-31'
awarded category refers to award_category
List the stars of episodes aired in November 2008.
in November 2008 refers to air_date LIKE '2008-11%'
information about the music department refers to category = 'Music Department'
oldest refers to Min(birthdate)
in 2009 refers to year = 2009; name of awarded character refers to character
more than 200 votes refer to votes > 200; composer refers to role = 'composer'; Outstanding Music Composition for a Series (Original Dramatic Score) refers to award = 'Outstanding Music Composition for a Series (Original Dramatic Score)'
voiced refers to role; role = 'Helen Lovejoy"
rating below 7 refers to rating < 7
episode S20-E1, S20-E2 & S20-E3 refers to episode_id = 'S20-E1' and episode_id = 'S20-E2' and episode_id = 'S20-E3'
"Matt Groening" is the person; 'In the Name of the Grandfather' is the title of episode; episode number refers to episode; series number refers to number_in_series
aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10
nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6
What are the roles of the cast and crew from countries other than the USA?
from countries other than the USA refers to birth_country ! = 'USA'
has nickname refers to nickname is NOT NULL
writer refers to role = 'Writer'; most 10 star votes refers to max(votes) where stars = 10
in November 2008 refers to air_date LIKE '2008-11%'
credited cast refers to category = 'Cast' and  credited = 'true'; episode "In the Name of the Grandfather" refers to title = 'In the Name of the Grandfather'
star score greater than 5 refers to stars > 5; have air date in 2008 refers to air_date LIKE '2008%'
nominated episodes refers to result = 'Nominee'; percentage of votes = DIVIDE(SUM(result = 'Nominee), SUM(Votes)) as percentage
"Dan Castellaneta" is the person;  2009 is year;  won refers result = 'Winner'
stars score of 10 at 30% and above refers to stars = 10 and percent > 29
born in USA refers to birth_country = 'USA'; were nominated refers to result = 'Nominee'; 'Outstanding Animated Program (For Programming Less Than One Hour)' is the award; in 2009 refers to year = 2009
is credited refers to credited = 'true';
How many persons were born in New York, USA?
"New York" is the birth_place; 'USA' is the birth_region
aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5
aired on 3/22/2009 refers to air_date = '2009-03-22'
height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'
5th episode refers to episode = 5
2 stars refers to stars = 2; 9 votes refers to votes = 9
from countries other than the USA refers to birth_country ! = 'USA'
is credited refers to credited = 'true';
episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200
worst rated episode refers to MIN(rating)
won the award refers to result = 'Winner'; in 2009 refers to year = 2009
What award did the episode that aired on 11/30/2008 win?
aired on 11/30/2008 refers to air_date = '11/30/2008'; win refers to result = 'Winner'
aired in 2008 refers to air_date LIKE '2008%'; votes ranges from 920 to 950 refers to votes BETWEEN 920 AND 950
average high = Divide(Sum(height_meters), Count(name))
nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6
are not included in the credit list refers to credited = ''
5 stars votes refers to stars = 5 ; 'No Loan Again, Naturally' and 'Coming to Homerica' are both the title of episode;  ratio = Divide (votes where title = 'No Loan Again, Naturally', votes where title = 'Coming to Homerica')
in November 2008 refers to air_date LIKE '2008-11%'
website address refers to episode_image
won the award refers to result = 'Winner'; in 2009 refers to year = 2009
worst rated episode refers to MIN(rating)
episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200
State the birth place of co-executive producer for nominee of "Outstanding Animated Program (For Programming Less Than One Hour)" award.
co-executive producer refers to role = 'co-executive producer'; nominee of "Outstanding Animated Program (For Programming Less Than One Hour)" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'
"riot" and "cake" are both keyword
stars greater than the 70% of average stars refers to stars > multiply(avg(stars), 0.7)
prospective recipients refers to result = 'Nominee'
stars score of 10 at 30% and above refers to stars = 10 and percent > 29
information about the music department refers to category = 'Music Department'
more than 1000 votes refers to votes > 1000
5 stars refers to stars = 5; nominated refers to result = 'Nominee'; Prism Award refers to award_category = 'Prism Award'; on April 19 2009 refers to air_date = '2009-04-19'
2 stars refers to stars = 2; 9 votes refers to votes = 9
country refers to birth_country; tallest person refers to max(height_meters)
star score less than 8 refers to stars < 8; aired in 2009 refers to air_date LIKE '2009%'
What are the episodes Oscar Cervantes is credited with?
is credited refers to credited = 'true';
director refers to role = 'director'
episode 426 refers to number_in_series = 426
average awards winning rate refers to DIVIDE(SUM(result = 'winner'), COUNT(award));
nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6
star score greater than 5 refers to stars > 5; have air date in 2008 refers to air_date LIKE '2008%'
won the award refers to result = 'Winner'; in 2009 refers to year = 2009
Primetime Emmy Award refers to award_category = 'Primetime Emmy'
in 2009 refers to year = 2009
born in USA refers to birth_country = 'USA'; were nominated refers to result = 'Nominee'; 'Outstanding Animated Program (For Programming Less Than One Hour)' is the award; in 2009 refers to year = 2009
"Matt Groening" is the person; 'In the Name of the Grandfather' is the title of episode; episode number refers to episode; series number refers to number_in_series
How many episodes were aired between October and November 2008?
between October and November 2008 refers to air_date BETWEEN '2008-10-01' and '2008-11-30'
scores 5 to 10 refers to TOTAL(percent) where 1 < = stars < 5
in 2010 refers to year = 2010; nominations refers to result = 'Nominee'
episode S20-E1, S20-E2 & S20-E3 refers to episode_id = 'S20-E1' and episode_id = 'S20-E2' and episode_id = 'S20-E3'
"Marc Wilmore" is the name of person
born in the USA refers to birth_country = 'USA'
people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)
born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970
highest votes refers to max(votes); nominated refers to result = 'Nominee'
is credited refers to credited = 'true';
5 stars refers to stars = 5; nominated refers to result = 'Nominee'; Prism Award refers to award_category = 'Prism Award'; on April 19 2009 refers to air_date = '2009-04-19'
What is the average heights of crew members from Animation Department?
from Animation Department refers to category = 'Animation Department'; AVG(height_meters) where category = 'Animation Department'
born in the USA refers to birth_country = 'USA'
born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970
2 stars refers to stars = 2; 9 votes refers to votes = 9
won the award refers to result = 'Winner'; in 2009 refers to year = 2009
oldest refers to Min(birthdate)
won refers to result = 'Winner'; in 2017 refers to year = 2017
average awards winning rate refers to DIVIDE(SUM(result = 'winner'), COUNT(award));
"Los Angeles" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8
"Favorite Animated Comedy" is the award; 'People's Choice Award' is the award_category; received award refers to result = 'Winner'; first ever award refers to Min(year)
are not included in the credit list refers to credited = ''
List the title of the episode with stars greater than the 70% of average stars of all episodes.
stars greater than the 70% of average stars refers to stars > multiply(avg(stars), 0.7)
most recent refers to MAX(year); received refers to result = 'Winner'; name of award refers to award; category refers to award_category
prospective recipients refers to result = 'Nominee'
co-executive producer refers to role = 'co-executive producer'; higher than 1.60 meters refers to height_meters > 1.60
in 2010 refers to year = 2010; winning rate refers to DIVIDE(COUNT(result = 'winner'), COUNT(*));
award winner refers to result = 'Winner'; 'USA' is the birth_country
have air date in 2008 refers to air_date LIKE '2008%'
award won refers to result = 'Winner'
held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'
"How the Test Was Won" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person
aired on 11/30/2008 refers to air_date = '11/30/2008'; win refers to result = 'Winner'
What is The simpson 20s: Season 20 average awards winning rate?
average awards winning rate refers to DIVIDE(SUM(result = 'winner'), COUNT(award));
oldest refers to Min(birthdate)
has nickname refers to nickname is NOT NULL
winners refers to result = 'Winner'; higher than 1.75 meters refers to height_meters > 1.75; percentage = divide(sum(result = 'Winner' and height_meters > 1.75), count(result = 'Winner' )) * 100%
won refers to result = 'Winner'; first award refers to Min(year)
WGA Award (TV) award refers to award_category = 'WGA Award (TV)'; born in the USA refers to birth_country = 'USA'; from 2009 to 2010 refers to birthdate BETWEEN '2019-01-01' and '2019-12-31'
5 stars refers to stars = 5; nominated refers to result = 'Nominee'; Prism Award refers to award_category = 'Prism Award'; on April 19 2009 refers to air_date = '2009-04-19'
average high = Divide(Sum(height_meters), Count(name))
aired on 11/30/2008 refers to air_date = '11/30/2008'; win refers to result = 'Winner'
height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'
more than 200 votes refer to votes > 200; composer refers to role = 'composer'; Outstanding Music Composition for a Series (Original Dramatic Score) refers to award = 'Outstanding Music Composition for a Series (Original Dramatic Score)'
List out the names of the awarded character in the awards held in 2009.
in 2009 refers to year = 2009; name of awarded character refers to character
2 stars refers to stars = 2; 9 votes refers to votes = 9
is credited refers to credited = 'true';
being nominated refers to result = 'Nominee'; percentage = divide(count(result = 'Nominee'), count(result)) * 100%
largest number of votes refers to MAX(votes)
co-executive producer refers to role = 'co-executive producer'; nominee of "Outstanding Animated Program (For Programming Less Than One Hour)" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'
episodes that have received more 7-star votes than the season average refers to votes > DIVIDE(SUM(votes), COUNT(stars = 7))
percentage = DIVIDE(SUM(stars = 5), COUNT(stars)) as percentage
"Primetime Emmy' is the award_category;  rating over 7 refers to rating > 7; nominated refers to result = 'Nominee'; percentage = Divide(Count(episode_id(award_category = 'Primetime Emmy')), Count (episode_id)) * 100
from countries other than the USA refers to birth_country ! = 'USA'
"Los Angeles" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8
What is the keyword for episodes with stars score of 10 at 30% and above?
stars score of 10 at 30% and above refers to stars = 10 and percent > 29
winner refers to result = 'Winner'; Best International TV Series in 2017 refers to award = 'Best International TV Series' and year = '2017'
held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'
people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)
episode 426 refers to number_in_series = 426
star score greater than 8 refers to stars > 8
are not included in the credit list refers to credited = ''
"Billy Kimball" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa
awarded category refers to award_category
won refers to result = 'Winner'; first award refers to Min(year)
in 2009 refers to year = 2009; name of awarded character refers to character
Find the average height for each person.
average high = Divide(Sum(height_meters), Count(name))
produced by Jason Bikowski refers to person = 'Jason Bikowski'
episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200
credited cast refers to category = 'Cast' and  credited = 'true'; episode "In the Name of the Grandfather" refers to title = 'In the Name of the Grandfather'
aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10
nominated episodes refers to result = 'Nominee'; percentage of votes = DIVIDE(SUM(result = 'Nominee), SUM(Votes)) as percentage
born in USA refers to birth_country = 'USA'; were nominated refers to result = 'Nominee'; 'Outstanding Animated Program (For Programming Less Than One Hour)' is the award; in 2009 refers to year = 2009
name refers to person; the role Smithers refers to character = 'Smithers'
worst rated episode refers to MIN(rating)
award winner refers to result = 'Winner'; 'USA' is the birth_country
in Season 20 Episode 11 refers to episode_id = 'S20-E11'; 'Doofus' is the nickname of person; include in credit list refers to credited = 'true'
List out the birth name of crews who are co-executive producer and higher than 1.60 meters.
co-executive producer refers to role = 'co-executive producer'; higher than 1.60 meters refers to height_meters > 1.60
in 2010 refers to year = 2010; winning rate refers to DIVIDE(COUNT(result = 'winner'), COUNT(*));
episode S20-E1, S20-E2 & S20-E3 refers to episode_id = 'S20-E1' and episode_id = 'S20-E2' and episode_id = 'S20-E3'
received the most nomination refers to MAX(COUNT(episode_id))
is credited refers to credited = 'true';
"New York" is the birth_place; 'USA' is the birth_region
highest number of vote of the star score refers to max(votes)
voice over for and was awarded refers to award like '%Voice-Over%';
lowest rating refers to Min(rating)
writer refers to role = 'writer'; star score greater than 5 refers to stars > 5; in 2009 refers to year = 2009
credited cast refers to category = 'Cast' and  credited = 'true'; episode "In the Name of the Grandfather" refers to title = 'In the Name of the Grandfather'
For the episode who won the award held by Jupiter Award, describe award name, aired date and rating of that episode.
held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'
"riot" and "cake" are both keyword
"Outstanding Voice-Over Performance" is the award; 'Primetime Emmy Awards' is the organization; awardee refers to result = 'Winner'; first ever award refers to Min(year); age at the time of awarded refers to Subtract(year, SUBSTR(birthdate, 0, 5))
episode S20-E1, S20-E2 & S20-E3 refers to episode_id = 'S20-E1' and episode_id = 'S20-E2' and episode_id = 'S20-E3'
people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)
"New York" is the birth_place; 'USA' is the birth_region
5 stars refers to stars = 5; nominated refers to result = 'Nominee'; Prism Award refers to award_category = 'Prism Award'; on April 19 2009 refers to air_date = '2009-04-19'
between October and November 2008 refers to air_date BETWEEN '2008-10-01' and '2008-11-30'
voiced refers to role; role = 'Helen Lovejoy"
co-executive producer refers to role = 'co-executive producer'; nominee of "Outstanding Animated Program (For Programming Less Than One Hour)" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'
nominated episodes refers to result = 'Nominee'; percentage of votes = DIVIDE(SUM(result = 'Nominee), SUM(Votes)) as percentage
Name the performer who won Emmy Award for Outstanding Voice-Over Performance by playing Homer simpson 20.
Outstanding Voice-Over Performance refers to award = 'Outstanding Voice-Over Performance'; who won refers to result = 'Winner'; Emmy refers to organization = 'Primetime Emmy Awards'; playing Homer simpson 20 refers to character = 'Homer simpson 20'
highest votes refers to max(votes); to Carlton Batten refers to person = 'Carlton Batten'
worst rated episode refers to MIN(rating)
additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'
"riot" and "cake" are both keyword
WGA Award (TV) award refers to award_category = 'WGA Award (TV)'; born in the USA refers to birth_country = 'USA'; from 2009 to 2010 refers to birthdate BETWEEN '2019-01-01' and '2019-12-31'
award winner refers to result = 'Winner'; 'USA' is the birth_country
aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5
"Matt Groening" is the person; 'In the Name of the Grandfather' is the title of episode; episode number refers to episode; series number refers to number_in_series
crew refers to Person; full name refers to name; have nickname refers to nickname IS NOT NULL
aired between October to November refers to strftime('%m', air_date) between '10' and '11';
What is the ratio between the 5 stars votes for 'No Loan Again, Naturally' episode and 'Coming to Homerica' episode?
5 stars votes refers to stars = 5 ; 'No Loan Again, Naturally' and 'Coming to Homerica' are both the title of episode;  ratio = Divide (votes where title = 'No Loan Again, Naturally', votes where title = 'Coming to Homerica')
"New York" is the birth_place; 'USA' is the birth_region
"Matt Groening" is the person; 'In the Name of the Grandfather' is the title of episode; episode number refers to episode; series number refers to number_in_series
stars score of 10 at 30% and above refers to stars = 10 and percent > 29
most recent refers to MAX(year); received refers to result = 'Winner'; name of award refers to award; category refers to award_category
won the award refers to result = 'Winner'; in 2009 refers to year = 2009
co-executive producer refers to role = 'co-executive producer'; nominee of "Outstanding Animated Program (For Programming Less Than One Hour)" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'
held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'
"Billy Kimball" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa
in 2010 refers to year = 2010; winning rate refers to DIVIDE(COUNT(result = 'winner'), COUNT(*));
episode 426 refers to number_in_series = 426
Calculate the percentage of the winners who are higher than 1.75 meters.
winners refers to result = 'Winner'; higher than 1.75 meters refers to height_meters > 1.75; percentage = divide(sum(result = 'Winner' and height_meters > 1.75), count(result = 'Winner' )) * 100%
rating of 7 and above refers to rating > 7.0
more than 200 votes refer to votes > 200; composer refers to role = 'composer'; Outstanding Music Composition for a Series (Original Dramatic Score) refers to award = 'Outstanding Music Composition for a Series (Original Dramatic Score)'
"Dan Castellaneta" is the person; won refers to result = 'Winner'; 'Outstanding Voice-Over Performance' is the award; 'Primetime Emmy Awards' is the organization; in 2009 refers to year = 2009
height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'
5 stars refers to stars = 5; nominated refers to result = 'Nominee'; Prism Award refers to award_category = 'Prism Award'; on April 19 2009 refers to air_date = '2009-04-19'
won refers to result = 'Winner'; in 2017 refers to year = 2017
won the award refers to result = 'Winner'; in 2009 refers to year = 2009
episode S20-E1, S20-E2 & S20-E3 refers to episode_id = 'S20-E1' and episode_id = 'S20-E2' and episode_id = 'S20-E3'
co-executive producer refers to role = 'co-executive producer'; nominee of "Outstanding Animated Program (For Programming Less Than One Hour)" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'
more than 100 votes refers to votes > 100
How many nominations have Billy Kimball received in 2010 for The simpson 20s: Season 20?
in 2010 refers to year = 2010; nominations refers to result = 'Nominee'
episode "Take My Life, Please" refers to title = 'Take My Life, Please'
height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'
name refers to person; the role Smithers refers to character = 'Smithers'
"Marc Wilmore" is the name of person
"Pamela Hayden" is the person; voice the character 'Ruthie' refers to role = 'Ruthie'
won the award refers to result = 'Winner'; in 2009 refers to year = 2009
episodes that have received more 7-star votes than the season average refers to votes > DIVIDE(SUM(votes), COUNT(stars = 7))
episode "Lisa the Drama Queen" refers to title = 'Lisa the Drama Queen';
Primetime Emmy Award refers to award_category = 'Primetime Emmy'
are not included in the credit list refers to credited = ''
What is the name of actor who took the role Smithers?
name refers to person; the role Smithers refers to character = 'Smithers'
"Favorite Animated Comedy" is the award; 'People's Choice Award' is the award_category; received award refers to result = 'Winner'; first ever award refers to Min(year)
winner refers to result = 'Winner'; Best International TV Series in 2017 refers to award = 'Best International TV Series' and year = '2017'
in 2009 refers to year = 2009
nominated refers to result = 'Nominee'; highest number of nominated award refers to Max(Count(person))
rating below 7 refers to rating < 7
episode "Take My Life, Please" refers to title = 'Take My Life, Please'
more than 1000 votes refers to votes > 1000
star score less than 8 refers to stars < 8; aired in 2009 refers to air_date LIKE '2009%'
highest votes refers to max(votes); nominated refers to result = 'Nominee'
in 2009 refers to year = 2009; name of awarded character refers to character
How many award winners are from the USA?
award winner refers to result = 'Winner'; 'USA' is the birth_country
In 2010 refers to year = 2010
stars greater than the 70% of average stars refers to stars > multiply(avg(stars), 0.7)
more than 100 votes refers to votes > 100
rating of 7 and above refers to rating > 7.0
5 stars refers to stars = 5; nominated refers to result = 'Nominee'; Prism Award refers to award_category = 'Prism Award'; on April 19 2009 refers to air_date = '2009-04-19'
star score of 10 refers to stars = 10
"Los Angeles" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8
from countries other than the USA refers to birth_country ! = 'USA'
episodes that have received more 7-star votes than the season average refers to votes > DIVIDE(SUM(votes), COUNT(stars = 7))
are not included in the credit list refers to credited = ''
What is the title of episode that won the Best International TV Series Award in 2017?
won refers to result = 'Winner'; in 2017 refers to year = 2017
stars score of 10 at 30% and above refers to stars = 10 and percent > 29
highest votes refers to max(votes); to Carlton Batten refers to person = 'Carlton Batten'
"Los Angeles" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8
won the award refers to result = 'Winner'; in 2009 refers to year = 2009
between the episode 5 and 10 of season 20 refers to episode_id IN('S20-E5', 'S20-E6', 'S20-E7', 'S20-E8', 'S20-E9', 'S20-E10'); credited refers to credited = 'true'; for casting refers to role = 'casting'
aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10
stars greater than the 70% of average stars refers to stars > multiply(avg(stars), 0.7)
"riot" and "cake" are both keyword
director refers to role = 'director'
winners refers to result = 'Winner'; in OFTA Television Award and WGA Award (TV) refers to award = 'OFTA Television Award' and award = 'WGA Award (TV)'
Give the title of the episode won in Primetime Emmy Awards 2009.
won refers to result = 'Winner'; in Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'; 2009 refers to year = 2009
"How the Test Was Won" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person
crew refers to Person; full name refers to name; have nickname refers to nickname IS NOT NULL
in 2009 refers to year = 2009; name of awarded character refers to character
episode "Lisa the Drama Queen" refers to title = 'Lisa the Drama Queen';
Outstanding Voice-Over Performance refers to award = 'Outstanding Voice-Over Performance'; who won refers to result = 'Winner'; Emmy refers to organization = 'Primetime Emmy Awards'; playing Homer simpson 20 refers to character = 'Homer simpson 20'
writer refers to role = 'Writer'; most 10 star votes refers to max(votes) where stars = 10
more than 1000 votes refers to votes > 1000
born in USA refers to birth_country = 'USA'; were nominated refers to result = 'Nominee'; 'Outstanding Animated Program (For Programming Less Than One Hour)' is the award; in 2009 refers to year = 2009
aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10
star score greater than 8 refers to stars > 8
What are the titles of the episodes that have received more 7-star votes than the season average?
episodes that have received more 7-star votes than the season average refers to votes > DIVIDE(SUM(votes), COUNT(stars = 7))
aired on 3/22/2009 refers to air_date = '2009-03-22'
nominees refers to result = 'Nominee'; born in USA refers to birth_country = 'USA'; percentage = divide(sum(result = 'Nominee' and birth_country = 'USA'), count(Person.name)) * 100%
"Pamela Hayden" is the person; voice the character 'Ruthie' refers to role = 'Ruthie'
in 2009 refers to year = 2009
website address refers to episode_image
held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'
"Billy Kimball" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa
nominated refers to result = 'Nominee'; highest number of nominated award refers to Max(Count(person))
5th episode refers to episode = 5
won refers to result = 'Winner'; 'Best Voice-Over Performance' is the award; ' Online Film & Television Association' is the organization; in 2009 refers to year = 2009
List the award name and persons who won the award in 2009.
won the award refers to result = 'Winner'; in 2009 refers to year = 2009
star score of 10 refers to stars = 10
from countries other than the USA refers to birth_country ! = 'USA'
born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970
from Animation Department refers to category = 'Animation Department'; AVG(height_meters) where category = 'Animation Department'
website address refers to episode_image
in 2009 refers to year = 2009; name of awarded character refers to character
aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5
in Season 20 Episode 11 refers to episode_id = 'S20-E11'; 'Doofus' is the nickname of person; include in credit list refers to credited = 'true'
"riot" and "cake" are both keyword
in 2010 refers to year = 2010; nominations refers to result = 'Nominee'
Among the casts who were born in Los Angeles, describe the name and birth date of who have 1.8 m and above in height.
"Los Angeles" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8
voice over for and was awarded refers to award like '%Voice-Over%';
in 2009 refers to year = 2009
episode "Lisa the Drama Queen" refers to title = 'Lisa the Drama Queen';
episode S20-E1, S20-E2 & S20-E3 refers to episode_id = 'S20-E1' and episode_id = 'S20-E2' and episode_id = 'S20-E3'
"New York" is the birth_place; 'USA' is the birth_region
between the episode 5 and 10 of season 20 refers to episode_id IN('S20-E5', 'S20-E6', 'S20-E7', 'S20-E8', 'S20-E9', 'S20-E10'); credited refers to credited = 'true'; for casting refers to role = 'casting'
information about the music department refers to category = 'Music Department'
won refers to result = 'Winner'; first award refers to Min(year)
"Dell Hake" is the person; not included in the credit list refers to credited = ''
won refers to result = 'Winner'; in 2017 refers to year = 2017
List down person's name who has nickname.
has nickname refers to nickname is NOT NULL
crew refers to Person; full name refers to name; have nickname refers to nickname IS NOT NULL
voice over for and was awarded refers to award like '%Voice-Over%';
episodes that have received more 7-star votes than the season average refers to votes > DIVIDE(SUM(votes), COUNT(stars = 7))
highest votes refers to max(votes); to Carlton Batten refers to person = 'Carlton Batten'
highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))
being nominated refers to result = 'Nominee'; percentage = divide(count(result = 'Nominee'), count(result)) * 100%
are not included in the credit list refers to credited = ''
between the episode 5 and 10 of season 20 refers to episode_id IN('S20-E5', 'S20-E6', 'S20-E7', 'S20-E8', 'S20-E9', 'S20-E10'); credited refers to credited = 'true'; for casting refers to role = 'casting'
largest number of votes refers to MAX(votes)
In 2010 refers to year = 2010
List down the award name, result, credit category and credited status of the "Billy Kimball".
"Billy Kimball" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa
award winner refers to result = 'Winner'; 'USA' is the birth_country
between the episode 5 and 10 of season 20 refers to episode_id IN('S20-E5', 'S20-E6', 'S20-E7', 'S20-E8', 'S20-E9', 'S20-E10'); credited refers to credited = 'true'; for casting refers to role = 'casting'
average high = Divide(Sum(height_meters), Count(name))
"Dan Castellaneta" is the person;  2009 is year;  won refers result = 'Winner'
aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5
co-executive producer refers to role = 'co-executive producer'; higher than 1.60 meters refers to height_meters > 1.60
WGA Award (TV) award refers to award_category = 'WGA Award (TV)'; born in the USA refers to birth_country = 'USA'; from 2009 to 2010 refers to birthdate BETWEEN '2019-01-01' and '2019-12-31'
winners refers to result = 'Winner'; higher than 1.75 meters refers to height_meters > 1.75; percentage = divide(sum(result = 'Winner' and height_meters > 1.75), count(result = 'Winner' )) * 100%
average awards winning rate refers to DIVIDE(SUM(result = 'winner'), COUNT(award));
star score greater than 5 refers to stars > 5; have air date in 2008 refers to air_date LIKE '2008%'
Among the episode with highest votes, what is the category credited to Carlton Batten?
highest votes refers to max(votes); to Carlton Batten refers to person = 'Carlton Batten'
born before 1970 refers to birthdate < '1970-01-01'
nominated for Primetime Emmy Award but did not win refers to award_category = 'Primetime Emmy' and result = 'Nominee';  from 2009 to 2010 refers to year > = '2009' and  year < = '2010'
co-executive producer refers to role = 'co-executive producer'; higher than 1.60 meters refers to height_meters > 1.60
episode 'Take My Life, Please' refers to title =   'Take My Life, Please'
episodes that have received more 7-star votes than the season average refers to votes > DIVIDE(SUM(votes), COUNT(stars = 7))
stars score of 10 at 30% and above refers to stars = 10 and percent > 29
5th episode refers to episode = 5
In 2010 refers to year = 2010
most recent refers to MAX(year); received refers to result = 'Winner'; name of award refers to award; category refers to award_category
born in the USA refers to birth_country = 'USA'
Write the title and all the keywords of the episode that was aired on 3/22/2009.
aired on 3/22/2009 refers to air_date = '2009-03-22'
aired between October to November refers to strftime('%m', air_date) between '10' and '11';
born before 1970 refers to birthdate < '1970-01-01'
"Take My Life,Please" is the title of episode
is credited refers to credited = 'true';
aired in 2008 refers to air_date LIKE '2008%'; votes ranges from 920 to 950 refers to votes BETWEEN 920 AND 950
5 stars refers to stars = 5; nominated refers to result = 'Nominee'; Prism Award refers to award_category = 'Prism Award'; on April 19 2009 refers to air_date = '2009-04-19'
highest number of vote of the star score refers to max(votes)
being nominated refers to result = 'Nominee'; percentage = divide(count(result = 'Nominee'), count(result)) * 100%
WGA Award (TV) award refers to award_category = 'WGA Award (TV)'; born in the USA refers to birth_country = 'USA'; from 2009 to 2010 refers to birthdate BETWEEN '2019-01-01' and '2019-12-31'
"Marc Wilmore" is the name of person
Please indicate the keywords of the episode that won the Primetime Emmy Award category.
Primetime Emmy Award refers to award_category = 'Primetime Emmy'
more than 200 votes refer to votes > 200; composer refers to role = 'composer'; Outstanding Music Composition for a Series (Original Dramatic Score) refers to award = 'Outstanding Music Composition for a Series (Original Dramatic Score)'
nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6
"How the Test Was Won" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person
episode 'Take My Life, Please' refers to title =   'Take My Life, Please'
being nominated refers to result = 'Nominee'; percentage = divide(count(result = 'Nominee'), count(result)) * 100%
writer refers to role = 'writer'; star score greater than 5 refers to stars > 5; in 2009 refers to year = 2009
"Take My Life,Please" is the title of episode
crew refers to Person; full name refers to name; have nickname refers to nickname IS NOT NULL
episode "Lisa the Drama Queen" refers to title = 'Lisa the Drama Queen';
"Outstanding Voice-Over Performance" is the award; 'Primetime Emmy Awards' is the organization; awardee refers to result = 'Winner'; first ever award refers to Min(year); age at the time of awarded refers to Subtract(year, SUBSTR(birthdate, 0, 5))
List all keywords associated with the episode 'Take My Life, Please'.
episode 'Take My Life, Please' refers to title =   'Take My Life, Please'
rating of 7 and above refers to rating > 7.0
5 stars refers to stars = 5; nominated refers to result = 'Nominee'; Prism Award refers to award_category = 'Prism Award'; on April 19 2009 refers to air_date = '2009-04-19'
won refers to result = 'Winner'; first award refers to Min(year)
highest votes refers to max(votes); to Carlton Batten refers to person = 'Carlton Batten'
Primetime Emmy Award refers to award_category = 'Primetime Emmy'
star score of 10 refers to stars = 10
being nominated refers to result = 'Nominee'; percentage = divide(count(result = 'Nominee'), count(result)) * 100%
co-executive producer refers to role = 'co-executive producer'; nominee of "Outstanding Animated Program (For Programming Less Than One Hour)" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'
awarded category refers to award_category
won the award refers to result = 'Winner'; in 2009 refers to year = 2009
Which episode has the highest number of vote of the star score?
highest number of vote of the star score refers to max(votes)
highest votes refers to max(votes); to Carlton Batten refers to person = 'Carlton Batten'
episode "Lisa the Drama Queen" refers to title = 'Lisa the Drama Queen';
voice over for and was awarded refers to award like '%Voice-Over%';
"New York" is the birth_place; 'USA' is the birth_region
5th episode refers to episode = 5
percentage = DIVIDE(SUM(stars = 5), COUNT(stars)) as percentage
nominated refers to result = 'Nominee'; highest number of nominated award refers to Max(Count(person))
held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'
born in USA refers to birth_country = 'USA'; were nominated refers to result = 'Nominee'; 'Outstanding Animated Program (For Programming Less Than One Hour)' is the award; in 2009 refers to year = 2009
in Season 20 Episode 11 refers to episode_id = 'S20-E11'; 'Doofus' is the nickname of person; include in credit list refers to credited = 'true'
List all the keyword for 'Take My Life, Please' episode.
"Take My Life,Please" is the title of episode
taller than 1.70m refers to height_meters > 1.70; born in Canada refers to birth_country = 'Canada'
born in USA refers to birth_country = 'USA'; were nominated refers to result = 'Nominee'; 'Outstanding Animated Program (For Programming Less Than One Hour)' is the award; in 2009 refers to year = 2009
most recent refers to MAX(year); received refers to result = 'Winner'; name of award refers to award; category refers to award_category
Primetime Emmy Award refers to award_category = 'Primetime Emmy'
nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6
episodes that have received more 7-star votes than the season average refers to votes > DIVIDE(SUM(votes), COUNT(stars = 7))
nominated refers to result = 'Nominee'; highest number of nominated award refers to Max(Count(person))
aired on 11/30/2008 refers to air_date = '11/30/2008'; win refers to result = 'Winner'
received the most nomination refers to MAX(COUNT(episode_id))
voiced refers to role; role = 'Helen Lovejoy"
In episode with the highest votes, list the category of awards it is nominated for.
highest votes refers to max(votes); nominated refers to result = 'Nominee'
aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5
won refers to result = 'Winner'; first award refers to Min(year)
"Los Angeles" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8
episode S20-E1, S20-E2 & S20-E3 refers to episode_id = 'S20-E1' and episode_id = 'S20-E2' and episode_id = 'S20-E3'
"Take My Life,Please" is the title of episode
episode 'Take My Life, Please' refers to title =   'Take My Life, Please'
"Outstanding Voice-Over Performance" is the award; 'Primetime Emmy Awards' is the organization; awardee refers to result = 'Winner'; first ever award refers to Min(year); age at the time of awarded refers to Subtract(year, SUBSTR(birthdate, 0, 5))
"Billy Kimball" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa
between October and November 2008 refers to air_date BETWEEN '2008-10-01' and '2008-11-30'
"Marc Wilmore" is the name of person
List down all the roles of Matt Groening on the episode titled 'In the Name of the Grandfather' along with the episode number and series number.
"Matt Groening" is the person; 'In the Name of the Grandfather' is the title of episode; episode number refers to episode; series number refers to number_in_series
credited cast refers to category = 'Cast' and  credited = 'true'; episode "In the Name of the Grandfather" refers to title = 'In the Name of the Grandfather'
won refers to result = 'Winner'; in Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'; 2009 refers to year = 2009
additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'
born in the USA refers to birth_country = 'USA'
height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'
writer refers to role = 'Writer'; most 10 star votes refers to max(votes) where stars = 10
scores 5 to 10 refers to TOTAL(percent) where 1 < = stars < 5
highest number of vote of the star score refers to max(votes)
lowest rating refers to Min(rating)
voiced refers to role; role = 'Helen Lovejoy"
Calculate the difference between the highest votes for episode and the lowest votes for episode.
highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))
lowest rating refers to Min(rating)
scores 5 to 10 refers to TOTAL(percent) where 1 < = stars < 5
Outstanding Voice-Over Performance refers to award = 'Outstanding Voice-Over Performance'; who won refers to result = 'Winner'; Emmy refers to organization = 'Primetime Emmy Awards'; playing Homer simpson 20 refers to character = 'Homer simpson 20'
writer refers to role = 'Writer'; most 10 star votes refers to max(votes) where stars = 10
"riot" and "cake" are both keyword
In 2010 refers to year = 2010
writer refers to role = 'writer'; star score greater than 5 refers to stars > 5; in 2009 refers to year = 2009
"Dan Castellaneta" is the person;  2009 is year;  won refers result = 'Winner'
"Outstanding Voice-Over Performance" is the award; 'Primetime Emmy Awards' is the organization; awardee refers to result = 'Winner'; first ever award refers to Min(year); age at the time of awarded refers to Subtract(year, SUBSTR(birthdate, 0, 5))
episode "Lisa the Drama Queen" refers to title = 'Lisa the Drama Queen';
List all of the information about the music department's casts and crews.
information about the music department refers to category = 'Music Department'
episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200
won refers to result = 'Winner'; in 2017 refers to year = 2017
percentage = DIVIDE(SUM(stars = 5), COUNT(stars)) as percentage
nominated for Primetime Emmy Award but did not win refers to award_category = 'Primetime Emmy' and result = 'Nominee';  from 2009 to 2010 refers to year > = '2009' and  year < = '2010'
held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'
"Matt Groening" is the person; 'In the Name of the Grandfather' is the title of episode; episode number refers to episode; series number refers to number_in_series
award winner refers to result = 'Winner'; 'USA' is the birth_country
are not included in the credit list refers to credited = ''
nominated episodes refers to result = 'Nominee'; percentage of votes = DIVIDE(SUM(result = 'Nominee), SUM(Votes)) as percentage
has nickname refers to nickname is NOT NULL
What year did the Simpsons receive its first ever award for Favorite Animated Comedy in People's Choice Award?
"Favorite Animated Comedy" is the award; 'People's Choice Award' is the award_category; received award refers to result = 'Winner'; first ever award refers to Min(year)
won refers to result = 'Winner'; in 2017 refers to year = 2017
between the episode 5 and 10 of season 20 refers to episode_id IN('S20-E5', 'S20-E6', 'S20-E7', 'S20-E8', 'S20-E9', 'S20-E10'); credited refers to credited = 'true'; for casting refers to role = 'casting'
"Pamela Hayden" is the person; voice the character 'Ruthie' refers to role = 'Ruthie'
writer refers to role = 'writer'; star score greater than 5 refers to stars > 5; in 2009 refers to year = 2009
most recent refers to MAX(year); received refers to result = 'Winner'; name of award refers to award; category refers to award_category
height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'
held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'
aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5
in 2009 refers to year = 2009; name of awarded character refers to character
"The Tiny Canadian" refers to nickname = 'The Tiny Canadian'; play as in the show refers to role
How many people were considered as prospective recipients of the "Animation" award?
prospective recipients refers to result = 'Nominee'
"Favorite Animated Comedy" is the award; 'People's Choice Award' is the award_category; received award refers to result = 'Winner'; first ever award refers to Min(year)
episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200
name refers to person; the role Smithers refers to character = 'Smithers'
aired between October to November refers to strftime('%m', air_date) between '10' and '11';
5 stars votes refers to stars = 5 ; 'No Loan Again, Naturally' and 'Coming to Homerica' are both the title of episode;  ratio = Divide (votes where title = 'No Loan Again, Naturally', votes where title = 'Coming to Homerica')
more than 1000 votes refers to votes > 1000
"Dell Hake" is the person; not included in the credit list refers to credited = ''
"Outstanding Voice-Over Performance" is the award; 'Primetime Emmy Awards' is the organization; awardee refers to result = 'Winner'; first ever award refers to Min(year); age at the time of awarded refers to Subtract(year, SUBSTR(birthdate, 0, 5))
in November 2008 refers to air_date LIKE '2008-11%'
aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5
What's the rating of the episode in which Dan Castellaneta won the Outstanding Voice-Over Performance award in 2009?
"Dan Castellaneta" is the person;  2009 is year;  won refers result = 'Winner'
between October and November 2008 refers to air_date BETWEEN '2008-10-01' and '2008-11-30'
nominees refers to result = 'Nominee'; born in USA refers to birth_country = 'USA'; percentage = divide(sum(result = 'Nominee' and birth_country = 'USA'), count(Person.name)) * 100%
nominated for Primetime Emmy Award but did not win refers to award_category = 'Primetime Emmy' and result = 'Nominee';  from 2009 to 2010 refers to year > = '2009' and  year < = '2010'
highest votes refers to max(votes); nominated refers to result = 'Nominee'
highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))
writer refers to role = 'writer'; star score greater than 5 refers to stars > 5; in 2009 refers to year = 2009
more than 100 votes refers to votes > 100
lowest rating refers to Min(rating)
2 stars refers to stars = 2; 9 votes refers to votes = 9
episodes that have received more 7-star votes than the season average refers to votes > DIVIDE(SUM(votes), COUNT(stars = 7))
Write down the website address which stores the episode image of episode 5.
website address refers to episode_image
more than 100 votes refers to votes > 100
information about the music department refers to category = 'Music Department'
received the most nomination refers to MAX(COUNT(episode_id))
is credited refers to credited = 'true';
in 2010 refers to year = 2010; winning rate refers to DIVIDE(COUNT(result = 'winner'), COUNT(*));
nominated for Primetime Emmy Award but did not win refers to award_category = 'Primetime Emmy' and result = 'Nominee';  from 2009 to 2010 refers to year > = '2009' and  year < = '2010'
"riot" and "cake" are both keyword
"Favorite Animated Comedy" is the award; 'People's Choice Award' is the award_category; received award refers to result = 'Winner'; first ever award refers to Min(year)
rating of 7 and above refers to rating > 7.0
"Marc Wilmore" is the name of person
What are the characters that were nominated for Primetime Emmy Award from 2009 to 2010 but did not win?
nominated for Primetime Emmy Award but did not win refers to award_category = 'Primetime Emmy' and result = 'Nominee';  from 2009 to 2010 refers to year > = '2009' and  year < = '2010'
more than 100 votes refers to votes > 100
more than 200 votes refer to votes > 200; composer refers to role = 'composer'; Outstanding Music Composition for a Series (Original Dramatic Score) refers to award = 'Outstanding Music Composition for a Series (Original Dramatic Score)'
star score greater than 5 refers to stars > 5; have air date in 2008 refers to air_date LIKE '2008%'
"How the Test Was Won" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person
scores 5 to 10 refers to TOTAL(percent) where 1 < = stars < 5
episode 426 refers to number_in_series = 426
"Billy Kimball" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa
"Marc Wilmore" is the name of person
stars score of 10 at 30% and above refers to stars = 10 and percent > 29
more than 1000 votes refers to votes > 1000
Which episode ids are rated 5 stars and have more than 100 votes?
more than 100 votes refers to votes > 100
star score greater than 8 refers to stars > 8
between October and November 2008 refers to air_date BETWEEN '2008-10-01' and '2008-11-30'
from countries other than the USA refers to birth_country ! = 'USA'
co-executive producer refers to role = 'co-executive producer'; higher than 1.60 meters refers to height_meters > 1.60
credited cast refers to category = 'Cast' and  credited = 'true'; episode "In the Name of the Grandfather" refers to title = 'In the Name of the Grandfather'
episodes that have received more 7-star votes than the season average refers to votes > DIVIDE(SUM(votes), COUNT(stars = 7))
"How the Test Was Won" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person
winner refers to result = 'Winner'; Best International TV Series in 2017 refers to award = 'Best International TV Series' and year = '2017'
in 2010 refers to year = 2010; nominations refers to result = 'Nominee'
episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200
Which crew member of the simpson 20s is the oldest?
oldest refers to Min(birthdate)
received the most nomination refers to MAX(COUNT(episode_id))
"riot" and "cake" are both keyword
won refers to result = 'Winner'; in 2017 refers to year = 2017
have air date in 2008 refers to air_date LIKE '2008%'
held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'
star score of 10 refers to stars = 10
best rating scale refers to stars = 10
Primetime Emmy Award refers to award_category = 'Primetime Emmy'
Outstanding Voice-Over Performance refers to award = 'Outstanding Voice-Over Performance'; who won refers to result = 'Winner'; Emmy refers to organization = 'Primetime Emmy Awards'; playing Homer simpson 20 refers to character = 'Homer simpson 20'
percentage = DIVIDE(SUM(stars = 5), COUNT(stars)) as percentage
List the names of players who play by the left hand.
play by the left hand refers to Batting_hand =   'Left-hand bat'
first half refers to 1 < Over_Id and Over_Id < 25; average = divide(sum(Over_Id) when 1 < Over_Id and Over_Id < 25, sum(Runs_Scored)) as percentage; first innings refers to Innings_No = 1
SuperSport Park refers to Venue_Name = 'SuperSport Park'; Centurion refers to City_Name = 'Centurion'
Delhi Daredevils refers to team_name = 'Delhi Daredevils'; in 2009 refers to Match_Date = '2009%'; won by wickets refers to Win_Type = 'wickets'; percentage refers to DIVIDE(COUNT(Win_Type = 'wickets'), COUNT(Win_Type))
are Superover refers to win_type = 'wickets';
venue refers to Venue_Name; Kolkata Knight Riders refers to Team_Name = 'Kolkata Knight Riders'; most of their matches refers to max(count(Venue_Id)); Team 1 refers to Team_Id = Team_1
player's ID refers to Player_Id
have left arm fast in bowling skill refers to Bowling_skill = 'Left-arm fast';
Mohammad Hafeez refers to Player_Name = 'Mohammad Hafeez';
role refers to of Role_Id; SC Ganguly refers to Player_Name = 'SC Ganguly'; on 2008/4/18 refers to Match_Date = '2008-04-18'
names of teams refers to Team_Name; second team refers to Team_2; Pune Warriors refers to Team_Name = 'Pune Warriors'
Among the players from South Africa, provide the players' names who were born in 1984.
from South Africa refers to Country_Name = 'South Africa'; born in 1984 refers to DOB like '1984%';
bowling skill greater than 2 refers to Bowling_skill > 2
won by runs refers to Win_Type = 'runs'; won the toss and decided to field refers to Toss_Winner and Toss_Name = 'field'; percentage = divide(count(Team_1) when Match_Winner = Team_1 and Toss_Winner = Team_1, count(Team_1)) as percentage
right-handed batting refers to Batting_hand = 'Right-hand bat'; percentage = divide(count(Player_Id where Batting_hand = 'Right-hand bat'), count(Player_Id)) * 100%
innings numbers refers to Innings_No
Dr DY Patil Sports Academy venue refers to Venue_Name = 'Dr DY Patil Sports Academy'; win by a margin of less than 10 refers to Win_Margin < 10; percentage = divide(count(Venue_Id) when Win_Margin < 10, sum(Venue_Id)) as percentage
SC Ganguly refers to Player_Name = 'SC Ganguly'; team captain refers to Role_Desc = 'Captain'
the team named "Pune Warriors" refers to Team_Name = 'Pune Warriors'; the total number of won matches = count(Team_Name where Team_Id = Match_Winner)
right hand as batting hand refers to Batting_Hand = 'Right-hand bat'; born after 1985 refers to SUBSTR(DOB, 1, 4) > 1985
born before 10/16/1975 refers to DOB < 1975-10-16; bowling skill of less than 3 refers to Bowling_skill < 3
Sunrisers Hyderabad team refers to Team_Name = 'Sunrisers Hyderabad'; in 2013 refers to Match_Date like '2013%';
What is the date of the match that has the highest wager on the final result of a game?
date of the match refers to Match_Date; highest wager refers to max(Win_Margin)
Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; time of toss winner refers to count(Toss_Winner)
bat with their right hand refers to Batting_hand = 'Right-hand bat'; average = divide(count(Player_Id) when Batting_hand = 'Right-hand bat', count(Country_Name))
from Sri Lanka refers to Country_Name = 'Sri Lanka';
name of players refers to Player_Name
winning margin of 6 points refers to Win_Margin = 6; held on April 26, 2009 refers to Match_Date = '2009-04-26'
name of player refers to Player_Name; the youngest refers to max(DOB)
resulted in a tie refers to Win_Type = 'Tie'; in 2015 refers to SUBSTR(Match_Date, 1, 4) = 2015
player's ID refers to Player_Id
out by lbw refers to Out_Id = 4; runout refers to Out_Id = 3; average out by lbw refers to  avg(Player_Out when Out_Id = 4); average out by runout refers to  avg(Player_Out when Out_Id = 3)
seasons from 2011 to 2015 refers to 2011 < Season_Year < 2015
How many matches did Mohammad Hafeez play?
Mohammad Hafeez refers to Player_Name = 'Mohammad Hafeez';
Indian refers to Country_Name = 'India'
venue refers to Venue_Name
season refers to Season_Id; the highest number of matches refers to max(count(Season_Id)); M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'
the country the umpire comes from refers to Country_Name; BR Doctrove refers to Umpire_Name = 'BR Doctrove'
full name refers to Player_Name; in 2013 refers to Season_Year = 2013
name of the team refers to Team_Name; the most number of matches refers to max(count(Match_Winner)); season 1 refers to season_Id = 1
Who refers to Player_Name;
name of the player refers to Player_Name; born on July 7 1981 refers to DOB = '1981-07-07'
players' name refers to Player_name; born in 1971 refers to DOB LIKE '1971%'
player no.41 won the "man of the match" refers to Man_of_the_Match = 41
List the player's ID of the top five players, by descending order, in terms of bowling skill.
player's ID refers to Player_Id
wins the toss refers to Toss_Winner; whether they decided to bat or field refers to Toss_Name
When refers to Match_Date; youngest player refers to max(DOB); first match refers to min(Match_Date)
lowest winning margin refers to MIN(win_margin); team name refers to team_name; second team refers to team_2
full name refers to Player_Name; in 2013 refers to Season_Year = 2013
which country refers to Country_Id; most umpires refers to max(count(Umpire_Id))
Delhi Daredevils refers to team_name = 'Delhi Daredevils'; in 2014 refers to Match_Date contains '2014';
venue refers to Venue_Name
country refers to Country_Name; the oldest refers to min(DOB)
player no.41 won the "man of the match" refers to Man_of_the_Match = 41
seasons from 2011 to 2015 refers to 2011 < Season_Year < 2015
What is the bowling skill used by most players?
bowling skill used by most players refers to max(count(Bowling_Skill))
venue refers to Venue_Name; winning team refers to match_winner
Yuvraj Singh refers to Player_Name = 'Yuvraj Singh'; receive the Man of the Match award refers to Player_Id = Man_of_the_Match
resulted in a tie refers to Win_Type = 'Tie'; in 2015 refers to SUBSTR(Match_Date, 1, 4) = 2015
won by runs refers to Win_Type = 'runs'; won the toss and decided to field refers to Toss_Winner and Toss_Name = 'field'; percentage = divide(count(Team_1) when Match_Winner = Team_1 and Toss_Winner = Team_1, count(Team_1)) as percentage
eldest player refers to MIN(DOB); where he/she come from refers to Country_Name
city refers to City_Name; M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'
born in 1977 refers to DOB LIKE '1977%'; name refers to Player_Name; birthdate refers to DOB; England refers to Country_Name = 'England'
role refers to of Role_Id; SC Ganguly refers to Player_Name = 'SC Ganguly'; on 2008/4/18 refers to Match_Date = '2008-04-18'
were played in March 2010 refers to Match_Date = '2010-03%'
name of the team refers to Team_Name; the most number of matches refers to max(count(Match_Winner)); season 1 refers to season_Id = 1
Which team wins the toss during the match ID 336011, and can you tell me whether they decided to bat or field?
wins the toss refers to Toss_Winner; whether they decided to bat or field refers to Toss_Name
city refers to City_Name; M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'
had players out by hit wickets refers to Out_Name = 'hit wicket'
out by lbw refers to Out_Id = 4; runout refers to Out_Id = 3; average out by lbw refers to  avg(Player_Out when Out_Id = 4); average out by runout refers to  avg(Player_Out when Out_Id = 3)
born before 10/16/1975 refers to DOB < 1975-10-16; bowling skill of less than 3 refers to Bowling_skill < 3
Legbreak skill refers to Bowling_skill = 'Legbreak' ; percentage = divide(sum(Player_Id) when Bowling_skill = 'Legbreak', count(Player_Id)) as percentage
played as a keeper refers to Role_Desc = 'Keeper'; name of player refers to Player_Name;
Australia refers to Country_Name = 'Australia'
bowling skill greater than 2 refers to Bowling_skill > 2
the oldest refers to min(DOB); date of birth refers to DOB
Australia refers to Country_Name = 'Australia'
What is the role of SC Ganguly?
SC Ganguly refers to Player_Name = 'SC Ganguly'; role refers to Role_Desc
are Indians refers to Country_Name = 'India'
'slow left-arm chinaman' bowling style refers to Bowling_skill = 'Slow left-arm chinaman'; most players  refers to max(count(Country_Id))
name of teams refers to Team_Name; won the toss refers to Toss_Winner; matches with ID from 336010 to 336020  refers to Match_Id BETWEEN 336010 AND 336020
venue refers to Venue_Name
date of birth refers to DOB; 2014 refers to Season_Year = 2014; Orange Cap winner refers to Orange_Cap IS NOT NULL
M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'; Maharashtra Cricket Association Stadium refers to Venue_Name = 'Maharashtra Cricket Association Stadium'; how many times = divide(count(Match_Id where Venue_Name = 'M Chinnaswamy Stadium'), count(Match_Id where Venue_Name = 'Maharashtra Cricket Association Stadium'))
born in the 80s refers to DOB like '198%'; have bowling skill of 2 refers to Bowling_skill = 2;
point of winning margin of 38 refers to win_margin = 38; on April 30, 2009 refers to match_date = '2009-04-30'; team refers to Team_Name;
eldest player refers to MIN(DOB); where he/she come from refers to Country_Name
old refers to SUBTRACT(2022, SUBSTR(DOB, 1, 4)); Ishan Kishan refers to Player_Name = 'Ishan Kishan';
How many percent of the toss-winners decided to bowl first on the pitch from 2010 to 2016?
decide to bowl first refers to Toss_Name = 'field'; from 2010 to 2016 refers to Match_Date BETWEEN '2010-01-01' AND '2016-12-31'; percent = divide(count(Toss_Id where Toss_Name = 'field'), count(Toss_Id)) * 100% where Match_Date BETWEEN '2010-01-01' AND '2016-12-31'
role refers to Role_Desc; K Goel refers to Player_Name = 'K Goel'; match ID 335992 refers to Match_Id = 335992
bowling skill used by most players refers to max(count(Bowling_Skill))
country refers to Country_Name; the oldest refers to min(DOB)
point of winning margin of 38 refers to win_margin = 38; on April 30, 2009 refers to match_date = '2009-04-30'; team refers to Team_Name;
Who refers to Player_Name; youngest player to have won the Purple Cap refers to min(subtract(Season_Year, DOB))
second innings refers to Innings_No = 2; average extra runs = divide(sum(Extra_Runs), count(Innings_No)) when Innings_No = 2
SC Ganguly refers to Player_Name = 'SC Ganguly'; team captain refers to Role_Desc = 'Captain'
born in 1977 refers to DOB LIKE '1977%'; name refers to Player_Name; birthdate refers to DOB; England refers to Country_Name = 'England'
city refers to City_Name; U.A.E refers to Country_Name = 'U.A.E'
match date refers to Match_Date; Chennai Super Kings refers to Team_Name = 'Chennai Super Kings'; first match refers to min(Match_Date)