Chinastark/bird_dataset huggingface dataset:
Database: retail_complains
Question: In reviews of product with 5 stars, what is the percentage of the reviews coming from the division of East North Central?
Evidence: 5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100%
SQL: SELECT CAST(SUM(CASE WHEN T1.division = 'East North Central' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.division) FROM district AS T1 INNER JOIN reviews AS T2 ON T1.district_id = T2.district_id WHERE T2.Stars = 5
Database: movies_4
Question: Please list the names of the production company of the movie "Four Rooms".
Evidence: names of the production company refers to movie_company; movie "Four Rooms" refers to title = 'Four Rooms'
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 = 'Four Rooms'
Database: movies_4
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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'
Database: movies_4
Question: How many movies were directed by Michael Bay?
Evidence: directed by refers to job = 'Director'
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 = 'Michael Bay' AND T2.job = 'Director'
Database: movies_4
Question: Show the total number of keywords of the movie "I Hope They Serve Beer in Hell".
Evidence: "I Hope They Serve Beer in Hell" refers to title = 'I Hope They Serve Beer in Hell';
SQL: SELECT COUNT(T2.keyword_id) FROM movie AS T1 INNER JOIN movie_keywords AS T2 ON T1.movie_id = T2.movie_id WHERE T1.title = 'I Hope They Serve Beer in Hell'
Database: movies_4
Question: For the movie "Land of the Dead", who is its director?
Evidence: "Land of the Dead" refers to title = 'Land of the Dead'; director refers to person_name where job = 'Director'
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 = 'Land of the Dead' AND T2.job = 'Director'
Database: movies_4
Question: Tell the number of movies made by Paramount Animation.
Evidence: Paramount Animation refers to company_name = 'Paramount Animation'
SQL: SELECT COUNT(T2.movie_id) FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id WHERE T1.company_name = 'Paramount Animation'
Database: movies_4
Question: How many female characters are there in the movie "Spider-Man 3"?
Evidence: female characters refer to gender = 'Female'; "Spider-Man 3" refers to title = 'Spider-Man 3'
SQL: SELECT COUNT(*) 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 = 'Spider-Man 3' AND T3.gender = 'Female'
Database: movies_4
Question: Provide the most used keyword in the movies.
Evidence: most used keyword refers to keyword_name where max(count(keyword_name))
SQL: SELECT T1.keyword_name FROM keyword AS T1 INNER JOIN movie_keywords AS T2 ON T1.keyword_id = T2.keyword_id GROUP BY T1.keyword_name ORDER BY COUNT(T1.keyword_name) DESC LIMIT 1
Database: movies_4
Question: How many producers does the movie "The Amityville Horror" have?
Evidence: producers refers to job = 'Producer'; "The Amityville Horror" refers to title = 'The Amityville Horror'
SQL: SELECT COUNT(T2.person_id) FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id WHERE T1.title = 'The Amityville Horror' AND T2.job = 'Producer'
Database: movies_4
Question: What is the production company of the movie "Crazy Heart"?
Evidence: movie "Crazy Heart" refers to title = 'Crazy Heart'; production company refers to company_name
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 = 'Crazy Heart'
Database: movies_4
Question: Give the number of movies with "saving the world" as the keyword.
Evidence: "saving the world" as the keyword refers to keyword_name = 'saving the world'
SQL: SELECT COUNT(T2.movie_id) FROM keyword AS T1 INNER JOIN movie_keywords AS T2 ON T1.keyword_id = T2.keyword_id WHERE keyword_name = 'saving the world'
Database: movies_4
Question: For all the movies which were produced by Cruel and Unusual Films, which one has the most popularity?
Evidence: produced by Cruel and Unusual Films refers to company_name = 'Cruel and Unusual Films'; most popularity refers to max(popularity)
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 = 'Cruel and Unusual Films' ORDER BY T3.popularity DESC LIMIT 1
Database: movies_4
Question: For the movie "Reign of Fire", which department was Marcia Ross in?
Evidence: movie "Reign of Fire" refers to title = 'Reign of Fire'; which department refers to department_name
SQL: SELECT T4.department_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 INNER JOIN department AS T4 ON T2.department_id = T4.department_id WHERE T3.person_name = 'Marcia Ross' AND T1.title = 'Reign of Fire'
Database: movies_4
Question: Calculate the average budget of the movies directed by Jaume Collet-Serra.
Evidence: directed by refers to job = 'Director'; average budget = AVG(budget)
SQL: SELECT CAST(SUM(T1.budget) 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 = 'Jaume Collet-Serra' AND T2.job = 'Director'
Database: movies_4
Question: What is the percentage of male characters in the movie "Bride Wars"?
Evidence: male refers to gender = 'Male'; "Bride Wars" refers to title = 'Bride Wars'; percentage = divide(sum(gender = 'Male'), count(gender)) * 100 as percentage
SQL: SELECT CAST(COUNT(CASE WHEN T3.gender = 'Male' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T3.gender) 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 = 'Bride Wars'
Database: movies_4
Question: What is the title of the movie that was made with the most money and resources?
Evidence: made with the most money and resources refers to max(budget)
SQL: SELECT title FROM movie ORDER BY budget DESC LIMIT 1
Database: movies_4
Question: How many movies have made at least 1 Billion at the box office?
Evidence: have made at least 1 Billion at the box office refers to revenue > 1000000000
SQL: SELECT COUNT(movie_id) FROM movie WHERE revenue > 1000000000
Database: movies_4
Question: When was the first movie released?
Evidence: when the first movie refers to release_date where min(release_date)
SQL: SELECT MIN(release_date) FROM movie WHERE movie_status = 'Released'
Database: movies_4
Question: How many crew are named John Young?
SQL: SELECT COUNT(person_id) FROM person WHERE person_name = 'John Young'
Database: movies_4
Question: Provide the title of the movie that is most-liked by a large number of people.
Evidence: most-liked by a large number of people refers to max(popularity)
SQL: SELECT title FROM movie ORDER BY popularity DESC LIMIT 1
Database: movies_4
Question: Who is the person associated with the crew id 1325273?
Evidence: Who is the person refers to person_name; crew id 1325273 refers to person_id = 1325273
SQL: SELECT person_name FROM person WHERE person_id = 1325273
Database: movies_4
Question: What is the name of the production company that made the most movies?
Evidence: name of the production company refers to company_name; most movies refers to max(count(company_name))
SQL: SELECT T1.company_name FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id ORDER BY COUNT(T2.movie_id) DESC LIMIT 1
Database: movies_4
Question: Who played Captain Jack Sparrow in all of the Pirates of the Caribbean movies?
Evidence: Captain Jack Sparrow refers to character_name = 'Captain Jack Sparrow'; Pirates of the Caribbean movies refers to title LIKE 'Pirates of the Carribbean%'
SQL: SELECT DISTINCT T3.person_name FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T2.character_name = 'Captain Jack Sparrow' AND T1.title LIKE 'Pirates of the Caribbean%'
Database: movies_4
Question: What is Walt Disney Pictures' most popular movie?
Evidence: Walt Disney Pictures refers to company_name = 'Walt Disney Pictures'; most popular movie refers to max(popularity)
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 = 'Walt Disney Pictures' ORDER BY T3.popularity DESC LIMIT 1
Database: movies_4
Question: How many movies did Universal Studios release?
Evidence: Universal Studios refers to company_name = 'Universal Studios'
SQL: SELECT COUNT(T2.movie_id) FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id WHERE T1.company_name = 'Universal Studios'
Database: movies_4
Question: Which production company produced the movie that made the most money at the box office?
Evidence: Which production company refers to company_name; most money at the box office refers to max(revenue)
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 GROUP BY T1.company_id ORDER BY SUM(T3.revenue) DESC LIMIT 1
Database: movies_4
Question: How many female crews are in the movie "Mr. Smith Goes to Washington"?
Evidence: female crews refers to gender = 'Female'; "Mr. Smith Goes to Washington" refers to title = 'Mr. Smith Goes to Washington'
SQL: SELECT COUNT(T3.gender) 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 = 'Mr. Smith Goes to Washington' AND T3.gender = 'Female'
Database: movies_4
Question: List the names of the production companies that made at least 200 movies.
Evidence: names of the production companies refers to company_name; at least 200 movies refers to COUNT(company_name) > = 200
SQL: SELECT T1.company_name FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id HAVING COUNT(T2.movie_id) > 200
Database: movies_4
Question: How many movies did Harrison Ford appear in total?
SQL: SELECT COUNT(T2.movie_id) FROM person AS T1 INNER JOIN movie_cast AS T2 ON T1.person_id = T2.person_id WHERE T1.person_name = 'Harrison Ford'
Database: movies_4
Question: What is the title of Jamie Foxx's most recent movie?
Evidence: most recent movie refers to max(release_date)
SQL: SELECT T1.title FROM movie AS T1 INNER JOIN movie_cast 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 = 'Jamie Foxx' ORDER BY T1.release_date DESC LIMIT 1
Database: movies_4
Question: How many movies released in 1995 did Quentin Tarantino appear in?
Evidence: released in 1995 refers to release_date LIKE '1995%'
SQL: SELECT COUNT(T1.movie_id) FROM movie AS T1 INNER JOIN movie_cast 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 = 'Quentin Tarantino' AND CAST(STRFTIME('%Y', T1.release_date) AS INT) = 1995
Database: movies_4
Question: What is the title of the first crime movie ever released?
Evidence: first crime movie ever released refers to min(release_date) and genre_name = 'Crime'
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 = 'Crime' ORDER BY T1.release_date LIMIT 1
Database: movies_4
Question: How many horror movies are there?
Evidence: horror movies refers to genre_name = 'Horror'
SQL: SELECT COUNT(T1.movie_id) FROM movie_genres AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.genre_id WHERE T2.genre_name = 'Horror'
Database: movies_4
Question: List the person IDs of the second film editors in Movie No. 12.
Evidence: second film editors refers to job = 'Second Film Editor'; Movie No. 12 refers to movie_id = 12
SQL: SELECT person_id FROM movie_crew WHERE movie_id = 12 AND job = 'Second Film Editor'
Database: movies_4
Question: How many animators does Movie No. 129 have?
Evidence: animators refers to job = 'Animation'; Movie No. 129 refers to movie_id = 129
SQL: SELECT COUNT(movie_id) FROM movie_crew WHERE movie_id = 129 AND job = 'Animation'
Database: movies_4
Question: In Movie No. 19, how many people are there in Department No. 7? Please give me their job.
Evidence: Movie No. 19 refers to movie_id = 19; Department No. 7 refers to department_id = 7
SQL: SELECT COUNT(DISTINCT job) FROM movie_crew WHERE movie_id = 19 AND department_id = 7
Database: movies_4
Question: Write the person ID and character name of casts between order numbers 1 and 10 in Movie No. 285.
Evidence: casts between order numbers 1 and 10 refers to cast_order BETWEEN 2 AND 9; Movie No. 285 refers to movie_id = 285
SQL: SELECT person_id, character_name FROM movie_cast WHERE movie_id = 285 AND cast_order BETWEEN 1 AND 10
Database: movies_4
Question: How many times did Bob Peterson appear in the movie credits?
SQL: SELECT COUNT(T2.movie_id) FROM person AS T1 INNER JOIN movie_cast AS T2 ON T1.person_id = T2.person_id WHERE T1.person_name = 'Bob Peterson'
Database: movies_4
Question: Tally the movie ID and character name in the movie starring Jim Carrey.
SQL: SELECT T2.movie_id, T2.character_name FROM person AS T1 INNER JOIN movie_cast AS T2 ON T1.person_id = T2.person_id WHERE T1.person_name = 'Jim Carrey'
Database: movies_4
Question: Give the names of the female cast in Movie No. 1865.
Evidence: female cast refers to gender = 'Female'; name of cast refers to person_name; Movie No. 1865 refers to movie_id = 1865
SQL: SELECT T2.person_name FROM movie_cast AS T1 INNER JOIN person AS T2 ON T1.person_id = T2.person_id INNER JOIN gender AS T3 ON T1.gender_id = T3.gender_id WHERE T1.movie_id = 1865 AND T3.gender = 'Female'
Database: movies_4
Question: Write me the titles of the movies starring Jim Carrey.
Evidence: Jim Carrey is the person_name;
SQL: SELECT T1.title FROM movie AS T1 INNER JOIN movie_cast 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 = 'Jim Carrey'
Database: movies_4
Question: List the director's name of the movies released between 1/01/1916 and 12/31/1925.
Evidence: director's name refers to person_name where job = 'Director'; released between 1/01/1916 and 12/31/1925 refers to release_date BETWEEN '1916-01-02' AND '1925-12-30'
SQL: SELECT T2.person_name FROM movie_cast AS T1 INNER JOIN person AS T2 ON T1.person_id = T2.person_id INNER JOIN movie AS T3 ON T1.movie_id = T3.movie_id INNER JOIN movie_crew AS T4 ON T1.movie_id = T4.movie_id WHERE T4.job = 'Director' AND T3.release_date BETWEEN '1916-01-01' AND '1925-12-31'
Database: movies_4
Question: How many films released between 1/2/1990 and 12/30/2000 starred Uma Thurman?
Evidence: released between 1/2/1990 and 12/30/2000 refers to release_date BETWEEN '1990-01-02' AND '2000-12-30'; film has the same meaning as movie; starred Uma Thurman refers to person_name = 'Uma Thurman'
SQL: SELECT COUNT(T1.movie_id) FROM movie AS T1 INNER JOIN movie_cast 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 = 'Uma Thurman' AND T1.release_date BETWEEN '1990-01-01' AND '2000-12-31'
Database: movies_4
Question: Write the titles of horror films with a vote average of more than 7.
Evidence: horror films refers to genre_name = 'Horror'; vote average of more than 7 refers to vote_average > 7
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 = 'Horror' AND vote_average > 7
Database: movies_4
Question: Give the genre and popularity of movies whose revenue is at least 120,000,000 between 2012 and 2015.
Evidence: genre refers to genre_name; revenue is at least 120,000,000 refers to revenue > = 120000000; between 2012 and 2015 refers to release_date BETWEEN '2012-01-01' AND '2015-12-31'
SQL: SELECT T3.genre_name, T1.popularity 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.revenue > 120000000 AND T1.release_date BETWEEN '2012-01-01' AND '2015-12-31'