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 actor plays Optimus Prime?
Evidence: Which actor refers to person_name; Optimus Prime refers to character_name = 'Optimus Prime (voice)'
SQL: SELECT DISTINCT T1.person_name FROM person AS T1 INNER JOIN movie_cast AS T2 ON T1.person_id = T2.person_id WHERE T2.character_name = 'Optimus Prime (voice)'
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 gender of the character 'USAF Master Sgt. Epps?'
Evidence: character 'USAF Master Sgt. Epps' refers to character_name = 'USAF Master Sgt. Epps'
SQL: SELECT T2.gender FROM movie_cast AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.gender_id WHERE T1.character_name = 'USAF Master Sgt. Epps'
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 all companies who worked in the movie 'Ultramarines: A Warhammer 40,000 Movie.'
Evidence: all companies refers to company_name; movie 'Ultramarines: A Warhammer 40,000 Movie' refers to title = 'Ultramarines: A Warhammer 40,000 Movie'
SQL: SELECT T1.company_name 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 T3.title = 'Ultramarines: A Warhammer 40,000 Movie'
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 movie did the company 'Radiant Film GmbH' work on?
Evidence: Which movie refers to title; company 'Radiant Film GmbH' refers to company_name = 'Radiant Film GmbH'
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 = 'Radiant Film GmbH'
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 are the genres of Sky Captain and the World of Tomorrow?
Evidence: genres refers to genre_name; Sky Captain and the World of Tomorrow refers to title = 'Sky Captain and the World of Tomorrow'
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.title = 'Sky Captain and the World of Tomorrow'
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 all the keywords belonging to the movie 'Sky Captain and the World of Tomorrow.'
Evidence: keywords refers to keyword_name; movie 'Sky Captain and the World of Tomorrow' refers to title = 'Sky Captain and the World of Tomorrow'
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 WHERE T1.title = 'Sky Captain and the World of Tomorrow'
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: The movie 'Gojira ni-sen mireniamu' is from which country?
Evidence: movie 'Gojira ni-sen mireniamu' refers to title = 'Gojira ni-sen mireniamu'; which country refers to country_name
SQL: SELECT T3.COUNTry_name 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 T1.title = 'Gojira ni-sen mireniamu'
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 movie has the keyword 'extremis?'
Evidence: Which movie refers to title; keyword 'extremis' refers to keyword_name = 'extremis'
SQL: SELECT T1.title 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 = 'extremis'
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 10 movie titles that were produced in France.
Evidence: France refers to country_name = 'France'
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 = 'France' LIMIT 10
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: Who is the director for the movie 'Transformers?'
Evidence: the director refers to person_name where job = 'Director'; movie 'Transformers' refers to title = 'Transformers'
SQL: SELECT T3.person_name FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T1.title = 'Transformers' AND T2.job = 'Director'
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 10 crews alongside their jobs who worked on the movie 'Mad Max: Fury Road.'
Evidence: crews refers to person_name; movie 'Mad Max: Fury Road' refers to title = 'Mad Max: Fury Road'
SQL: SELECT T3.person_name FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T1.title = 'Mad Max: Fury Road' LIMIT 10
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 percentage of movies that came from Japan belong in the 'animation' genre?
Evidence: from Japan refers to country_name = 'Japan'; in the 'animation' genre refers to genre_name = 'animation'; percentage = divide(sum(movie_id) when genre_name = 'animation', count(movie_id)) as percentage
SQL: SELECT CAST(COUNT(CASE WHEN T4.genre_name = 'Animation' THEN T1.movie_id ELSE NULL END) AS REAL) * 100 / COUNT(T1.movie_id) FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN production_COUNTry AS T3 ON T1.movie_id = T3.movie_id INNER JOIN genre AS T4 ON T2.genre_id = T4.genre_id INNER JOIN COUNTry AS T5 ON T3.COUNTry_id = T5.COUNTry_id WHERE T5.COUNTry_name = 'Japan'
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 ratio between male and female cast members of the movie 'Iron Man?' Count how many have unspecified genders.
Evidence: male refers to gender = 'Male'; female refers to gender = 'Female'; movie 'Iron Man' refers to title = 'Iron Man'; ratio = divide(sum(gender = 'Female'), sum(gender = 'Male'))
SQL: SELECT CAST(COUNT(CASE WHEN T3.gender = 'Male' THEN 1 ELSE NULL END) AS REAL) / COUNT(CASE WHEN T3.gender = 'Female' THEN 1 ELSE NULL END) AS RATIO , COUNT(CASE WHEN T3.gender = 'Unspecified' THEN 1 ELSE NULL END) AS UNGENDERS FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id INNER JOIN gender AS T3 ON T2.gender_id = T3.gender_id WHERE T1.title = 'Iron Man'
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 five movie titles that were released before 2000.
Evidence: released before 2000 refers to release_date < '2000-01-01'
SQL: SELECT title FROM movie WHERE CAST(STRFTIME('%Y', release_date) AS INT) < 2000 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 keyword ID of the movie with the title of "Sin City"?
Evidence: title of "Sin City" refers to title = 'Sin City'
SQL: SELECT T2.keyword_id FROM movie AS T1 INNER JOIN movie_keywords AS T2 ON T1.movie_id = T2.movie_id WHERE T1.title = 'Sin City'
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: Look for the movie title with the keyword of "angel".
Evidence: keyword of "angel" refers to keyword_name = 'angel'
SQL: SELECT T1.title 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 = 'angel'