Chinastark/bird_dataset huggingface dataset:
Database: mental_health_survey
Question: What is the rate of increase of users with a current mental disorder from 2019's survey to 2016's survey?
Evidence: rate of increase = subtract(divide(count(SurveyID = 2019& QuestionID = 33& AnswerText = 'Yes'), count(SurveyID = 2019& QuestionID = 33)), divide(count(SurveyID = 2016& QuestionID = 33& AnswerText = 'Yes'), count(SurveyID = 2016& QuestionID = 33)))
SQL: SELECT CAST(( SELECT COUNT(T2.UserID) FROM Question AS T1 INNER JOIN Answer AS T2 ON T1.questionid = T2.QuestionID WHERE T2.SurveyID = 2019 AND T1.questiontext LIKE 'Do you currently have a mental health disorder?' AND T2.AnswerText = 'Yes' ) - ( SELECT COUNT(T2.UserID) FROM Question AS T1 INNER JOIN Answer AS T2 ON T1.questionid = T2.QuestionID WHERE T2.SurveyID = 2016 AND T1.questiontext LIKE 'Do you currently have a mental health disorder?' AND T2.AnswerText = 'Yes' ) AS REAL) * 100 / ( SELECT COUNT(T2.UserID) FROM Question AS T1 INNER JOIN Answer AS T2 ON T1.questionid = T2.QuestionID WHERE T2.SurveyID = 2016 AND T1.questiontext LIKE 'Do you currently have a mental health disorder?' AND T2.AnswerText = 'Yes' )
Database: mental_health_survey
Question: Tell the question ID for "Would you bring up a physical health issue with a potential employer in an interview?".
SQL: SELECT questionid FROM Question WHERE questiontext LIKE 'Would you bring up a physical health issue with a potential employer in an interview?'
Database: mental_health_survey
Question: How many users answered the question No.20?
Evidence: question No.20 refers to QuestionID = 20
SQL: SELECT MAX(UserID) - MIN(UserID) + 1 FROM Answer WHERE QuestionID = 20
Database: mental_health_survey
Question: How many questions did user No.5 answer?
Evidence: user No.5 refers to userID = 5
SQL: SELECT COUNT(QuestionID) FROM Answer WHERE UserID = 5
Database: mental_health_survey
Question: How many users participated in the Survey No.2016?
Evidence: Survey No.2016 refers to SurveyID = 2016
SQL: SELECT COUNT(DISTINCT UserID) FROM Answer WHERE SurveyID LIKE 2016
Database: mental_health_survey
Question: State the number of questions that were asked in the "mental health survey for 2018".
Evidence: mental health survey for 2018 refers to SurveyID = 2018
SQL: SELECT COUNT(T1.QuestionID) FROM Answer AS T1 INNER JOIN Survey AS T2 ON T1.SurveyID = T2.SurveyID WHERE T2.Description = 'mental health survey for 2018'
Database: mental_health_survey
Question: Tell the number of surveys that contained the question “What country do you work in?”.
Evidence: question refers to questiontext
SQL: 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?'
Database: mental_health_survey
Question: What answer did user No. 2681 give to the question "Do you currently have a mental health disorder?"?
Evidence: question refers to questiontext; user No. 2681 refers to UserID = 2681


