1sf/bird-sql-train-with-schema huggingface dataset:
Database: disney
Tables: characters, director, movies_total_gross, revenue, voice-actors
Columns (table index, column name): -1, *, 0, movie_title, 0, release_date, 0, hero, 0, villian, 0, song, 1, name, 1, director, 2, movie_title, 2, release_date, 2, genre, 2, MPAA_rating, 2, total_gross, 2, inflation_adjusted_gross, 3, Year, 3, Studio Entertainment[NI 1], 3, Disney Consumer Products[NI 2], 3, Disney Interactive[NI 3][Rev 1], 3, Walt Disney Parks and Resorts, 3, Disney Media Networks, 3, Total, 4, character, 4, voice-actor, 4, movie
Question: Which movie's song title has the highest total gross?
Evidence: The highest total gross refers to MAX(total_gross);
SQL: SELECT T2.song FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title ORDER BY CAST(REPLACE(trim(T1.total_gross, '$'), ',', '') AS REAL) DESC LIMIT 1
Database: disney
Tables: characters, director, movies_total_gross, revenue, voice-actors
Columns (table index, column name): -1, *, 0, movie_title, 0, release_date, 0, hero, 0, villian, 0, song, 1, name, 1, director, 2, movie_title, 2, release_date, 2, genre, 2, MPAA_rating, 2, total_gross, 2, inflation_adjusted_gross, 3, Year, 3, Studio Entertainment[NI 1], 3, Disney Consumer Products[NI 2], 3, Disney Interactive[NI 3][Rev 1], 3, Walt Disney Parks and Resorts, 3, Disney Media Networks, 3, Total, 4, character, 4, voice-actor, 4, movie
Question: Which director had the most popular film from 1937 to 1990?
Evidence: from 1937 to 1990 refers to substr(release_date, length(release_date) - 3, length(release_date)) between '1937' and '1990'; the most popular film refers to movie_title where MAX(total_gross);
SQL: SELECT T2.director FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name INNER JOIN movies_total_gross AS T3 ON T3.movie_title = T1.movie_title WHERE SUBSTR(T3.release_date, LENGTH(T3.release_date) - 3, LENGTH(T3.release_date)) BETWEEN '1937' AND '1990' ORDER BY CAST(REPLACE(trim(T3.total_gross, '$'), ',', '') AS REAL) DESC LIMIT 1
Database: disney
Tables: characters, director, movies_total_gross, revenue, voice-actors
Columns (table index, column name): -1, *, 0, movie_title, 0, release_date, 0, hero, 0, villian, 0, song, 1, name, 1, director, 2, movie_title, 2, release_date, 2, genre, 2, MPAA_rating, 2, total_gross, 2, inflation_adjusted_gross, 3, Year, 3, Studio Entertainment[NI 1], 3, Disney Consumer Products[NI 2], 3, Disney Interactive[NI 3][Rev 1], 3, Walt Disney Parks and Resorts, 3, Disney Media Networks, 3, Total, 4, character, 4, voice-actor, 4, movie
Question: List all the main characters of the movie that are comedy genre.
Evidence: Comedy refers to genre = 'Comedy'; the main character of the movie refers to hero;
SQL: SELECT T2.hero FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title WHERE T1.genre = 'Comedy'
Database: disney
Tables: characters, director, movies_total_gross, revenue, voice-actors
Columns (table index, column name): -1, *, 0, movie_title, 0, release_date, 0, hero, 0, villian, 0, song, 1, name, 1, director, 2, movie_title, 2, release_date, 2, genre, 2, MPAA_rating, 2, total_gross, 2, inflation_adjusted_gross, 3, Year, 3, Studio Entertainment[NI 1], 3, Disney Consumer Products[NI 2], 3, Disney Interactive[NI 3][Rev 1], 3, Walt Disney Parks and Resorts, 3, Disney Media Networks, 3, Total, 4, character, 4, voice-actor, 4, movie
Question: Provide the names of voice actors for the characters of films directed by Wolfgang Reitherman.
Evidence: Wolfgang Reitherman refers to director = 'Wolfgang Reitherman';
SQL: SELECT T2.hero, T1.`voice-actor` FROM `voice-actors` AS T1 INNER JOIN characters AS T2 ON T1.movie = T2.movie_title INNER JOIN director AS T3 ON T3.name = T2.movie_title WHERE T3.director = 'Wolfgang Reitherman'
Database: disney
Tables: characters, director, movies_total_gross, revenue, voice-actors
Columns (table index, column name): -1, *, 0, movie_title, 0, release_date, 0, hero, 0, villian, 0, song, 1, name, 1, director, 2, movie_title, 2, release_date, 2, genre, 2, MPAA_rating, 2, total_gross, 2, inflation_adjusted_gross, 3, Year, 3, Studio Entertainment[NI 1], 3, Disney Consumer Products[NI 2], 3, Disney Interactive[NI 3][Rev 1], 3, Walt Disney Parks and Resorts, 3, Disney Media Networks, 3, Total, 4, character, 4, voice-actor, 4, movie
Question: What genre of movie has Taran as the main character?
Evidence: Taran is the main character of the movie which refers to hero = 'Taran';
SQL: SELECT T1.genre FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title WHERE T2.hero = 'Taran'
Database: disney
Tables: characters, director, movies_total_gross, revenue, voice-actors
Columns (table index, column name): -1, *, 0, movie_title, 0, release_date, 0, hero, 0, villian, 0, song, 1, name, 1, director, 2, movie_title, 2, release_date, 2, genre, 2, MPAA_rating, 2, total_gross, 2, inflation_adjusted_gross, 3, Year, 3, Studio Entertainment[NI 1], 3, Disney Consumer Products[NI 2], 3, Disney Interactive[NI 3][Rev 1], 3, Walt Disney Parks and Resorts, 3, Disney Media Networks, 3, Total, 4, character, 4, voice-actor, 4, movie
Question: The main character Elsa is voiced by which actor and who is the director of the movie?
Evidence: Elsa is the main character of the movie which refers to hero = 'Elsa'; voiced by which actor refers to voice-actor;
SQL: SELECT T1.`voice-actor`, T3.director FROM `voice-actors` AS T1 INNER JOIN characters AS T2 ON T1.movie = T2.movie_title INNER JOIN director AS T3 ON T2.movie_title = T3.name WHERE T2.hero = 'Elsa'
Database: disney
Tables: characters, director, movies_total_gross, revenue, voice-actors
Columns (table index, column name): -1, *, 0, movie_title, 0, release_date, 0, hero, 0, villian, 0, song, 1, name, 1, director, 2, movie_title, 2, release_date, 2, genre, 2, MPAA_rating, 2, total_gross, 2, inflation_adjusted_gross, 3, Year, 3, Studio Entertainment[NI 1], 3, Disney Consumer Products[NI 2], 3, Disney Interactive[NI 3][Rev 1], 3, Walt Disney Parks and Resorts, 3, Disney Media Networks, 3, Total, 4, character, 4, voice-actor, 4, movie
Question: Calculate the percentage of directors whose films grossed over $100 million.
Evidence: DIVIDE(COUNT(director where total_gross > 100000000), COUNT(director)) as percentage;
SQL: SELECT CAST(COUNT(DISTINCT CASE WHEN CAST(REPLACE(trim(T1.total_gross, '$'), ',', '') AS REAL) > 100000000 THEN T3.director ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT T3.director) FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title INNER JOIN director AS T3 ON T1.movie_title = T3.name
Database: disney
Tables: characters, director, movies_total_gross, revenue, voice-actors
Columns (table index, column name): -1, *, 0, movie_title, 0, release_date, 0, hero, 0, villian, 0, song, 1, name, 1, director, 2, movie_title, 2, release_date, 2, genre, 2, MPAA_rating, 2, total_gross, 2, inflation_adjusted_gross, 3, Year, 3, Studio Entertainment[NI 1], 3, Disney Consumer Products[NI 2], 3, Disney Interactive[NI 3][Rev 1], 3, Walt Disney Parks and Resorts, 3, Disney Media Networks, 3, Total, 4, character, 4, voice-actor, 4, movie
Question: Calculate the percentage of voice actors whose main character in the movie is in the Drama genre.
Evidence: DIVIDE(COUNT(voice-actor where genre = 'Drama'), COUNT(voice-actor)) as percentage;
SQL: SELECT CAST(COUNT(CASE WHEN T1.genre = 'Drama' THEN T3.`voice-actor` ELSE NULL END) AS REAL) * 100 / COUNT(T3.`voice-actor`) FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title INNER JOIN `voice-actors` AS T3 ON T3.movie = T1.movie_title
Database: disney
Tables: characters, director, movies_total_gross, revenue, voice-actors
Columns (table index, column name): -1, *, 0, movie_title, 0, release_date, 0, hero, 0, villian, 0, song, 1, name, 1, director, 2, movie_title, 2, release_date, 2, genre, 2, MPAA_rating, 2, total_gross, 2, inflation_adjusted_gross, 3, Year, 3, Studio Entertainment[NI 1], 3, Disney Consumer Products[NI 2], 3, Disney Interactive[NI 3][Rev 1], 3, Walt Disney Parks and Resorts, 3, Disney Media Networks, 3, Total, 4, character, 4, voice-actor, 4, movie
Question: Name the first movie released by Disney.
Evidence: The first movie released refers to movie_title where substr(release_date, length(release_date) - 1, length(release_date)) asc limit 1;
SQL: SELECT movie_title FROM characters ORDER BY SUBSTR(release_date, LENGTH(release_date) - 1, LENGTH(release_date)) ASC LIMIT 1
Database: disney
Tables: characters, director, movies_total_gross, revenue, voice-actors
Columns (table index, column name): -1, *, 0, movie_title, 0, release_date, 0, hero, 0, villian, 0, song, 1, name, 1, director, 2, movie_title, 2, release_date, 2, genre, 2, MPAA_rating, 2, total_gross, 2, inflation_adjusted_gross, 3, Year, 3, Studio Entertainment[NI 1], 3, Disney Consumer Products[NI 2], 3, Disney Interactive[NI 3][Rev 1], 3, Walt Disney Parks and Resorts, 3, Disney Media Networks, 3, Total, 4, character, 4, voice-actor, 4, movie
Question: How many movies were released by Disney between 2010 and 2016?
Evidence: Movies refer to movie_title; released between 2010 and 2016 refers to substr(release_date, length(release_date) - 1, length(release_date)) between '10' and '16';
SQL: SELECT COUNT(movie_title) FROM characters WHERE SUBSTR(release_date, LENGTH(release_date) - 1, LENGTH(release_date)) BETWEEN '10' AND '16'
Database: disney
Tables: characters, director, movies_total_gross, revenue, voice-actors
Columns (table index, column name): -1, *, 0, movie_title, 0, release_date, 0, hero, 0, villian, 0, song, 1, name, 1, director, 2, movie_title, 2, release_date, 2, genre, 2, MPAA_rating, 2, total_gross, 2, inflation_adjusted_gross, 3, Year, 3, Studio Entertainment[NI 1], 3, Disney Consumer Products[NI 2], 3, Disney Interactive[NI 3][Rev 1], 3, Walt Disney Parks and Resorts, 3, Disney Media Networks, 3, Total, 4, character, 4, voice-actor, 4, movie
Question: Who was the first ever Disney villain?
Evidence: the first ever villian is villian that was released before all others in time which refers to substr(release_date, length(release_date) - 1, length(release_date)) desc limit 1;
SQL: SELECT villian FROM characters ORDER BY SUBSTR(release_date, LENGTH(release_date) - 1, LENGTH(release_date)) DESC LIMIT 1
Database: disney
Tables: characters, director, movies_total_gross, revenue, voice-actors
Columns (table index, column name): -1, *, 0, movie_title, 0, release_date, 0, hero, 0, villian, 0, song, 1, name, 1, director, 2, movie_title, 2, release_date, 2, genre, 2, MPAA_rating, 2, total_gross, 2, inflation_adjusted_gross, 3, Year, 3, Studio Entertainment[NI 1], 3, Disney Consumer Products[NI 2], 3, Disney Interactive[NI 3][Rev 1], 3, Walt Disney Parks and Resorts, 3, Disney Media Networks, 3, Total, 4, character, 4, voice-actor, 4, movie
Question: What is Disney's highest grossing action movie?
Evidence: action movie refers to movie_title where genre = 'Action'; highest grossing movie refers to MAX(total_gross)
SQL: SELECT movie_title FROM movies_total_gross WHERE genre = 'Action' ORDER BY CAST(REPLACE(trim(total_gross, '$'), ',', '') AS REAL) DESC LIMIT 1
Database: disney
Tables: characters, director, movies_total_gross, revenue, voice-actors
Columns (table index, column name): -1, *, 0, movie_title, 0, release_date, 0, hero, 0, villian, 0, song, 1, name, 1, director, 2, movie_title, 2, release_date, 2, genre, 2, MPAA_rating, 2, total_gross, 2, inflation_adjusted_gross, 3, Year, 3, Studio Entertainment[NI 1], 3, Disney Consumer Products[NI 2], 3, Disney Interactive[NI 3][Rev 1], 3, Walt Disney Parks and Resorts, 3, Disney Media Networks, 3, Total, 4, character, 4, voice-actor, 4, movie
Question: Which actor voices Akela from The Jungle Book?
Evidence: Akela refers character = 'Akela'; which actor voices refers to voice-actor;
SQL: SELECT `voice-actor` FROM `voice-actors` WHERE character = 'Akela'
Database: disney
Tables: characters, director, movies_total_gross, revenue, voice-actors
Columns (table index, column name): -1, *, 0, movie_title, 0, release_date, 0, hero, 0, villian, 0, song, 1, name, 1, director, 2, movie_title, 2, release_date, 2, genre, 2, MPAA_rating, 2, total_gross, 2, inflation_adjusted_gross, 3, Year, 3, Studio Entertainment[NI 1], 3, Disney Consumer Products[NI 2], 3, Disney Interactive[NI 3][Rev 1], 3, Walt Disney Parks and Resorts, 3, Disney Media Networks, 3, Total, 4, character, 4, voice-actor, 4, movie
Question: Determine Disney's total box office gross between 2010 and 2016.
Evidence: between 2010 and 2016 refers to Year between 2010 and 2016;
SQL: SELECT SUM(Total) FROM revenue WHERE `Year` BETWEEN 2010 AND 2016
Database: disney
Tables: characters, director, movies_total_gross, revenue, voice-actors
Columns (table index, column name): -1, *, 0, movie_title, 0, release_date, 0, hero, 0, villian, 0, song, 1, name, 1, director, 2, movie_title, 2, release_date, 2, genre, 2, MPAA_rating, 2, total_gross, 2, inflation_adjusted_gross, 3, Year, 3, Studio Entertainment[NI 1], 3, Disney Consumer Products[NI 2], 3, Disney Interactive[NI 3][Rev 1], 3, Walt Disney Parks and Resorts, 3, Disney Media Networks, 3, Total, 4, character, 4, voice-actor, 4, movie
Question: Name the main character of Disney's most popular adventure movie based on its inflation-adjusted gross.
Evidence: adventure movie refers to genre = 'Adventure'; the main character of the movie refers to hero; most popular movie based on its inflation-adjusted gross refers to where MAX(inflation_adjusted_gross);
SQL: SELECT T2.hero FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title WHERE T1.genre = 'Adventure' ORDER BY CAST(REPLACE(trim(T1.inflation_adjusted_gross, '$'), ',', '') AS REAL) DESC LIMIT 1
Database: disney
Tables: characters, director, movies_total_gross, revenue, voice-actors
Columns (table index, column name): -1, *, 0, movie_title, 0, release_date, 0, hero, 0, villian, 0, song, 1, name, 1, director, 2, movie_title, 2, release_date, 2, genre, 2, MPAA_rating, 2, total_gross, 2, inflation_adjusted_gross, 3, Year, 3, Studio Entertainment[NI 1], 3, Disney Consumer Products[NI 2], 3, Disney Interactive[NI 3][Rev 1], 3, Walt Disney Parks and Resorts, 3, Disney Media Networks, 3, Total, 4, character, 4, voice-actor, 4, movie
Question: Name the director of Disney's lowest grossing movie.
Evidence: lowest grossing movie refers to movie_title where MIN(total_gross);
SQL: SELECT T2.director FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name ORDER BY CAST(REPLACE(trim(T1.total_gross, '$'), ',', '') AS REAL) ASC LIMIT 1
Database: disney
Tables: characters, director, movies_total_gross, revenue, voice-actors
Columns (table index, column name): -1, *, 0, movie_title, 0, release_date, 0, hero, 0, villian, 0, song, 1, name, 1, director, 2, movie_title, 2, release_date, 2, genre, 2, MPAA_rating, 2, total_gross, 2, inflation_adjusted_gross, 3, Year, 3, Studio Entertainment[NI 1], 3, Disney Consumer Products[NI 2], 3, Disney Interactive[NI 3][Rev 1], 3, Walt Disney Parks and Resorts, 3, Disney Media Networks, 3, Total, 4, character, 4, voice-actor, 4, movie
Question: Find out what proportion of total revenue Walt Disney Parks and Resorts received in 2010.
Evidence: DIVIDE(Walt Disney Parks and Resorts where year = 2010), SUM(year = 2010) as percentage;
SQL: SELECT SUM(`Walt Disney Parks and Resorts`) / SUM(Total) * 100 FROM revenue WHERE year = 2010
Database: disney
Tables: characters, director, movies_total_gross, revenue, voice-actors
Columns (table index, column name): -1, *, 0, movie_title, 0, release_date, 0, hero, 0, villian, 0, song, 1, name, 1, director, 2, movie_title, 2, release_date, 2, genre, 2, MPAA_rating, 2, total_gross, 2, inflation_adjusted_gross, 3, Year, 3, Studio Entertainment[NI 1], 3, Disney Consumer Products[NI 2], 3, Disney Interactive[NI 3][Rev 1], 3, Walt Disney Parks and Resorts, 3, Disney Media Networks, 3, Total, 4, character, 4, voice-actor, 4, movie
Question: Determine the average gross for Disney's PG-13-rated action movies.
Evidence: DIVIDE(SUM(total_gross where genre = 'Action' and MPAA_rating = 'PG-13'), COUNT(movie_title where genre = 'Action' and MPAA_rating = 'PG-13'));
SQL: SELECT SUM(CAST(REPLACE(trim(total_gross, '$'), ',', '') AS REAL)) / COUNT(movie_title) FROM movies_total_gross WHERE MPAA_rating = 'PG-13'
Database: disney
Tables: characters, director, movies_total_gross, revenue, voice-actors
Columns (table index, column name): -1, *, 0, movie_title, 0, release_date, 0, hero, 0, villian, 0, song, 1, name, 1, director, 2, movie_title, 2, release_date, 2, genre, 2, MPAA_rating, 2, total_gross, 2, inflation_adjusted_gross, 3, Year, 3, Studio Entertainment[NI 1], 3, Disney Consumer Products[NI 2], 3, Disney Interactive[NI 3][Rev 1], 3, Walt Disney Parks and Resorts, 3, Disney Media Networks, 3, Total, 4, character, 4, voice-actor, 4, movie
Question: How many voice-actors were involved in the Bambi movie?
Evidence: Bambi is the name of the movie which refers to movie = 'Bambi';
SQL: SELECT COUNT(DISTINCT 'voice-actor') FROM `voice-actors` WHERE movie = 'Bambi'
Database: disney
Tables: characters, director, movies_total_gross, revenue, voice-actors
Columns (table index, column name): -1, *, 0, movie_title, 0, release_date, 0, hero, 0, villian, 0, song, 1, name, 1, director, 2, movie_title, 2, release_date, 2, genre, 2, MPAA_rating, 2, total_gross, 2, inflation_adjusted_gross, 3, Year, 3, Studio Entertainment[NI 1], 3, Disney Consumer Products[NI 2], 3, Disney Interactive[NI 3][Rev 1], 3, Walt Disney Parks and Resorts, 3, Disney Media Networks, 3, Total, 4, character, 4, voice-actor, 4, movie
Question: Find the estimated inflation rate that was used to adjust the 1995 box office revenue for Disney's films.
Evidence: DIVIDE(inflation_adjusted_gross, total_gross) as percentage where substr(release_date, length(release_date) - 3, length(release_date)) = '1995';
SQL: SELECT SUM(CAST(REPLACE(trim(inflation_adjusted_gross, '$'), ',', '') AS REAL)) / SUM(CAST(REPLACE(trim(total_gross, '$'), ',', '') AS REAL)) FROM movies_total_gross WHERE SUBSTR(release_date, LENGTH(release_date) - 3, LENGTH(release_date)) = '1995' GROUP BY SUBSTR(release_date, LENGTH(release_date) - 3, LENGTH(release_date)) = '1995'
Database: disney
Tables: characters, director, movies_total_gross, revenue, voice-actors
Columns (table index, column name): -1, *, 0, movie_title, 0, release_date, 0, hero, 0, villian, 0, song, 1, name, 1, director, 2, movie_title, 2, release_date, 2, genre, 2, MPAA_rating, 2, total_gross, 2, inflation_adjusted_gross, 3, Year, 3, Studio Entertainment[NI 1], 3, Disney Consumer Products[NI 2], 3, Disney Interactive[NI 3][Rev 1], 3, Walt Disney Parks and Resorts, 3, Disney Media Networks, 3, Total, 4, character, 4, voice-actor, 4, movie
Question: What is the difference in the current gross of Cars and its sequel, Cars 2? Which movie is more popular?
Evidence: SUBTRACT(inflation_adjusted_gross where movie_title = 'Cars', inflation_adjusted_gross where movie_title = 'Cars 2'); more popular movie refers to movie_title where MAX(inflation_adjusted_gross);
SQL: SELECT SUM(CASE WHEN movie_title = 'Cars' THEN CAST(REPLACE(trim(inflation_adjusted_gross, '$'), ',', '') AS REAL) ELSE 0 END), SUM(CASE WHEN movie_title = 'Cars 2' THEN CAST(REPLACE(trim(inflation_adjusted_gross, '$'), ',', '') AS REAL) ELSE 0 END) FROM movies_total_gross
Database: disney
Tables: characters, director, movies_total_gross, revenue, voice-actors
Columns (table index, column name): -1, *, 0, movie_title, 0, release_date, 0, hero, 0, villian, 0, song, 1, name, 1, director, 2, movie_title, 2, release_date, 2, genre, 2, MPAA_rating, 2, total_gross, 2, inflation_adjusted_gross, 3, Year, 3, Studio Entertainment[NI 1], 3, Disney Consumer Products[NI 2], 3, Disney Interactive[NI 3][Rev 1], 3, Walt Disney Parks and Resorts, 3, Disney Media Networks, 3, Total, 4, character, 4, voice-actor, 4, movie
Question: Name the most recent movie directed by Chris Buck. Which of his movies was more successful in terms of grossing? Use the current gross for comparison.
Evidence: Chris Buck refers to director = 'Chris Buck'; the most recent movie refers to movie_title where MAX(release_date); current gross refers to inflation_adjusted_gross; more successful movie refers to MAX(inflation_adjusted_gross);
SQL: SELECT T1.movie_title, MAX(T1.release_date), MAX(T1.inflation_adjusted_gross) FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T2.director = 'Chris Buck'
Database: disney
Tables: characters, director, movies_total_gross, revenue, voice-actors
Columns (table index, column name): -1, *, 0, movie_title, 0, release_date, 0, hero, 0, villian, 0, song, 1, name, 1, director, 2, movie_title, 2, release_date, 2, genre, 2, MPAA_rating, 2, total_gross, 2, inflation_adjusted_gross, 3, Year, 3, Studio Entertainment[NI 1], 3, Disney Consumer Products[NI 2], 3, Disney Interactive[NI 3][Rev 1], 3, Walt Disney Parks and Resorts, 3, Disney Media Networks, 3, Total, 4, character, 4, voice-actor, 4, movie
Question: Name actors who voiced more than five Disney characters.
Evidence: Actors who voiced refer to voice-actor;
SQL: SELECT 'voice-actor' FROM `voice-actors` GROUP BY 'voice-actor' HAVING COUNT(movie) > 5
Database: disney
Tables: characters, director, movies_total_gross, revenue, voice-actors
Columns (table index, column name): -1, *, 0, movie_title, 0, release_date, 0, hero, 0, villian, 0, song, 1, name, 1, director, 2, movie_title, 2, release_date, 2, genre, 2, MPAA_rating, 2, total_gross, 2, inflation_adjusted_gross, 3, Year, 3, Studio Entertainment[NI 1], 3, Disney Consumer Products[NI 2], 3, Disney Interactive[NI 3][Rev 1], 3, Walt Disney Parks and Resorts, 3, Disney Media Networks, 3, Total, 4, character, 4, voice-actor, 4, movie
Question: Name the top 5 highest-grossing Disney movies adjusted for inflation. Identify the percentage they contributed to the total of Disney's current gross.
Evidence: The top 5 highest-grossing movies adjusted for inflation refer to MAX(inflation_adjusted_gross)LIMIT 5; DIVIDE(SUM(MAX(inflation_adjusted_gross LIMIT 5)), SUM(inflation_adjusted_gross)) as percentage;
SQL: SELECT SUM(CASE WHEN CAST(REPLACE(trim(inflation_adjusted_gross, '$'), ',', '') AS REAL) > 1236035515 THEN CAST(REPLACE(trim(inflation_adjusted_gross, '$'), ',', '') AS REAL) ELSE 0 END) * 100 / SUM(CAST(REPLACE(trim(inflation_adjusted_gross, '$'), ',', '') AS REAL)) FROM movies_total_gross
Database: disney
Tables: characters, director, movies_total_gross, revenue, voice-actors
Columns (table index, column name): -1, *, 0, movie_title, 0, release_date, 0, hero, 0, villian, 0, song, 1, name, 1, director, 2, movie_title, 2, release_date, 2, genre, 2, MPAA_rating, 2, total_gross, 2, inflation_adjusted_gross, 3, Year, 3, Studio Entertainment[NI 1], 3, Disney Consumer Products[NI 2], 3, Disney Interactive[NI 3][Rev 1], 3, Walt Disney Parks and Resorts, 3, Disney Media Networks, 3, Total, 4, character, 4, voice-actor, 4, movie
Question: Among all Disney movies directed by Gary Trousdale, determine the percentage that earned over USD100m based on actual grossing.
Evidence: DIVIDE(COUNT(movie_title where director = 'Gary Trousdale' and total_gross > 100000000), COUNT(movie_title where director = 'Gary Trousdale')) as percentage;
SQL: SELECT CAST(COUNT(CASE WHEN CAST(REPLACE(trim(T1.total_gross, '$'), ',', '') AS REAL) > 100000000 THEN T1.movie_title ELSE NULL END) AS REAL) * 100 / COUNT(T1.movie_title) FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T2.director = 'Gary Trousdale'