1sf/bird-sql-train-with-schema huggingface dataset:
Database: law_episode
Tables: Episode, Keyword, Person, Award, Credit, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, series, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, episode_id, 1, keyword, 2, person_id, 2, name, 2, birthdate, 2, birth_name, 2, birth_place, 2, birth_region, 2, birth_country, 2, height_meters, 2, nickname, 3, award_id, 3, organization, 3, year, 3, award_category, 3, award, 3, series, 3, episode_id, 3, person_id, 3, role, 3, result, 4, episode_id, 4, person_id, 4, category, 4, role, 4, credited, 5, episode_id, 5, stars, 5, votes, 5, percent
Question: Park Dietz was credited in which role in the episode titled "Cherished"?
Evidence: credited refers to credited = 'true'; titled "Cherished" refers to title = 'Cherished'
SQL: SELECT T2.role 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.title = 'Cherished' AND T3.name = 'Park Dietz' AND T2.credited = 'true'
Database: law_episode
Tables: Episode, Keyword, Person, Award, Credit, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, series, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, episode_id, 1, keyword, 2, person_id, 2, name, 2, birthdate, 2, birth_name, 2, birth_place, 2, birth_region, 2, birth_country, 2, height_meters, 2, nickname, 3, award_id, 3, organization, 3, year, 3, award_category, 3, award, 3, series, 3, episode_id, 3, person_id, 3, role, 3, result, 4, episode_id, 4, person_id, 4, category, 4, role, 4, credited, 5, episode_id, 5, stars, 5, votes, 5, percent
Question: How many people had filled a role in the episode titled "Cherished", but did not show up in the on-screen credits?
Evidence: titled "Cherished" refers to title = 'Cherished'; did not show up in the on-screen credits refers to credited = ''
SQL: SELECT COUNT(T1.episode_id) FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Cherished' AND T2.credited = 'false'
Database: law_episode
Tables: Episode, Keyword, Person, Award, Credit, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, series, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, episode_id, 1, keyword, 2, person_id, 2, name, 2, birthdate, 2, birth_name, 2, birth_place, 2, birth_region, 2, birth_country, 2, height_meters, 2, nickname, 3, award_id, 3, organization, 3, year, 3, award_category, 3, award, 3, series, 3, episode_id, 3, person_id, 3, role, 3, result, 4, episode_id, 4, person_id, 4, category, 4, role, 4, credited, 5, episode_id, 5, stars, 5, votes, 5, percent
Question: Who was credited as "technical advisor" in the episode titled "Cherished"?
Evidence: who refers to name; credited refers to credited = 'true'; as "technical advisor" refers to role = 'technical advisor'; titled "Cherished" refers to title = 'Cherished'
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.title = 'Cherished' AND T2.credited = 'true' AND T2.role = 'technical advisor'
Database: law_episode
Tables: Episode, Keyword, Person, Award, Credit, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, series, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, episode_id, 1, keyword, 2, person_id, 2, name, 2, birthdate, 2, birth_name, 2, birth_place, 2, birth_region, 2, birth_country, 2, height_meters, 2, nickname, 3, award_id, 3, organization, 3, year, 3, award_category, 3, award, 3, series, 3, episode_id, 3, person_id, 3, role, 3, result, 4, episode_id, 4, person_id, 4, category, 4, role, 4, credited, 5, episode_id, 5, stars, 5, votes, 5, percent
Question: For how many times was Park Dietz credited?
Evidence: credited refers to credited = 'true'
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 T2.credited = 'true' AND T3.name = 'Park Dietz'
Database: law_episode
Tables: Episode, Keyword, Person, Award, Credit, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, series, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, episode_id, 1, keyword, 2, person_id, 2, name, 2, birthdate, 2, birth_name, 2, birth_place, 2, birth_region, 2, birth_country, 2, height_meters, 2, nickname, 3, award_id, 3, organization, 3, year, 3, award_category, 3, award, 3, series, 3, episode_id, 3, person_id, 3, role, 3, result, 4, episode_id, 4, person_id, 4, category, 4, role, 4, credited, 5, episode_id, 5, stars, 5, votes, 5, percent
Question: Please list the titles of all the episodes in which Park Dietz was credited.
Evidence: credited refers to credited = 'true'
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 = 'true' AND T3.name = 'Park Dietz'
Database: law_episode
Tables: Episode, Keyword, Person, Award, Credit, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, series, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, episode_id, 1, keyword, 2, person_id, 2, name, 2, birthdate, 2, birth_name, 2, birth_place, 2, birth_region, 2, birth_country, 2, height_meters, 2, nickname, 3, award_id, 3, organization, 3, year, 3, award_category, 3, award, 3, series, 3, episode_id, 3, person_id, 3, role, 3, result, 4, episode_id, 4, person_id, 4, category, 4, role, 4, credited, 5, episode_id, 5, stars, 5, votes, 5, percent
Question: Was Anthony Azzara's role in episode tt0629204 displayed in the credits at the end of the episode?
Evidence: episode tt0629204 refers to episode_id = 'tt0629204'; credited refers to credited = 'true'; not credited refers to credited = ''
SQL: SELECT T1.credited FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id WHERE T2.name = 'Anthony Azzara' AND T1.episode_id = 'tt0629204'
Database: law_episode
Tables: Episode, Keyword, Person, Award, Credit, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, series, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, episode_id, 1, keyword, 2, person_id, 2, name, 2, birthdate, 2, birth_name, 2, birth_place, 2, birth_region, 2, birth_country, 2, height_meters, 2, nickname, 3, award_id, 3, organization, 3, year, 3, award_category, 3, award, 3, series, 3, episode_id, 3, person_id, 3, role, 3, result, 4, episode_id, 4, person_id, 4, category, 4, role, 4, credited, 5, episode_id, 5, stars, 5, votes, 5, percent
Question: How many keywords are there in the episode Disciple?
Evidence: episode Disciple refers to title = 'Disciple'
SQL: SELECT COUNT(T2.keyword) FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Disciple'
Database: law_episode
Tables: Episode, Keyword, Person, Award, Credit, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, series, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, episode_id, 1, keyword, 2, person_id, 2, name, 2, birthdate, 2, birth_name, 2, birth_place, 2, birth_region, 2, birth_country, 2, height_meters, 2, nickname, 3, award_id, 3, organization, 3, year, 3, award_category, 3, award, 3, series, 3, episode_id, 3, person_id, 3, role, 3, result, 4, episode_id, 4, person_id, 4, category, 4, role, 4, credited, 5, episode_id, 5, stars, 5, votes, 5, percent
Question: Which episode got the most 1 star votes? Give its title.
Evidence: the most refers to max(votes); 1 star refers to stars = '1'
SQL: SELECT T2.title FROM Vote AS T1 INNER JOIN Episode AS T2 ON T2.episode_id = T1.episode_id WHERE T1.stars = 1 ORDER BY T1.votes DESC LIMIT 1
Database: law_episode
Tables: Episode, Keyword, Person, Award, Credit, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, series, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, episode_id, 1, keyword, 2, person_id, 2, name, 2, birthdate, 2, birth_name, 2, birth_place, 2, birth_region, 2, birth_country, 2, height_meters, 2, nickname, 3, award_id, 3, organization, 3, year, 3, award_category, 3, award, 3, series, 3, episode_id, 3, person_id, 3, role, 3, result, 4, episode_id, 4, person_id, 4, category, 4, role, 4, credited, 5, episode_id, 5, stars, 5, votes, 5, percent
Question: How many nominations did Law and Order season 9, episode 20 get?
Evidence: Law and Order refers to series = 'Law and Order'
SQL: SELECT COUNT(T2.award_id) FROM Episode AS T1 INNER JOIN Award AS T2 ON T1.episode_id = T2.episode_id WHERE T2.series = 'Law and Order' AND T1.season = 9 AND T1.episode = 20
Database: law_episode
Tables: Episode, Keyword, Person, Award, Credit, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, series, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, episode_id, 1, keyword, 2, person_id, 2, name, 2, birthdate, 2, birth_name, 2, birth_place, 2, birth_region, 2, birth_country, 2, height_meters, 2, nickname, 3, award_id, 3, organization, 3, year, 3, award_category, 3, award, 3, series, 3, episode_id, 3, person_id, 3, role, 3, result, 4, episode_id, 4, person_id, 4, category, 4, role, 4, credited, 5, episode_id, 5, stars, 5, votes, 5, percent
Question: For season 9, episode 17 of the show Law and Order, how many roles have been included in the credit?
Evidence: Law and Order refers to series = 'Law and Order'; included in the credit refers to credited = 'true'
SQL: SELECT COUNT(T2.role) FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T1.series = 'Law and Order' AND T1.season = 9 AND T1.episode = 17 AND T2.credited = 'true'
Database: law_episode
Tables: Episode, Keyword, Person, Award, Credit, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, series, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, episode_id, 1, keyword, 2, person_id, 2, name, 2, birthdate, 2, birth_name, 2, birth_place, 2, birth_region, 2, birth_country, 2, height_meters, 2, nickname, 3, award_id, 3, organization, 3, year, 3, award_category, 3, award, 3, series, 3, episode_id, 3, person_id, 3, role, 3, result, 4, episode_id, 4, person_id, 4, category, 4, role, 4, credited, 5, episode_id, 5, stars, 5, votes, 5, percent
Question: Describe what happened in the episode of award no.296.
Evidence: description of what happened refers to summary; award no.296 refers to award_id = '296'
SQL: SELECT T1.summary FROM Episode AS T1 INNER JOIN Award AS T2 ON T1.episode_id = T2.episode_id WHERE T2.award_id = 296
Database: law_episode
Tables: Episode, Keyword, Person, Award, Credit, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, series, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, episode_id, 1, keyword, 2, person_id, 2, name, 2, birthdate, 2, birth_name, 2, birth_place, 2, birth_region, 2, birth_country, 2, height_meters, 2, nickname, 3, award_id, 3, organization, 3, year, 3, award_category, 3, award, 3, series, 3, episode_id, 3, person_id, 3, role, 3, result, 4, episode_id, 4, person_id, 4, category, 4, role, 4, credited, 5, episode_id, 5, stars, 5, votes, 5, percent
Question: Which role did Joseph Blair play in the show?
SQL: SELECT T1.role FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id WHERE T2.name = 'Joseph Blair'
Database: law_episode
Tables: Episode, Keyword, Person, Award, Credit, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, series, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, episode_id, 1, keyword, 2, person_id, 2, name, 2, birthdate, 2, birth_name, 2, birth_place, 2, birth_region, 2, birth_country, 2, height_meters, 2, nickname, 3, award_id, 3, organization, 3, year, 3, award_category, 3, award, 3, series, 3, episode_id, 3, person_id, 3, role, 3, result, 4, episode_id, 4, person_id, 4, category, 4, role, 4, credited, 5, episode_id, 5, stars, 5, votes, 5, percent
Question: How many awards has Rene Balcer been nominated for?
SQL: SELECT COUNT(T2.award_id) FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id WHERE T1.name = 'Rene Balcer'
Database: law_episode
Tables: Episode, Keyword, Person, Award, Credit, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, series, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, episode_id, 1, keyword, 2, person_id, 2, name, 2, birthdate, 2, birth_name, 2, birth_place, 2, birth_region, 2, birth_country, 2, height_meters, 2, nickname, 3, award_id, 3, organization, 3, year, 3, award_category, 3, award, 3, series, 3, episode_id, 3, person_id, 3, role, 3, result, 4, episode_id, 4, person_id, 4, category, 4, role, 4, credited, 5, episode_id, 5, stars, 5, votes, 5, percent
Question: For the episode with the most votes, give its air date.
Evidence: the most votes refers to max(votes)
SQL: SELECT T2.air_date FROM Vote AS T1 INNER JOIN Episode AS T2 ON T2.episode_id = T1.episode_id GROUP BY T2.episode_id ORDER BY SUM(T1.votes) DESC LIMIT 1
Database: law_episode
Tables: Episode, Keyword, Person, Award, Credit, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, series, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, episode_id, 1, keyword, 2, person_id, 2, name, 2, birthdate, 2, birth_name, 2, birth_place, 2, birth_region, 2, birth_country, 2, height_meters, 2, nickname, 3, award_id, 3, organization, 3, year, 3, award_category, 3, award, 3, series, 3, episode_id, 3, person_id, 3, role, 3, result, 4, episode_id, 4, person_id, 4, category, 4, role, 4, credited, 5, episode_id, 5, stars, 5, votes, 5, percent
Question: Who was nominated for award no.313? Give the full name.
Evidence: award no.313 refers to award_id = '313'; full name refers to name
SQL: SELECT T1.name FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id WHERE T2.award_id = 313
Database: law_episode
Tables: Episode, Keyword, Person, Award, Credit, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, series, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, episode_id, 1, keyword, 2, person_id, 2, name, 2, birthdate, 2, birth_name, 2, birth_place, 2, birth_region, 2, birth_country, 2, height_meters, 2, nickname, 3, award_id, 3, organization, 3, year, 3, award_category, 3, award, 3, series, 3, episode_id, 3, person_id, 3, role, 3, result, 4, episode_id, 4, person_id, 4, category, 4, role, 4, credited, 5, episode_id, 5, stars, 5, votes, 5, percent
Question: How many episodes did J.K. Simmons' role appear on the show?
SQL: SELECT COUNT(T1.role) FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id WHERE T2.name = 'J.K. Simmons'
Database: law_episode
Tables: Episode, Keyword, Person, Award, Credit, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, series, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, episode_id, 1, keyword, 2, person_id, 2, name, 2, birthdate, 2, birth_name, 2, birth_place, 2, birth_region, 2, birth_country, 2, height_meters, 2, nickname, 3, award_id, 3, organization, 3, year, 3, award_category, 3, award, 3, series, 3, episode_id, 3, person_id, 3, role, 3, result, 4, episode_id, 4, person_id, 4, category, 4, role, 4, credited, 5, episode_id, 5, stars, 5, votes, 5, percent
Question: Display the number of 9-star votes the episode Sideshow received.
Evidence: 9-star vote refers to stars = '9'; episode Sideshow refers to title = 'Sideshow'
SQL: SELECT T2.votes FROM Episode AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id WHERE T2.stars = 9 AND T1.title = 'Sideshow'
Database: law_episode
Tables: Episode, Keyword, Person, Award, Credit, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, series, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, episode_id, 1, keyword, 2, person_id, 2, name, 2, birthdate, 2, birth_name, 2, birth_place, 2, birth_region, 2, birth_country, 2, height_meters, 2, nickname, 3, award_id, 3, organization, 3, year, 3, award_category, 3, award, 3, series, 3, episode_id, 3, person_id, 3, role, 3, result, 4, episode_id, 4, person_id, 4, category, 4, role, 4, credited, 5, episode_id, 5, stars, 5, votes, 5, percent
Question: How many times is the number of keywords in "Refuge: Part 1" episode than "Shield" episode?
Evidence: "Refuge: Part 1" episode refers to title = 'Refuge: Part 1'; "Shield" episode refers to title = 'Shield'; times = divide(count(keyword where title = 'Refuge: Part 1'), count(keyword where title = 'Shield'))
SQL: SELECT CAST(SUM(CASE WHEN T1.title = 'Refuge: Part 1' THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN T1.title = 'Shield' THEN 1 ELSE 0 END) FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id
Database: law_episode
Tables: Episode, Keyword, Person, Award, Credit, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, series, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, episode_id, 1, keyword, 2, person_id, 2, name, 2, birthdate, 2, birth_name, 2, birth_place, 2, birth_region, 2, birth_country, 2, height_meters, 2, nickname, 3, award_id, 3, organization, 3, year, 3, award_category, 3, award, 3, series, 3, episode_id, 3, person_id, 3, role, 3, result, 4, episode_id, 4, person_id, 4, category, 4, role, 4, credited, 5, episode_id, 5, stars, 5, votes, 5, percent
Question: Calculate the average number of cast members that appeared in the credit from the 185th to the 193rd episode.
Evidence: appeared in the credit refers to credited = 'TRUE'; from the 185th to the 193rd episode refers to number_in_series between 185 and 193; cast refers to category = 'Cast'; average number = divide(count(episode_id), 9)
SQL: SELECT CAST(COUNT(T1.episode_id) AS REAL) / (193 - 185 + 1) FROM Credit AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.category = 'Cast' AND T1.credited = 'true' AND T2.number_in_series BETWEEN 185 AND 193
Database: law_episode
Tables: Episode, Keyword, Person, Award, Credit, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, series, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, episode_id, 1, keyword, 2, person_id, 2, name, 2, birthdate, 2, birth_name, 2, birth_place, 2, birth_region, 2, birth_country, 2, height_meters, 2, nickname, 3, award_id, 3, organization, 3, year, 3, award_category, 3, award, 3, series, 3, episode_id, 3, person_id, 3, role, 3, result, 4, episode_id, 4, person_id, 4, category, 4, role, 4, credited, 5, episode_id, 5, stars, 5, votes, 5, percent
Question: What are the names of the person that were not credited at the end of episode tt0629391?
Evidence: not credited refers to credited = ''; episode tt0629391 refers to episode_id = 'tt0629391'
SQL: SELECT T2.name FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id WHERE T1.credited = 'false' AND T1.episode_id = 'tt0629391'
Database: law_episode
Tables: Episode, Keyword, Person, Award, Credit, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, series, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, episode_id, 1, keyword, 2, person_id, 2, name, 2, birthdate, 2, birth_name, 2, birth_place, 2, birth_region, 2, birth_country, 2, height_meters, 2, nickname, 3, award_id, 3, organization, 3, year, 3, award_category, 3, award, 3, series, 3, episode_id, 3, person_id, 3, role, 3, result, 4, episode_id, 4, person_id, 4, category, 4, role, 4, credited, 5, episode_id, 5, stars, 5, votes, 5, percent
Question: How many people have won at least 3 awards?
Evidence: won refers to result = 'Winner'; at least 3 awards refers to count(result) > 3
SQL: SELECT COUNT(T1.person_id) FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id WHERE T2.result = 'Winner' GROUP BY T1.person_id HAVING COUNT(T2.award_id) >= 3
Database: law_episode
Tables: Episode, Keyword, Person, Award, Credit, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, series, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, episode_id, 1, keyword, 2, person_id, 2, name, 2, birthdate, 2, birth_name, 2, birth_place, 2, birth_region, 2, birth_country, 2, height_meters, 2, nickname, 3, award_id, 3, organization, 3, year, 3, award_category, 3, award, 3, series, 3, episode_id, 3, person_id, 3, role, 3, result, 4, episode_id, 4, person_id, 4, category, 4, role, 4, credited, 5, episode_id, 5, stars, 5, votes, 5, percent
Question: Who is the script supervisor of the series in episode tt0629204?
Evidence: who refers to name; script supervisor refers to role = 'script supervisor'; episode tt0629204 refers to episode_id = 'tt0629204'
SQL: SELECT T2.name FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id WHERE T1.episode_id = 'tt0629204' AND T1.role = 'script supervisor'
Database: law_episode
Tables: Episode, Keyword, Person, Award, Credit, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, series, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, episode_id, 1, keyword, 2, person_id, 2, name, 2, birthdate, 2, birth_name, 2, birth_place, 2, birth_region, 2, birth_country, 2, height_meters, 2, nickname, 3, award_id, 3, organization, 3, year, 3, award_category, 3, award, 3, series, 3, episode_id, 3, person_id, 3, role, 3, result, 4, episode_id, 4, person_id, 4, category, 4, role, 4, credited, 5, episode_id, 5, stars, 5, votes, 5, percent
Question: How many awards has Julia Roberts been nominated for?
Evidence: been nominated refers to result = 'Nominee'
SQL: SELECT COUNT(T2.award_id) FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id WHERE T1.name = 'Julia Roberts' AND T2.result = 'Nominee'
Database: law_episode
Tables: Episode, Keyword, Person, Award, Credit, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, series, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, episode_id, 1, keyword, 2, person_id, 2, name, 2, birthdate, 2, birth_name, 2, birth_place, 2, birth_region, 2, birth_country, 2, height_meters, 2, nickname, 3, award_id, 3, organization, 3, year, 3, award_category, 3, award, 3, series, 3, episode_id, 3, person_id, 3, role, 3, result, 4, episode_id, 4, person_id, 4, category, 4, role, 4, credited, 5, episode_id, 5, stars, 5, votes, 5, percent
Question: Who is the tallest camera operator?
Evidence: who refers to name; the tallest refers to max(height_meters); camera operator refers to role = 'camera operator'
SQL: SELECT T2.name FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id WHERE T1.role = 'camera operator' ORDER BY T2.height_meters DESC LIMIT 1