1sf/bird-sql-train-with-schema huggingface dataset:
Database: movie_platform
Tables: lists, movies, ratings_users, lists_users, ratings
Columns (table index, column name): -1, *, 0, user_id, 0, list_id, 0, list_title, 0, list_movie_number, 0, list_update_timestamp_utc, 0, list_creation_timestamp_utc, 0, list_followers, 0, list_url, 0, list_comments, 0, list_description, 0, list_cover_image_url, 0, list_first_image_url, 0, list_second_image_url, 0, list_third_image_url, 1, movie_id, 1, movie_title, 1, movie_release_year, 1, movie_url, 1, movie_title_language, 1, movie_popularity, 1, movie_image_url, 1, director_id, 1, director_name, 1, director_url, 2, user_id, 2, rating_date_utc, 2, user_trialist, 2, user_subscriber, 2, user_avatar_image_url, 2, user_cover_image_url, 2, user_eligible_for_trial, 2, user_has_payment_method, 3, user_id, 3, list_id, 3, list_update_date_utc, 3, list_creation_date_utc, 3, user_trialist, 3, user_subscriber, 3, user_avatar_image_url, 3, user_cover_image_url, 3, user_eligible_for_trial, 3, user_has_payment_method, 4, movie_id, 4, rating_id, 4, rating_url, 4, rating_score, 4, rating_timestamp_utc, 4, critic, 4, critic_likes, 4, critic_comments, 4, user_id, 4, user_trialist, 4, user_subscriber, 4, user_eligible_for_trial, 4, user_has_payment_method
Question: Name movie titles released in year 1945. Sort the listing by the descending order of movie popularity.
Evidence: released in the year 1945 refers to movie_release_year = 1945;
SQL: SELECT movie_title FROM movies WHERE movie_release_year = 1945 ORDER BY movie_popularity DESC LIMIT 1
Database: movie_platform
Tables: lists, movies, ratings_users, lists_users, ratings
Columns (table index, column name): -1, *, 0, user_id, 0, list_id, 0, list_title, 0, list_movie_number, 0, list_update_timestamp_utc, 0, list_creation_timestamp_utc, 0, list_followers, 0, list_url, 0, list_comments, 0, list_description, 0, list_cover_image_url, 0, list_first_image_url, 0, list_second_image_url, 0, list_third_image_url, 1, movie_id, 1, movie_title, 1, movie_release_year, 1, movie_url, 1, movie_title_language, 1, movie_popularity, 1, movie_image_url, 1, director_id, 1, director_name, 1, director_url, 2, user_id, 2, rating_date_utc, 2, user_trialist, 2, user_subscriber, 2, user_avatar_image_url, 2, user_cover_image_url, 2, user_eligible_for_trial, 2, user_has_payment_method, 3, user_id, 3, list_id, 3, list_update_date_utc, 3, list_creation_date_utc, 3, user_trialist, 3, user_subscriber, 3, user_avatar_image_url, 3, user_cover_image_url, 3, user_eligible_for_trial, 3, user_has_payment_method, 4, movie_id, 4, rating_id, 4, rating_url, 4, rating_score, 4, rating_timestamp_utc, 4, critic, 4, critic_likes, 4, critic_comments, 4, user_id, 4, user_trialist, 4, user_subscriber, 4, user_eligible_for_trial, 4, user_has_payment_method
Question: State the most popular movie? When was it released and who is the director for the movie?
Evidence: most popular movie refers to MAX(movie_popularity); when it was released refers to movie_release_year; director for the movie refers to director_name;
SQL: SELECT movie_title, movie_release_year, director_name FROM movies ORDER BY movie_popularity DESC LIMIT 1
Database: movie_platform
Tables: lists, movies, ratings_users, lists_users, ratings
Columns (table index, column name): -1, *, 0, user_id, 0, list_id, 0, list_title, 0, list_movie_number, 0, list_update_timestamp_utc, 0, list_creation_timestamp_utc, 0, list_followers, 0, list_url, 0, list_comments, 0, list_description, 0, list_cover_image_url, 0, list_first_image_url, 0, list_second_image_url, 0, list_third_image_url, 1, movie_id, 1, movie_title, 1, movie_release_year, 1, movie_url, 1, movie_title_language, 1, movie_popularity, 1, movie_image_url, 1, director_id, 1, director_name, 1, director_url, 2, user_id, 2, rating_date_utc, 2, user_trialist, 2, user_subscriber, 2, user_avatar_image_url, 2, user_cover_image_url, 2, user_eligible_for_trial, 2, user_has_payment_method, 3, user_id, 3, list_id, 3, list_update_date_utc, 3, list_creation_date_utc, 3, user_trialist, 3, user_subscriber, 3, user_avatar_image_url, 3, user_cover_image_url, 3, user_eligible_for_trial, 3, user_has_payment_method, 4, movie_id, 4, rating_id, 4, rating_url, 4, rating_score, 4, rating_timestamp_utc, 4, critic, 4, critic_likes, 4, critic_comments, 4, user_id, 4, user_trialist, 4, user_subscriber, 4, user_eligible_for_trial, 4, user_has_payment_method
Question: What is the name of the longest movie title? When was it released?
Evidence: longest movie title refers to MAX(LENGTH(movie_title)); when it was released refers to movie_release_year;
SQL: SELECT movie_title, movie_release_year FROM movies ORDER BY LENGTH(movie_popularity) DESC LIMIT 1
Database: movie_platform
Tables: lists, movies, ratings_users, lists_users, ratings
Columns (table index, column name): -1, *, 0, user_id, 0, list_id, 0, list_title, 0, list_movie_number, 0, list_update_timestamp_utc, 0, list_creation_timestamp_utc, 0, list_followers, 0, list_url, 0, list_comments, 0, list_description, 0, list_cover_image_url, 0, list_first_image_url, 0, list_second_image_url, 0, list_third_image_url, 1, movie_id, 1, movie_title, 1, movie_release_year, 1, movie_url, 1, movie_title_language, 1, movie_popularity, 1, movie_image_url, 1, director_id, 1, director_name, 1, director_url, 2, user_id, 2, rating_date_utc, 2, user_trialist, 2, user_subscriber, 2, user_avatar_image_url, 2, user_cover_image_url, 2, user_eligible_for_trial, 2, user_has_payment_method, 3, user_id, 3, list_id, 3, list_update_date_utc, 3, list_creation_date_utc, 3, user_trialist, 3, user_subscriber, 3, user_avatar_image_url, 3, user_cover_image_url, 3, user_eligible_for_trial, 3, user_has_payment_method, 4, movie_id, 4, rating_id, 4, rating_url, 4, rating_score, 4, rating_timestamp_utc, 4, critic, 4, critic_likes, 4, critic_comments, 4, user_id, 4, user_trialist, 4, user_subscriber, 4, user_eligible_for_trial, 4, user_has_payment_method
Question: Name the movie with the most ratings.
Evidence: movie with the most rating refers to MAX(SUM(rating_score));
SQL: SELECT movie_title FROM movies GROUP BY movie_title ORDER BY COUNT(movie_title) DESC LIMIT 1
Database: movie_platform
Tables: lists, movies, ratings_users, lists_users, ratings
Columns (table index, column name): -1, *, 0, user_id, 0, list_id, 0, list_title, 0, list_movie_number, 0, list_update_timestamp_utc, 0, list_creation_timestamp_utc, 0, list_followers, 0, list_url, 0, list_comments, 0, list_description, 0, list_cover_image_url, 0, list_first_image_url, 0, list_second_image_url, 0, list_third_image_url, 1, movie_id, 1, movie_title, 1, movie_release_year, 1, movie_url, 1, movie_title_language, 1, movie_popularity, 1, movie_image_url, 1, director_id, 1, director_name, 1, director_url, 2, user_id, 2, rating_date_utc, 2, user_trialist, 2, user_subscriber, 2, user_avatar_image_url, 2, user_cover_image_url, 2, user_eligible_for_trial, 2, user_has_payment_method, 3, user_id, 3, list_id, 3, list_update_date_utc, 3, list_creation_date_utc, 3, user_trialist, 3, user_subscriber, 3, user_avatar_image_url, 3, user_cover_image_url, 3, user_eligible_for_trial, 3, user_has_payment_method, 4, movie_id, 4, rating_id, 4, rating_url, 4, rating_score, 4, rating_timestamp_utc, 4, critic, 4, critic_likes, 4, critic_comments, 4, user_id, 4, user_trialist, 4, user_subscriber, 4, user_eligible_for_trial, 4, user_has_payment_method
Question: What is the average number of Mubi users who love movies directed by Stanley Kubrick?
Evidence: average = AVG(movie_popularity); number of Mubi users who loves the movie refers to movie_popularity;
SQL: SELECT AVG(movie_popularity) FROM movies WHERE director_name = 'Stanley Kubrick'
Database: movie_platform
Tables: lists, movies, ratings_users, lists_users, ratings
Columns (table index, column name): -1, *, 0, user_id, 0, list_id, 0, list_title, 0, list_movie_number, 0, list_update_timestamp_utc, 0, list_creation_timestamp_utc, 0, list_followers, 0, list_url, 0, list_comments, 0, list_description, 0, list_cover_image_url, 0, list_first_image_url, 0, list_second_image_url, 0, list_third_image_url, 1, movie_id, 1, movie_title, 1, movie_release_year, 1, movie_url, 1, movie_title_language, 1, movie_popularity, 1, movie_image_url, 1, director_id, 1, director_name, 1, director_url, 2, user_id, 2, rating_date_utc, 2, user_trialist, 2, user_subscriber, 2, user_avatar_image_url, 2, user_cover_image_url, 2, user_eligible_for_trial, 2, user_has_payment_method, 3, user_id, 3, list_id, 3, list_update_date_utc, 3, list_creation_date_utc, 3, user_trialist, 3, user_subscriber, 3, user_avatar_image_url, 3, user_cover_image_url, 3, user_eligible_for_trial, 3, user_has_payment_method, 4, movie_id, 4, rating_id, 4, rating_url, 4, rating_score, 4, rating_timestamp_utc, 4, critic, 4, critic_likes, 4, critic_comments, 4, user_id, 4, user_trialist, 4, user_subscriber, 4, user_eligible_for_trial, 4, user_has_payment_method
Question: What is the average rating for movie titled 'When Will I Be Loved'?
Evidence: average rating = DIVIDE((SUM(rating_score where movie_title = 'When Will I Be Loved')), COUNT(rating_score));
SQL: SELECT AVG(T2.rating_score) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_title = 'When Will I Be Loved'
Database: movie_platform
Tables: lists, movies, ratings_users, lists_users, ratings
Columns (table index, column name): -1, *, 0, user_id, 0, list_id, 0, list_title, 0, list_movie_number, 0, list_update_timestamp_utc, 0, list_creation_timestamp_utc, 0, list_followers, 0, list_url, 0, list_comments, 0, list_description, 0, list_cover_image_url, 0, list_first_image_url, 0, list_second_image_url, 0, list_third_image_url, 1, movie_id, 1, movie_title, 1, movie_release_year, 1, movie_url, 1, movie_title_language, 1, movie_popularity, 1, movie_image_url, 1, director_id, 1, director_name, 1, director_url, 2, user_id, 2, rating_date_utc, 2, user_trialist, 2, user_subscriber, 2, user_avatar_image_url, 2, user_cover_image_url, 2, user_eligible_for_trial, 2, user_has_payment_method, 3, user_id, 3, list_id, 3, list_update_date_utc, 3, list_creation_date_utc, 3, user_trialist, 3, user_subscriber, 3, user_avatar_image_url, 3, user_cover_image_url, 3, user_eligible_for_trial, 3, user_has_payment_method, 4, movie_id, 4, rating_id, 4, rating_url, 4, rating_score, 4, rating_timestamp_utc, 4, critic, 4, critic_likes, 4, critic_comments, 4, user_id, 4, user_trialist, 4, user_subscriber, 4, user_eligible_for_trial, 4, user_has_payment_method
Question: What is the user avatar url for user 41579158? What is the latest movie rated by him / her?
Evidence: user avatar url refers to user_avatar_image_url; latest movie rated refers to latest rating_date;
SQL: SELECT T3.user_avatar_image_url, T3.rating_date_utc FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id INNER JOIN ratings_users AS T3 ON T3.user_id = T2.user_id WHERE T3.user_id = 41579158 ORDER BY T3.rating_date_utc DESC LIMIT 1
Database: movie_platform
Tables: lists, movies, ratings_users, lists_users, ratings
Columns (table index, column name): -1, *, 0, user_id, 0, list_id, 0, list_title, 0, list_movie_number, 0, list_update_timestamp_utc, 0, list_creation_timestamp_utc, 0, list_followers, 0, list_url, 0, list_comments, 0, list_description, 0, list_cover_image_url, 0, list_first_image_url, 0, list_second_image_url, 0, list_third_image_url, 1, movie_id, 1, movie_title, 1, movie_release_year, 1, movie_url, 1, movie_title_language, 1, movie_popularity, 1, movie_image_url, 1, director_id, 1, director_name, 1, director_url, 2, user_id, 2, rating_date_utc, 2, user_trialist, 2, user_subscriber, 2, user_avatar_image_url, 2, user_cover_image_url, 2, user_eligible_for_trial, 2, user_has_payment_method, 3, user_id, 3, list_id, 3, list_update_date_utc, 3, list_creation_date_utc, 3, user_trialist, 3, user_subscriber, 3, user_avatar_image_url, 3, user_cover_image_url, 3, user_eligible_for_trial, 3, user_has_payment_method, 4, movie_id, 4, rating_id, 4, rating_url, 4, rating_score, 4, rating_timestamp_utc, 4, critic, 4, critic_likes, 4, critic_comments, 4, user_id, 4, user_trialist, 4, user_subscriber, 4, user_eligible_for_trial, 4, user_has_payment_method
Question: What is the percentage of the ratings were rated by user who was a subcriber?
Evidence: user is a subscriber refers to user_subscriber = 1; percentage of ratings = DIVIDE(SUM(user_subscriber = 1), SUM(rating_score)) as percent;
SQL: SELECT CAST(SUM(CASE WHEN user_subscriber = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM ratings
Database: movie_platform
Tables: lists, movies, ratings_users, lists_users, ratings
Columns (table index, column name): -1, *, 0, user_id, 0, list_id, 0, list_title, 0, list_movie_number, 0, list_update_timestamp_utc, 0, list_creation_timestamp_utc, 0, list_followers, 0, list_url, 0, list_comments, 0, list_description, 0, list_cover_image_url, 0, list_first_image_url, 0, list_second_image_url, 0, list_third_image_url, 1, movie_id, 1, movie_title, 1, movie_release_year, 1, movie_url, 1, movie_title_language, 1, movie_popularity, 1, movie_image_url, 1, director_id, 1, director_name, 1, director_url, 2, user_id, 2, rating_date_utc, 2, user_trialist, 2, user_subscriber, 2, user_avatar_image_url, 2, user_cover_image_url, 2, user_eligible_for_trial, 2, user_has_payment_method, 3, user_id, 3, list_id, 3, list_update_date_utc, 3, list_creation_date_utc, 3, user_trialist, 3, user_subscriber, 3, user_avatar_image_url, 3, user_cover_image_url, 3, user_eligible_for_trial, 3, user_has_payment_method, 4, movie_id, 4, rating_id, 4, rating_url, 4, rating_score, 4, rating_timestamp_utc, 4, critic, 4, critic_likes, 4, critic_comments, 4, user_id, 4, user_trialist, 4, user_subscriber, 4, user_eligible_for_trial, 4, user_has_payment_method
Question: List all movie title rated in April 2020 from user who was a trialist.
Evidence: movie title rated in April 2020 refers to rating_timestamp_utc LIKE '%2020-04-%'; user is a trial list refers to user_trialist = 1;
SQL: SELECT T1.movie_title FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T2.user_trialist = 1 AND T2.rating_timestamp_utc LIKE '2020-04%'
Database: movie_platform
Tables: lists, movies, ratings_users, lists_users, ratings
Columns (table index, column name): -1, *, 0, user_id, 0, list_id, 0, list_title, 0, list_movie_number, 0, list_update_timestamp_utc, 0, list_creation_timestamp_utc, 0, list_followers, 0, list_url, 0, list_comments, 0, list_description, 0, list_cover_image_url, 0, list_first_image_url, 0, list_second_image_url, 0, list_third_image_url, 1, movie_id, 1, movie_title, 1, movie_release_year, 1, movie_url, 1, movie_title_language, 1, movie_popularity, 1, movie_image_url, 1, director_id, 1, director_name, 1, director_url, 2, user_id, 2, rating_date_utc, 2, user_trialist, 2, user_subscriber, 2, user_avatar_image_url, 2, user_cover_image_url, 2, user_eligible_for_trial, 2, user_has_payment_method, 3, user_id, 3, list_id, 3, list_update_date_utc, 3, list_creation_date_utc, 3, user_trialist, 3, user_subscriber, 3, user_avatar_image_url, 3, user_cover_image_url, 3, user_eligible_for_trial, 3, user_has_payment_method, 4, movie_id, 4, rating_id, 4, rating_url, 4, rating_score, 4, rating_timestamp_utc, 4, critic, 4, critic_likes, 4, critic_comments, 4, user_id, 4, user_trialist, 4, user_subscriber, 4, user_eligible_for_trial, 4, user_has_payment_method
Question: List ther users who gave the worst rating for movie 'Love Will Tear Us Apart'.
Evidence: worst rating refers to rating_score = 1;
SQL: SELECT T1.user_id FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'Love Will Tear Us Apart' AND T1.rating_score = 1
Database: movie_platform
Tables: lists, movies, ratings_users, lists_users, ratings
Columns (table index, column name): -1, *, 0, user_id, 0, list_id, 0, list_title, 0, list_movie_number, 0, list_update_timestamp_utc, 0, list_creation_timestamp_utc, 0, list_followers, 0, list_url, 0, list_comments, 0, list_description, 0, list_cover_image_url, 0, list_first_image_url, 0, list_second_image_url, 0, list_third_image_url, 1, movie_id, 1, movie_title, 1, movie_release_year, 1, movie_url, 1, movie_title_language, 1, movie_popularity, 1, movie_image_url, 1, director_id, 1, director_name, 1, director_url, 2, user_id, 2, rating_date_utc, 2, user_trialist, 2, user_subscriber, 2, user_avatar_image_url, 2, user_cover_image_url, 2, user_eligible_for_trial, 2, user_has_payment_method, 3, user_id, 3, list_id, 3, list_update_date_utc, 3, list_creation_date_utc, 3, user_trialist, 3, user_subscriber, 3, user_avatar_image_url, 3, user_cover_image_url, 3, user_eligible_for_trial, 3, user_has_payment_method, 4, movie_id, 4, rating_id, 4, rating_url, 4, rating_score, 4, rating_timestamp_utc, 4, critic, 4, critic_likes, 4, critic_comments, 4, user_id, 4, user_trialist, 4, user_subscriber, 4, user_eligible_for_trial, 4, user_has_payment_method
Question: List all movies with the best rating score. State the movie title and number of Mubi user who loves the movie.
Evidence: best rating score refers to rating_score = 5; number of Mubi user who loves the movie refers to movie_popularity;
SQL: SELECT DISTINCT T2.movie_title, T2.movie_popularity FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.rating_score = 5
Database: movie_platform
Tables: lists, movies, ratings_users, lists_users, ratings
Columns (table index, column name): -1, *, 0, user_id, 0, list_id, 0, list_title, 0, list_movie_number, 0, list_update_timestamp_utc, 0, list_creation_timestamp_utc, 0, list_followers, 0, list_url, 0, list_comments, 0, list_description, 0, list_cover_image_url, 0, list_first_image_url, 0, list_second_image_url, 0, list_third_image_url, 1, movie_id, 1, movie_title, 1, movie_release_year, 1, movie_url, 1, movie_title_language, 1, movie_popularity, 1, movie_image_url, 1, director_id, 1, director_name, 1, director_url, 2, user_id, 2, rating_date_utc, 2, user_trialist, 2, user_subscriber, 2, user_avatar_image_url, 2, user_cover_image_url, 2, user_eligible_for_trial, 2, user_has_payment_method, 3, user_id, 3, list_id, 3, list_update_date_utc, 3, list_creation_date_utc, 3, user_trialist, 3, user_subscriber, 3, user_avatar_image_url, 3, user_cover_image_url, 3, user_eligible_for_trial, 3, user_has_payment_method, 4, movie_id, 4, rating_id, 4, rating_url, 4, rating_score, 4, rating_timestamp_utc, 4, critic, 4, critic_likes, 4, critic_comments, 4, user_id, 4, user_trialist, 4, user_subscriber, 4, user_eligible_for_trial, 4, user_has_payment_method
Question: For all ratings which are rated in year 2020, name the movies which has the rating scored 4 and above.
Evidence: ratings in year 2020 refers to rating_timestamp_utc like '%2020%'; rating_score > = 4;
SQL: SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE CAST(SUBSTR(T1.rating_timestamp_utc, 1, 4) AS INTEGER) = 2020 AND CAST(SUBSTR(T1.rating_timestamp_utc, 6, 2) AS INTEGER) > 4
Database: movie_platform
Tables: lists, movies, ratings_users, lists_users, ratings
Columns (table index, column name): -1, *, 0, user_id, 0, list_id, 0, list_title, 0, list_movie_number, 0, list_update_timestamp_utc, 0, list_creation_timestamp_utc, 0, list_followers, 0, list_url, 0, list_comments, 0, list_description, 0, list_cover_image_url, 0, list_first_image_url, 0, list_second_image_url, 0, list_third_image_url, 1, movie_id, 1, movie_title, 1, movie_release_year, 1, movie_url, 1, movie_title_language, 1, movie_popularity, 1, movie_image_url, 1, director_id, 1, director_name, 1, director_url, 2, user_id, 2, rating_date_utc, 2, user_trialist, 2, user_subscriber, 2, user_avatar_image_url, 2, user_cover_image_url, 2, user_eligible_for_trial, 2, user_has_payment_method, 3, user_id, 3, list_id, 3, list_update_date_utc, 3, list_creation_date_utc, 3, user_trialist, 3, user_subscriber, 3, user_avatar_image_url, 3, user_cover_image_url, 3, user_eligible_for_trial, 3, user_has_payment_method, 4, movie_id, 4, rating_id, 4, rating_url, 4, rating_score, 4, rating_timestamp_utc, 4, critic, 4, critic_likes, 4, critic_comments, 4, user_id, 4, user_trialist, 4, user_subscriber, 4, user_eligible_for_trial, 4, user_has_payment_method
Question: For all movies where users left a critic, find the movie name, user, rating and critics comments from the user.
Evidence: movies where users left a critic refers to critic IS NOT NULL; critic comments refers to critic;
SQL: SELECT T2.movie_title, T1.user_id, T1.rating_score, T1.critic FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.critic IS NOT NULL
Database: movie_platform
Tables: lists, movies, ratings_users, lists_users, ratings
Columns (table index, column name): -1, *, 0, user_id, 0, list_id, 0, list_title, 0, list_movie_number, 0, list_update_timestamp_utc, 0, list_creation_timestamp_utc, 0, list_followers, 0, list_url, 0, list_comments, 0, list_description, 0, list_cover_image_url, 0, list_first_image_url, 0, list_second_image_url, 0, list_third_image_url, 1, movie_id, 1, movie_title, 1, movie_release_year, 1, movie_url, 1, movie_title_language, 1, movie_popularity, 1, movie_image_url, 1, director_id, 1, director_name, 1, director_url, 2, user_id, 2, rating_date_utc, 2, user_trialist, 2, user_subscriber, 2, user_avatar_image_url, 2, user_cover_image_url, 2, user_eligible_for_trial, 2, user_has_payment_method, 3, user_id, 3, list_id, 3, list_update_date_utc, 3, list_creation_date_utc, 3, user_trialist, 3, user_subscriber, 3, user_avatar_image_url, 3, user_cover_image_url, 3, user_eligible_for_trial, 3, user_has_payment_method, 4, movie_id, 4, rating_id, 4, rating_url, 4, rating_score, 4, rating_timestamp_utc, 4, critic, 4, critic_likes, 4, critic_comments, 4, user_id, 4, user_trialist, 4, user_subscriber, 4, user_eligible_for_trial, 4, user_has_payment_method
Question: For movie titled 'Welcome to the Dollhouse', how many percentage of the ratings were rated with highest score.
Evidence: rated with highest score refers to rating_score = 5; percentage = MULTIPLY(DIVIDE(SUM(rating_score = 5), COUNT(rating_score)), 100)
SQL: SELECT CAST(SUM(CASE WHEN T2.rating_score = 5 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_title = 'Welcome to the Dollhouse'
Database: movie_platform
Tables: lists, movies, ratings_users, lists_users, ratings
Columns (table index, column name): -1, *, 0, user_id, 0, list_id, 0, list_title, 0, list_movie_number, 0, list_update_timestamp_utc, 0, list_creation_timestamp_utc, 0, list_followers, 0, list_url, 0, list_comments, 0, list_description, 0, list_cover_image_url, 0, list_first_image_url, 0, list_second_image_url, 0, list_third_image_url, 1, movie_id, 1, movie_title, 1, movie_release_year, 1, movie_url, 1, movie_title_language, 1, movie_popularity, 1, movie_image_url, 1, director_id, 1, director_name, 1, director_url, 2, user_id, 2, rating_date_utc, 2, user_trialist, 2, user_subscriber, 2, user_avatar_image_url, 2, user_cover_image_url, 2, user_eligible_for_trial, 2, user_has_payment_method, 3, user_id, 3, list_id, 3, list_update_date_utc, 3, list_creation_date_utc, 3, user_trialist, 3, user_subscriber, 3, user_avatar_image_url, 3, user_cover_image_url, 3, user_eligible_for_trial, 3, user_has_payment_method, 4, movie_id, 4, rating_id, 4, rating_url, 4, rating_score, 4, rating_timestamp_utc, 4, critic, 4, critic_likes, 4, critic_comments, 4, user_id, 4, user_trialist, 4, user_subscriber, 4, user_eligible_for_trial, 4, user_has_payment_method
Question: What is the percentage of rated movies were released in year 2021?
Evidence: percentage = DIVIDE(SUM(movie_release_year = 2021), COUNT(rating_id)) as percent; movies released in year 2021 refers to movie_release_year = 2021;
SQL: SELECT CAST(SUM(CASE WHEN T1.movie_release_year = 2021 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id