Chinastark/bird_dataset huggingface dataset:
Database: law_episode
Question: What is the name of the actors born in the USA?
Evidence: born in the USA refers to birth_country = 'USA'
SQL: SELECT name FROM Person WHERE birth_country = 'USA'
Database: law_episode
Question: What is the title of the episodes that were least enjoyed?
Evidence: least enjoyed refers to stars = 1
SQL: SELECT T1.title FROM Episode AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id WHERE T2.stars = 1
Database: law_episode
Question: What are the names of the two people who won an award for their role as directors?
Evidence: won an award refers to result = 'Winner'; role as director refers to role = 'director'
SQL: SELECT T1.name FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id WHERE T2.Result = 'Winner' AND T2.role = 'director'
Database: law_episode
Question: How many votes did the episode titled Juvenile get?
Evidence: the episode titled Juvenile refers to title = 'Juvenile'
SQL: SELECT SUM(T2.votes) FROM Episode AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Juvenile'
Database: law_episode
Question: In which episodes was Anthony Azzara not credited?
Evidence: which episode refers to title; not credited refers to credited = ''
SQL: SELECT T1.title FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Person AS T3 ON T3.person_id = T2.person_id WHERE T2.credited = 'false' AND T3.name = 'Anthony Azzara'
Database: law_episode
Question: In what year did the episodes titled DWB get an award?
Evidence: titled DWB refers to title = 'DWB'; get an award refers to result = 'Winner'
SQL: SELECT DISTINCT T1.year FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T2.title = 'DWB' AND T1.result = 'Winner'
Database: law_episode
Question: In which region were the assistant location managers born?
Evidence: region refers to birth_region; assistant location manager refers to role = 'assistant location manager'
SQL: SELECT T2.birth_region FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id WHERE T1.role = 'president of NBC West Coast'
Database: law_episode
Question: How many stars did the episodes in which Donna Villella worked?
SQL: SELECT COUNT(T3.person_id) FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Person AS T3 ON T3.person_id = T2.person_id WHERE T3.name = 'Donna Villella'
Database: law_episode
Question: What role was Julia Roberts nominated for?
Evidence: nominated refers to result = 'Nominee'
SQL: SELECT T2.role FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id WHERE T2.Result = 'Nominee' AND T1.name = 'Julia Roberts'
Database: law_episode
Question: What role does the tallest person play?
Evidence: the tallest refers to max(height_meters)
SQL: SELECT T2.role FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.person_id = T2.person_id INNER JOIN Award AS T3 ON T2.episode_id = T3.episode_id ORDER BY T1.height_meters DESC LIMIT 1
Database: law_episode
Question: What is the title of the episode with the most nominations?
Evidence: the most nominations refers to max(count(episode_id where result = 'Nominee'))
SQL: SELECT T2.title FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.result = 'Nominee' GROUP BY T2.episode_id ORDER BY COUNT(T1.result) DESC LIMIT 1
Database: law_episode
Question: What was the rating of the episodes that Jace Alexander worked on?
SQL: SELECT T1.rating FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Person AS T3 ON T3.person_id = T2.person_id WHERE T3.name = 'Jace Alexander'
Database: law_episode
Question: What are the names of all the people who worked on episode 19 of season 9?
SQL: SELECT T3.name FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Person AS T3 ON T3.person_id = T2.person_id WHERE T1.episode = 19 AND T1.season = 9
Database: law_episode
Question: What is the average star rating of the episodes Jim Bracchitta has worked on?
Evidence: average star rating = divide(sum(stars), count(episode_id)) where name = 'Jim Bracchitta'
SQL: SELECT CAST(SUM(T3.stars) AS REAL) / COUNT(T2.episode_id) FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.person_id = T2.person_id INNER JOIN Vote AS T3 ON T2.episode_id = T3.episode_id WHERE T3.stars = 1 AND T1.name = 'Jim Bracchitta'
Database: law_episode
Question: What percentage of people have worked on the True North episode as additional crew?
Evidence: the True North episode refers to title = 'True North'; additional crew refers to role = 'Additional Crew'; percentage = divide(count(episode_id where role = 'Additional Crew'), count(episode_id)) * 100% where title = 'True North'
SQL: SELECT CAST(SUM(CASE WHEN T2.role = 'Additional Crew' THEN 1 ELSE 0 END) AS REAL ) * 100 / COUNT(T1.episode_id) FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'True North'
Database: law_episode
Question: Write down the title, summary, and air date of the episode that garnered 72 10-star votes.
Evidence: 72 10-star votes refers to stars = 10 and votes = 72
SQL: SELECT T2.title, T2.summary, T2.air_date FROM Vote AS T1 INNER JOIN Episode AS T2 ON T2.episode_id = T1.episode_id WHERE T1.stars = 10 AND T1.votes = 72
Database: law_episode
Question: How many 6-star votes did episode 12 get? Please include the air date and rating.
Evidence: 6-star vote refers to stars = 6
SQL: SELECT T2.air_date, T2.rating FROM Vote AS T1 INNER JOIN Episode AS T2 ON T2.episode_id = T1.episode_id WHERE T1.stars = 6 AND T2.episode = 12
Database: law_episode
Question: Who is the winner of the Best Television Episode award for the Edgar category in 2000? Include his or her name and role.
Evidence: the Best Television Episode award refers to award = 'Best Television Episode'; the Edgar category refers to award_category = 'Edgar'; in 2000 refers to year = 2000
SQL: SELECT T1.name, T2.role FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id WHERE T2.year = 2000 AND T2.award_category = 'Edgar' AND T2.award = 'Best Television Episode'
Database: law_episode
Question: Write down the organization, year, award, and award category in which Rene Balcer is the winner.
Evidence: Rene Balcer refers to name = 'Rene Balcer'; the winner refers to result = 'Winner'
SQL: SELECT T2.organization, T2.year, T2.award, T2.award_category FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id WHERE T1.name = 'Rene Balcer' AND T2.result = 'Winner'
Database: law_episode
Question: Give me the years and episode IDs in which Constantine Makris was the winner of the Television Silver Gavel Award at the American Bar Association Silver Gavel Awards for Media and the Arts for two consecutive years.
Evidence: the winner refers to result = 'Winner'; the Television refers to award = 'Television'; Silver Gavel Award refers to award_category = 'Silver Gavel Award'; the American Bar Association Silver Gavel Awards for Media and the Arts refers to organization = 'American Bar Association Silver Gavel Awards for Media and the Arts'
SQL: SELECT t3.years, t3.episode_id FROM ( SELECT DISTINCT T2.year AS years, T2.episode_id, row_number() OVER (PARTITION BY T2.episode_id ORDER BY T2.year) AS rm FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id WHERE T2.award = 'Television' AND T2.award_category = 'Silver Gavel Award' AND T1.name = 'Constantine Makris' AND T2.result = 'Winner' AND T2.organization = 'American Bar Association Silver Gavel Awards for Media and the Arts' ) AS T3 GROUP BY t3.episode_id HAVING COUNT(t3.years - t3.rm) >= 2
Database: law_episode
Question: Who was the Law and Order series writer who also won the Television Silver Gavel Award at the American Bar Association Silver Gavel Awards for Media and the Arts for two consecutive years?
Evidence: who refers to name; writer refers to role = 'writer'; won refers to result = 'Winner'; the Television refers to award = 'Television'; Silver Gavel Award refers to award_category = 'Silver Gavel Award'; the American Bar Association Silver Gavel Awards for Media and the Arts refers to organization = 'American Bar Association Silver Gavel Awards for Media and the Arts'
SQL: SELECT t3.name FROM ( SELECT DISTINCT T2.year AS years, T1.name, row_number() OVER (PARTITION BY T1.name ORDER BY T2.year) AS rm FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id WHERE T2.award = 'Television' AND T2.award_category = 'Silver Gavel Award' AND T2.series = 'Law and Order' AND T2.result = 'Winner' AND T2.organization = 'American Bar Association Silver Gavel Awards for Media and the Arts' ) AS T3 GROUP BY t3.name HAVING COUNT(t3.years - t3.rm) >= 2
Database: law_episode
Question: How many times was episode 20 of the Law and Order series nominated for the Primetime Emmy Awards in 1999?
Evidence: nominated refers to result = 'nominee'; the Law and Order series refers to series = 'Law and Order'; the Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'; in 1999 refers to year = 1999
SQL: SELECT COUNT(T2.award_id) FROM Episode AS T1 INNER JOIN Award AS T2 ON T1.episode_id = T2.episode_id WHERE T2.year = 1999 AND T2.result = 'Nominee' AND T1.episode = 20 AND T2.organization = 'Primetime Emmy Awards' AND T1.series = 'Law and Order'
Database: law_episode
Question: On what episode did Julia Roberts win the "Outstanding Guest Actress in a Drama Series" award during the 1999 Primetime Emmy Awards? Tell me her role.
Evidence: win refers to result = 'Winner'; the "Outstanding Guest Actress in a Drama Series" award refers to award = 'Outstanding Guest Actress in a Drama Series'; the 1999 refers to year = 1999; Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'
SQL: SELECT T3.episode_id, T2.role FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id INNER JOIN Episode AS T3 ON T2.episode_id = T3.episode_id WHERE T2.year = 1999 AND T2.award = 'Outstanding Guest Actress in a Drama Series' AND T2.organization = 'Primetime Emmy Awards' AND T1.name = 'Julia Roberts' AND T2.result = 'Nominee'
Database: law_episode
Question: List the titles and air dates of episodes that were produced by Billy Fox.
Evidence: produced refers to role = 'producer'
SQL: SELECT T1.title, T1.air_date FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Person AS T3 ON T3.person_id = T2.person_id WHERE T2.category = 'Produced by' AND T2.role = 'producer' AND T3.name = 'Billy Fox'
Database: law_episode
Question: Among the American casts, how many were uncredited on episode ID tt0629228?
Evidence: American refers to birth_country = 'USA'; cast refers to category = 'Cast'; uncredited refers to credited = ''
SQL: SELECT COUNT(T1.person_id) FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id WHERE T1.episode_id = 'tt0629228' AND T1.category = 'Cast' AND T1.credited = 'false' AND T2.birth_country = 'USA'
Database: law_episode
Question: What was the role of Jason Kuschner in episode 9?
SQL: SELECT T1.role FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id INNER JOIN Episode AS T3 ON T1.episode_id = T3.episode_id WHERE T3.episode = 9 AND T2.name = 'Jason Kuschner'
Database: law_episode
Question: Who played the role of the "president of NBC West Coast" in the first episode?
Evidence: who refers to name; the role of the "president of NBC West Coast" refers to role = 'president of NBC West Coast'; the first episode refers to episode = 1
SQL: SELECT T2.name FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id INNER JOIN Episode AS T3 ON T1.episode_id = T3.episode_id WHERE T3.episode = 1 AND T1.role = 'president of NBC West Coast'
Database: law_episode
Question: List down the titles of the top 3 episodes, from highest to lowest, in terms of their weighted stars.
Evidence: weighted stars = divide(sum(stars, percent), 100)
SQL: SELECT T2.title FROM Vote AS T1 INNER JOIN Episode AS T2 ON T2.episode_id = T1.episode_id WHERE T1.stars BETWEEN 1 AND 10 GROUP BY T2.title ORDER BY CAST(SUM(T1.stars * T1.percent) AS REAL) / 100 DESC LIMIT 3
Database: law_episode
Question: What is the ratio of American casts on episode 2 of the series? Please include their roles.
Evidence: American refers to birth_country = 'USA'; cast refers to category = 'Cast'; ratio = divide(count(person_id where birth_country = 'USA'), total(category)) where category = 'Cast'
SQL: SELECT CAST(SUM(CASE WHEN T2.category = 'Cast' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.category), T1.role FROM Award AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Episode AS T3 ON T2.episode_id = T3.episode_id INNER JOIN Person AS T4 ON T2.person_id = T4.person_id WHERE T3.episode = 2 AND T4.birth_country = 'USA'
Database: law_episode
Question: How many people from Canada are nominated for an award?
Evidence: from Canada refers to birth_country = Canada; nominated refers to award is NOT NULL
SQL: SELECT COUNT(T1.person_id) FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id WHERE T1.birth_country = 'Canada'
Database: law_episode
Question: How many episodes are credited to Jerry Orbach?
SQL: SELECT COUNT(T2.person_id) FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id WHERE T2.name = 'Jerry Orbach'
Database: law_episode
Question: List out all the credit names for episode 9.
Evidence: credit name refers to name
SQL: SELECT T3.name FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Person AS T3 ON T3.person_id = T2.person_id WHERE T1.episode = 9
Database: law_episode
Question: List out all award titles nominated for episode 20.
Evidence: award title refers to title; nominated refers to result = 'Winner' or result = 'Nominee'
SQL: SELECT T2.award FROM Episode AS T1 INNER JOIN Award AS T2 ON T1.episode_id = T2.episode_id WHERE T1.episode = 20 AND T2.result IN ('Winner', 'Nominee')
Database: law_episode
Question: Which role have won at least two awards for the entire season and list out the name?
Evidence: at least two awards refers to count(role) >1
SQL: SELECT T1.name FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id GROUP BY T2.role HAVING COUNT(T2.award_id) > 1
Database: law_episode
Question: List out director names that received an award along with the episode number.
Evidence: director refers to role = 'director'; received an award refers to result = 'Winner'; episode number refers to episode
SQL: SELECT T3.name, T1.episode_id FROM Episode AS T1 INNER JOIN Award AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Person AS T3 ON T2.person_id = T3.person_id WHERE T2.role = 'director' AND T2.result = 'Winner'
Database: law_episode
Question: Which episodes are nominated for an awards but not win?
Evidence: nominated for an award but not win refers to result = 'Nominee'
SQL: SELECT T1.episode FROM Episode AS T1 INNER JOIN Award AS T2 ON T1.episode_id = T2.episode_id WHERE T2.result = 'Nominee'
Database: law_episode
Question: What is the average rating for each episode in season 9?
Evidence: average rating = divide(sum(rating), count(episode_id))
SQL: SELECT SUM(rating) / COUNT(episode_id) FROM Episode WHERE season = 9
Database: law_episode
Question: What is the difference of 10 stars votes between the first episode and the last episode?
Evidence: the first episode refers to episode = 1; the last episode refers to episode = 24; 10 stars vote refers to stars = 10; the difference = subtract(votes where episode = 1, votes where episode = 24) where stars = 10
SQL: SELECT SUM(CASE WHEN T2.episode = 24 THEN T1.votes ELSE 0 END) - SUM(CASE WHEN T2.episode = 1 THEN T1.votes ELSE 0 END) FROM Vote AS T1 INNER JOIN Episode AS T2 ON T2.episode_id = T1.episode_id WHERE T1.stars = 10
Database: law_episode
Question: What is the episode rating with the most award won?
Evidence: the most award won refers to max(episode_id where result = 'Winner')
SQL: SELECT T1.rating FROM Episode AS T1 INNER JOIN Award AS T2 ON T1.episode_id = T2.episode_id WHERE T2.result = 'Winner' GROUP BY T1.episode_id ORDER BY COUNT(T2.award_id) DESC LIMIT 1
Database: law_episode
Question: How many credits have been displayed from episode 1 until 10?
Evidence: credit displayed refers to credited = 'true'; from episode 1 until 10 refers to episode > = 1 AND episode < = 10
SQL: SELECT COUNT(T1.person_id) FROM Credit AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.credited = 'true' AND T2.episode BETWEEN 1 AND 10
Database: law_episode
Question: What is the episode that has mafia keyword?
Evidence: mafia keyword refers to Keyword = 'mafia'
SQL: SELECT T1.episode FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T2.Keyword = 'mafia'
Database: law_episode
Question: What is the average star with highest percentage for episodes that have received award?
Evidence: received award refers to result = 'Winner'; the highest percentage refers to max(percent); average star = divide(sum(stars), count(episode_id))
SQL: SELECT T2.person_id FROM Vote AS T1 INNER JOIN Award AS T2 ON T1.episode_id = T2.episode_id ORDER BY T1.percent DESC LIMIT 1
Database: law_episode
Question: What is the average ranking episodes that are nominated for an award?
Evidence: average ranking = divide(sum(rating), sum(episode_id))
SQL: SELECT SUM(T1.rating) / COUNT(T1.episode) FROM Episode AS T1 INNER JOIN Award AS T2 ON T1.episode_id = T2.episode_id
Database: law_episode
Question: How many winners have been awarded a Television award by the "American Bar Association Silver Gavel Awards for Media and the Arts"?
Evidence: winner refers to result = 'Winner'; Television award refers to award = 'Television'; the "American Bar Association Silver Gavel Awards for Media and the Arts" refers to organization = 'American Bar Association Silver Gavel Awards for Media and the Arts'
SQL: SELECT COUNT(award_id) FROM Award WHERE result = 'Winner' AND award = 'Television' AND organization = 'American Bar Association Silver Gavel Awards for Media and the Arts'
Database: law_episode
Question: Which continent was Michael Preston born on?
Evidence: continent refers to birth_country
SQL: SELECT birth_country FROM Person WHERE name = 'Michael Preston'
Database: law_episode
Question: Who was the nominee playing the role of Katrina Ludlow in the Law & Order series?
Evidence: nominee refers to result = 'Nominee'; the role of Katrina Ludlow refers to role = 'Katrina Ludlow'
SQL: SELECT T2.name FROM Award AS T1 INNER JOIN Person AS T2 ON T1.person_id = T2.person_id WHERE T1.result = 'Nominee' AND T1.role = 'Katrina Ludlow' AND T1.series = 'Law and Order'
Database: law_episode
Question: Who played the role of a teleplay in the episode that won "Best Television Episode"?
Evidence: the role of a teleplay refers to role = 'teleplay'; won refers to result = 'Winner'; "Best Television Episode" refers to award = 'Best Television Episode'
SQL: SELECT T2.name FROM Award AS T1 INNER JOIN Person AS T2 ON T1.person_id = T2.person_id WHERE T1.result = 'Winner' AND T1.award = 'Best Television Episode'
Database: law_episode
Question: What is the date of birth of the actor who played the role of a "writer"?
Evidence: date of birth refers to birthdate
SQL: SELECT T2.birthdate FROM Award AS T1 INNER JOIN Person AS T2 ON T1.person_id = T2.person_id WHERE T1.role = 'writer'
Database: law_episode
Question: Which episode was nominated for the award for "Outstanding Costume Design for a Series"?
Evidence: episode refers to title; "Outstanding Costume Design for a Series" refers to award = 'Outstanding Costume Design for a Series'
SQL: SELECT T2.title FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.award = 'Outstanding Costume Design for a Series'
Database: law_episode
Question: Which episode has the highest total number of viewer votes?
Evidence: episode refers to title; the highest total number of viewer votes refers to max(sum(votes))
SQL: SELECT T1.title FROM Episode AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id GROUP BY T1.title ORDER BY SUM(T1.votes) DESC LIMIT 1
Database: law_episode
Question: Who was the actor who was portraying "Alex Brown" and has been credited?
Evidence: who refers to name; portraying "Alex Brown" refers to role = 'Alex Brown'; has been credited refers to credited = 'true'
SQL: SELECT T1.name FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.person_id = T2.person_id WHERE T2.role = 'Alex Brown' AND T2.credited = 'true'
Database: law_episode
Question: Where is the place of birth of the actor with the number nm0007064 who has not been credited for playing the role of a "Narrator"?
Evidence: place of birth refers to birth_place; actor with the number nm0007064 refers to person_id = 'nm007064'; has not been credited refers to credited = ''; the role of a "Narrator" refers to role = 'narrator'
SQL: SELECT DISTINCT T1.birth_place FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.person_id = T2.person_id WHERE T1.person_id = 'nm0007064' AND T2.role = 'Narrator' AND T2.credited = 'false'
Database: law_episode
Question: What are the keywords of the episode "Shield"?
Evidence: the episode "Shield" refers to title = 'Shield'
SQL: SELECT T2.keyword FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Shield'
Database: law_episode
Question: Who are the actors with a height of over 1.80m in an episode that won an award?
Evidence: who refers to name; a height of over 1.80m refers to height_meters > 1.80; won an award refers to result = 'Winner'
SQL: SELECT T2.name FROM Award AS T1 INNER JOIN Person AS T2 ON T1.person_id = T2.person_id WHERE T1.result = 'Winner' AND T2.height_meters > 1.80
Database: law_episode
Question: Which episode has the two keywords "nun" and "priest"?
Evidence: episode refers to title; the two keywords "nun" and "priest" refers to keyword = 'nun' or keyword = 'priest';
SQL: SELECT T1.title FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T2.keyword IN ('nun', 'priest')
Database: law_episode
Question: Which episode number has the second highest positive viewer comments and has been awarded "Best Television Episode"?
Evidence: episode number refers to episode_id; awarded "Best Television Episode" refers to award = 'Best Television Episode' and result = 'Winner'; the second highest positive viewer comments refers to rating = 8.5
SQL: SELECT T2.episode_id FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.award = 'Best Television Episode' AND T1.result = 'Winner' ORDER BY T2.rating DESC LIMIT 2
Database: law_episode
Question: Please list any three episodes that were most enjoyed by the viewers.
Evidence: episode refers to title; most enjoyed by the viewers refers to stars = 10
SQL: SELECT T1.title FROM Episode AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id WHERE T2.stars = 10 LIMIT 3
Database: synthea
Question: According to the observation on 2008/3/11, what was the height of Elly Koss?
Evidence: 2008/3/11 refers to date = '2008-03-11'; height refers to DESCRIPTION = 'Body Height' from observations;
SQL: SELECT T2.value, T2.units FROM patients AS T1 INNER JOIN observations AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Elly' AND T1.last = 'Koss' AND T2.date = '2008-03-11' AND T2.description = 'Body Height'
Database: synthea
Question: By how much did Elly Koss's weight increase from the observation in 2008 to the observation in 2009?
Evidence: SUBTRACT((DATE like '2009%'), (DATE like '2008%')) where DESCRIPTION = 'Body Weight';
SQL: SELECT SUM(CASE WHEN strftime('%Y', T2.date) = '2009' THEN T2.VALUE END) - SUM(CASE WHEN strftime('%Y', T2.date) = '2008' THEN T2.VALUE END) AS increase , T2.units FROM patients AS T1 INNER JOIN observations AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Elly' AND T1.last = 'Koss' AND T2.description = 'Body Height'