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 director did Bill Thompson work the most with?
Evidence: Bill Thompson refers to voice-actor = 'Bill Thompson'; worked the most refers to MAX(COUNT(name));
SQL: SELECT director FROM director AS T1 INNER JOIN `voice-actors` AS T2 ON T1.name = T2.movie WHERE T2.`voice-actor` = 'Bill Thompson' GROUP BY director ORDER BY COUNT(director) 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 the most popular movie directed by Ron Clements?
Evidence: Ron Clements refers to director = 'Ron Clements'; the most popular movie refers to movie_title where MAX(total_gross);
SQL: SELECT T2.name FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T2.name = T1.movie_title WHERE T2.director = 'Ron Clements' ORDER BY CAST(REPLACE(SUBSTR(total_gross, 2), ',', '') AS int) 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 voice actors in the movie directed by Ben Sharpsteen which was released on February 9, 1940.
Evidence: Ben Sharpsteen refers to director = 'Ben Sharpsteen'; released on February 9, 1940 refers to release_date = 'Feb 9, 1940';
SQL: SELECT T2.`voice-actor` FROM director AS T1 INNER JOIN `voice-actors` AS T2 INNER JOIN movies_total_gross AS T3 ON T1.name = T2.movie AND T2.movie = T3.movie_title WHERE T1.director = 'Ben Sharpsteen' AND T3.release_date = 'Feb 9, 1940' AND T2.`voice-actor` != 'None' GROUP BY T2.`voice-actor`
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 PG adventure movies did Ron Clements direct?
Evidence: Ron Clements refers to director = 'Ron Clements'; PG is an abbreviation for parental guidance and refers to MPAA_rating = 'PG'; adventure movie refers to genre = 'Adventure';
SQL: SELECT COUNT(*) FROM director AS T1 INNER JOIN movies_total_gross AS T2 ON T1.name = T2.movie_title WHERE T1.director = 'Ron Clements' AND T2.MPAA_rating = 'PG' AND T2.genre = 'Adventure'
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 horror movies are there?
Evidence: Horror refers to genre = 'Horror';
SQL: SELECT COUNT(movie_title) FROM `movies_total_gross` WHERE genre = 'Horror'
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 is the villain in the movie "The Great Mouse Detective"?
Evidence: The Great Mouse Detective refers to movie_title = 'The Great Mouse Detective';
SQL: SELECT villian FROM characters WHERE movie_title = 'The Great Mouse Detective'
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 the voice actors from the movie "Meet the Robinsons".
Evidence: Meet the Robinsons refers to movie_title = 'Meet the Robinsons';
SQL: SELECT 'voice-actor' FROM `voice-actors` WHERE movie = 'Meet the Robinsons'
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 has made the most movies?
Evidence: the most movies refers to MAX(COUNT(name));
SQL: SELECT director, COUNT(name) FROM director GROUP BY director ORDER BY COUNT(name) 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: From 2000 to 2010, in which year did the studio entertainment segment make the most revenue?
Evidence: From 2000 to 2010 refers to Year between 2000 and 2010; the most revenue refers to MAX("Studio Entertainment[NI 1]");
SQL: SELECT `Year` FROM revenue WHERE `Year` BETWEEN 2000 AND 2010 ORDER BY `Studio Entertainment[NI 1]` 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 songs associated with drama movies.
Evidence: drama refers to genre = 'Drama';
SQL: SELECT song FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title WHERE T1.genre = 'Drama' GROUP BY song
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 are the voice actors for all the heroes?
Evidence: FALSE;
SQL: SELECT T2.`voice-actor` FROM characters AS T1 INNER JOIN `voice-actors` AS T2 ON T2.character = T1.hero WHERE T2.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: Provide a list of directors from the 1990s.
Evidence: the 1990s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2000);
SQL: SELECT T2.director FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name AND CAST(SUBSTR(release_date, INSTR(release_date, ', ') + 1) AS int) BETWEEN 1990 AND 2000 GROUP BY T2.director
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 voiced the villain in "The Rescuers"?
Evidence: The Rescuers refers to movie_title = 'The Rescuers'; who voiced refers to voice-actor;
SQL: SELECT T1.`voice-actor` FROM `voice-actors` AS T1 INNER JOIN characters AS T2 ON T2.movie_title = T1.movie WHERE T2.movie_title = 'The Rescuers' AND T1.character = T2.villian
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 of Wolfgang Reitherman's movies and their voice actors.
Evidence: Wolfgang Reitherman refers to director = 'Wolfgang Reitherman';
SQL: SELECT T1.name, T2.`voice-actor` FROM director AS T1 INNER JOIN `voice-actors` AS T2 ON T1.name = T2.movie WHERE T1.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 are the characters in the PG movies?
Evidence: PG is an abbreviation for parental guidance and refers to MPAA_rating = 'PG';
SQL: SELECT DISTINCT T2.character FROM movies_total_gross AS T1 INNER JOIN `voice-actors` AS T2 ON T1.movie_title = T2.movie WHERE T1.MPAA_rating = 'PG'
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 highest grossing movie without a song?
Evidence: the highest grossing movie without song refers to movie_title where MAX(total_gross) and song = 'null';
SQL: SELECT T1.movie_title FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T2.movie_title = T1.movie_title WHERE T2.song IS NULL 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: Who directed the movie with the most voice actors?
Evidence: who directed refers director;
SQL: SELECT T2.director, COUNT(DISTINCT T1.`voice-actor`) FROM `voice-actors` AS T1 INNER JOIN director AS T2 ON T1.movie = T2.name GROUP BY T2.director ORDER BY COUNT(DISTINCT T1.`voice-actor`) 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: Who are the voice actors in the movie that came out on 11/24/2010?
Evidence: Came out on 11/24/2010 refers to release_date = 'Nov 24, 2010';
SQL: SELECT T2.`voice-actor` FROM movies_total_gross AS T1 INNER JOIN `voice-actors` AS T2 ON T1.movie_title = T2.movie WHERE T1.release_date = 'Nov 24, 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: List the directors of movies that feature a song.
Evidence: movies that feature a song refer to movie_title where song is not NULL;
SQL: SELECT T2.director FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T1.song IS NOT NULL GROUP BY T2.director
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 are the total grosses for the movies with Jim Cummings as the voice actor?
Evidence: FALSE;
SQL: SELECT T2.movie_title FROM `voice-actors` AS T1 INNER JOIN movies_total_gross AS T2 ON T2.movie_title = T1.movie WHERE T1.`voice-actor` = 'Jim Cummings' ORDER BY CAST(REPLACE(trim(T2.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 of the movies directed by Ron Clements has the highest total gross?
Evidence: Ron Clements refer to director = 'Ron Clements'; the highest total gross refers to MAX(total_gross);
SQL: SELECT T2.movie_title FROM director AS T1 INNER JOIN movies_total_gross AS T2 ON T1.name = T2.movie_title WHERE T1.director = 'Ron Clements' ORDER BY CAST(REPLACE(trim(T2.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: What is the average total gross for the movies featuring Sterling Holloway?
Evidence: DIVIDE(SUM(total_gross where voice-actor = 'Sterling Holloway'); COUNT(movie_title where voice-actor = 'Sterling Holloway'));
SQL: SELECT SUM(CAST(REPLACE(trim(T2.total_gross, '$'), ',', '') AS REAL)) / COUNT(T2.movie_title) FROM `voice-actors` AS T1 INNER JOIN movies_total_gross AS T2 ON T1.movie = T2.movie_title WHERE T1.`voice-actor` = 'Sterling Holloway'
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 proportion of the total gross of all movies is from movies with songs?
Evidence: Movies with songs refer song = 'not null'; DIVIDE(SUM(total_gross where song = 'not null'), sum(total_gross)) as percentage;
SQL: SELECT CAST(COUNT(CASE WHEN T1.song IS NOT NULL THEN T2.movie_title ELSE NULL END) AS REAL) * 100 / COUNT(T2.movie_title) FROM characters AS T1 INNER JOIN movies_total_gross AS T2 ON T1.movie_title = T2.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: List the movies and genres released in 2016.
Evidence: released in 2016 refers to substr(release_date, length(release_date) - 3, length(release_date)) = '2016'; movies refer to the movie_title;
SQL: SELECT movie_title, genre FROM movies_total_gross WHERE SUBSTR(release_date, LENGTH(release_date) - 3, LENGTH(release_date)) = '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: Who is the villain in Little Mermaid?
Evidence: Little Mermaid refers to movie_title = 'Little Mermaid';
SQL: SELECT villian FROM characters WHERE movie_title = 'Little Mermaid'
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 the movie titles directed by Jack Kinney.
Evidence: Jack Kinney refers to director = 'Jack Kinney';
SQL: SELECT name FROM director WHERE director = 'Jack Kinney'
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 movie titles and the estimated inflation rate of the highest total grossed movie.
Evidence: The highest grossed movie refers to MAX(total_gross); DIVIDE(inflation_adjusted_gross, total_gross) as percentage;
SQL: SELECT movie_title, CAST(REPLACE(trim(inflation_adjusted_gross, '$'), ',', '') AS REAL) / CAST(REPLACE(trim(total_gross, '$'), ',', '') AS REAL) FROM movies_total_gross 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: List the PG-13 romantic comedy movie titles and their release dates.
Evidence: PG-13 refers to MPAA_rating = 'PG-13'; romantic comedy refers to genre = 'Romantic Comedy';
SQL: SELECT movie_title, release_date FROM movies_total_gross WHERE MPAA_rating = 'PG-13' AND genre = 'Romantic Comedy'