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: How many production companies does the movie "Four Rooms" have?
Evidence: movie "Four Rooms" refers to title = 'Four Rooms'
SQL: SELECT COUNT(CNAME) FROM ( SELECT T1.company_name AS CNAME 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 = 'Four Rooms' )
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: Please list the titles of all the movie produced by production company "Universal Pictures".
Evidence: "Universal Pictures" refers to company_name = 'Universal Pictures'
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 = 'Universal Pictures'
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 title of the latest released movie produced by production company "Universal Pictures"?
Evidence: "Universal Pictures" refers to company_name = 'Universal Pictures'; latest released refers to max(release_date)
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 = 'Universal Pictures' ORDER BY T3.release_date 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 name of the director of photography of the movie "Pirates of the Caribbean: At World's End"?
Evidence: name of the director of photography refers to person_name where job = 'Director of Photography'; "Pirates of the Caribbean: At World's End" refers to title = 'Pirates of the Caribbean: At World''s End'
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 LIKE 'Pirates of the Caribbean: At World%s End' AND T2.job = 'Director of Photography'
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 was the job of Dariusz Wolski in the movie "Pirates of the Caribbean: At World's End"?
Evidence: movie "Pirates of the Caribbean: At World's End" refers to title = 'Pirates of the Caribbean: At World''s End'
SQL: SELECT T2.job 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 LIKE 'Pirates of the Caribbean: At World%s End' AND T3.person_name = 'Dariusz Wolski'
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: Please list the names of all the crew members of the movie "Pirates of the Caribbean: At World's End".
Evidence: names refers to person_name; "Pirates of the Caribbean: At World's End" refers to title = 'Pirates of the Caribbean: At World''s End'
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 LIKE 'Pirates of the Caribbean: At World%s End'
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: How many crew members worked as producer in the movie "Pirates of the Caribbean: At World's End"?
Evidence: worked as producer refers to job = 'Producer'; "Pirates of the Caribbean: At World's End" refers to title = 'Pirates of the Caribbean: At World''s End'
SQL: SELECT COUNT(T3.person_id) 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 LIKE 'Pirates of the Caribbean: At World%s End' AND T2.job = 'Producer'
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: Please list the names of all the producers in the movie "Pirates of the Caribbean: At World's End".
Evidence: names refers to person_name; producers refers to job = 'Producer'; "Pirates of the Caribbean: At World's End" refers to title = 'Pirates of the Caribbean: At World''s End'
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 LIKE 'Pirates of the Caribbean: At World%s End' AND T2.job = 'Producer'
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: In how many movie does Dariusz Wolski work as the director of photography?
Evidence: director of photography refers to job = 'Director of Photography'
SQL: SELECT COUNT(T2.movie_id) FROM person AS T1 INNER JOIN movie_crew AS T2 ON T1.person_id = T2.person_id WHERE T1.person_name = 'Dariusz Wolski' AND T2.job = 'Director of Photography'
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 movie in which Dariusz Wolski works as the director of photography, what is the title of the one with the highest average vote?
Evidence: director of photography refers to job = 'Director of Photography'; highest average vote refers to max(vote_average)
SQL: SELECT T1.title 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 T3.person_name = 'Dariusz Wolski' AND T2.job = 'Director of Photography' ORDER BY T1.vote_average 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: When was the release date of the latest movie in which Dariusz Wolski worked as a crew member?
Evidence: release date of the latest movie refers to max(release_date)
SQL: SELECT T1.release_date 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 T3.person_name = 'Dariusz Wolski' ORDER BY T1.release_date 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 movie in which Dariusz Wolski works as the director of photography, what is the percentage of those movie whose vote average is over 5.0?
Evidence: director of photography refers to job = 'Director of Photography'; vote average is over 8.0 refers to vote_average > 5; percentage = divide(sum(movie_id) when vote_average > 5, count(movie_id)) as percentage
SQL: SELECT CAST(COUNT(CASE WHEN T1.vote_average > 5 THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.vote_average) 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 T3.person_name = 'Dariusz Wolski' AND T2.job = 'Director of Photography'
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 average revenue of the movie in which Dariusz Wolski works as the director of photography?
Evidence: director of photography refers to job = 'Director of Photography'; average revenue = divide(sum(revenue), count(movie_id))
SQL: SELECT CAST(SUM(T1.revenue) AS REAL) / COUNT(T1.movie_id) 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 T3.person_name = 'Dariusz Wolski' AND T2.job = 'Director of Photography'
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: Give the name of the movie with a revenue of 559852396.
Evidence: name of the movie refers to title; revenue of 559852396 refers to revenue = '559852396'
SQL: SELECT title FROM movie WHERE revenue = 559852396
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 was David Rubin's job in the movie "Days of Thunder"?
Evidence: "Days of Thunder" refers to title = 'Days of Thunder'
SQL: SELECT T2.job 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 T3.person_name = 'David Rubin' AND T1.title = 'Days of Thunder'