Chinastark/bird_dataset huggingface dataset:
Database: movie_platform
Question: Where can I find the movie list "Short and pretty damn sweet"?
Evidence: Short and pretty damn sweet is list_title; location of the movie refers to list_url;
SQL: SELECT list_url FROM lists WHERE list_title = 'Short and pretty damn sweet'
Database: movie_platform
Question: Among the movie lists created after 2010/1/1, how many of them have over 200 followers?
Evidence: created after 2010/1/1 refers to list_update_timestamp_utc>'2010/1/1'; over 200 followers refers to list_followers>200;
SQL: SELECT COUNT(*) FROM lists WHERE list_followers > 200 AND list_update_timestamp_utc > '2010-01-01'
Database: movie_platform
Question: How many movie lists were created by user 83373278 when he or she was a subscriber?
Evidence: the user was a subscriber when he created the list refers to user_subscriber = 1; user 83373278 refers to user_id = 83373278;
SQL: SELECT COUNT(*) FROM lists_users WHERE user_id = 83373278 AND user_subscriber = 1
Database: movie_platform
Question: In which year was the movie "La Antena" released?
Evidence: movie La Antena refers to movie_title = 'La Antena'; which year refers to movie_release_year;
SQL: SELECT movie_release_year FROM movies WHERE movie_title = 'La Antena'
Database: movie_platform
Question: Please give me the url of the movie "La Antena".
Evidence: movie La Antena refers to movie_title = 'La Antena'; url refers to movie_url;
SQL: SELECT movie_url FROM movies WHERE movie_title = 'La Antena'
Database: movie_platform
Question: Which movie is more popular, "The General" or "Il grido"?
Evidence: The General and Il grido are movie_title; more popular movie refers to higher (movie_popularity);
SQL: SELECT movie_title FROM movies WHERE movie_title = 'The General' OR movie_title = 'Il grido' ORDER BY movie_popularity DESC LIMIT 1
Database: movie_platform
Question: How many movies registered on Mubi are directed by Hong Sang-soo?
Evidence: Hong Sang-soo is the name of director;
SQL: SELECT COUNT(movie_id) FROM movies WHERE director_name = 'Hong Sang-soo'
Database: movie_platform
Question: Was the user who created the list "250 Favourite Films" a trialist when he or she created the list?
Evidence: the user was a trialist when he created the list refers to user_trailist = 1; 250 Favourite Films is list_title;
SQL: SELECT T2.user_trialist FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id AND T1.user_id = T2.user_id WHERE T1.list_title = '250 Favourite Films'
Database: movie_platform
Question: Please list the titles of the movie lists user 32172230 created when he or she was eligible for trial.
Evidence: the user was eligible for trail when he created the list refers to user_eligile_for_trail = 1; user 32172230 refers to user_id = 32172230;
SQL: SELECT T1.list_title FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id AND T1.user_id = T2.user_id WHERE T1.user_id = 32172230 AND T2.user_eligible_for_trial = 1
Database: movie_platform
Question: How many movie lists with over 100 movies had user 85981819 created when he or she was a paying subscriber?
Evidence: the user was a paying subscriber when he created the list refers to user_has_payment_method = 1;  movie lists with over 100 refers to list_movie_number >100;  user 85981819 refers to user_id = 85981819;
SQL: SELECT COUNT(*) FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id AND T1.user_id = T2.user_id WHERE T1.user_id = 85981819 AND T1.list_movie_number > 100 AND T2.user_has_payment_method = 1
Database: movie_platform
Question: What's the description of user 85981819's movie list with the most followers?
Evidence: user 85981819 refers to user_id = 85981819; most followers refers to Max(list_followers); description refers to list_descriptions;
SQL: SELECT T1.list_description FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id AND T1.user_id = T2.user_id WHERE T1.user_id = 85981819 ORDER BY T1.list_followers DESC LIMIT 1
Database: movie_platform
Question: When did the creator of the list "250 Favourite Films" last updated a movie list?
Evidence: 250 Favourite Films refers to list_title; last update refers to list_update_date_utc;
SQL: SELECT T2.list_update_date_utc FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id AND T1.user_id = T2.user_id WHERE T1.list_title = '250 Favourite Films' ORDER BY T2.list_update_date_utc DESC LIMIT 1
Database: movie_platform
Question: What's the avatar image of the user who created the movie list "250 Favourite Films"?
Evidence: 250 Favourite Films refers to list_title; avatar image refers to user_avatar_image_url;
SQL: SELECT T2.user_avatar_image_url FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id AND T1.user_id = T2.user_id WHERE T1.list_title = '250 Favourite Films'
Database: movie_platform
Question: How many more movie lists were created by the user who created the movie list "250 Favourite Films"?
Evidence: 250 Favourite Films refers to list_title;
SQL: SELECT COUNT(list_id) FROM lists_users WHERE user_id = ( SELECT user_id FROM lists WHERE list_title = '250 Favourite Films' )
Database: movie_platform
Question: How many users liked the movie "A Way of Life" to the highest extent?
Evidence: like the movie highest to the extent refers to rating_score = 5; A Way of Life refers to movie_title;
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 = 'A Way of Life' AND T1.rating_score = 5
Database: movie_platform
Question: Please list all the critics made by the user rating the movie "A Way of Life".
Evidence: A Way of Life refers to movie_title;
SQL: SELECT T1.critic FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'A Way of Life'
Database: movie_platform
Question: How many critics of the movie "Imitation of Life" got more than 1 like?
Evidence: Imitation of Life refers to movie_title; critics got more than 1 like refers to critic_likes >1;
SQL: SELECT COUNT(*) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'Imitation of Life' AND T1.critic_likes > 1
Database: movie_platform
Question: Which user made a critic for the film "When Will I Be Loved" and got 2 comments for the critic?
Evidence: When Will I Be Loved refers to movie_title;  2 comments for the critic refers to critic_comments = 2;
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 = 'When Will I Be Loved' AND T1.critic_comments = 2
Database: movie_platform
Question: When did user 39115684 rate the movie "A Way of Life"?
Evidence: A Way of Life' refers to movie_title; user 39115684 refers to userid = 39115684;  when the user rate refers to rating_timestamp_utc;
SQL: SELECT T1.rating_score FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'A Way of Life' AND T1.user_id = 39115684
Database: movie_platform
Question: What's the url of user 39115684's rating on the movie 'When Will I Be Loved'?
Evidence: A Way of Life refers to movie_title; user 39115684 refers to userid = 39115684;  url refers to rating_url;
SQL: SELECT T1.rating_url FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'A Way of Life' AND T1.user_id = 39115684
Database: movie_platform
Question: Was user 39115684 a trialist when he or she rated the movie "A Way of Life"?
Evidence: A Way of Life' refers to movie_title; user 39115684 refers to userid = 39115684;  the user was a trialist when he rated the movie refers to user_trialist = 1;
SQL: SELECT T1.user_trialist FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'A Way of Life' AND T1.user_id = 39115684
Database: movie_platform
Question: How many users were trialists when they rated the movie "A Way of Life"?
Evidence: A Way of Life' refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;
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 = 'When Will I Be Loved' AND T1.user_trialist = 1
Database: movie_platform
Question: Please list all the links to the ratings on the movie "A Way of Life" with a critic.
Evidence: A Way of Life' refers to movie_title; with a critic refers to critic is not null, links to the ratings refers to rating_url;
SQL: SELECT T1.rating_url FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'A Way of Life' AND T1.critic IS NOT NULL
Database: movie_platform
Question: How many users have rated the most popular movie?
Evidence: most popular refers to Max(movie_popularity);
SQL: SELECT COUNT(rating_id) FROM ratings WHERE movie_id = ( SELECT movie_id FROM movies ORDER BY movie_popularity DESC LIMIT 1 )
Database: movie_platform
Question: User 58149469's critic on which film got 1 like and 2 comments?
Evidence: user 58149469 refers to user_id = 58149469; critic with 1 like refers to critic_likes = 1; critic with 2 comments refers to critic_comments = 2;
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 = 58149469 AND T1.critic_likes = 1 AND T1.critic_comments = 2
Database: movie_platform
Question: Among the users who are trailists when rating the movie "When Will I Be Loved", how many of them have rated "1" on the movie?
Evidence: When Will I Be Loved refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;rated 1 on the movie refers to rating_score = 1;
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 = 'When Will I Be Loved' AND T1.rating_score = 1 AND T1.user_trialist = 1
Database: movie_platform
Question: How many ratings on the movie "A Way of Life" are made after the year 2011?
Evidence: A Way of Life' is movie_title; rating after the year 2011 refers to rating_timestamp_utc > '2011';
SQL: SELECT COUNT(T1.rating_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'A Way of Life' AND T1.rating_timestamp_utc >= '2012-01-01'
Database: movie_platform
Question: What's of rating on the movie "Innocence Unprotected" by the user who created the movie list "250 Favourite Films"?
Evidence: Innocence Unprotected' is movie_title; '250 Favourite Films' is list_title; rating refers to rating_score;
SQL: SELECT T1.rating_score FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id INNER JOIN lists AS T3 ON T3.user_id = T1.user_id WHERE T2.movie_title = 'Innocence Unprotected' AND T3.list_title = '250 Favourite Films'
Database: movie_platform
Question: Please list the movies rated by the user who created the movie list "250 Favourite Films".
Evidence: 250 Favourite Films' is list_title; movies refers to movie_title;
SQL: SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id INNER JOIN lists AS T3 ON T3.user_id = T1.user_id WHERE T3.list_title = '250 Favourite Films'
Database: movie_platform
Question: What's the average rating score of the movie "A Way of Life"?
Evidence: A Way of Life' is movie_title; average rating score = Divide (Sum(rating_score), Count(rating_id));
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 = 'A Way of Life'
Database: movie_platform
Question: What's the percentage of the users who have rated "1" on the movie "When Will I Be Loved"?
Evidence: When Will I Be Loved' is movie_title; rated 1 refers to rating_score = 1; percentage = Divide(Count(rating_id where rating_score = 1),Count(rating_id)) *100;
SQL: SELECT CAST(SUM(CASE WHEN T1.rating_score = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'When Will I Be Loved'
Database: movie_platform
Question: How much higher is the average rating score of the movie "Innocence Unprotected" than the movie "When Will I Be Loved"?
Evidence: Innocence Unprotected' and 'When Will I Be Loved' are movie_title; Average rating score = Divide(Sum(rating_score), Count(rating_id));
SQL: SELECT SUM(CASE WHEN T2.movie_title = 'Innocence Unprotected' THEN T1.rating_score ELSE 0 END) / SUM(CASE WHEN T2.movie_title = 'Innocence Unprotected' THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.movie_title = 'When Will I Be Loved' THEN T1.rating_score ELSE 0 END) / SUM(CASE WHEN T2.movie_title = 'When Will I Be Loved' THEN 1 ELSE 0 END) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id
Database: movie_platform
Question: Who was the director of the movie "Tokyo Eyes"？
Evidence: Tokyo Eyes' is movie_title, director refers to director_name;
SQL: SELECT director_name FROM movies WHERE movie_title = 'Tokyo Eyes'
Database: movie_platform
Question: How many films were released in 2007?
Evidence: film released in 2007 refers to movie_release_year = 2007; film refers to movie
SQL: SELECT COUNT(*) FROM movies WHERE movie_release_year = 2007
Database: movie_platform
Question: Which of the films released in 2006 was the most popular among Mubi users?
Evidence: released in 2006 refers to movie_release_year = 2006; most popular refers to Max(movie_popularity); film refers to movie;
SQL: SELECT movie_title FROM movies WHERE movie_release_year = 2006 ORDER BY movie_popularity DESC LIMIT 1
Database: movie_platform
Question: How many films did Åke Sandgren direct?
Evidence: Ake Sandgren is the director name;  film refers to movie
SQL: SELECT COUNT(movie_title) FROM movies WHERE director_name = 'Åke Sandgren'
Database: movie_platform
Question: Which of the films directed by Álex de la Iclesia is the most popular among Mubi users?
Evidence: Alex de la Iclesia is the director name; the most popular refers to Max(movie_popularity); films refers to movies;
SQL: SELECT movie_title FROM movies WHERE director_name = 'Åke Sandgren' ORDER BY movie_popularity DESC LIMIT 1
Database: movie_platform
Question: When was the movie Cops released?
Evidence: Cops' is movie_title; released refers to movie_release_year;
SQL: SELECT movie_release_year FROM movies WHERE movie_title = 'Cops'
Database: movie_platform
Question: Please list the id of the director of the movie "It's Winter".
Evidence: It's Winter' is movie_title;
SQL: SELECT director_id FROM movies WHERE movie_title = 'It''s Winter'
Database: movie_platform
Question: Please provide the ID of the user with the most followers on the list.
Evidence: most followers refers to Max(list_followers);
SQL: SELECT user_id FROM lists ORDER BY list_followers DESC LIMIT 1
Database: movie_platform
Question: Please provide the title of the list with the most comments on the list.
Evidence: the most comments refers to Max(list_comments);
SQL: SELECT list_title FROM lists GROUP BY list_title ORDER BY COUNT(list_comments) DESC LIMIT 1
Database: movie_platform
Question: Which of the film released in 2008 scored the highest?
Evidence: film released in 2008 refers to movie_release_year = 2008; scored the highest refers to Max(rating_score); 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 T2.movie_release_year = 2008 ORDER BY T1.rating_score DESC LIMIT 1
Database: movie_platform
Question: Please list the names of the top three movies in the number of likes related to the critic made by the user rating the movie.
Evidence: likes related to the critic made by the user rating the movie refers to critic_likes; top refers to Max(critic_likes);
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_likes DESC LIMIT 3
Database: movie_platform
Question: How many users have more than 100 followers in the list created by users in 2009?
Evidence: more than 100 followers refers to list_followers >100;  list created by the user in 2009 refers to list_creation_date_utc = '2009';
SQL: SELECT COUNT(T1.user_id) FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_followers > 100 AND T1.list_creation_date_utc LIKE '2009%'
Database: movie_platform
Question: How many users in Mubi give the movie "White Night Wedding for 5"?
Evidence: White Night Wedding' is movie_title; for 5 refers to rating_score = 5;
SQL: SELECT COUNT(T1.user_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.rating_score = 5 AND T2.movie_title = 'White Night Wedding'
Database: movie_platform
Question: What's the cover image of the user who created the movie list 'Georgia related films'?
Evidence: Play it cool' is list_title; cover image of user refers to user_cover_image_url;
SQL: SELECT T1.user_cover_image_url FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_title LIKE 'Georgia related films'
Database: movie_platform
Question: How many followers does the list created by the user whose user_avatar_image_url is https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?1523895214 have?
Evidence: followers refers to list_followers;
SQL: SELECT SUM(T2.list_followers) FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T1.user_avatar_image_url = 'https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?1523895214'
Database: movie_platform
Question: Please list the names of the movies that user 94978 scored as 5.
Evidence: user 94978 refers to user_id = 94978; scored as 5 refers to rating_score = 5;
SQL: SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.rating_score = 5 AND T1.user_id = 94978
Database: movie_platform
Question: Please list the names of the films released in 2003 among the films scored by user 2941 .
Evidence: released in 2003 refers to movie_release_year = 2003; user 2941 refers to user_id = 2941; 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 T2.movie_release_year = 2003 AND T1.user_id = 2941
Database: movie_platform
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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%'
Database: movie_platform
Question: Who was the earliest user created a list but didn't get any followers? Give the user ID.
Evidence: earliest user created a list refers to MIN(list_creation_date_utc); didn't get any followers refers to user_subscriber = 0
SQL: SELECT user_id FROM lists_users WHERE user_subscriber = 0 ORDER BY list_creation_date_utc LIMIT 1