QIAN-ME/bird_schema_data huggingface dataset:
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 mental_health_survey
【Schema】
# Table: Survey
[
(SurveyID:INTEGER, Primary Key, Examples: [2014, 2016, 2017]),
(Description:TEXT, Examples: [mental health survey for 2014])
]
# Table: 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: Question
[
(questiontext:TEXT, Examples: [What is your age?]),
(questionid:INTEGER, Primary Key, Examples: [1, 2, 3])
]
【Foreign keys】
Answer.QuestionID=Question.questionid
Answer.SurveyID=Survey.SurveyID

    【Question】
    For which question did the user No.2183 gave the answer "Mood Disorder (Depression, Bipolar Disorder, etc)"? question refers to questiontext; user No.2183 refers to userID = 2183

    【Evidence】
    question refers to questiontext; user No.2183 refers to userID = 2183

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

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)'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 mental_health_survey
【Schema】
# Table: Survey
[
(SurveyID:INTEGER, Primary Key, Examples: [2014, 2016, 2017]),
(Description:TEXT, Examples: [mental health survey for 2014])
]
# Table: 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: Question
[
(questiontext:TEXT, Examples: [What is your age?]),
(questionid:INTEGER, Primary Key, Examples: [1, 2, 3])
]
【Foreign keys】
Answer.QuestionID=Question.questionid
Answer.SurveyID=Survey.SurveyID

    【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)?"? percentage = divide(count(QuestionID = 15& AnswerText = 'Yes'), count(QuestionID = 15))*100%

    【Evidence】
    percentage = divide(count(QuestionID = 15& AnswerText = 'Yes'), count(QuestionID = 15))*100%

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

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)?'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 mental_health_survey
【Schema】
# Table: Survey
[
(SurveyID:INTEGER, Primary Key, Examples: [2014, 2016, 2017]),
(Description:TEXT, Examples: [mental health survey for 2014])
]
# Table: 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: Question
[
(questiontext:TEXT, Examples: [What is your age?]),
(questionid:INTEGER, Primary Key, Examples: [1, 2, 3])
]
【Foreign keys】
Answer.QuestionID=Question.questionid
Answer.SurveyID=Survey.SurveyID

    【Question】
    How many times more for the number of users who took the "mental health survey for 2017" than "mental health survey for 2018"? How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018)))

    【Evidence】
    How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018)))

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

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'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 mental_health_survey
【Schema】
# Table: Survey
[
(SurveyID:INTEGER, Primary Key, Examples: [2014, 2016, 2017]),
(Description:TEXT, Examples: [mental health survey for 2014])
]
# Table: 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: Question
[
(questiontext:TEXT, Examples: [What is your age?]),
(questionid:INTEGER, Primary Key, Examples: [1, 2, 3])
]
【Foreign keys】
Answer.QuestionID=Question.questionid
Answer.SurveyID=Survey.SurveyID

    【Question】
    Among respondents who participated in the survey in 2016, what percentage had a mental health disorder in the past? respondents and 'users' are synonyms; percentage = divide(count(SurveyID = 2016& QuestionID = 32 & AnswerText = 'Yes'), count(SurveyID = 2016& QuestionID = 32))*100%

    【Evidence】
    respondents and 'users' are synonyms; percentage = divide(count(SurveyID = 2016& QuestionID = 32 & AnswerText = 'Yes'), count(SurveyID = 2016& QuestionID = 32))*100%

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

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
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 mental_health_survey
【Schema】
# Table: Survey
[
(SurveyID:INTEGER, Primary Key, Examples: [2014, 2016, 2017]),
(Description:TEXT, Examples: [mental health survey for 2014])
]
# Table: 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: Question
[
(questiontext:TEXT, Examples: [What is your age?]),
(questionid:INTEGER, Primary Key, Examples: [1, 2, 3])
]
【Foreign keys】
Answer.QuestionID=Question.questionid
Answer.SurveyID=Survey.SurveyID

    【Question】
    How many respondents younger than 25 years old did participate in the survey in 2016? respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25

    【Evidence】
    respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

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
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 mental_health_survey
【Schema】
# Table: Survey
[
(SurveyID:INTEGER, Primary Key, Examples: [2014, 2016, 2017]),
(Description:TEXT, Examples: [mental health survey for 2014])
]
# Table: 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: Question
[
(questiontext:TEXT, Examples: [What is your age?]),
(questionid:INTEGER, Primary Key, Examples: [1, 2, 3])
]
【Foreign keys】
Answer.QuestionID=Question.questionid
Answer.SurveyID=Survey.SurveyID

    【Question】
    What is the average number of respondents per survey between 2014 and 2019? respondents and 'users' are synonyms; average number = avg(count(userID(SurveyID = 2014)), count(userID(SurveyID = 2019)))

    【Evidence】
    respondents and 'users' are synonyms; average number = avg(count(userID(SurveyID = 2014)), count(userID(SurveyID = 2019)))

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT CAST(COUNT(SurveyID) AS REAL) / 5 FROM Answer WHERE SurveyID BETWEEN 2014 AND 2019
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 mental_health_survey
【Schema】
# Table: Survey
[
(SurveyID:INTEGER, Primary Key, Examples: [2014, 2016, 2017]),
(Description:TEXT, Examples: [mental health survey for 2014])
]
# Table: 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: Question
[
(questiontext:TEXT, Examples: [What is your age?]),
(questionid:INTEGER, Primary Key, Examples: [1, 2, 3])
]
【Foreign keys】
Answer.QuestionID=Question.questionid
Answer.SurveyID=Survey.SurveyID

    【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? 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

    【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

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

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
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 mental_health_survey
【Schema】
# Table: Survey
[
(SurveyID:INTEGER, Primary Key, Examples: [2014, 2016, 2017]),
(Description:TEXT, Examples: [mental health survey for 2014])
]
# Table: 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: Question
[
(questiontext:TEXT, Examples: [What is your age?]),
(questionid:INTEGER, Primary Key, Examples: [1, 2, 3])
]
【Foreign keys】
Answer.QuestionID=Question.questionid
Answer.SurveyID=Survey.SurveyID

    【Question】
    How many respondents who participated in the survey in 2014 work remotely at least 50% of the time? respondents' and 'users' are synonyms; work remotely at least 50% of the time refers to AnswerText(SurveyID = 2014& QuestionID = 93) = 'Yes'

    【Evidence】
    respondents' and 'users' are synonyms; work remotely at least 50% of the time refers to AnswerText(SurveyID = 2014& QuestionID = 93) = 'Yes'

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

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'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 mental_health_survey
【Schema】
# Table: Survey
[
(SurveyID:INTEGER, Primary Key, Examples: [2014, 2016, 2017]),
(Description:TEXT, Examples: [mental health survey for 2014])
]
# Table: 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: Question
[
(questiontext:TEXT, Examples: [What is your age?]),
(questionid:INTEGER, Primary Key, Examples: [1, 2, 3])
]
【Foreign keys】
Answer.QuestionID=Question.questionid
Answer.SurveyID=Survey.SurveyID

    【Question】
    How many questions were asked in the questionary for the mental health survey?

    【Evidence】
    

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT COUNT(questiontext) FROM Question
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 mental_health_survey
【Schema】
# Table: Survey
[
(SurveyID:INTEGER, Primary Key, Examples: [2014, 2016, 2017]),
(Description:TEXT, Examples: [mental health survey for 2014])
]
# Table: 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: Question
[
(questiontext:TEXT, Examples: [What is your age?]),
(questionid:INTEGER, Primary Key, Examples: [1, 2, 3])
]
【Foreign keys】
Answer.QuestionID=Question.questionid
Answer.SurveyID=Survey.SurveyID

    【Question】
    How many respondents of the mental health survey were diagnosed with 'Substance Use Disorder'? respondents' and 'users' are synonyms

    【Evidence】
    respondents' and 'users' are synonyms

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT COUNT(AnswerText) FROM Answer WHERE AnswerText LIKE 'Substance Use Disorder'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 mental_health_survey
【Schema】
# Table: Survey
[
(SurveyID:INTEGER, Primary Key, Examples: [2014, 2016, 2017]),
(Description:TEXT, Examples: [mental health survey for 2014])
]
# Table: 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: Question
[
(questiontext:TEXT, Examples: [What is your age?]),
(questionid:INTEGER, Primary Key, Examples: [1, 2, 3])
]
【Foreign keys】
Answer.QuestionID=Question.questionid
Answer.SurveyID=Survey.SurveyID

    【Question】
    List the top three popular responses to the question of the survey in 2017 with the question ID no.85. 