SQL: 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
Database: mental_health_survey
Question: Provide the number of users who took part in the "mental health survey for 2016".
Evidence: mental health survey for 2016 refers to SurveyID = 2016
SQL: 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'
Database: mental_health_survey
Question: What was the most common answer for the question "What country do you work in?"?
Evidence: most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3)))
SQL: 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
Database: mental_health_survey
Question: 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?
SQL: 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.'
Database: mental_health_survey
Question: For the question “What US state or territory do you work in?”, how many people gave "Kansas" as the answer?
Evidence: question refers to questiontext; AnswerText = 'Kansas'
SQL: 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'
Database: mental_health_survey
Question: How many people wrote comments for the question "Any additional notes or comments."?
Evidence: question refers to questiontext; wrote comments refers to AnswerText(QuestionID = 103) ! = -1
SQL: 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
Database: mental_health_survey
Question: For all the users who have been asked "Have you ever been diagnosed with a mental health disorder?", how many of them said "Yes"?
Evidence: have asked refers to questiontext; said 'Yes' refers to AnswerText = 'Yes'
SQL: 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'
Database: mental_health_survey
Question: Give the number of users who took the "mental health survey for 2018".
Evidence: mental health survey for 2018 refers to SurveyID = 2018
SQL: 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'
Database: mental_health_survey
Question: How many users answered the question "Overall, how much importance does your employer place on physical health?"?
Evidence: question refers to questiontext
SQL: 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?'
Database: mental_health_survey
Question: For which question did the user No.2183 gave the answer "Mood Disorder (Depression, Bipolar Disorder, etc)"?
Evidence: question refers to questiontext; user No.2183 refers to userID = 2183
SQL: 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)'
Database: mental_health_survey
Question: 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)?"?
Evidence: percentage = divide(count(QuestionID = 15& AnswerText = 'Yes'), count(QuestionID = 15))*100%
SQL: 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)?'
Database: mental_health_survey
Question: How many times more for the number of users who took the "mental health survey for 2017" than "mental health survey for 2018"?
Evidence: How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018)))
SQL: 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'
Database: mental_health_survey
Question: Among respondents who participated in the survey in 2016, what percentage had a mental health disorder in the past?
Evidence: respondents and 'users' are synonyms; percentage = divide(count(SurveyID = 2016& QuestionID = 32 & AnswerText = 'Yes'), count(SurveyID = 2016& QuestionID = 32))*100%
SQL: 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
Database: mental_health_survey
Question: How many respondents younger than 25 years old did participate in the survey in 2016?
Evidence: respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25
SQL: 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
Database: mental_health_survey
Question: What is the average number of respondents per survey between 2014 and 2019?
Evidence: respondents and 'users' are synonyms; average number = avg(count(userID(SurveyID = 2014)), count(userID(SurveyID = 2019)))
SQL: SELECT CAST(COUNT(SurveyID) AS REAL) / 5 FROM Answer WHERE SurveyID BETWEEN 2014 AND 2019
Database: mental_health_survey
Question: How many respondents who participated in the survey in 2019 have ever sought treatment for a mental health disorder from a mental health professional?
Evidence: 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
SQL: 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
Database: mental_health_survey
Question: How many respondents who participated in the survey in 2014 work remotely at least 50% of the time?
Evidence: respondents' and 'users' are synonyms; work remotely at least 50% of the time refers to AnswerText(SurveyID = 2014& QuestionID = 93) = 'Yes'
SQL: 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'
Database: mental_health_survey
Question: How many questions were asked in the questionary for the mental health survey?
SQL: SELECT COUNT(questiontext) FROM Question
Database: mental_health_survey
Question: How many respondents of the mental health survey were diagnosed with 'Substance Use Disorder'?
Evidence: respondents' and 'users' are synonyms
SQL: SELECT COUNT(AnswerText) FROM Answer WHERE AnswerText LIKE 'Substance Use Disorder'
Database: mental_health_survey
Question: List the top three popular responses to the question of the survey in 2017 with the question ID no.85.
Evidence: 

