db_id
stringclasses
69 values
schema
stringclasses
69 values
m_schema
stringclasses
69 values
question
stringlengths
24
325
sql
stringlengths
23
804
evidence
stringlengths
0
673
mental_health_survey
CREATE TABLE Question ( questiontext TEXT, questionid INTEGER constraint Question_pk primary key ); CREATE TABLE Survey ( SurveyID INTEGER constraint Survey_pk primary key, Description TEXT ); CREATE TABLE "Answer" ( AnswerText TEXT, SurveyID INTE...
【DB_ID】 mental_health_survey 【Schema】 # Table: main.Answer [ (AnswerText:TEXT, Examples: [37, 44, 32]), (SurveyID:INTEGER, Examples: [2014, 2016, 2017]), (UserID:INTEGER, Primary Key, Examples: [1, 2, 3]), (QuestionID:INTEGER, Primary Key, Examples: [1, 2, 3]) ] # Table: main.Question [ (questiontext:TEXT, Examples: [W...
Tell the number of surveys that contained the question “What country do you work in?”.
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?'
question refers to questiontext
mental_health_survey
CREATE TABLE Question ( questiontext TEXT, questionid INTEGER constraint Question_pk primary key ); CREATE TABLE Survey ( SurveyID INTEGER constraint Survey_pk primary key, Description TEXT ); CREATE TABLE "Answer" ( AnswerText TEXT, SurveyID INTE...
【DB_ID】 mental_health_survey 【Schema】 # Table: main.Answer [ (AnswerText:TEXT, Examples: [37, 44, 32]), (SurveyID:INTEGER, Examples: [2014, 2016, 2017]), (UserID:INTEGER, Primary Key, Examples: [1, 2, 3]), (QuestionID:INTEGER, Primary Key, Examples: [1, 2, 3]) ] # Table: main.Question [ (questiontext:TEXT, Examples: [W...
What answer did user No. 2681 give to the question "Do you currently have a mental health disorder?"?
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
question refers to questiontext; user No. 2681 refers to UserID = 2681
mental_health_survey
CREATE TABLE Question ( questiontext TEXT, questionid INTEGER constraint Question_pk primary key ); CREATE TABLE Survey ( SurveyID INTEGER constraint Survey_pk primary key, Description TEXT ); CREATE TABLE "Answer" ( AnswerText TEXT, SurveyID INTE...
【DB_ID】 mental_health_survey 【Schema】 # Table: main.Answer [ (AnswerText:TEXT, Examples: [37, 44, 32]), (SurveyID:INTEGER, Examples: [2014, 2016, 2017]), (UserID:INTEGER, Primary Key, Examples: [1, 2, 3]), (QuestionID:INTEGER, Primary Key, Examples: [1, 2, 3]) ] # Table: main.Question [ (questiontext:TEXT, Examples: [W...
Provide the number of users who took part in the "mental health survey for 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'
mental health survey for 2016 refers to SurveyID = 2016
mental_health_survey
CREATE TABLE Question ( questiontext TEXT, questionid INTEGER constraint Question_pk primary key ); CREATE TABLE Survey ( SurveyID INTEGER constraint Survey_pk primary key, Description TEXT ); CREATE TABLE "Answer" ( AnswerText TEXT, SurveyID INTE...
【DB_ID】 mental_health_survey 【Schema】 # Table: main.Answer [ (AnswerText:TEXT, Examples: [37, 44, 32]), (SurveyID:INTEGER, Examples: [2014, 2016, 2017]), (UserID:INTEGER, Primary Key, Examples: [1, 2, 3]), (QuestionID:INTEGER, Primary Key, Examples: [1, 2, 3]) ] # Table: main.Question [ (questiontext:TEXT, Examples: [W...
What was the most common answer for the question "What country do you work in?"?
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
most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3)))
mental_health_survey
CREATE TABLE Question ( questiontext TEXT, questionid INTEGER constraint Question_pk primary key ); CREATE TABLE Survey ( SurveyID INTEGER constraint Survey_pk primary key, Description TEXT ); CREATE TABLE "Answer" ( AnswerText TEXT, SurveyID INTE...
【DB_ID】 mental_health_survey 【Schema】 # Table: main.Answer [ (AnswerText:TEXT, Examples: [37, 44, 32]), (SurveyID:INTEGER, Examples: [2014, 2016, 2017]), (UserID:INTEGER, Primary Key, Examples: [1, 2, 3]), (QuestionID:INTEGER, Primary Key, Examples: [1, 2, 3]) ] # Table: main.Question [ (questiontext:TEXT, Examples: [W...
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....
mental_health_survey
CREATE TABLE Question ( questiontext TEXT, questionid INTEGER constraint Question_pk primary key ); CREATE TABLE Survey ( SurveyID INTEGER constraint Survey_pk primary key, Description TEXT ); CREATE TABLE "Answer" ( AnswerText TEXT, SurveyID INTE...
【DB_ID】 mental_health_survey 【Schema】 # Table: main.Answer [ (AnswerText:TEXT, Examples: [37, 44, 32]), (SurveyID:INTEGER, Examples: [2014, 2016, 2017]), (UserID:INTEGER, Primary Key, Examples: [1, 2, 3]), (QuestionID:INTEGER, Primary Key, Examples: [1, 2, 3]) ] # Table: main.Question [ (questiontext:TEXT, Examples: [W...
For the question “What US state or territory do you work in?”, how many people gave "Kansas" as the answer?
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'
question refers to questiontext; AnswerText = 'Kansas'
mental_health_survey
CREATE TABLE Question ( questiontext TEXT, questionid INTEGER constraint Question_pk primary key ); CREATE TABLE Survey ( SurveyID INTEGER constraint Survey_pk primary key, Description TEXT ); CREATE TABLE "Answer" ( AnswerText TEXT, SurveyID INTE...
【DB_ID】 mental_health_survey 【Schema】 # Table: main.Answer [ (AnswerText:TEXT, Examples: [37, 44, 32]), (SurveyID:INTEGER, Examples: [2014, 2016, 2017]), (UserID:INTEGER, Primary Key, Examples: [1, 2, 3]), (QuestionID:INTEGER, Primary Key, Examples: [1, 2, 3]) ] # Table: main.Question [ (questiontext:TEXT, Examples: [W...
How many people wrote comments for the question "Any additional notes or comments."?
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
question refers to questiontext; wrote comments refers to AnswerText(QuestionID = 103) ! = -1
mental_health_survey
CREATE TABLE Question ( questiontext TEXT, questionid INTEGER constraint Question_pk primary key ); CREATE TABLE Survey ( SurveyID INTEGER constraint Survey_pk primary key, Description TEXT ); CREATE TABLE "Answer" ( AnswerText TEXT, SurveyID INTE...
【DB_ID】 mental_health_survey 【Schema】 # Table: main.Answer [ (AnswerText:TEXT, Examples: [37, 44, 32]), (SurveyID:INTEGER, Examples: [2014, 2016, 2017]), (UserID:INTEGER, Primary Key, Examples: [1, 2, 3]), (QuestionID:INTEGER, Primary Key, Examples: [1, 2, 3]) ] # Table: main.Question [ (questiontext:TEXT, Examples: [W...
For all the users who have been asked "Have you ever been diagnosed with a mental health disorder?", how many of them said "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'
have asked refers to questiontext; said 'Yes' refers to AnswerText = 'Yes'
mental_health_survey
CREATE TABLE Question ( questiontext TEXT, questionid INTEGER constraint Question_pk primary key ); CREATE TABLE Survey ( SurveyID INTEGER constraint Survey_pk primary key, Description TEXT ); CREATE TABLE "Answer" ( AnswerText TEXT, SurveyID INTE...
【DB_ID】 mental_health_survey 【Schema】 # Table: main.Answer [ (AnswerText:TEXT, Examples: [37, 44, 32]), (SurveyID:INTEGER, Examples: [2014, 2016, 2017]), (UserID:INTEGER, Primary Key, Examples: [1, 2, 3]), (QuestionID:INTEGER, Primary Key, Examples: [1, 2, 3]) ] # Table: main.Question [ (questiontext:TEXT, Examples: [W...
Give the number of users who took the "mental health survey for 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'
mental health survey for 2018 refers to SurveyID = 2018
mental_health_survey
CREATE TABLE Question ( questiontext TEXT, questionid INTEGER constraint Question_pk primary key ); CREATE TABLE Survey ( SurveyID INTEGER constraint Survey_pk primary key, Description TEXT ); CREATE TABLE "Answer" ( AnswerText TEXT, SurveyID INTE...
【DB_ID】 mental_health_survey 【Schema】 # Table: main.Answer [ (AnswerText:TEXT, Examples: [37, 44, 32]), (SurveyID:INTEGER, Examples: [2014, 2016, 2017]), (UserID:INTEGER, Primary Key, Examples: [1, 2, 3]), (QuestionID:INTEGER, Primary Key, Examples: [1, 2, 3]) ] # Table: main.Question [ (questiontext:TEXT, Examples: [W...
How many users answered the question "Overall, how much importance does your employer place on physical health?"?
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?'
question refers to questiontext
mental_health_survey
CREATE TABLE Question ( questiontext TEXT, questionid INTEGER constraint Question_pk primary key ); CREATE TABLE Survey ( SurveyID INTEGER constraint Survey_pk primary key, Description TEXT ); CREATE TABLE "Answer" ( AnswerText TEXT, SurveyID INTE...
【DB_ID】 mental_health_survey 【Schema】 # Table: main.Answer [ (AnswerText:TEXT, Examples: [37, 44, 32]), (SurveyID:INTEGER, Examples: [2014, 2016, 2017]), (UserID:INTEGER, Primary Key, Examples: [1, 2, 3]), (QuestionID:INTEGER, Primary Key, Examples: [1, 2, 3]) ] # Table: main.Question [ (questiontext:TEXT, Examples: [W...
For which question did the user No.2183 gave the answer "Mood Disorder (Depression, Bipolar Disorder, etc)"?
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)'
question refers to questiontext; user No.2183 refers to userID = 2183
mental_health_survey
CREATE TABLE Question ( questiontext TEXT, questionid INTEGER constraint Question_pk primary key ); CREATE TABLE Survey ( SurveyID INTEGER constraint Survey_pk primary key, Description TEXT ); CREATE TABLE "Answer" ( AnswerText TEXT, SurveyID INTE...
【DB_ID】 mental_health_survey 【Schema】 # Table: main.Answer [ (AnswerText:TEXT, Examples: [37, 44, 32]), (SurveyID:INTEGER, Examples: [2014, 2016, 2017]), (UserID:INTEGER, Primary Key, Examples: [1, 2, 3]), (QuestionID:INTEGER, Primary Key, Examples: [1, 2, 3]) ] # Table: main.Question [ (questiontext:TEXT, Examples: [W...
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)?"?
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 ...
percentage = divide(count(QuestionID = 15& AnswerText = 'Yes'), count(QuestionID = 15))*100%
mental_health_survey
CREATE TABLE Question ( questiontext TEXT, questionid INTEGER constraint Question_pk primary key ); CREATE TABLE Survey ( SurveyID INTEGER constraint Survey_pk primary key, Description TEXT ); CREATE TABLE "Answer" ( AnswerText TEXT, SurveyID INTE...
【DB_ID】 mental_health_survey 【Schema】 # Table: main.Answer [ (AnswerText:TEXT, Examples: [37, 44, 32]), (SurveyID:INTEGER, Examples: [2014, 2016, 2017]), (UserID:INTEGER, Primary Key, Examples: [1, 2, 3]), (QuestionID:INTEGER, Primary Key, Examples: [1, 2, 3]) ] # Table: main.Question [ (questiontext:TEXT, Examples: [W...
How many times more for the number of users who took the "mental health survey for 2017" than "mental health survey for 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'
How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018)))
mental_health_survey
CREATE TABLE Question ( questiontext TEXT, questionid INTEGER constraint Question_pk primary key ); CREATE TABLE Survey ( SurveyID INTEGER constraint Survey_pk primary key, Description TEXT ); CREATE TABLE "Answer" ( AnswerText TEXT, SurveyID INTE...
【DB_ID】 mental_health_survey 【Schema】 # Table: main.Answer [ (AnswerText:TEXT, Examples: [37, 44, 32]), (SurveyID:INTEGER, Examples: [2014, 2016, 2017]), (UserID:INTEGER, Primary Key, Examples: [1, 2, 3]), (QuestionID:INTEGER, Primary Key, Examples: [1, 2, 3]) ] # Table: main.Question [ (questiontext:TEXT, Examples: [W...
Among respondents who participated in the survey in 2016, what percentage had a mental health disorder in the past?
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
respondents and 'users' are synonyms; percentage = divide(count(SurveyID = 2016& QuestionID = 32 & AnswerText = 'Yes'), count(SurveyID = 2016& QuestionID = 32))*100%
mental_health_survey
CREATE TABLE Question ( questiontext TEXT, questionid INTEGER constraint Question_pk primary key ); CREATE TABLE Survey ( SurveyID INTEGER constraint Survey_pk primary key, Description TEXT ); CREATE TABLE "Answer" ( AnswerText TEXT, SurveyID INTE...
【DB_ID】 mental_health_survey 【Schema】 # Table: main.Answer [ (AnswerText:TEXT, Examples: [37, 44, 32]), (SurveyID:INTEGER, Examples: [2014, 2016, 2017]), (UserID:INTEGER, Primary Key, Examples: [1, 2, 3]), (QuestionID:INTEGER, Primary Key, Examples: [1, 2, 3]) ] # Table: main.Question [ (questiontext:TEXT, Examples: [W...
How many respondents younger than 25 years old did participate in the survey in 2016?
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
respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25
mental_health_survey
CREATE TABLE Question ( questiontext TEXT, questionid INTEGER constraint Question_pk primary key ); CREATE TABLE Survey ( SurveyID INTEGER constraint Survey_pk primary key, Description TEXT ); CREATE TABLE "Answer" ( AnswerText TEXT, SurveyID INTE...
【DB_ID】 mental_health_survey 【Schema】 # Table: main.Answer [ (AnswerText:TEXT, Examples: [37, 44, 32]), (SurveyID:INTEGER, Examples: [2014, 2016, 2017]), (UserID:INTEGER, Primary Key, Examples: [1, 2, 3]), (QuestionID:INTEGER, Primary Key, Examples: [1, 2, 3]) ] # Table: main.Question [ (questiontext:TEXT, Examples: [W...
What is the average number of respondents per survey between 2014 and 2019?
SELECT CAST(COUNT(SurveyID) AS REAL) / 5 FROM Answer WHERE SurveyID BETWEEN 2014 AND 2019
respondents and 'users' are synonyms; average number = avg(count(userID(SurveyID = 2014)), count(userID(SurveyID = 2019)))
mental_health_survey
CREATE TABLE Question ( questiontext TEXT, questionid INTEGER constraint Question_pk primary key ); CREATE TABLE Survey ( SurveyID INTEGER constraint Survey_pk primary key, Description TEXT ); CREATE TABLE "Answer" ( AnswerText TEXT, SurveyID INTE...
【DB_ID】 mental_health_survey 【Schema】 # Table: main.Answer [ (AnswerText:TEXT, Examples: [37, 44, 32]), (SurveyID:INTEGER, Examples: [2014, 2016, 2017]), (UserID:INTEGER, Primary Key, Examples: [1, 2, 3]), (QuestionID:INTEGER, Primary Key, Examples: [1, 2, 3]) ] # Table: main.Question [ (questiontext:TEXT, Examples: [W...
How many respondents who participated in the survey in 2019 have ever sought treatment for a mental health disorder from a mental health professional?
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
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
mental_health_survey
CREATE TABLE Question ( questiontext TEXT, questionid INTEGER constraint Question_pk primary key ); CREATE TABLE Survey ( SurveyID INTEGER constraint Survey_pk primary key, Description TEXT ); CREATE TABLE "Answer" ( AnswerText TEXT, SurveyID INTE...
【DB_ID】 mental_health_survey 【Schema】 # Table: main.Answer [ (AnswerText:TEXT, Examples: [37, 44, 32]), (SurveyID:INTEGER, Examples: [2014, 2016, 2017]), (UserID:INTEGER, Primary Key, Examples: [1, 2, 3]), (QuestionID:INTEGER, Primary Key, Examples: [1, 2, 3]) ] # Table: main.Question [ (questiontext:TEXT, Examples: [W...
How many respondents who participated in the survey in 2014 work remotely at least 50% of the time?
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'
respondents' and 'users' are synonyms; work remotely at least 50% of the time refers to AnswerText(SurveyID = 2014& QuestionID = 93) = 'Yes'
mental_health_survey
CREATE TABLE Question ( questiontext TEXT, questionid INTEGER constraint Question_pk primary key ); CREATE TABLE Survey ( SurveyID INTEGER constraint Survey_pk primary key, Description TEXT ); CREATE TABLE "Answer" ( AnswerText TEXT, SurveyID INTE...
【DB_ID】 mental_health_survey 【Schema】 # Table: main.Answer [ (AnswerText:TEXT, Examples: [37, 44, 32]), (SurveyID:INTEGER, Examples: [2014, 2016, 2017]), (UserID:INTEGER, Primary Key, Examples: [1, 2, 3]), (QuestionID:INTEGER, Primary Key, Examples: [1, 2, 3]) ] # Table: main.Question [ (questiontext:TEXT, Examples: [W...
How many questions were asked in the questionary for the mental health survey?
SELECT COUNT(questiontext) FROM Question
mental_health_survey
CREATE TABLE Question ( questiontext TEXT, questionid INTEGER constraint Question_pk primary key ); CREATE TABLE Survey ( SurveyID INTEGER constraint Survey_pk primary key, Description TEXT ); CREATE TABLE "Answer" ( AnswerText TEXT, SurveyID INTE...
【DB_ID】 mental_health_survey 【Schema】 # Table: main.Answer [ (AnswerText:TEXT, Examples: [37, 44, 32]), (SurveyID:INTEGER, Examples: [2014, 2016, 2017]), (UserID:INTEGER, Primary Key, Examples: [1, 2, 3]), (QuestionID:INTEGER, Primary Key, Examples: [1, 2, 3]) ] # Table: main.Question [ (questiontext:TEXT, Examples: [W...
How many respondents of the mental health survey were diagnosed with 'Substance Use Disorder'?
SELECT COUNT(AnswerText) FROM Answer WHERE AnswerText LIKE 'Substance Use Disorder'
respondents' and 'users' are synonyms
mental_health_survey
CREATE TABLE Question ( questiontext TEXT, questionid INTEGER constraint Question_pk primary key ); CREATE TABLE Survey ( SurveyID INTEGER constraint Survey_pk primary key, Description TEXT ); CREATE TABLE "Answer" ( AnswerText TEXT, SurveyID INTE...
【DB_ID】 mental_health_survey 【Schema】 # Table: main.Answer [ (AnswerText:TEXT, Examples: [37, 44, 32]), (SurveyID:INTEGER, Examples: [2014, 2016, 2017]), (UserID:INTEGER, Primary Key, Examples: [1, 2, 3]), (QuestionID:INTEGER, Primary Key, Examples: [1, 2, 3]) ] # Table: main.Question [ (questiontext:TEXT, Examples: [W...
List the top three popular responses to the question of the survey in 2017 with the question ID no.85.
SELECT AnswerText FROM Answer WHERE QuestionID = 85 AND SurveyID = 2017 GROUP BY AnswerText ORDER BY COUNT(AnswerText) DESC LIMIT 3
survey in 2017 refers to SurveyID = 2017; questionID = 85; MAX(COUNT(AnswerText))
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
How much more total box office gross did the Walt Disney Company have in revenue in 1998 than in 1997?
SELECT SUM(CASE WHEN `Year` = 1998 THEN Total ELSE 0 END) - SUM(CASE WHEN `Year` = 1997 THEN Total ELSE 0 END) FROM revenue
SUBTRACT(SUM(Year = 1998), SUM(Year = 1997))
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
In which segment did the Walt Disney Company earned a bigger revenue in 1998, Studio Entertainment or Disney Media Networks?
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
Studio Entertainment[NI 1]' > 'Disney Media Networks' where Year = 1998;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Who is the director of the movie Pinocchio?
SELECT director FROM director WHERE name = 'Pinocchio'
Pinocchio is the name of the movie;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Please list the villains of all the movies directed by 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
Wolfgang Reitherman refers to director = 'Wolfgang Reitherman';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Among the movies directed by Wolfgang Reitherman, how many of them were released in December?
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'
Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; released in December refers to (release_date, instr(release_date, '-') + 1, 3) = 'Dec';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
The song "Once Upon a Dream" is associated with the movie directed by whom?
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'
directed by whom refers to director; movie refers to movie_title;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Who is the voice actor for the villain of the movie "Alice in Wonderland"?
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'
Alice in Wonderland refers to movie_title = 'Alice in Wonderland'; villain refers to character like '%'||T1.villian||'%';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Please list the release dates of all the movies in which Alan Tudyk is a voice actor.
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'
FALSE;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Among the movies in which Alan Tudyk is a voice actor, how many of them were released after 2012?
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
released after 2012 refers to (release_date, instr(release_date, '-') + 5) > 12;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Among the movies directed by Wolfgang Reitherman, how many of them are Comedies?
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
directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; comedies refers to genre = 'Comedy'; movies refer to movie_title;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Among the movies directed by Wolfgang Reitherman, which one of them was the most popular?
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
directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; the most popular movie refers to MAX(total_gross);
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Please list the movies directed by Wolfgang Reitherman that can be watched by the general audience.
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'
directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; movies refer to movie_title; general audience refers to MPAA_rating = 'G';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Which character is the villain of the most popular movie?
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
the most popular movie refers to movie_title where MAX(total_gross);
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
What is the genre of the movie whose villain is Commander Rourke?
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'
FALSE;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Who is the villain of the movie "Beauty and the Beast"?
SELECT villian FROM characters WHERE movie_title = 'Beauty and the Beast'
Beauty and the Beast refers to movie_title = 'Beauty and the Beast';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Which movie is the character Robin Hood in?
SELECT movie_title FROM characters WHERE hero = 'Robin Hood'
Robin Hood is the main character of the movie which refers to hero = 'Robin Hood'; movie refers to movie_title;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Give the name of the movie which the song "I Thought I Lost You" is associated with.
SELECT movie_title FROM characters WHERE song = 'I Thought I Lost You'
name of the movie refers to movie_title;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Who is the voice actor of the character "Binkie Muddlefoot"?
SELECT `voice-actor` FROM `voice-actors` WHERE character = 'Binkie Muddlefoot'
FALSE;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Who is the hero character of the movie whose total gross was $222,527,828?
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'
FALSE;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Which song is associated with the most popular Disney movie in 1970s?
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
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);
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Who is the hero character of the Disney movie directed by 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'
Will Finn refers to director = 'Will Finn';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Who is the voice actor of the hero character from the movie 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
The Little Mermaid refers to movie_title = 'The Little Mermaid';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Give the name of the director of the movie in which Verna Felton was the voice actor for its character "Aunt Sarah".
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'
FALSE;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
For the movie in which Tress MacNeille was the voice actor for its character "Hyacinth Hippo", what was the release date of that movie?
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'
FALSE;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Who is the director of the adventure movie which was released on 2007/3/30?
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'
released on 2007/3/30 refers to release_date = 'Mar 30, 2007'; adventure movie refers to genre = 'Adventure' ;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Wolfgang Reitherman has directed several Disney movies, which one has the highest grossing after accounting for inflation?
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
Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; the highest grossing after accounting for inflation refers to MAX(inflation_adjusted_gross);
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Who is the hero character of the adventure movie which was released on 2016/3/4?
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'
released on 2016/3/4 refers to release_date = '4-Mar-16'; adventure movie refers to genre = 'Adventure' ;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
The character Donald Duck has appeared in two Disney movies, which one has more grossing?
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
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);
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
How many movies did Wolfgang Reitherman direct?
SELECT COUNT(name) FROM director WHERE director = 'Wolfgang Reitherman'
Wolfgang Reitherman refers director = 'Wolfgang Reitherman';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Who is the most productive director?
SELECT director FROM director GROUP BY director ORDER BY COUNT(name) DESC LIMIT 1
Most productive director refers to director where MAX(COUNT(name));
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
How many restricted horror movies were released between 1/1/1990 to 12/31/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
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);
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
What are the names of the characters voiced by Frank Welker?
SELECT character FROM `voice-actors` WHERE 'voice-actor' = 'Frank Welker'
Frank Welker refers to voice-actor = 'Frank Welker';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
How much is the total gross of the movie with a song titled "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'
song = 'Little Wonders'
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
What is the Motion Picture Association of America rating for the movie featuring a villain named 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'
The Motion Picture Association of America rating refers to MPAA_rating; villian = 'Turbo';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
How many movies for mature audiences or parental guidance suggested did Bill Thompson work as a voice actor?
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
movies for mature audiences or parental guidance refer to movie_title where MPAA_rating = 'PG';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
How many of Gary Trousdale's movies are adventure movies?
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
Gary Trousdale refers director = 'Gary Trousdale'; the adventure movie refers to genre = 'Adventure';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Which director did Bill Thompson work the most with?
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
Bill Thompson refers to voice-actor = 'Bill Thompson'; worked the most refers to MAX(COUNT(name));
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
What is the most popular movie directed by Ron Clements?
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
Ron Clements refers to director = 'Ron Clements'; the most popular movie refers to movie_title where MAX(total_gross);
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
List all the voice actors in the movie directed by Ben Sharpsteen which was released on February 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`
Ben Sharpsteen refers to director = 'Ben Sharpsteen'; released on February 9, 1940 refers to release_date = 'Feb 9, 1940';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
How many PG adventure movies did Ron Clements direct?
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'
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';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
How many horror movies are there?
SELECT COUNT(movie_title) FROM `movies_total_gross` WHERE genre = 'Horror'
Horror refers to genre = 'Horror';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Who is the villain in the movie "The Great Mouse Detective"?
SELECT villian FROM characters WHERE movie_title = 'The Great Mouse Detective'
The Great Mouse Detective refers to movie_title = 'The Great Mouse Detective';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
List the voice actors from the movie "Meet the Robinsons".
SELECT 'voice-actor' FROM `voice-actors` WHERE movie = 'Meet the Robinsons'
Meet the Robinsons refers to movie_title = 'Meet the Robinsons';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Which director has made the most movies?
SELECT director, COUNT(name) FROM director GROUP BY director ORDER BY COUNT(name) DESC LIMIT 1
the most movies refers to MAX(COUNT(name));
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
From 2000 to 2010, in which year did the studio entertainment segment make the most revenue?
SELECT `Year` FROM revenue WHERE `Year` BETWEEN 2000 AND 2010 ORDER BY `Studio Entertainment[NI 1]` DESC LIMIT 1
From 2000 to 2010 refers to Year between 2000 and 2010; the most revenue refers to MAX("Studio Entertainment[NI 1]");
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
List all the songs associated with drama movies.
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
drama refers to genre = 'Drama';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Who are the voice actors for all the heroes?
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
FALSE;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Provide a list of directors from the 1990s.
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
the 1990s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2000);
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Who voiced the villain in "The Rescuers"?
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
The Rescuers refers to movie_title = 'The Rescuers'; who voiced refers to voice-actor;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
List all of Wolfgang Reitherman's movies and their voice actors.
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'
Wolfgang Reitherman refers to director = 'Wolfgang Reitherman';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
What are the characters in the PG movies?
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'
PG is an abbreviation for parental guidance and refers to MPAA_rating = 'PG';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
What is the highest grossing movie without a song?
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
the highest grossing movie without song refers to movie_title where MAX(total_gross) and song = 'null';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Who directed the movie with the most voice actors?
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
who directed refers director;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Who are the voice actors in the movie that came out on 11/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'
Came out on 11/24/2010 refers to release_date = 'Nov 24, 2010';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
List the directors of movies that feature a song.
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
movies that feature a song refer to movie_title where song is not NULL;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
What are the total grosses for the movies with Jim Cummings as the voice actor?
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
FALSE;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Which of the movies directed by Ron Clements has the highest 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
Ron Clements refer to director = 'Ron Clements'; the highest total gross refers to MAX(total_gross);
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
What is the average total gross for the movies featuring 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'
DIVIDE(SUM(total_gross where voice-actor = 'Sterling Holloway'); COUNT(movie_title where voice-actor = 'Sterling Holloway'));
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
What proportion of the total gross of all movies is from movies with songs?
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
Movies with songs refer song = 'not null'; DIVIDE(SUM(total_gross where song = 'not null'), sum(total_gross)) as percentage;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
List the movies and genres released in 2016.
SELECT movie_title, genre FROM movies_total_gross WHERE SUBSTR(release_date, LENGTH(release_date) - 3, LENGTH(release_date)) = '2016'
released in 2016 refers to substr(release_date, length(release_date) - 3, length(release_date)) = '2016'; movies refer to the movie_title;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Who is the villain in Little Mermaid?
SELECT villian FROM characters WHERE movie_title = 'Little Mermaid'
Little Mermaid refers to movie_title = 'Little Mermaid';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
List the movie titles directed by Jack Kinney.
SELECT name FROM director WHERE director = 'Jack Kinney'
Jack Kinney refers to director = 'Jack Kinney';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Provide the movie titles and the estimated inflation rate of the highest total grossed movie.
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
The highest grossed movie refers to MAX(total_gross); DIVIDE(inflation_adjusted_gross, total_gross) as percentage;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
List the PG-13 romantic comedy movie titles and their release dates.
SELECT movie_title, release_date FROM movies_total_gross WHERE MPAA_rating = 'PG-13' AND genre = 'Romantic Comedy'
PG-13 refers to MPAA_rating = 'PG-13'; romantic comedy refers to genre = 'Romantic Comedy';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
List the movie titles and character names by Bill Thompson.
SELECT movie, character FROM `voice-actors` WHERE 'voice-actor' = 'Bill Thompson'
Bill Thompson refers to voice-actor = 'Bill Thompson';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
List the movie titles and associated songs directed by 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'
Ron Clements refers director = 'Ron Clements';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Provide the titles, main characters, and associated songs of the movies directed by Wolfgang Reitherman in 1977.
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'
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;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Which movies had the main character named Donald Duck and who directed them?
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'
Donald Duck is the main character of the movie which refers to hero = 'Donald Duck'; movies refer to movie_title; who directed refers director;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Describe the hero, director, and the release date of 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'
Mulan refers to movie_title = 'Mulan';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Provide the title, total gross, and MPAA rating of the movie which has a hero named Elsa.
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'
Elsa is the main character of the movie which refers to hero = 'Elsa'; title refers to movie_title;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Provide the title, director, and release date of the movie voice-acted by Freddie Jones.
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'
Freddie Jones refers to voice-actor = 'Freddie Jones'; title refers to movie_title;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Among Frank Welker's voice-acted movies, list the movie titles and the total gross when the estimated inflation rate was less than 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
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;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Who directed the most popular movie?
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
The most popular movie refers MAX(total_gross); who directed refers to director;
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Describe the voice actors and villains in 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'
Cinderella refers to movie_title = ' Cinderella';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Who is the voice actor of the hero in 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'
Lion King refers to movie_title = 'Lion King';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Provide the directors and MPAA ratings of the musical movies released in 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'
Musical movies refer to genre = 'Musical'; released in 1993 refers to substr(release_date, length(release_date) - 3, length(release_date)) = '1993';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Among the movies released from 1991 to 2000, calculate the percentage of comedy movies. Provide any five movie titles and directors.
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...
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';
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
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.
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....
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));
disney
CREATE TABLE characters ( movie_title TEXT primary key, release_date TEXT, hero TEXT, villian TEXT, song TEXT, foreign key (hero) references "voice-actors"(character) ); CREATE TABLE director ( name TEXT primary key, director TEXT, f...
【DB_ID】 disney 【Schema】 # Table: main.characters [ (movie_title:TEXT, Primary Key, Examples: [Aladdin]), (release_date:TEXT, Examples: [21-Dec-37, 7-Feb-40, 13-Nov-40]), (hero:TEXT, Examples: [Snow White, Pinocchio, Dumbo]), (villian:TEXT, Examples: [Evil Queen, Stromboli, Chernabog]), (song:TEXT, Examples: [Some Day M...
Name the voice actor of the character Calliope in the movie Hercules.
SELECT `voice-actor` FROM `voice-actors` WHERE movie = 'Hercules' AND character = 'Calliope'
Hercules refers to movie = 'Hercules';