survey in 2017 refers to SurveyID = 2017; questionID = 85; MAX(COUNT(AnswerText))

    【Evidence】
    

survey in 2017 refers to SurveyID = 2017; questionID = 85; MAX(COUNT(AnswerText))

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT AnswerText FROM Answer WHERE QuestionID = 85 AND SurveyID = 2017 GROUP BY AnswerText ORDER BY COUNT(AnswerText) DESC LIMIT 3
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 disney
【Schema】
# Table: revenue
[
(Year:INTEGER, Primary Key, Examples: [1991, 1992, 1993]),
(Studio Entertainment[NI 1]:REAL, Examples: [2593.0, 3115.0, 3673.4]),
(Disney Consumer Products[NI 2]:REAL, Examples: [724.0, 1081.0, 1415.1]),
(Disney Interactive[NI 3][Rev 1]:INTEGER, Examples: [174, 260, 206]),
(Walt Disney Parks and Resorts:REAL, Examples: [2794.0, 3306.0, 3440.7]),
(Disney Media Networks:TEXT, Examples: [359, 414, 4,142]),
(Total:INTEGER, Examples: [6111, 7502, 8529])
]
# Table: movies_total_gross
[
(movie_title:TEXT, Primary Key, Examples: [101 Dalmatians]),
(release_date:TEXT, Primary Key, Examples: [Jan 25, 1961, Nov 27, 1996, Nov 22, 2000]),
(genre:TEXT, Examples: [Musical, Adventure, Drama]),
(MPAA_rating:TEXT, Examples: [G, Not Rated, PG]),
(total_gross:TEXT, Examples: [$184,925,485, $84,300,000, $83,320,000]),
(inflation_adjusted_gross:TEXT, Examples: [$5,228,953,251, $2,188,229,052, $2,187,090,808])
]
# Table: 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 My Prince Will Come])
]
# Table: director
[
(name:TEXT, Primary Key, Examples: [101 Dalmatians, Aladdin, Alice in Wonderland]),
(director:TEXT, Examples: [David Hand, Ben Sharpsteen, full credits])
]
# Table: voice-actors
[
(character:TEXT, Primary Key, Examples: [Abby Mallard, Abigail Gabble, Abis Mal]),
(voice-actor:TEXT, Examples: [Joan Cusack, Monica Evans, Jason Alexander]),
(movie:TEXT, Examples: [Chicken Little, The Aristocats, The Return of Jafar])
]
【Foreign keys】
movies_total_gross.movie_title=characters.movie_title
characters.hero=voice-actors.character
director.name=characters.movie_title
voice-actors.movie=characters.movie_title

    【Question】
    How much more total box office gross did the Walt Disney Company have in revenue in 1998 than in 1997? SUBTRACT(SUM(Year = 1998), SUM(Year = 1997))

    【Evidence】
    SUBTRACT(SUM(Year = 1998), SUM(Year = 1997))

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT SUM(CASE WHEN `Year` = 1998 THEN Total ELSE 0 END) - SUM(CASE WHEN `Year` = 1997 THEN Total ELSE 0 END) FROM revenue
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 disney
【Schema】
# Table: revenue
[
(Year:INTEGER, Primary Key, Examples: [1991, 1992, 1993]),
(Studio Entertainment[NI 1]:REAL, Examples: [2593.0, 3115.0, 3673.4]),
(Disney Consumer Products[NI 2]:REAL, Examples: [724.0, 1081.0, 1415.1]),
(Disney Interactive[NI 3][Rev 1]:INTEGER, Examples: [174, 260, 206]),
(Walt Disney Parks and Resorts:REAL, Examples: [2794.0, 3306.0, 3440.7]),
(Disney Media Networks:TEXT, Examples: [359, 414, 4,142]),
(Total:INTEGER, Examples: [6111, 7502, 8529])
]
# Table: movies_total_gross
[
(movie_title:TEXT, Primary Key, Examples: [101 Dalmatians]),
(release_date:TEXT, Primary Key, Examples: [Jan 25, 1961, Nov 27, 1996, Nov 22, 2000]),
(genre:TEXT, Examples: [Musical, Adventure, Drama]),
(MPAA_rating:TEXT, Examples: [G, Not Rated, PG]),
(total_gross:TEXT, Examples: [$184,925,485, $84,300,000, $83,320,000]),
(inflation_adjusted_gross:TEXT, Examples: [$5,228,953,251, $2,188,229,052, $2,187,090,808])
]
# Table: 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 My Prince Will Come])
]
# Table: director
[
(name:TEXT, Primary Key, Examples: [101 Dalmatians, Aladdin, Alice in Wonderland]),
(director:TEXT, Examples: [David Hand, Ben Sharpsteen, full credits])
]
# Table: voice-actors
[
(character:TEXT, Primary Key, Examples: [Abby Mallard, Abigail Gabble, Abis Mal]),
(voice-actor:TEXT, Examples: [Joan Cusack, Monica Evans, Jason Alexander]),
(movie:TEXT, Examples: [Chicken Little, The Aristocats, The Return of Jafar])
]
【Foreign keys】
movies_total_gross.movie_title=characters.movie_title
characters.hero=voice-actors.character
director.name=characters.movie_title
voice-actors.movie=characters.movie_title

    【Question】
    In which segment did the Walt Disney Company earned a bigger revenue in 1998, Studio Entertainment or Disney Media Networks? Studio Entertainment[NI 1]' > 'Disney Media Networks' where Year = 1998;

    【Evidence】
    Studio Entertainment[NI 1]' > 'Disney Media Networks' where Year = 1998;

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

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
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 disney
【Schema】
# Table: revenue
[
(Year:INTEGER, Primary Key, Examples: [1991, 1992, 1993]),
(Studio Entertainment[NI 1]:REAL, Examples: [2593.0, 3115.0, 3673.4]),
(Disney Consumer Products[NI 2]:REAL, Examples: [724.0, 1081.0, 1415.1]),
(Disney Interactive[NI 3][Rev 1]:INTEGER, Examples: [174, 260, 206]),
(Walt Disney Parks and Resorts:REAL, Examples: [2794.0, 3306.0, 3440.7]),
(Disney Media Networks:TEXT, Examples: [359, 414, 4,142]),
(Total:INTEGER, Examples: [6111, 7502, 8529])
]
# Table: movies_total_gross
[
(movie_title:TEXT, Primary Key, Examples: [101 Dalmatians]),
(release_date:TEXT, Primary Key, Examples: [Jan 25, 1961, Nov 27, 1996, Nov 22, 2000]),
(genre:TEXT, Examples: [Musical, Adventure, Drama]),
(MPAA_rating:TEXT, Examples: [G, Not Rated, PG]),
(total_gross:TEXT, Examples: [$184,925,485, $84,300,000, $83,320,000]),
(inflation_adjusted_gross:TEXT, Examples: [$5,228,953,251, $2,188,229,052, $2,187,090,808])
]
# Table: 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 My Prince Will Come])
]
# Table: director
[
(name:TEXT, Primary Key, Examples: [101 Dalmatians, Aladdin, Alice in Wonderland]),
(director:TEXT, Examples: [David Hand, Ben Sharpsteen, full credits])
]
# Table: voice-actors
[
(character:TEXT, Primary Key, Examples: [Abby Mallard, Abigail Gabble, Abis Mal]),
(voice-actor:TEXT, Examples: [Joan Cusack, Monica Evans, Jason Alexander]),
(movie:TEXT, Examples: [Chicken Little, The Aristocats, The Return of Jafar])
]
【Foreign keys】
movies_total_gross.movie_title=characters.movie_title
characters.hero=voice-actors.character
director.name=characters.movie_title
voice-actors.movie=characters.movie_title

    【Question】
    Who is the director of the movie Pinocchio? Pinocchio is the name of the movie;

    【Evidence】
    Pinocchio is the name of the movie;

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT director FROM director WHERE name = 'Pinocchio'