survey in 2017 refers to SurveyID = 2017; questionID = 85; MAX(COUNT(AnswerText))
SQL: SELECT AnswerText FROM Answer WHERE QuestionID = 85 AND SurveyID = 2017 GROUP BY AnswerText ORDER BY COUNT(AnswerText) DESC LIMIT 3
Database: disney
Question: How much more total box office gross did the Walt Disney Company have in revenue in 1998 than in 1997?
Evidence: SUBTRACT(SUM(Year = 1998), SUM(Year = 1997))
SQL: SELECT SUM(CASE WHEN `Year` = 1998 THEN Total ELSE 0 END) - SUM(CASE WHEN `Year` = 1997 THEN Total ELSE 0 END) FROM revenue
Database: disney
Question: In which segment did the Walt Disney Company earned a bigger revenue in 1998, Studio Entertainment or Disney Media Networks?
Evidence: Studio Entertainment[NI 1]' > 'Disney Media Networks' where Year = 1998;
SQL: 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
Database: disney
Question: Who is the director of the movie Pinocchio?
Evidence: Pinocchio is the name of the movie;
SQL: SELECT director FROM director WHERE name = 'Pinocchio'
Database: disney
Question: Please list the villains of all the movies directed by Wolfgang Reitherman.
Evidence: Wolfgang Reitherman refers to director = 'Wolfgang Reitherman';
SQL: 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
Database: disney
Question: Among the movies directed by Wolfgang Reitherman, how many of them were released in December?
Evidence: Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; released in December refers to (release_date, instr(release_date, '-') + 1, 3) = 'Dec';
SQL: 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'
Database: disney
Question: The song "Once Upon a Dream" is associated with the movie directed by whom?
Evidence: directed by whom refers to director; movie refers to movie_title;
SQL: 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'
Database: disney
Question: Who is the voice actor for the villain of the movie "Alice in Wonderland"?
Evidence: Alice in Wonderland refers to movie_title = 'Alice in Wonderland'; villain refers to character like '%'||T1.villian||'%';
SQL: 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'
Database: disney
Question: Please list the release dates of all the movies in which Alan Tudyk is a voice actor.
Evidence: FALSE;
SQL: 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'
Database: disney
Question: Among the movies in which Alan Tudyk is a voice actor, how many of them were released after 2012?
Evidence: released after 2012 refers to (release_date, instr(release_date, '-') + 5) > 12;
SQL: 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
Database: disney
Question: Among the movies directed by Wolfgang Reitherman, how many of them are Comedies?
Evidence: directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; comedies refers to genre = 'Comedy'; movies refer to movie_title;
SQL: 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
Database: disney
Question: Among the movies directed by Wolfgang Reitherman, which one of them was the most popular?
Evidence: directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; the most popular movie refers to MAX(total_gross);
SQL: SELECT T2.movie_title FROM director AS T1 INNER JOIN movies_total_gross AS T2 ON T1.name = T2.movie_title WHERE T1.director = 'Wolfgang Reitherman' ORDER BY T2.total_gross DESC LIMIT 1
Database: disney
Question: Please list the movies directed by Wolfgang Reitherman that can be watched by the general audience.
Evidence: directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; movies refer to movie_title; general audience refers to MPAA_rating = 'G';
SQL: 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'
Database: disney
Question: Which character is the villain of the most popular movie?
Evidence: the most popular movie refers to movie_title where MAX(total_gross);
SQL: 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
Database: disney
Question: What is the genre of the movie whose villain is Commander Rourke?
Evidence: FALSE;
SQL: 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'
Database: disney
Question: Who is the villain of the movie "Beauty and the Beast"?
Evidence: Beauty and the Beast refers to movie_title = 'Beauty and the Beast';
SQL: SELECT villian FROM characters WHERE movie_title = 'Beauty and the Beast'
Database: disney
Question: Which movie is the character Robin Hood in?
Evidence: Robin Hood is the main character of the movie which refers to hero = 'Robin Hood'; movie refers to movie_title;
SQL: SELECT movie_title FROM characters WHERE hero = 'Robin Hood'
Database: disney
Question: Give the name of the movie which the song "I Thought I Lost You" is associated with.
Evidence: name of the movie refers to movie_title;
SQL: SELECT movie_title FROM characters WHERE song = 'I Thought I Lost You'
Database: disney
Question: Who is the voice actor of the character "Binkie Muddlefoot"?
Evidence: FALSE;
SQL: SELECT `voice-actor` FROM `voice-actors` WHERE character = 'Binkie Muddlefoot'
Database: disney
Question: Who is the hero character of the movie whose total gross was $222,527,828?
Evidence: FALSE;
SQL: 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'
Database: disney
Question: Which song is associated with the most popular Disney movie in 1970s?
Evidence: 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);
SQL: 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
Database: disney
Question: Who is the hero character of the Disney movie directed by Will Finn?
Evidence: Will Finn refers to director = 'Will Finn';
SQL: SELECT T1.hero FROM characters AS T1 INNER JOIN director AS T2 ON T2.name = T1.movie_title WHERE T2.director = 'Will Finn'
Database: disney
Question: Who is the voice actor of the hero character from the movie The Little Mermaid?
Evidence: The Little Mermaid refers to movie_title = 'The Little Mermaid';
SQL: 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
Database: disney
Question: Give the name of the director of the movie in which Verna Felton was the voice actor for its character "Aunt Sarah".
Evidence: FALSE;
SQL: 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'
Database: disney
Question: For the movie in which Tress MacNeille was the voice actor for its character "Hyacinth Hippo", what was the release date of that movie?
Evidence: FALSE;
SQL: 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'
Database: disney
Question: Who is the director of the adventure movie which was released on 2007/3/30?
Evidence: released on 2007/3/30 refers to release_date = 'Mar 30, 2007'; adventure movie refers to genre = 'Adventure' ;
SQL: 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'
Database: disney
Question: Wolfgang Reitherman has directed several Disney movies, which one has the highest grossing after accounting for inflation?
Evidence: Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; the highest grossing after accounting for inflation refers to MAX(inflation_adjusted_gross);
SQL: 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
Database: disney
Question: Who is the hero character of the adventure movie which was released on 2016/3/4?
Evidence: released on 2016/3/4 refers to release_date = '4-Mar-16'; adventure movie refers to genre = 'Adventure' ;
SQL: 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'
Database: disney
Question: The character Donald Duck has appeared in two Disney movies, which one has more grossing?
Evidence: 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);
SQL: 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
Database: disney
Question: How many movies did Wolfgang Reitherman direct?
Evidence: Wolfgang Reitherman refers director = 'Wolfgang Reitherman';
SQL: SELECT COUNT(name) FROM director WHERE director = 'Wolfgang Reitherman'
Database: disney
Question: Who is the most productive director?
Evidence: Most productive director refers to director where MAX(COUNT(name));
SQL: SELECT director FROM director GROUP BY director ORDER BY COUNT(name) DESC LIMIT 1
Database: disney
Question: How many restricted horror movies were released between 1/1/1990 to 12/31/2015?
Evidence: 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);
SQL: 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
Database: disney
Question: What are the names of the characters voiced by Frank Welker?
Evidence: Frank Welker refers to voice-actor = 'Frank Welker';
SQL: SELECT character FROM `voice-actors` WHERE 'voice-actor' = 'Frank Welker'
Database: disney
Question: How much is the total gross of the movie with a song titled "Little Wonders"?
Evidence: song = 'Little Wonders'
SQL: 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'
Database: disney
Question: What is the Motion Picture Association of America rating for the movie featuring a villain named Turbo?
Evidence: The Motion Picture Association of America rating refers to MPAA_rating; villian = 'Turbo';
SQL: 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'
Database: disney
Question: How many movies for mature audiences or parental guidance suggested did Bill Thompson work as a voice actor?
Evidence: movies for mature audiences or parental guidance refer to movie_title where MPAA_rating = 'PG';
SQL: 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