Chinastark/bird_dataset huggingface dataset:
Database: movies_4
Question: How many Indian movies between 1/2/1990 and 12/30/2003 have revenue of more than 75,000,000 and popularity of no less than 20?
Evidence: Indian movies refers to country_name = 'India'; between 1/2/1990 and 12/30/2003 refers to release_date BETWEEN '1990-01-02' AND '2003-12-30'; revenue of more than 75,000,000 refers to revenue > 75000000; popularity of no less than 20 refers to popularity > = 20
SQL: SELECT COUNT(T2.movie_id) FROM movie AS T1 INNER JOIN production_COUNTry AS T2 ON T1.movie_id = T2.movie_id WHERE T1.revenue > 75000000 AND T1.popularity >= 20 AND T1.release_date BETWEEN '1990-01-01' AND '2003-12-31'
Database: movies_4
Question: What is the title of the highest-budget film to date? Please include the revenue and name the country.
Evidence: highest-budget film refers to max(budget); name the country refers to country_name
SQL: SELECT T1.title, T1.revenue, 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 ORDER BY T1.budget DESC LIMIT 1
Database: movies_4
Question: List the title of movies in Latin released between 1/01/1990 and 12/31/1995.
Evidence: movies in Latin refers to language_name = 'Latin'; released between 1/01/1990 and 12/31/1995 refers to release_date BETWEEN '1990-01-01' AND '1995-12-31'
SQL: SELECT T1.title FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id WHERE T3.language_name = 'Latin' AND T1.release_date BETWEEN '1990-01-01' AND '1995-12-31'
Database: movies_4
Question: What is the average revenue of American movies in 2006?
Evidence: American movies refers to country_name = 'United States of America'; in 2006 refers to release_date LIKE '2006%'; average revenue = AVG(revenue)
SQL: SELECT AVG(T1.revenue) 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 = 'United States of America' AND CAST(STRFTIME('%Y', T1.release_date) AS INT) = 2006
Database: movies_4
Question: Calculate the 2016 gap between the average revenue for Indian and American films.
Evidence: 2016 refers to release_date LIKE '2016%'; Indian and American films refers to country_name = 'India' and country_name = 'United States of America'; gap between the average revenue refers to subtract(divide(sum(revenue), count(movie_id)) when country_name = 'United States of America', divide(sum(revenue), count(movie_id)) when country_name = 'India')
SQL: SELECT AVG(CASE WHEN T3.COUNTry_name = 'United States of America' THEN T1.revenue END) - AVG(CASE WHEN T3.COUNTry_name = 'India' THEN T1.revenue END) AS CALCULATE 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 CAST(STRFTIME('%Y', T1.release_date) AS INT) = 2016
Database: movies_4
Question: What is the percentage of romance films among films produced in India in 2015?
Evidence: romance films refers to genre_name = 'Romance'; in India refers to country_name = 'India'; 2015 refers to release_date BETWEEN '2015-01-01' AND '2015-01-31'; percentage = divide(sum(movie_id) when genre_name = 'Romance', count(movie_id)) as percentage
SQL: SELECT CAST(COUNT(CASE WHEN T4.genre_name = 'Romance' 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 = 'India' AND T1.release_date BETWEEN '2015-01-01' AND '2015-12-31'
Database: movies_4
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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'
Database: movies_4
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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'
Database: movies_4
Question: Among Warner Bros. Pictures' movies, which title made the highest revenue?
Evidence: Warner Bros. Pictures' movies refers to company_name = 'Warner Bros. Pictures'; highest revenue refers to max(revenue)
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 = 'Warner Bros. Pictures' ORDER BY T3.revenue DESC LIMIT 1
Database: movies_4
Question: Write down the release date of the movies produced by Twentieth Century Fox Film Corporation.
Evidence: produced by Twentieth Century Fox Film Corporation refers to company_name = 'Twentieth Century Fox Film Corporation'
SQL: SELECT T3.release_date 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 = 'Twentieth Century Fox Film Corporation'
Database: movies_4
Question: What is the language ID of the movie "Walk the Line"?
Evidence: movie "Walk the Line" refers to title = 'Walk the Line'
SQL: SELECT T2.language_id FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id WHERE T1.title = 'Walk the Line'
Database: movies_4
Question: Find out the language ID of the movie with the highest popularity.
Evidence: highest popularity refers to max(popularity)
SQL: SELECT T2.language_id FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id ORDER BY T1.popularity DESC LIMIT 1
Database: movies_4
Question: Tell the language of the movie "C'era una volta il West".
Evidence: language refers to language_name; movie "C'era una volta il West" refers to title = 'C''era una volta il West'
SQL: SELECT T3.language_name FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id WHERE T1.title LIKE 'C%era una volta il West'
Database: movies_4
Question: Are there any post-production movies in Nederlands?
Evidence: post-production movies refers to movie_status = 'Post Production'; Nederlands refers to language_name = 'Nederlands';
SQL: SELECT DISTINCT CASE WHEN T1.movie_status = 'Post Production' THEN 'YES' ELSE 'NO' END AS YORN FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id WHERE T3.language_name = 'Nederlands'
Database: movies_4
Question: List down the tagline of the Polski movies.
Evidence: Polski movies refers to language_name = 'Polski'
SQL: SELECT DISTINCT T1.tagline FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id WHERE T3.language_name = 'Polski'
Database: movies_4
Question: Provide the homepage of the Bahasa Indonesia movies.
Evidence: Bahasa Indonesia movies refers to language_name = 'Bahasa indonesia'
SQL: SELECT DISTINCT T1.homepage FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id WHERE T3.language_name = 'Bahasa indonesia'
Database: movies_4
Question: Work out the difference in revenues made between the English and Latin movies.
Evidence: English refers to language_name = 'English'; Latin refers to language_name = 'Latin'; difference in revenues = subtract(sum(movie_id) when language_name = 'English', sum(movie_id) when language_name = 'Latin')
SQL: SELECT SUM(CASE WHEN T3.language_name = 'English' THEN T1.revenue ELSE 0 END) - SUM(CASE WHEN T3.language_name = 'Latin' THEN T1.revenue ELSE 0 END) AS DIFFERENCE FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id
Database: movies_4
Question: Calculate the revenues made by Fantasy Films and Live Entertainment.
Evidence: made by Fantasy Films refers to company_name = 'Fantasy Films'; Live Entertainment refers to company_name = 'Live Entertainment'
SQL: SELECT SUM(T3.revenue) 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 IN ('Fantasy Films', 'Live Entertainment')
Database: movies_4
Question: What is the average revenue made by Latin movies?
Evidence: Latin movies refers to language_name = 'Latin'; average revenue = AVG(revenue)
SQL: SELECT AVG(T1.revenue) FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id WHERE T3.language_name = 'Latin'
Database: movies_4
Question: What is the most common first name?
Evidence: most common first name refers to max(count(person_name))
SQL: SELECT person_name FROM person GROUP BY person_name ORDER BY COUNT(person_name) DESC LIMIT 1
Database: movies_4
Question: What is the average number of crews for a movie?
Evidence: average number of crews = divide(count(person_id), COUNT(movie_id))
SQL: SELECT CAST(SUM(CD) AS REAL) / COUNT(movie_id) FROM ( SELECT movie_id, COUNT(person_id) AS CD FROM movie_crew GROUP BY movie_id )
Database: movies_4
Question: List all the keywords with "christmas" in them.
Evidence: keywords with "christmas" in them refers to keyword_name LIKE '%christmas%'
SQL: SELECT keyword_name FROM keyword WHERE keyword_name LIKE '%christmas%'
Database: movies_4
Question: What is the longest runtime of all movies?
Evidence: longest runtime refers to max(runtime)
SQL: SELECT MAX(runtime) FROM movie
Database: movies_4
Question: What is the iso code of "Kyrgyz Republic"?
Evidence: iso code refers to country_iso_code; "Kyrgyz Republic" refers to country_name = 'Kyrgyz Republic'
SQL: SELECT COUNTry_iso_code FROM COUNTry WHERE COUNTry_name = 'Kyrgyz Republic'
Database: movies_4
Question: Provide the overview for the movie "The Pacifier".
Evidence: movie "The Pacifier" refers to title = 'The Pacifier'
SQL: SELECT overview FROM movie WHERE title = 'The Pacifier'
Database: movies_4
Question: How many movies were produced by "Eddie Murphy Productions"?
Evidence: produced by "Eddie Murphy Productions" refers to company_name = 'Eddie Murphy Productions'
SQL: SELECT COUNT(T1.movie_id) FROM movie_company AS T1 INNER JOIN production_company AS T2 ON T1.company_id = T2.company_id WHERE T2.company_name = 'Eddie Murphy Productions'
Database: movies_4
Question: List all the actors who have played characters with "captain" in their names.
Evidence: List all the actors refers to person_name; characters with "captain" in their names refers to character_name LIKE '%captain%';
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 LIKE '%captain%'
Database: movies_4
Question: What is the most common keyword among all the movies released in 2006?
Evidence: most common keyword refers to max(count(keyword_name)); movies released in 2006 refers to release_date LIKE '%2006%'
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.release_date LIKE '2006%' GROUP BY T3.keyword_name ORDER BY COUNT(T3.keyword_name) DESC LIMIT 1