db_id
stringclasses
69 values
question
stringlengths
24
325
evidence
stringlengths
0
673
SQL
stringlengths
23
804
question_id
int64
0
9.43k
difficulty
stringclasses
1 value
mental_health_survey
Tell the number of surveys that contained the question “What country do you work in?”.
question refers to questiontext
SELECT COUNT(DISTINCT T1.QuestionID) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid INNER JOIN Survey AS T3 ON T1.SurveyID = T3.SurveyID WHERE T2.questiontext = 'What country do you work in?'
4,600
mental_health_survey
What answer did user No. 2681 give to the question "Do you currently have a mental health disorder?"?
question refers to questiontext; user No. 2681 refers to UserID = 2681
SELECT T1.AnswerText FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questiontext = 'Do you currently have a mental health disorder?' AND T1.UserID = 2681
4,601
mental_health_survey
Provide the number of users who took part in the "mental health survey for 2016".
mental health survey for 2016 refers to SurveyID = 2016
SELECT COUNT(DISTINCT T1.UserID) FROM Answer AS T1 INNER JOIN Survey AS T2 ON T1.SurveyID = T2.SurveyID WHERE T2.Description = 'mental health survey for 2016'
4,602
mental_health_survey
What was the most common answer for the question "What country do you work in?"?
most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3)))
SELECT T1.AnswerText FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questiontext = 'What country do you work in?' GROUP BY T1.AnswerText ORDER BY COUNT(T1.AnswerText) DESC LIMIT 1
4,603
mental_health_survey
How many different answers did the question "Describe the conversation you had with your previous employer about your mental health, including their reactions and actions taken to address your mental health issue/questions." get?
SELECT COUNT(DISTINCT T1.AnswerText) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questiontext LIKE 'Describe the conversation you had with your previous employer about your mental health, including their reactions and actions taken to address your mental health issue/questions.'
4,604
mental_health_survey
For the question “What US state or territory do you work in?”, how many people gave "Kansas" as the answer?
question refers to questiontext; AnswerText = 'Kansas'
SELECT COUNT(T1.UserID) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questiontext LIKE 'What US state or territory do you work in?' AND T1.AnswerText = 'Kansas'
4,605
mental_health_survey
How many people wrote comments for the question "Any additional notes or comments."?
question refers to questiontext; wrote comments refers to AnswerText(QuestionID = 103) ! = -1
SELECT COUNT(T1.UserID) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questiontext LIKE 'Any additional notes or comments' AND T1.AnswerText IS NOT NULL
4,606
mental_health_survey
For all the users who have been asked "Have you ever been diagnosed with a mental health disorder?", how many of them said "Yes"?
have asked refers to questiontext; said 'Yes' refers to AnswerText = 'Yes'
SELECT COUNT(T1.UserID) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questiontext LIKE 'Have you ever been diagnosed with a mental health disorder?' AND T1.AnswerText = 'Yes'
4,607
mental_health_survey
Give the number of users who took the "mental health survey for 2018".
mental health survey for 2018 refers to SurveyID = 2018
SELECT COUNT(DISTINCT T1.UserID) FROM Answer AS T1 INNER JOIN Survey AS T2 ON T1.SurveyID = T2.SurveyID WHERE T2.Description = 'mental health survey for 2018'
4,608
mental_health_survey
How many users answered the question "Overall, how much importance does your employer place on physical health?"?
question refers to questiontext
SELECT COUNT(T1.UserID) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questiontext LIKE 'Overall, how much importance does your employer place on physical health?'
4,609
mental_health_survey
For which question did the user No.2183 gave the answer "Mood Disorder (Depression, Bipolar Disorder, etc)"?
question refers to questiontext; user No.2183 refers to userID = 2183
SELECT T1.AnswerText FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questionid = 2183 AND T1.AnswerText = 'Mood Disorder (Depression, Bipolar Disorder, etc)'
4,610
mental_health_survey
What was the percentage for the answer of "Yes" was given to the question "Has your employer ever formally discussed mental health (for example, as part of a wellness campaign or other official communication)?"?
percentage = divide(count(QuestionID = 15& AnswerText = 'Yes'), count(QuestionID = 15))*100%
SELECT CAST(SUM(CASE WHEN T1.AnswerText LIKE 'Yes' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.UserID) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questiontext LIKE 'Has your employer ever formally discussed mental health (for example, as part of a wellness campaign or other official communication)?'
4,611
mental_health_survey
How many times more for the number of users who took the "mental health survey for 2017" than "mental health survey for 2018"?
How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018)))
SELECT CAST(COUNT(T1.UserID) AS REAL) / ( SELECT COUNT(T1.UserID) FROM Answer AS T1 INNER JOIN Survey AS T2 ON T1.SurveyID = T2.SurveyID WHERE T2.Description = 'mental health survey for 2018' ) FROM Answer AS T1 INNER JOIN Survey AS T2 ON T1.SurveyID = T2.SurveyID WHERE T2.Description = 'mental health survey for 2017'
4,612
mental_health_survey
Among respondents who participated in the survey in 2016, what percentage had a mental health disorder in the past?
respondents and 'users' are synonyms; percentage = divide(count(SurveyID = 2016& QuestionID = 32 & AnswerText = 'Yes'), count(SurveyID = 2016& QuestionID = 32))*100%
SELECT CAST(SUM(CASE WHEN T1.AnswerText LIKE 'Yes' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.SurveyID) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T1.QuestionID = 32 AND T1.SurveyID = 2016
4,613
mental_health_survey
How many respondents younger than 25 years old did participate in the survey in 2016?
respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25
SELECT COUNT(DISTINCT T1.UserID) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T1.QuestionID = 1 AND T1.SurveyID = 2016 AND T1.AnswerText <= 25
4,614
mental_health_survey
What is the average number of respondents per survey between 2014 and 2019?
respondents and 'users' are synonyms; average number = avg(count(userID(SurveyID = 2014)), count(userID(SurveyID = 2019)))
SELECT CAST(COUNT(SurveyID) AS REAL) / 5 FROM Answer WHERE SurveyID BETWEEN 2014 AND 2019
4,615
mental_health_survey
How many respondents who participated in the survey in 2019 have ever sought treatment for a mental health disorder from a mental health professional?
respondents' and 'users' are synonyms, have ever sought treatment for a mental health disorder from a mental health professional refers to AnswerText(SurveyID = 2019& QuestionID = 7) = 1
SELECT COUNT(T1.UserID) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T1.QuestionID = 7 AND T1.SurveyID = 2019 AND T1.AnswerText = 1
4,616
mental_health_survey
How many respondents who participated in the survey in 2014 work remotely at least 50% of the time?
respondents' and 'users' are synonyms; work remotely at least 50% of the time refers to AnswerText(SurveyID = 2014& QuestionID = 93) = 'Yes'
SELECT COUNT(T1.AnswerText) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T1.QuestionID = 93 AND T1.SurveyID = 2014 AND T1.AnswerText = 'Yes'
4,617
mental_health_survey
How many questions were asked in the questionary for the mental health survey?
SELECT COUNT(questiontext) FROM Question
4,618
mental_health_survey
How many respondents of the mental health survey were diagnosed with 'Substance Use Disorder'?
respondents' and 'users' are synonyms
SELECT COUNT(AnswerText) FROM Answer WHERE AnswerText LIKE 'Substance Use Disorder'
4,619
mental_health_survey
List the top three popular responses to the question of the survey in 2017 with the question ID no.85.
survey in 2017 refers to SurveyID = 2017; questionID = 85; MAX(COUNT(AnswerText))
SELECT AnswerText FROM Answer WHERE QuestionID = 85 AND SurveyID = 2017 GROUP BY AnswerText ORDER BY COUNT(AnswerText) DESC LIMIT 3
4,620
disney
How much more total box office gross did the Walt Disney Company have in revenue in 1998 than in 1997?
SUBTRACT(SUM(Year = 1998), SUM(Year = 1997))
SELECT SUM(CASE WHEN `Year` = 1998 THEN Total ELSE 0 END) - SUM(CASE WHEN `Year` = 1997 THEN Total ELSE 0 END) FROM revenue
4,621
disney
In which segment did the Walt Disney Company earned a bigger revenue in 1998, Studio Entertainment or Disney Media Networks?
Studio Entertainment[NI 1]' > 'Disney Media Networks' where Year = 1998;
SELECT CASE WHEN 'Studio Entertainment[NI 1]' > 'Disney Media Networks' THEN 'Studio Entertainment[NI 1]' ELSE 'Disney Media Networks' END FROM revenue WHERE `Year` = 1998
4,622
disney
Who is the director of the movie Pinocchio?
Pinocchio is the name of the movie;
SELECT director FROM director WHERE name = 'Pinocchio'
4,623
disney
Please list the villains of all the movies directed by Wolfgang Reitherman.
Wolfgang Reitherman refers to director = 'Wolfgang Reitherman';
SELECT T2.villian FROM director AS T1 INNER JOIN characters AS T2 ON T1.name = T2.movie_title WHERE T1.director = 'Wolfgang Reitherman' AND T2.villian IS NOT NULL
4,624
disney
Among the movies directed by Wolfgang Reitherman, how many of them were released in December?
Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; released in December refers to (release_date, instr(release_date, '-') + 1, 3) = 'Dec';
SELECT COUNT(movie_title) FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE SUBSTR(release_date, INSTR(release_date, '-') + 1, 3) = 'Dec' AND T2.director = 'Wolfgang Reitherman'
4,625
disney
The song "Once Upon a Dream" is associated with the movie directed by whom?
directed by whom refers to director; movie refers to movie_title;
SELECT T2.director FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T1.song = 'Once Upon a Dream'
4,626
disney
Who is the voice actor for the villain of the movie "Alice in Wonderland"?
Alice in Wonderland refers to movie_title = 'Alice in Wonderland'; villain refers to character like '%'||T1.villian||'%';
SELECT T1.`voice-actor` FROM `voice-actors` AS T1 INNER JOIN characters AS T2 ON T1.movie = T2.movie_title WHERE T1.character LIKE '%' OR T2.villian OR '%' AND T2.movie_title = 'Alice in Wonderland'
4,627
disney
Please list the release dates of all the movies in which Alan Tudyk is a voice actor.
FALSE;
SELECT T2.release_date FROM `voice-actors` AS T1 INNER JOIN characters AS T2 ON T1.movie = T2.movie_title WHERE T1.`voice-actor` = 'Alan Tudyk'
4,628
disney
Among the movies in which Alan Tudyk is a voice actor, how many of them were released after 2012?
released after 2012 refers to (release_date, instr(release_date, '-') + 5) > 12;
SELECT COUNT(T2.movie) FROM characters AS T1 INNER JOIN `voice-actors` AS T2 ON T1.movie_title = T2.movie WHERE T2.`voice-actor` = 'Alan Tudyk' AND SUBSTR(release_date, INSTR(release_date, '-') + 5) > 12
4,629
disney
Among the movies directed by Wolfgang Reitherman, how many of them are Comedies?
directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; comedies refers to genre = 'Comedy'; movies refer to movie_title;
SELECT COUNT(T3.name) FROM ( SELECT T2.name FROM `movies_total_gross` AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T2.director = 'Wolfgang Reitherman' AND T1.genre = 'Comedy' GROUP BY T2.name ) T3
4,630
disney
Among the movies directed by Wolfgang Reitherman, which one of them was the most popular?
directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; the most popular movie refers to MAX(total_gross);
SELECT T2.movie_title FROM director AS T1 INNER JOIN movies_total_gross AS T2 ON T1.name = T2.movie_title WHERE T1.director = 'Wolfgang Reitherman' ORDER BY T2.total_gross DESC LIMIT 1
4,631
disney
Please list the movies directed by Wolfgang Reitherman that can be watched by the general audience.
directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; movies refer to movie_title; general audience refers to MPAA_rating = 'G';
SELECT T1.movie_title FROM `movies_total_gross` AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T1.MPAA_rating = 'G' AND T2.director = 'Wolfgang Reitherman'
4,632
disney
Which character is the villain of the most popular movie?
the most popular movie refers to movie_title where MAX(total_gross);
SELECT T2.villian FROM `movies_total_gross` AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title ORDER BY T1.total_gross DESC LIMIT 1
4,633
disney
What is the genre of the movie whose villain is Commander Rourke?
FALSE;
SELECT T2.genre FROM characters AS T1 INNER JOIN movies_total_gross AS T2 ON T2.movie_title = T1.movie_title WHERE T1.villian = 'Commander Rourke'
4,634
disney
Who is the villain of the movie "Beauty and the Beast"?
Beauty and the Beast refers to movie_title = 'Beauty and the Beast';
SELECT villian FROM characters WHERE movie_title = 'Beauty and the Beast'
4,635
disney
Which movie is the character Robin Hood in?
Robin Hood is the main character of the movie which refers to hero = 'Robin Hood'; movie refers to movie_title;
SELECT movie_title FROM characters WHERE hero = 'Robin Hood'
4,636
disney
Give the name of the movie which the song "I Thought I Lost You" is associated with.
name of the movie refers to movie_title;
SELECT movie_title FROM characters WHERE song = 'I Thought I Lost You'
4,637
disney
Who is the voice actor of the character "Binkie Muddlefoot"?
FALSE;
SELECT `voice-actor` FROM `voice-actors` WHERE character = 'Binkie Muddlefoot'
4,638
disney
Who is the hero character of the movie whose total gross was $222,527,828?
FALSE;
SELECT T1.hero FROM characters AS T1 INNER JOIN movies_total_gross AS T2 ON T2.movie_title = T1.movie_title WHERE T2.total_gross = '$222,527,828'
4,639
disney
Which song is associated with the most popular Disney movie in 1970s?
the most popular movie refers to movie_title where MAX(total_gross); in 1970s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1970 and 1979);
SELECT T2.song FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title WHERE CAST(SUBSTR(T1.release_date, INSTR(T1.release_date, ', ') + 1) AS int) BETWEEN 1970 AND 1979 ORDER BY CAST(REPLACE(SUBSTR(T1.total_gross, 2), ',', '') AS float) DESC LIMIT 1
4,640
disney
Who is the hero character of the Disney movie directed by Will Finn?
Will Finn refers to director = 'Will Finn';
SELECT T1.hero FROM characters AS T1 INNER JOIN director AS T2 ON T2.name = T1.movie_title WHERE T2.director = 'Will Finn'
4,641
disney
Who is the voice actor of the hero character from the movie The Little Mermaid?
The Little Mermaid refers to movie_title = 'The Little Mermaid';
SELECT T2.`voice-actor` FROM characters AS T1 INNER JOIN `voice-actors` AS T2 ON T2.movie = T1.movie_title WHERE T1.movie_title = 'The Little Mermaid' AND T2.character = T1.hero
4,642
disney
Give the name of the director of the movie in which Verna Felton was the voice actor for its character "Aunt Sarah".
FALSE;
SELECT T1.director FROM director AS T1 INNER JOIN `voice-actors` AS T2 ON T2.movie = T1.name WHERE T2.character = 'Aunt Sarah' AND T2.`voice-actor` = 'Verna Felton'
4,643
disney
For the movie in which Tress MacNeille was the voice actor for its character "Hyacinth Hippo", what was the release date of that movie?
FALSE;
SELECT T1.release_date FROM characters AS T1 INNER JOIN `voice-actors` AS T2 ON T2.movie = T1.movie_title WHERE T2.character = 'Hyacinth Hippo' AND T2.`voice-actor` = 'Tress MacNeille'
4,644
disney
Who is the director of the adventure movie which was released on 2007/3/30?
released on 2007/3/30 refers to release_date = 'Mar 30, 2007'; adventure movie refers to genre = 'Adventure' ;
SELECT T1.director FROM director AS T1 INNER JOIN movies_total_gross AS T2 ON T2.movie_title = T1.name WHERE T2.genre = 'Adventure' AND T2.release_date = 'Mar 30, 2007'
4,645
disney
Wolfgang Reitherman has directed several Disney movies, which one has the highest grossing after accounting for inflation?
Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; the highest grossing after accounting for inflation refers to MAX(inflation_adjusted_gross);
SELECT T1.movie_title FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T2.director = 'Wolfgang Reitherman' ORDER BY CAST(REPLACE(SUBSTR(inflation_adjusted_gross, 2), ',', '') AS REAL) DESC LIMIT 1
4,646
disney
Who is the hero character of the adventure movie which was released on 2016/3/4?
released on 2016/3/4 refers to release_date = '4-Mar-16'; adventure movie refers to genre = 'Adventure' ;
SELECT T1.hero FROM characters AS T1 INNER JOIN movies_total_gross AS T2 ON T2.movie_title = T1.movie_title WHERE T2.genre = 'Adventure' AND T1.release_date = '4-Mar-16'
4,647
disney
The character Donald Duck has appeared in two Disney movies, which one has more grossing?
Donald Duck is the main character of the movie which refers to hero = 'Donald Duck'; which one has more grossing refers to movie_title where MAX(total_gross);
SELECT T1.movie_title FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title WHERE T2.hero = 'Donald Duck' ORDER BY CAST(REPLACE(SUBSTR(total_gross, 2), ',', '') AS REAL) DESC LIMIT 1
4,648
disney
How many movies did Wolfgang Reitherman direct?
Wolfgang Reitherman refers director = 'Wolfgang Reitherman';
SELECT COUNT(name) FROM director WHERE director = 'Wolfgang Reitherman'
4,649
disney
Who is the most productive director?
Most productive director refers to director where MAX(COUNT(name));
SELECT director FROM director GROUP BY director ORDER BY COUNT(name) DESC LIMIT 1
4,650
disney
How many restricted horror movies were released between 1/1/1990 to 12/31/2015?
Restricted refers to MPAA_rating = 'R'; horror refers to genre = 'Horror'; released between 1/1/1990 to 12/31/2015 refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2015);
SELECT COUNT(movie_title) FROM movies_total_gross WHERE MPAA_rating = 'R' AND genre = 'Horror' AND CAST(SUBSTR(release_date, INSTR(release_date, ', ') + 1) AS int) BETWEEN 1990 AND 2015
4,651
disney
What are the names of the characters voiced by Frank Welker?
Frank Welker refers to voice-actor = 'Frank Welker';
SELECT character FROM `voice-actors` WHERE 'voice-actor' = 'Frank Welker'
4,652
disney
How much is the total gross of the movie with a song titled "Little Wonders"?
song = 'Little Wonders'
SELECT T1.total_gross FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T2.movie_title = T1.movie_title WHERE T2.song = 'Little Wonders'
4,653
disney
What is the Motion Picture Association of America rating for the movie featuring a villain named Turbo?
The Motion Picture Association of America rating refers to MPAA_rating; villian = 'Turbo';
SELECT T1.MPAA_rating FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T2.movie_title = T1.movie_title WHERE T2.villian = 'Turbo'
4,654
disney
How many movies for mature audiences or parental guidance suggested did Bill Thompson work as a voice actor?
movies for mature audiences or parental guidance refer to movie_title where MPAA_rating = 'PG';
SELECT COUNT(T.movie) FROM ( SELECT T1.movie FROM `voice-actors` AS T1 INNER JOIN movies_total_gross AS T2 ON T1.movie = T2.movie_title WHERE MPAA_rating = 'PG' AND `voice-actor` = 'Bill Thompson' GROUP BY T1.movie ) AS T
4,655
disney
How many of Gary Trousdale's movies are adventure movies?
Gary Trousdale refers director = 'Gary Trousdale'; the adventure movie refers to genre = 'Adventure';
SELECT COUNT(T.name) FROM ( SELECT T1.name FROM director AS T1 INNER JOIN movies_total_gross AS T2 ON T1.name = T2.movie_title WHERE T1.director = 'Gary Trousdale' AND T2.genre = 'Adventure' GROUP BY T1.name ) T
4,656
disney
Which director did Bill Thompson work the most with?
Bill Thompson refers to voice-actor = 'Bill Thompson'; worked the most refers to MAX(COUNT(name));
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
4,657
disney
What is the most popular movie directed by Ron Clements?
Ron Clements refers to director = 'Ron Clements'; the most popular movie refers to movie_title where MAX(total_gross);
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
4,658
disney
List all the voice actors in the movie directed by Ben Sharpsteen which was released on February 9, 1940.
Ben Sharpsteen refers to director = 'Ben Sharpsteen'; released on February 9, 1940 refers to release_date = 'Feb 9, 1940';
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`
4,659
disney
How many PG adventure movies did Ron Clements direct?
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';
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'
4,660
disney
How many horror movies are there?
Horror refers to genre = 'Horror';
SELECT COUNT(movie_title) FROM `movies_total_gross` WHERE genre = 'Horror'
4,661
disney
Who is the villain in the movie "The Great Mouse Detective"?
The Great Mouse Detective refers to movie_title = 'The Great Mouse Detective';
SELECT villian FROM characters WHERE movie_title = 'The Great Mouse Detective'
4,662
disney
List the voice actors from the movie "Meet the Robinsons".
Meet the Robinsons refers to movie_title = 'Meet the Robinsons';
SELECT 'voice-actor' FROM `voice-actors` WHERE movie = 'Meet the Robinsons'
4,663
disney
Which director has made the most movies?
the most movies refers to MAX(COUNT(name));
SELECT director, COUNT(name) FROM director GROUP BY director ORDER BY COUNT(name) DESC LIMIT 1
4,664
disney
From 2000 to 2010, in which year did the studio entertainment segment make the most revenue?
From 2000 to 2010 refers to Year between 2000 and 2010; the most revenue refers to MAX("Studio Entertainment[NI 1]");
SELECT `Year` FROM revenue WHERE `Year` BETWEEN 2000 AND 2010 ORDER BY `Studio Entertainment[NI 1]` DESC LIMIT 1
4,665
disney
List all the songs associated with drama movies.
drama refers to genre = 'Drama';
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
4,666
disney
Who are the voice actors for all the heroes?
FALSE;
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
4,667
disney
Provide a list of directors from the 1990s.
the 1990s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2000);
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
4,668
disney
Who voiced the villain in "The Rescuers"?
The Rescuers refers to movie_title = 'The Rescuers'; who voiced refers to voice-actor;
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
4,669
disney
List all of Wolfgang Reitherman's movies and their voice actors.
Wolfgang Reitherman refers to director = 'Wolfgang Reitherman';
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'
4,670
disney
What are the characters in the PG movies?
PG is an abbreviation for parental guidance and refers to MPAA_rating = 'PG';
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'
4,671
disney
What is the highest grossing movie without a song?
the highest grossing movie without song refers to movie_title where MAX(total_gross) and song = 'null';
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
4,672
disney
Who directed the movie with the most voice actors?
who directed refers director;
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
4,673
disney
Who are the voice actors in the movie that came out on 11/24/2010?
Came out on 11/24/2010 refers to release_date = 'Nov 24, 2010';
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'
4,674
disney
List the directors of movies that feature a song.
movies that feature a song refer to movie_title where song is not NULL;
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
4,675
disney
What are the total grosses for the movies with Jim Cummings as the voice actor?
FALSE;
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
4,676
disney
Which of the movies directed by Ron Clements has the highest total gross?
Ron Clements refer to director = 'Ron Clements'; the highest total gross refers to MAX(total_gross);
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
4,677
disney
What is the average total gross for the movies featuring Sterling Holloway?
DIVIDE(SUM(total_gross where voice-actor = 'Sterling Holloway'); COUNT(movie_title where voice-actor = 'Sterling Holloway'));
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'
4,678
disney
What proportion of the total gross of all movies is from movies with songs?
Movies with songs refer song = 'not null'; DIVIDE(SUM(total_gross where song = 'not null'), sum(total_gross)) as percentage;
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
4,679
disney
List the movies and genres released in 2016.
released in 2016 refers to substr(release_date, length(release_date) - 3, length(release_date)) = '2016'; movies refer to the movie_title;
SELECT movie_title, genre FROM movies_total_gross WHERE SUBSTR(release_date, LENGTH(release_date) - 3, LENGTH(release_date)) = '2016'
4,680
disney
Who is the villain in Little Mermaid?
Little Mermaid refers to movie_title = 'Little Mermaid';
SELECT villian FROM characters WHERE movie_title = 'Little Mermaid'
4,681
disney
List the movie titles directed by Jack Kinney.
Jack Kinney refers to director = 'Jack Kinney';
SELECT name FROM director WHERE director = 'Jack Kinney'
4,682
disney
Provide the movie titles and the estimated inflation rate of the highest total grossed movie.
The highest grossed movie refers to MAX(total_gross); DIVIDE(inflation_adjusted_gross, total_gross) as percentage;
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
4,683
disney
List the PG-13 romantic comedy movie titles and their release dates.
PG-13 refers to MPAA_rating = 'PG-13'; romantic comedy refers to genre = 'Romantic Comedy';
SELECT movie_title, release_date FROM movies_total_gross WHERE MPAA_rating = 'PG-13' AND genre = 'Romantic Comedy'
4,684
disney
List the movie titles and character names by Bill Thompson.
Bill Thompson refers to voice-actor = 'Bill Thompson';
SELECT movie, character FROM `voice-actors` WHERE 'voice-actor' = 'Bill Thompson'
4,685
disney
List the movie titles and associated songs directed by Ron Clements.
Ron Clements refers director = 'Ron Clements';
SELECT T1.movie_title, T1.song FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T2.director = 'Ron Clements'
4,686
disney
Provide the titles, main characters, and associated songs of the movies directed by Wolfgang Reitherman in 1977.
Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; 1997 refers to substr(release_date, length(release_date) - 3, length(release_date)) = '1977'; the titles refer to movie_title; main characters refer to hero;
SELECT T1.movie_title, T2.hero, T2.song 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 WHERE T3.director = 'Wolfgang Reitherman' AND SUBSTR(T1.release_date, LENGTH(T1.release_date) - 3, LENGTH(T1.release_date)) = '1977'
4,687
disney
Which movies had the main character named Donald Duck and who directed them?
Donald Duck is the main character of the movie which refers to hero = 'Donald Duck'; movies refer to movie_title; who directed refers director;
SELECT T1.movie_title, T2.director FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T1.hero = 'Donald Duck'
4,688
disney
Describe the hero, director, and the release date of Mulan.
Mulan refers to movie_title = 'Mulan';
SELECT T1.hero, T2.director, T1.release_date FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T1.movie_title = 'Mulan'
4,689
disney
Provide the title, total gross, and MPAA rating of the movie which has a hero named Elsa.
Elsa is the main character of the movie which refers to hero = 'Elsa'; title refers to movie_title;
SELECT T1.movie_title, T1.total_gross, T1.MPAA_rating FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title INNER JOIN director AS T3 ON T3.name = T1.movie_title WHERE T2.hero = 'Elsa'
4,690
disney
Provide the title, director, and release date of the movie voice-acted by Freddie Jones.
Freddie Jones refers to voice-actor = 'Freddie Jones'; title refers to movie_title;
SELECT T1.movie, T3.director, T2.release_date 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 T1.`voice-actor` = 'Freddie Jones'
4,691
disney
Among Frank Welker's voice-acted movies, list the movie titles and the total gross when the estimated inflation rate was less than 2.
Frank Welker refers to voice-actor = 'Frank Welker'; estimated inflation rate was less than 2 can be computed as follows DIVIDE(inflation_adjusted_gross, total_gross) as percentage < 2;
SELECT T1.movie_title, T1.total_gross FROM movies_total_gross AS T1 INNER JOIN `voice-actors` AS T2 ON T1.movie_title = T2.movie WHERE T2.`voice-actor` = 'Frank Welker' AND CAST(REPLACE(trim(T1.inflation_adjusted_gross, '$'), ',', '') AS REAL) * 1.0 / CAST(REPLACE(trim(T1.total_gross, '$'), ',', '') AS REAL) * 1.0 < 2
4,692
disney
Who directed the most popular movie?
The most popular movie refers MAX(total_gross); who directed refers to director;
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) DESC LIMIT 1
4,693
disney
Describe the voice actors and villains in Cinderella.
Cinderella refers to movie_title = ' Cinderella';
SELECT T1.`voice-actor`, T2.villian FROM `voice-actors` AS T1 INNER JOIN characters AS T2 ON T1.movie = T2.movie_title WHERE T2.movie_title = 'Cinderella'
4,694
disney
Who is the voice actor of the hero in Lion King?
Lion King refers to movie_title = 'Lion King';
SELECT T1.`voice-actor` FROM `voice-actors` AS T1 INNER JOIN characters AS T2 ON T1.movie = T2.movie_title WHERE T2.movie_title = 'Lion King' AND T1.character = 'Lion King'
4,695
disney
Provide the directors and MPAA ratings of the musical movies released in 1993.
Musical movies refer to genre = 'Musical'; released in 1993 refers to substr(release_date, length(release_date) - 3, length(release_date)) = '1993';
SELECT T2.director, T1.MPAA_rating FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T1.genre = 'Musical' AND SUBSTR(T1.release_date, LENGTH(T1.release_date) - 3, LENGTH(T1.release_date)) = '1993'
4,696
disney
Among the movies released from 1991 to 2000, calculate the percentage of comedy movies. Provide any five movie titles and directors.
DIVIDE(COUNT(movie_title where genre = 'Comedy'), COUNT(movie_title)) as percentage where substr(release_date, length(release_date) - 3, length(release_date)) between '1991' and '2000';
SELECT CAST(COUNT(CASE WHEN T1.genre = 'Comedy' THEN T1.movie_title ELSE NULL END) AS REAL) * 100 / COUNT(T1.movie_title), group_concat(T1.movie_title), group_concat(T2.director) FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE SUBSTR(T1.release_date, LENGTH(T1.release_date) - 3, LENGTH(T1.release_date)) BETWEEN '1991' AND '2000'
4,697
disney
Among the movies released from 2001 to 2005, list down the titles and directors of the movies which had a total gross of more than 100% above the average.
Released from 2001 to 2005 refers to substr(release_date, length(release_date) - 3, length(release_date)) between '2001' and '2005'; DIVIDE(SUM(total_gross), COUNT(movie_title));
SELECT T2.name, T2.director FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE SUBSTR(T1.release_date, LENGTH(T1.release_date) - 3, LENGTH(T1.release_date)) BETWEEN '2001' AND '2005' AND CAST(REPLACE(trim(T1.total_gross, '$'), ',', '') AS REAL) / ( SELECT SUM(CAST(REPLACE(trim(T3.total_gross, '$'), ',', '') AS REAL)) / COUNT(T3.movie_title) AS avg_gross FROM movies_total_gross AS T3 INNER JOIN director AS T4 ON T3.movie_title = T4.name WHERE SUBSTR(T3.release_date, LENGTH(T3.release_date) - 3, LENGTH(T3.release_date)) BETWEEN '2001' AND '2005' ) - 1 > 1
4,698
disney
Name the voice actor of the character Calliope in the movie Hercules.
Hercules refers to movie = 'Hercules';
SELECT `voice-actor` FROM `voice-actors` WHERE movie = 'Hercules' AND character = 'Calliope'
4,699