1sf/bird-sql-train-with-schema huggingface dataset:
Database: movies_4
Tables: country, department, gender, genre, keyword, language, language_role, movie, movie_genres, movie_languages, person, movie_crew, production_company, production_country, movie_cast, movie_keywords, movie_company
Columns (table index, column name): -1, *, 0, country_id, 0, country_iso_code, 0, country_name, 1, department_id, 1, department_name, 2, gender_id, 2, gender, 3, genre_id, 3, genre_name, 4, keyword_id, 4, keyword_name, 5, language_id, 5, language_code, 5, language_name, 6, role_id, 6, language_role, 7, movie_id, 7, title, 7, budget, 7, homepage, 7, overview, 7, popularity, 7, release_date, 7, revenue, 7, runtime, 7, movie_status, 7, tagline, 7, vote_average, 7, vote_count, 8, movie_id, 8, genre_id, 9, movie_id, 9, language_id, 9, language_role_id, 10, person_id, 10, person_name, 11, movie_id, 11, person_id, 11, department_id, 11, job, 12, company_id, 12, company_name, 13, movie_id, 13, country_id, 14, movie_id, 14, person_id, 14, character_name, 14, gender_id, 14, cast_order, 15, movie_id, 15, keyword_id, 16, movie_id, 16, company_id
Question: Which keywords belong to the movie titles with the highest popularity?
Evidence: Which keywords refers to keyword_name; highest popularity refers to max(popularity)
SQL: SELECT T3.keyword_name FROM movie AS T1 INNER JOIN movie_keywords AS T2 ON T1.movie_id = T2.movie_id INNER JOIN keyword AS T3 ON T2.keyword_id = T3.keyword_id ORDER BY T1.popularity DESC LIMIT 1
Database: movies_4
Tables: country, department, gender, genre, keyword, language, language_role, movie, movie_genres, movie_languages, person, movie_crew, production_company, production_country, movie_cast, movie_keywords, movie_company
Columns (table index, column name): -1, *, 0, country_id, 0, country_iso_code, 0, country_name, 1, department_id, 1, department_name, 2, gender_id, 2, gender, 3, genre_id, 3, genre_name, 4, keyword_id, 4, keyword_name, 5, language_id, 5, language_code, 5, language_name, 6, role_id, 6, language_role, 7, movie_id, 7, title, 7, budget, 7, homepage, 7, overview, 7, popularity, 7, release_date, 7, revenue, 7, runtime, 7, movie_status, 7, tagline, 7, vote_average, 7, vote_count, 8, movie_id, 8, genre_id, 9, movie_id, 9, language_id, 9, language_role_id, 10, person_id, 10, person_name, 11, movie_id, 11, person_id, 11, department_id, 11, job, 12, company_id, 12, company_name, 13, movie_id, 13, country_id, 14, movie_id, 14, person_id, 14, character_name, 14, gender_id, 14, cast_order, 15, movie_id, 15, keyword_id, 16, movie_id, 16, company_id
Question: Provide the genre ID of the movie with the title of "The Dark Knight".
Evidence: movie with the title of "The Dark Knight" refers to title = 'The Dark Knight'
SQL: SELECT T2.genre_id FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id WHERE T1.title = 'The Dark Knight'
Database: movies_4
Tables: country, department, gender, genre, keyword, language, language_role, movie, movie_genres, movie_languages, person, movie_crew, production_company, production_country, movie_cast, movie_keywords, movie_company
Columns (table index, column name): -1, *, 0, country_id, 0, country_iso_code, 0, country_name, 1, department_id, 1, department_name, 2, gender_id, 2, gender, 3, genre_id, 3, genre_name, 4, keyword_id, 4, keyword_name, 5, language_id, 5, language_code, 5, language_name, 6, role_id, 6, language_role, 7, movie_id, 7, title, 7, budget, 7, homepage, 7, overview, 7, popularity, 7, release_date, 7, revenue, 7, runtime, 7, movie_status, 7, tagline, 7, vote_average, 7, vote_count, 8, movie_id, 8, genre_id, 9, movie_id, 9, language_id, 9, language_role_id, 10, person_id, 10, person_name, 11, movie_id, 11, person_id, 11, department_id, 11, job, 12, company_id, 12, company_name, 13, movie_id, 13, country_id, 14, movie_id, 14, person_id, 14, character_name, 14, gender_id, 14, cast_order, 15, movie_id, 15, keyword_id, 16, movie_id, 16, company_id
Question: List down the movie titles within the genre of thriller.
Evidence: genre of thriller refers to genre_name = 'Thriller'
SQL: SELECT T1.title FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id WHERE T3.genre_name = 'Thriller'
Database: movies_4
Tables: country, department, gender, genre, keyword, language, language_role, movie, movie_genres, movie_languages, person, movie_crew, production_company, production_country, movie_cast, movie_keywords, movie_company
Columns (table index, column name): -1, *, 0, country_id, 0, country_iso_code, 0, country_name, 1, department_id, 1, department_name, 2, gender_id, 2, gender, 3, genre_id, 3, genre_name, 4, keyword_id, 4, keyword_name, 5, language_id, 5, language_code, 5, language_name, 6, role_id, 6, language_role, 7, movie_id, 7, title, 7, budget, 7, homepage, 7, overview, 7, popularity, 7, release_date, 7, revenue, 7, runtime, 7, movie_status, 7, tagline, 7, vote_average, 7, vote_count, 8, movie_id, 8, genre_id, 9, movie_id, 9, language_id, 9, language_role_id, 10, person_id, 10, person_name, 11, movie_id, 11, person_id, 11, department_id, 11, job, 12, company_id, 12, company_name, 13, movie_id, 13, country_id, 14, movie_id, 14, person_id, 14, character_name, 14, gender_id, 14, cast_order, 15, movie_id, 15, keyword_id, 16, movie_id, 16, company_id
Question: Write down five rumoured movie titles within the genre of Drama.
Evidence: rumoured movie refers to movie_status = 'rumoured'; genre of Drama refers to genre_name = 'Drama'
SQL: SELECT T1.title FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id WHERE T1.movie_status = 'Rumored' AND T3.genre_name = 'Drama' LIMIT 5
Database: movies_4
Tables: country, department, gender, genre, keyword, language, language_role, movie, movie_genres, movie_languages, person, movie_crew, production_company, production_country, movie_cast, movie_keywords, movie_company
Columns (table index, column name): -1, *, 0, country_id, 0, country_iso_code, 0, country_name, 1, department_id, 1, department_name, 2, gender_id, 2, gender, 3, genre_id, 3, genre_name, 4, keyword_id, 4, keyword_name, 5, language_id, 5, language_code, 5, language_name, 6, role_id, 6, language_role, 7, movie_id, 7, title, 7, budget, 7, homepage, 7, overview, 7, popularity, 7, release_date, 7, revenue, 7, runtime, 7, movie_status, 7, tagline, 7, vote_average, 7, vote_count, 8, movie_id, 8, genre_id, 9, movie_id, 9, language_id, 9, language_role_id, 10, person_id, 10, person_name, 11, movie_id, 11, person_id, 11, department_id, 11, job, 12, company_id, 12, company_name, 13, movie_id, 13, country_id, 14, movie_id, 14, person_id, 14, character_name, 14, gender_id, 14, cast_order, 15, movie_id, 15, keyword_id, 16, movie_id, 16, company_id
Question: What is the genre of the movie title with the lowest revenue generated?
Evidence: genre refers to genre_name; lowest revenue refers to min(revenue)
SQL: SELECT T3.genre_name FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id ORDER BY T1.revenue LIMIT 1
Database: movies_4
Tables: country, department, gender, genre, keyword, language, language_role, movie, movie_genres, movie_languages, person, movie_crew, production_company, production_country, movie_cast, movie_keywords, movie_company
Columns (table index, column name): -1, *, 0, country_id, 0, country_iso_code, 0, country_name, 1, department_id, 1, department_name, 2, gender_id, 2, gender, 3, genre_id, 3, genre_name, 4, keyword_id, 4, keyword_name, 5, language_id, 5, language_code, 5, language_name, 6, role_id, 6, language_role, 7, movie_id, 7, title, 7, budget, 7, homepage, 7, overview, 7, popularity, 7, release_date, 7, revenue, 7, runtime, 7, movie_status, 7, tagline, 7, vote_average, 7, vote_count, 8, movie_id, 8, genre_id, 9, movie_id, 9, language_id, 9, language_role_id, 10, person_id, 10, person_name, 11, movie_id, 11, person_id, 11, department_id, 11, job, 12, company_id, 12, company_name, 13, movie_id, 13, country_id, 14, movie_id, 14, person_id, 14, character_name, 14, gender_id, 14, cast_order, 15, movie_id, 15, keyword_id, 16, movie_id, 16, company_id
Question: State the genre of the movie title with a runtime of only 14 minutes.
Evidence: genre refers to genre_name; runtime of only 14 minutes refers to runtime = 14
SQL: SELECT T3.genre_name FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id WHERE T1.runtime = 14
Database: movies_4
Tables: country, department, gender, genre, keyword, language, language_role, movie, movie_genres, movie_languages, person, movie_crew, production_company, production_country, movie_cast, movie_keywords, movie_company
Columns (table index, column name): -1, *, 0, country_id, 0, country_iso_code, 0, country_name, 1, department_id, 1, department_name, 2, gender_id, 2, gender, 3, genre_id, 3, genre_name, 4, keyword_id, 4, keyword_name, 5, language_id, 5, language_code, 5, language_name, 6, role_id, 6, language_role, 7, movie_id, 7, title, 7, budget, 7, homepage, 7, overview, 7, popularity, 7, release_date, 7, revenue, 7, runtime, 7, movie_status, 7, tagline, 7, vote_average, 7, vote_count, 8, movie_id, 8, genre_id, 9, movie_id, 9, language_id, 9, language_role_id, 10, person_id, 10, person_name, 11, movie_id, 11, person_id, 11, department_id, 11, job, 12, company_id, 12, company_name, 13, movie_id, 13, country_id, 14, movie_id, 14, person_id, 14, character_name, 14, gender_id, 14, cast_order, 15, movie_id, 15, keyword_id, 16, movie_id, 16, company_id
Question: What is the genre of the movie title which was well-received by the audiences but made the lowest revenue?
Evidence: genre refers to genre_name; well-received by the audiences refers to max(vote_average); lowest revenue refers to min(revenue)
SQL: SELECT T3.genre_name FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id ORDER BY T1.vote_average DESC, T1.revenue LIMIT 1
Database: movies_4
Tables: country, department, gender, genre, keyword, language, language_role, movie, movie_genres, movie_languages, person, movie_crew, production_company, production_country, movie_cast, movie_keywords, movie_company
Columns (table index, column name): -1, *, 0, country_id, 0, country_iso_code, 0, country_name, 1, department_id, 1, department_name, 2, gender_id, 2, gender, 3, genre_id, 3, genre_name, 4, keyword_id, 4, keyword_name, 5, language_id, 5, language_code, 5, language_name, 6, role_id, 6, language_role, 7, movie_id, 7, title, 7, budget, 7, homepage, 7, overview, 7, popularity, 7, release_date, 7, revenue, 7, runtime, 7, movie_status, 7, tagline, 7, vote_average, 7, vote_count, 8, movie_id, 8, genre_id, 9, movie_id, 9, language_id, 9, language_role_id, 10, person_id, 10, person_name, 11, movie_id, 11, person_id, 11, department_id, 11, job, 12, company_id, 12, company_name, 13, movie_id, 13, country_id, 14, movie_id, 14, person_id, 14, character_name, 14, gender_id, 14, cast_order, 15, movie_id, 15, keyword_id, 16, movie_id, 16, company_id
Question: Provide the genre of a movie title with a tagline of "A long time ago in a galaxy far, far away…".
Evidence: genre refers to genre_name; tagline of "A long time ago in a galaxy far, far away…" refers to tagline = 'A long time ago in a galaxy far, far away…'
SQL: SELECT T3.genre_name FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T3.genre_id = T2.genre_id WHERE T1.tagline = 'A long time ago in a galaxy far, far away...'
Database: movies_4
Tables: country, department, gender, genre, keyword, language, language_role, movie, movie_genres, movie_languages, person, movie_crew, production_company, production_country, movie_cast, movie_keywords, movie_company
Columns (table index, column name): -1, *, 0, country_id, 0, country_iso_code, 0, country_name, 1, department_id, 1, department_name, 2, gender_id, 2, gender, 3, genre_id, 3, genre_name, 4, keyword_id, 4, keyword_name, 5, language_id, 5, language_code, 5, language_name, 6, role_id, 6, language_role, 7, movie_id, 7, title, 7, budget, 7, homepage, 7, overview, 7, popularity, 7, release_date, 7, revenue, 7, runtime, 7, movie_status, 7, tagline, 7, vote_average, 7, vote_count, 8, movie_id, 8, genre_id, 9, movie_id, 9, language_id, 9, language_role_id, 10, person_id, 10, person_name, 11, movie_id, 11, person_id, 11, department_id, 11, job, 12, company_id, 12, company_name, 13, movie_id, 13, country_id, 14, movie_id, 14, person_id, 14, character_name, 14, gender_id, 14, cast_order, 15, movie_id, 15, keyword_id, 16, movie_id, 16, company_id
Question: What is the country ID of the movie with the title of "Pirates of the Caribbean: Dead Man's Chest"?
Evidence: title of "Pirates of the Caribbean: Dead Man's Chest" refers to title = 'Pirates of the Caribbean: Dead Man''s Chest'
SQL: SELECT T2.COUNTry_id FROM movie AS T1 INNER JOIN production_COUNTry AS T2 ON T1.movie_id = T2.movie_id WHERE T1.title LIKE 'Pirates of the Caribbean: Dead Man%s Chest'
Database: movies_4
Tables: country, department, gender, genre, keyword, language, language_role, movie, movie_genres, movie_languages, person, movie_crew, production_company, production_country, movie_cast, movie_keywords, movie_company
Columns (table index, column name): -1, *, 0, country_id, 0, country_iso_code, 0, country_name, 1, department_id, 1, department_name, 2, gender_id, 2, gender, 3, genre_id, 3, genre_name, 4, keyword_id, 4, keyword_name, 5, language_id, 5, language_code, 5, language_name, 6, role_id, 6, language_role, 7, movie_id, 7, title, 7, budget, 7, homepage, 7, overview, 7, popularity, 7, release_date, 7, revenue, 7, runtime, 7, movie_status, 7, tagline, 7, vote_average, 7, vote_count, 8, movie_id, 8, genre_id, 9, movie_id, 9, language_id, 9, language_role_id, 10, person_id, 10, person_name, 11, movie_id, 11, person_id, 11, department_id, 11, job, 12, company_id, 12, company_name, 13, movie_id, 13, country_id, 14, movie_id, 14, person_id, 14, character_name, 14, gender_id, 14, cast_order, 15, movie_id, 15, keyword_id, 16, movie_id, 16, company_id
Question: List down the movie titles that were produced in Canada.
Evidence: produced in Canada refers to country_name = 'Canada'
SQL: SELECT T1.title FROM movie AS T1 INNER JOIN production_COUNTry AS T2 ON T1.movie_id = T2.movie_id INNER JOIN COUNTry AS T3 ON T2.COUNTry_id = T3.COUNTry_id WHERE T3.COUNTry_name = 'Canada'
Database: movies_4
Tables: country, department, gender, genre, keyword, language, language_role, movie, movie_genres, movie_languages, person, movie_crew, production_company, production_country, movie_cast, movie_keywords, movie_company
Columns (table index, column name): -1, *, 0, country_id, 0, country_iso_code, 0, country_name, 1, department_id, 1, department_name, 2, gender_id, 2, gender, 3, genre_id, 3, genre_name, 4, keyword_id, 4, keyword_name, 5, language_id, 5, language_code, 5, language_name, 6, role_id, 6, language_role, 7, movie_id, 7, title, 7, budget, 7, homepage, 7, overview, 7, popularity, 7, release_date, 7, revenue, 7, runtime, 7, movie_status, 7, tagline, 7, vote_average, 7, vote_count, 8, movie_id, 8, genre_id, 9, movie_id, 9, language_id, 9, language_role_id, 10, person_id, 10, person_name, 11, movie_id, 11, person_id, 11, department_id, 11, job, 12, company_id, 12, company_name, 13, movie_id, 13, country_id, 14, movie_id, 14, person_id, 14, character_name, 14, gender_id, 14, cast_order, 15, movie_id, 15, keyword_id, 16, movie_id, 16, company_id
Question: Accumulate the budget of the movie titles with the keyword of "video game".
Evidence: keyword of "video game" refers to keyword_name = 'video game'
SQL: SELECT SUM(T1.budget) FROM movie AS T1 INNER JOIN movie_keywords AS T2 ON T1.movie_id = T2.movie_id INNER JOIN keyword AS T3 ON T2.keyword_id = T3.keyword_id WHERE T3.keyword_name = 'video game'
Database: movies_4
Tables: country, department, gender, genre, keyword, language, language_role, movie, movie_genres, movie_languages, person, movie_crew, production_company, production_country, movie_cast, movie_keywords, movie_company
Columns (table index, column name): -1, *, 0, country_id, 0, country_iso_code, 0, country_name, 1, department_id, 1, department_name, 2, gender_id, 2, gender, 3, genre_id, 3, genre_name, 4, keyword_id, 4, keyword_name, 5, language_id, 5, language_code, 5, language_name, 6, role_id, 6, language_role, 7, movie_id, 7, title, 7, budget, 7, homepage, 7, overview, 7, popularity, 7, release_date, 7, revenue, 7, runtime, 7, movie_status, 7, tagline, 7, vote_average, 7, vote_count, 8, movie_id, 8, genre_id, 9, movie_id, 9, language_id, 9, language_role_id, 10, person_id, 10, person_name, 11, movie_id, 11, person_id, 11, department_id, 11, job, 12, company_id, 12, company_name, 13, movie_id, 13, country_id, 14, movie_id, 14, person_id, 14, character_name, 14, gender_id, 14, cast_order, 15, movie_id, 15, keyword_id, 16, movie_id, 16, company_id
Question: For movies with the keyword of "civil war", calculate the average revenue generated by these movies.
Evidence: keyword of "civil war" refers to keyword_name = 'civil war'; average revenue = AVG(revenue)
SQL: SELECT AVG(T1.revenue) FROM movie AS T1 INNER JOIN movie_keywords AS T2 ON T1.movie_id = T2.movie_id INNER JOIN keyword AS T3 ON T2.keyword_id = T3.keyword_id WHERE T3.keyword_name = 'civil war'
Database: movies_4
Tables: country, department, gender, genre, keyword, language, language_role, movie, movie_genres, movie_languages, person, movie_crew, production_company, production_country, movie_cast, movie_keywords, movie_company
Columns (table index, column name): -1, *, 0, country_id, 0, country_iso_code, 0, country_name, 1, department_id, 1, department_name, 2, gender_id, 2, gender, 3, genre_id, 3, genre_name, 4, keyword_id, 4, keyword_name, 5, language_id, 5, language_code, 5, language_name, 6, role_id, 6, language_role, 7, movie_id, 7, title, 7, budget, 7, homepage, 7, overview, 7, popularity, 7, release_date, 7, revenue, 7, runtime, 7, movie_status, 7, tagline, 7, vote_average, 7, vote_count, 8, movie_id, 8, genre_id, 9, movie_id, 9, language_id, 9, language_role_id, 10, person_id, 10, person_name, 11, movie_id, 11, person_id, 11, department_id, 11, job, 12, company_id, 12, company_name, 13, movie_id, 13, country_id, 14, movie_id, 14, person_id, 14, character_name, 14, gender_id, 14, cast_order, 15, movie_id, 15, keyword_id, 16, movie_id, 16, company_id
Question: Find out the popularity of the movies with the highest vote count.
Evidence: highest vote count refers to max(vote_count)
SQL: SELECT popularity FROM movie ORDER BY vote_COUNT DESC LIMIT 1
Database: movies_4
Tables: country, department, gender, genre, keyword, language, language_role, movie, movie_genres, movie_languages, person, movie_crew, production_company, production_country, movie_cast, movie_keywords, movie_company
Columns (table index, column name): -1, *, 0, country_id, 0, country_iso_code, 0, country_name, 1, department_id, 1, department_name, 2, gender_id, 2, gender, 3, genre_id, 3, genre_name, 4, keyword_id, 4, keyword_name, 5, language_id, 5, language_code, 5, language_name, 6, role_id, 6, language_role, 7, movie_id, 7, title, 7, budget, 7, homepage, 7, overview, 7, popularity, 7, release_date, 7, revenue, 7, runtime, 7, movie_status, 7, tagline, 7, vote_average, 7, vote_count, 8, movie_id, 8, genre_id, 9, movie_id, 9, language_id, 9, language_role_id, 10, person_id, 10, person_name, 11, movie_id, 11, person_id, 11, department_id, 11, job, 12, company_id, 12, company_name, 13, movie_id, 13, country_id, 14, movie_id, 14, person_id, 14, character_name, 14, gender_id, 14, cast_order, 15, movie_id, 15, keyword_id, 16, movie_id, 16, company_id
Question: Among the zero-budget movie titles, which one has made the highest revenue?
Evidence: zero-budget refers to budget = 0; highest revenue refers to max(revenue)
SQL: SELECT title FROM movie WHERE budget = 0 ORDER BY revenue DESC LIMIT 1
Database: movies_4
Tables: country, department, gender, genre, keyword, language, language_role, movie, movie_genres, movie_languages, person, movie_crew, production_company, production_country, movie_cast, movie_keywords, movie_company
Columns (table index, column name): -1, *, 0, country_id, 0, country_iso_code, 0, country_name, 1, department_id, 1, department_name, 2, gender_id, 2, gender, 3, genre_id, 3, genre_name, 4, keyword_id, 4, keyword_name, 5, language_id, 5, language_code, 5, language_name, 6, role_id, 6, language_role, 7, movie_id, 7, title, 7, budget, 7, homepage, 7, overview, 7, popularity, 7, release_date, 7, revenue, 7, runtime, 7, movie_status, 7, tagline, 7, vote_average, 7, vote_count, 8, movie_id, 8, genre_id, 9, movie_id, 9, language_id, 9, language_role_id, 10, person_id, 10, person_name, 11, movie_id, 11, person_id, 11, department_id, 11, job, 12, company_id, 12, company_name, 13, movie_id, 13, country_id, 14, movie_id, 14, person_id, 14, character_name, 14, gender_id, 14, cast_order, 15, movie_id, 15, keyword_id, 16, movie_id, 16, company_id
Question: What is the ID of the production company which produced the movie "Gladiator"?
Evidence: ID of the production company refers to company_id; movie "Gladiator" refers to title = 'Gladiator'
SQL: SELECT T2.company_id FROM movie AS T1 INNER JOIN movie_company AS T2 ON T1.movie_id = T2.movie_id WHERE T1.title = 'Gladiator'
Database: movies_4
Tables: country, department, gender, genre, keyword, language, language_role, movie, movie_genres, movie_languages, person, movie_crew, production_company, production_country, movie_cast, movie_keywords, movie_company
Columns (table index, column name): -1, *, 0, country_id, 0, country_iso_code, 0, country_name, 1, department_id, 1, department_name, 2, gender_id, 2, gender, 3, genre_id, 3, genre_name, 4, keyword_id, 4, keyword_name, 5, language_id, 5, language_code, 5, language_name, 6, role_id, 6, language_role, 7, movie_id, 7, title, 7, budget, 7, homepage, 7, overview, 7, popularity, 7, release_date, 7, revenue, 7, runtime, 7, movie_status, 7, tagline, 7, vote_average, 7, vote_count, 8, movie_id, 8, genre_id, 9, movie_id, 9, language_id, 9, language_role_id, 10, person_id, 10, person_name, 11, movie_id, 11, person_id, 11, department_id, 11, job, 12, company_id, 12, company_name, 13, movie_id, 13, country_id, 14, movie_id, 14, person_id, 14, character_name, 14, gender_id, 14, cast_order, 15, movie_id, 15, keyword_id, 16, movie_id, 16, company_id
Question: List down the IDs of the production companies that released the movies in 1916.
Evidence: IDs of the production companies refers to company_id; movies in 1916 refers to release_date LIKE '1916%'
SQL: SELECT T2.company_id FROM movie AS T1 INNER JOIN movie_company AS T2 ON T1.movie_id = T2.movie_id WHERE CAST(STRFTIME('%Y', T1.release_date) AS INT) = 1916
Database: movies_4
Tables: country, department, gender, genre, keyword, language, language_role, movie, movie_genres, movie_languages, person, movie_crew, production_company, production_country, movie_cast, movie_keywords, movie_company
Columns (table index, column name): -1, *, 0, country_id, 0, country_iso_code, 0, country_name, 1, department_id, 1, department_name, 2, gender_id, 2, gender, 3, genre_id, 3, genre_name, 4, keyword_id, 4, keyword_name, 5, language_id, 5, language_code, 5, language_name, 6, role_id, 6, language_role, 7, movie_id, 7, title, 7, budget, 7, homepage, 7, overview, 7, popularity, 7, release_date, 7, revenue, 7, runtime, 7, movie_status, 7, tagline, 7, vote_average, 7, vote_count, 8, movie_id, 8, genre_id, 9, movie_id, 9, language_id, 9, language_role_id, 10, person_id, 10, person_name, 11, movie_id, 11, person_id, 11, department_id, 11, job, 12, company_id, 12, company_name, 13, movie_id, 13, country_id, 14, movie_id, 14, person_id, 14, character_name, 14, gender_id, 14, cast_order, 15, movie_id, 15, keyword_id, 16, movie_id, 16, company_id
Question: List down the movies produced by Lucasfilm.
Evidence: movies refers to title; produced by Lucasfil refers to company_name = 'Lucasfilm'
SQL: SELECT T3.title FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id WHERE T1.company_name = 'Lucasfilm'