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: How many users were not trialists when they rated the movie "Patti Smith: Dream of Life"?
Evidence: Patti Smith: Dream of Life' is movie_title; the user was not a trialist when he created the list refers to user_trialist = 0;
SQL: SELECT COUNT(T1.user_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'Patti Smith: Dream of Life' AND T1.user_trialist = 0
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: Which movie has the highest average score in Mubi?
Evidence: Highest average score refers to Max(Avg(rating_score));
SQL: SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id GROUP BY T2.movie_title ORDER BY SUM(T1.rating_score) / COUNT(T1.rating_id) 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: Please list the names of the top three movies in the number comments related to the critic made by the user rating the movie.
Evidence: number of comments related to the critic made by the user rating the movie refers to critic_comments; top movie refers to Max(critic_comments);
SQL: SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id ORDER BY T1.critic_comments DESC LIMIT 3
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 was the title of the first list created by a user 85981819? And please provide the user_avatar_image_url.
Evidence: user 85981819 refers to user_id = 85981819;  first list created refers to Min (list_creation_date_utc);
SQL: SELECT T2.list_title, T1.user_avatar_image_url FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T1.user_id = 85981819 ORDER BY T2.list_creation_timestamp_utc 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: Please list the names of the movies that have been rated the most times in 2020.
Evidence: in 2020 refers to rating_timestamp_utc = '2020%'; rated the most times refers to Max(Count(movie_title));
SQL: SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.rating_timestamp_utc LIKE '2020%' GROUP BY T2.movie_title ORDER BY COUNT(T2.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 score for the movie Versailles Rive-Gauche?
Evidence: Versailles Rive-Gauche' is movie_title; average score refers to Avg(rating_score);
SQL: SELECT AVG(T1.rating_score) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title LIKE 'Versailles Rive-Gauche'
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: Which film rated by user 59988436 that received 21 comments?
Evidence: user 59988436 refers to user_id = 59988436; received 21 comments refers to critic_comments = 21; film refers to movie;
SQL: SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.user_id = 59988436 AND T1.critic_comments = 21
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: Please list the names of the movies that received more than 20 likes?
Evidence: received more than 20 likes refers to critic_likes>20;
SQL: SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.critic_likes > 20
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 score of the movie "The Fall of Berlin" in 2019?
Evidence: The Fall of Berlin' is movie_title; in 2019 refers to rating_timestamp_utc = 2019; Average score refers to Avg(rating_score);
SQL: SELECT SUM(T1.rating_score) / COUNT(T1.rating_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.rating_timestamp_utc LIKE '2019%' AND T2.movie_title LIKE 'The Fall of Berlin'
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 percentage of users rated the movie "Patti Smith: Dream of Life" by more than 3?
Evidence: Patti Smith: Dream of Life' is movie_title; more than 3 refers to rating_score >3; percentage = Divide(Count(rating_score where rating_score >3), Count(rating_score))*100
SQL: SELECT CAST(SUM(CASE WHEN T1.rating_score > 3 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.rating_score) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title LIKE 'Patti Smith: Dream of Life'
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: Which of the film directed by director Abbas Kiarostami has the highest average score?
Evidence: Abbas Kiarostami' is director_name; the highest Average score refers to Max(Avg(rating_score));
SQL: SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.director_name = 'Abbas Kiarostami' GROUP BY T2.movie_title ORDER BY SUM(T1.rating_score) / COUNT(T1.rating_id) 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: Which year had the most released films?
Evidence: year refers to movie_release_year; most release films refers to MAX(COUNT(movie_id))


SQL: SELECT movie_release_year FROM movies GROUP BY movie_release_year ORDER BY COUNT(movie_id) 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: Who is the director that made the most movies? Give the director's id.
Evidence: director that made the most movies refers to MAX(COUNT(movie_id))
SQL: SELECT director_id FROM movies GROUP BY director_id ORDER BY COUNT(movie_id) 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: How many movies did the director of the highest movie popularity make?
Evidence: highest movie popularity refers to MAX(movie_popularity)
SQL: SELECT COUNT(movie_id) FROM movies WHERE director_id = ( SELECT director_id 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's the number of the paying subscribers when rating a movie after the year 2014?
Evidence: paying subscribers refers to user_has_payment_method = 1; rating a movie after the year 2014 refers to rating_date_utc>'2014%'
SQL: SELECT COUNT(user_subscriber) FROM ratings_users WHERE user_has_payment_method = 1 AND rating_date_utc > '2014%'