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】 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】
    Determine Disney's total box office gross between 2010 and 2016. between 2010 and 2016 refers to Year between 2010 and 2016;

    【Evidence】
    between 2010 and 2016 refers to Year between 2010 and 2016;

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

SQL: SELECT SUM(Total) FROM revenue WHERE `Year` BETWEEN 2010 AND 2016
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】
    Name the main character of Disney's most popular adventure movie based on its inflation-adjusted gross. adventure movie refers to genre = 'Adventure'; the main character of the movie refers to hero; most popular movie based on its inflation-adjusted gross refers to where MAX(inflation_adjusted_gross);

    【Evidence】
    adventure movie refers to genre = 'Adventure'; the main character of the movie refers to hero; most popular movie based on its inflation-adjusted gross refers to where MAX(inflation_adjusted_gross);

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

SQL: SELECT T2.hero FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title WHERE T1.genre = 'Adventure' ORDER BY CAST(REPLACE(trim(T1.inflation_adjusted_gross, '$'), ',', '') AS REAL) DESC LIMIT 1
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】
    Name the director of Disney's lowest grossing movie. lowest grossing movie refers to movie_title where MIN(total_gross);

    【Evidence】
    lowest grossing movie refers to movie_title where MIN(total_gross);

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

SQL: 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) ASC LIMIT 1
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】
    Find out what proportion of total revenue Walt Disney Parks and Resorts received in 2010. DIVIDE(Walt Disney Parks and Resorts where year = 2010), SUM(year = 2010) as percentage;

    【Evidence】
    DIVIDE(Walt Disney Parks and Resorts where year = 2010), SUM(year = 2010) as percentage;

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

SQL: SELECT SUM(`Walt Disney Parks and Resorts`) / SUM(Total) * 100 FROM revenue WHERE year = 2010
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】
    Determine the average gross for Disney's PG-13-rated action movies. DIVIDE(SUM(total_gross where genre = 'Action' and MPAA_rating = 'PG-13'), COUNT(movie_title where genre = 'Action' and MPAA_rating = 'PG-13'));

    【Evidence】
    DIVIDE(SUM(total_gross where genre = 'Action' and MPAA_rating = 'PG-13'), COUNT(movie_title where genre = 'Action' and MPAA_rating = 'PG-13'));

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

SQL: SELECT SUM(CAST(REPLACE(trim(total_gross, '$'), ',', '') AS REAL)) / COUNT(movie_title) FROM movies_total_gross WHERE MPAA_rating = 'PG-13'
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 many voice-actors were involved in the Bambi movie? Bambi is the name of the movie which refers to movie = 'Bambi';

    【Evidence】
    Bambi is the name of the movie which refers to movie = 'Bambi';

    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 'voice-actor') FROM `voice-actors` WHERE movie = 'Bambi'
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】
    Find the estimated inflation rate that was used to adjust the 1995 box office revenue for Disney's films. DIVIDE(inflation_adjusted_gross, total_gross) as percentage where substr(release_date, length(release_date) - 3, length(release_date)) = '1995';

    【Evidence】
    DIVIDE(inflation_adjusted_gross, total_gross) as percentage where substr(release_date, length(release_date) - 3, length(release_date)) = '1995';

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

SQL: SELECT SUM(CAST(REPLACE(trim(inflation_adjusted_gross, '$'), ',', '') AS REAL)) / SUM(CAST(REPLACE(trim(total_gross, '$'), ',', '') AS REAL)) FROM movies_total_gross WHERE SUBSTR(release_date, LENGTH(release_date) - 3, LENGTH(release_date)) = '1995' GROUP BY SUBSTR(release_date, LENGTH(release_date) - 3, LENGTH(release_date)) = '1995'
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】
    What is the difference in the current gross of Cars and its sequel, Cars 2? Which movie is more popular? SUBTRACT(inflation_adjusted_gross where movie_title = 'Cars', inflation_adjusted_gross where movie_title = 'Cars 2'); more popular movie refers to movie_title where MAX(inflation_adjusted_gross);

    【Evidence】
    SUBTRACT(inflation_adjusted_gross where movie_title = 'Cars', inflation_adjusted_gross where movie_title = 'Cars 2'); more popular movie refers to movie_title where MAX(inflation_adjusted_gross);

    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 movie_title = 'Cars' THEN CAST(REPLACE(trim(inflation_adjusted_gross, '$'), ',', '') AS REAL) ELSE 0 END), SUM(CASE WHEN movie_title = 'Cars 2' THEN CAST(REPLACE(trim(inflation_adjusted_gross, '$'), ',', '') AS REAL) ELSE 0 END) FROM movies_total_gross
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】
    Name the most recent movie directed by Chris Buck. Which of his movies was more successful in terms of grossing? Use the current gross for comparison. Chris Buck refers to director = 'Chris Buck'; the most recent movie refers to movie_title where MAX(release_date); current gross refers to inflation_adjusted_gross; more successful movie refers to MAX(inflation_adjusted_gross);

    【Evidence】
    Chris Buck refers to director = 'Chris Buck'; the most recent movie refers to movie_title where MAX(release_date); current gross refers to inflation_adjusted_gross; more successful movie refers to MAX(inflation_adjusted_gross);

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

SQL: SELECT T1.movie_title, MAX(T1.release_date), MAX(T1.inflation_adjusted_gross) FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T2.director = 'Chris Buck'