db_id
stringclasses 69
values | question
stringlengths 24
325
| evidence
stringlengths 0
673
| SQL
stringlengths 23
804
| question_id
int64 0
9.43k
| difficulty
stringclasses 1
value |
---|---|---|---|---|---|
movie_platform | Name movie titles released in year 1945. Sort the listing by the descending order of movie popularity. | released in the year 1945 refers to movie_release_year = 1945; | SELECT movie_title FROM movies WHERE movie_release_year = 1945 ORDER BY movie_popularity DESC LIMIT 1 | 0 | |
movie_platform | State the most popular movie? When was it released and who is the director for the movie? | 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; | SELECT movie_title, movie_release_year, director_name FROM movies ORDER BY movie_popularity DESC LIMIT 1 | 1 | |
movie_platform | What is the name of the longest movie title? When was it released? | longest movie title refers to MAX(LENGTH(movie_title)); when it was released refers to movie_release_year; | SELECT movie_title, movie_release_year FROM movies ORDER BY LENGTH(movie_popularity) DESC LIMIT 1 | 2 | |
movie_platform | Name the movie with the most ratings. | movie with the most rating refers to MAX(SUM(rating_score)); | SELECT movie_title FROM movies GROUP BY movie_title ORDER BY COUNT(movie_title) DESC LIMIT 1 | 3 | |
movie_platform | What is the average number of Mubi users who love movies directed by Stanley Kubrick? | average = AVG(movie_popularity); number of Mubi users who loves the movie refers to movie_popularity; | SELECT AVG(movie_popularity) FROM movies WHERE director_name = 'Stanley Kubrick' | 4 | |
movie_platform | What is the average rating for movie titled 'When Will I Be Loved'? | average rating = DIVIDE((SUM(rating_score where movie_title = 'When Will I Be Loved')), COUNT(rating_score)); | 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' | 5 | |
movie_platform | What is the user avatar url for user 41579158? What is the latest movie rated by him / her? | user avatar url refers to user_avatar_image_url; latest movie rated refers to latest rating_date; | 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 | 6 | |
movie_platform | What is the percentage of the ratings were rated by user who was a subcriber? | user is a subscriber refers to user_subscriber = 1; percentage of ratings = DIVIDE(SUM(user_subscriber = 1), SUM(rating_score)) as percent; | SELECT CAST(SUM(CASE WHEN user_subscriber = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM ratings | 7 | |
movie_platform | List all movie title rated in April 2020 from user who was a trialist. | movie title rated in April 2020 refers to rating_timestamp_utc LIKE '%2020-04-%'; user is a trial list refers to user_trialist = 1; | 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%' | 8 | |
movie_platform | List ther users who gave the worst rating for movie 'Love Will Tear Us Apart'. | worst rating refers to rating_score = 1; | 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 | 9 | |
movie_platform | List all movies with the best rating score. State the movie title and number of Mubi user who loves the movie. | best rating score refers to rating_score = 5; number of Mubi user who loves the movie refers to movie_popularity; | 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 | 10 | |
movie_platform | For all ratings which are rated in year 2020, name the movies which has the rating scored 4 and above. | ratings in year 2020 refers to rating_timestamp_utc like '%2020%'; rating_score > = 4; | 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 | 11 | |
movie_platform | For all movies where users left a critic, find the movie name, user, rating and critics comments from the user. | movies where users left a critic refers to critic IS NOT NULL; critic comments refers to critic; | 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 | 12 | |
movie_platform | For movie titled 'Welcome to the Dollhouse', how many percentage of the ratings were rated with highest score. | rated with highest score refers to rating_score = 5; percentage = MULTIPLY(DIVIDE(SUM(rating_score = 5), COUNT(rating_score)), 100) | 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' | 13 | |
movie_platform | What is the percentage of rated movies were released in year 2021? | percentage = DIVIDE(SUM(movie_release_year = 2021), COUNT(rating_id)) as percent; movies released in year 2021 refers to movie_release_year = 2021; | 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 | 14 | |
movie_platform | Who is the director of the movie Sex, Drink and Bloodshed? | Sex, Drink and Bloodshed refers to movie title = 'Sex, Drink and Bloodshed'; | SELECT director_name FROM movies WHERE movie_title = 'Sex, Drink and Bloodshed' | 15 | |
movie_platform | What is the name of the most followed list? | most followed list refers to MAX(list_followers); | SELECT list_title FROM lists ORDER BY list_followers DESC LIMIT 1 | 16 | |
movie_platform | What are the URL to the list page on Mubi of the lists with followers between 1-2 and whose last update timestamp was on 2012? | URL to the list page on Mubi refers to list_url; list_followers = 1 OR list_followers = 2; last update timestamp was on 2012 refers to list_update_timestamp_utc BETWEEN '2012-1-1' AND '2012-12-31'; | SELECT list_url FROM lists WHERE list_update_timestamp_utc LIKE '2012%' AND list_followers BETWEEN 1 AND 2 ORDER BY list_update_timestamp_utc DESC LIMIT 1 | 17 | |
movie_platform | What is the list ID that was first created by user 85981819? | first created list refers to oldest list_creation_date_utc; | SELECT list_id FROM lists_users WHERE user_id = 85981819 ORDER BY list_creation_date_utc ASC LIMIT 1 | 18 | |
movie_platform | For movie id 1269, how many users, who was a paying subscriber and was eligible for trial when he rated the movie, gave the movie a rating score of less than or equal to 2? | paying subscriber refers to user_has_payment_method = 1; eligible for trial refers to user_eligible_for_trial = 1; rating_score< = 2; | SELECT COUNT(*) FROM ratings WHERE movie_id = 1269 AND rating_score <= 2 AND user_eligible_for_trial = 1 AND user_has_payment_method = 1 | 19 | |
movie_platform | What are the movie popularity of the movies released in 2021 that were directed by Steven Spielberg? List the names of the movies and their corresponding popularity. | movie released in 2021 refers to movie_release_year = 2021; popularity refers to movie_popularity; | SELECT movie_title, movie_popularity FROM movies WHERE movie_release_year = 2021 AND director_name = 'Steven Spielberg' | 20 | |
movie_platform | When was the first movie released and who directed it? | first movie refers to oldest movie_release_year; | SELECT movie_release_year, director_name FROM movies WHERE movie_release_year IS NOT NULL ORDER BY movie_release_year ASC LIMIT 1 | 21 | |
movie_platform | What is the user ID of the user, who was a subscriber when he created the list, who created a list for 10 consecutive years? If there are multiple users, indicate each of their user IDs. | user was a subscriber when he created the list refers to user_subscriber = 1; user who created a list for 10 consecutive years refers to user_id with list_creation_date_utc for 10 succeeding years; | SELECT user_id FROM lists_users WHERE user_subscriber = 1 GROUP BY user_id HAVING MAX(SUBSTR(list_creation_date_utc, 1, 4)) - MIN(SUBSTR(list_creation_date_utc, 1, 4)) >= 10 | 22 | |
movie_platform | How many users gave "Pavee Lackeen: The Traveller Girl" movie a rating score of 4? | FALSE; | SELECT COUNT(T2.user_id) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_title = 'Pavee Lackeen: The Traveller Girl' AND T2.rating_score = 4 | 23 | |
movie_platform | Was the user who created the "World War 2 and Kids" list eligible for trial when he created the list? Indicate how many followers does the said list has. | user was eligible for trial when he created the list refers to user_eligible_for_trial = 1; number of followers a list have refers to list_followers; | SELECT T2.user_eligible_for_trial, T1.list_followers FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.user_id = T1.user_id AND T1.list_id = T2.list_id WHERE T1.list_title = 'World War 2 and Kids' | 24 | |
movie_platform | Which year was the third movie directed by Quentin Tarantino released? Indicate the user ids of the user who gave it a rating score of 4. | third movie refers to third movie that has oldest movie_release_year; | SELECT T2.movie_release_year, T1.user_id FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_id = ( SELECT movie_id FROM movies WHERE director_name = 'Quentin Tarantino' ORDER BY movie_release_year ASC LIMIT 2, 1 ) AND T1.rating_score = 4 | 25 | |
movie_platform | What is the URL to the movie director page on Mubi of the director whose movie was critic by user 2452551 and was given 39 likes? | URL to the movie director page on Mubi refers to director_url; likes refers to critic_likes; critic_likes = 39; | SELECT T2.director_url FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.user_id = 2452551 AND T1.critic_likes = 39 | 26 | |
movie_platform | What is the average rating score of the movie "When Will I Be Loved" and who was its director? | average rating score = AVG(rating_score); | SELECT AVG(T1.rating_score), T2.director_name 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' | 27 | |
movie_platform | How many movies were added to the list with the most number of movies? Indicate whether the user was a paying subscriber or not when he created the list. | list with the most number of movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list; user_has_payment_method = 0 means the user was not a paying subscriber when he created the list; | SELECT T1.list_movie_number, T2.user_has_payment_method FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id ORDER BY T1.list_movie_number DESC LIMIT 1 | 28 | |
movie_platform | What is the name of the movie whose critic received the highest number of likes related to the critic made by the user rating the movie? | number of likes received refers to critic likes; received the highest number of likes refers to MAX(critic_likes); | 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 1 | 29 | |
movie_platform | How much is the popularity of the movie that has the highest popularity between 1920 to 1929 and when did the movie received its first rating score of 1 from the users who were a paying subscriber when they rated the movie ? | movie with highest popularity refers to MAX(movie_popularity); movie_release_year BETWEEN 1920 AND 1929; when the movie received its first rating score of 1 refers to oldest date in rating_timestamp_utc where rating score = 1; user was a paying subscriber when they rated the movie refers to user_has_payment_method = 1; | SELECT MAX(T2.movie_popularity), MIN(T1.rating_timestamp_utc) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_release_year BETWEEN 1920 AND 1929 AND T1.rating_score = 1 AND T1.user_has_payment_method = 1 | 30 | |
movie_platform | How many movies directed by Francis Ford Coppola have a popularity of more than 1,000? Indicate what is the highest amount of likes that each critic per movie has received, if there's any. | Francis Ford Coppola refers to director_name; popularity of more than 1,000 refers to movie_popularity >1000;highest amount of likes that each critic per movie has received refers to MAX(critic_likes) | SELECT COUNT(T2.movie_title), T1.critic FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.director_name = 'Francis Ford Coppola' AND T2.movie_popularity > 1000 | 31 | |
movie_platform | What is the URL to the user profile image on Mubi of the user who gave the movie id of 1103 a 5 ratinng score on 4/19/2020? | URL to the user profile image on Mubi refers to user_avatar_image_url; 4/19/2020 refers to rating_date_utc | SELECT T2.user_avatar_image_url FROM ratings AS T1 INNER JOIN ratings_users AS T2 ON T1.user_id = T2.user_id WHERE T2.user_id = 1103 AND rating_score = 5 AND T2.rating_date_utc = '2020-04-19' | 32 | |
movie_platform | Among the lists created by user 4208563, which one has the highest number of followers? Indicate how many followers it has and whether the user was a subscriber or not when he created the list. | User 4208563 refers to user_id;highest number of followers refers to MAX(list_followers); user_subscriber = 1 means that the user was a subscriber when he created the list; user_subscriber = 0 means the user was not a subscriber when he created the list (to replace) | SELECT T1.list_followers, T2.user_subscriber = 1 FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.user_id = T2.user_id AND T2.list_id = T2.list_id WHERE T2.user_id = 4208563 ORDER BY T1.list_followers DESC LIMIT 1 | 33 | |
movie_platform | Which year has the least number of movies that was released and what is the title of the movie in that year that has the highest number of rating score of 1? | least number of movies refers to MIN(movie_release_year); highest rating score refers to MAX(SUM(movie_id) where rating_score = '1')
| SELECT DISTINCT T1.movie_release_year, T1.movie_title FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_release_year = ( SELECT movie_release_year FROM movies GROUP BY movie_release_year ORDER BY COUNT(movie_id) DESC LIMIT 1 ) AND T2.rating_score = 1 | 34 | |
movie_platform | How many users, who were a paying subscriber when they rated the movie, gave the movie that was released in 1924 and directed by Erich von Stroheim a rating score of 5? | Directed by Buster Keaton refers to director_name; released in 1924 refers to movie_release_year = 1924; paying subscriber refers to user_has_payment_method = 1
| SELECT COUNT(T2.user_id) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_release_year = 1924 AND T1.director_name = 'Erich von Stroheim' AND T2.rating_score = 5 AND T2.user_has_payment_method = 1 | 35 | |
movie_platform | What is the average number of movies added to the lists of user 8516503? Give the user profile image URL on Mubi. | user profile image URL refers to user_avatar_image_url; user 8516503 refers to user_id; Average refers to AVG(list_movie_number where user_id = 8516503)
| SELECT AVG(T1.list_movie_number), 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 T2.user_id = 8516503 | 36 | |
movie_platform | How many users rated the movie "The Magnificent Ambersons" gave a rating score of no more than 2? List all the URL to the rating on Mubi. | The Magnificent Ambersons refers to movie_title; rating score of no more than 2 refers to rating_score<2; URL to rating refers to rating_url | SELECT COUNT(T2.user_id), T2.rating_url FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_title = 'The Magnificent Ambersons' AND T2.rating_score <= 2 | 37 | |
movie_platform | How many users who created a list in the February of 2016 were eligible for trial when they created the list? Indicate the user id of the user who has the most number of followers in his list in February of 2016. | created a list in the February of 2016 refer to list_creation_date_utc BETWEEN 2/1/2016 and 2/29/2016; eligible for trial refers to user_eligible_for_trial = 1;
| SELECT T1.list_followers FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.user_id = T2.user_id AND T1.list_id = T2.list_id WHERE T2.list_creation_date_utc BETWEEN '2016-02-01' AND '2016-02-29' AND T2.user_eligible_for_trial = 1 | 38 | |
movie_platform | What is the URL to the rating on Mubi of the Riff-Raff movie that was given the highest rating score by user 22030372? | URL refer to rating_url; user 22030372 refer to user_id | SELECT T2.rating_url FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T2.user_id = 22030372 AND T2.rating_score = 5 AND T1.movie_title = 'Riff-Raff' | 39 | |
movie_platform | How many directors have directed atleast 10 movies between 1960 to 1985? Indicate the name of the movie in those years of each director that received the highest amount of 5 rating score. | directed at least 10 movies refers to count(direct_name)>10; 1960 to 1985 refer to movie_release_year
| SELECT T2.director_name FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_release_year BETWEEN 1960 AND 1985 GROUP BY T2.director_name HAVING COUNT(T2.movie_id) > 10 | 40 | |
movie_platform | How many users, who were not a a trialist when they rated the movie, gave the movie "The South" a rating score of not more than 2? | not a trialist refer to user_trialist = 0; rating score of not more than 2 refer to rating_score <2; The South refers to movie_title
| SELECT COUNT(T2.user_id) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T2.user_trialist = 0 AND T2.rating_score <= 2 AND T1.movie_title = 'The South' | 41 | |
movie_platform | How many likes did the critic of the movie "Apocalypse Now" received after giving the movie a rating score of 5? | Apocalypse Now refer to movie_title; rating score refer to rating_score = '5';likes received refers to critic_likes
| SELECT T2.critic_likes FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T2.user_trialist = 0 AND T2.rating_score = 5 AND T1.movie_title = 'Apocalypse Now' | 42 | |
movie_platform | What is the average rating score of the movie "The Crowd" and who was its director? | director refer to director_name; The Crowd refer to movie_title; Average refer to AVG(rating_score) | SELECT AVG(T2.rating_score), T1.director_name FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_title = 'The Crowd' | 43 | |
movie_platform | When was the first movie of the director who directed the highest number of movies released and what is the user id of the user who received the highest number of comments related to the critic made by the user rating the movie? | comments refer to critic_comments | SELECT MIN(movie_release_year) FROM movies WHERE director_name = ( SELECT T2.director_name FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_release_year BETWEEN 1960 AND 1985 GROUP BY T2.director_name ORDER BY COUNT(T2.director_name) DESC LIMIT 1 ) | 44 | |
movie_platform | How many movies have a popularity of more than 400 but less than 500? Indicate the name of the movies and the highest rating score each movie has received. | popularity of more than 400 but less than 500 refers to movie_popularity BETWEEN 400 AND 500; highest rating score refer to MAX(rating_score)
| SELECT T1.movie_title, MAX(T2.rating_score) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_popularity BETWEEN 400 AND 500 GROUP BY T1.movie_title | 45 | |
movie_platform | What is the URL to the rating on Mubi made by user 45579900 for the movie "The Vertical Ray of the Sun" that received 20 likes? | URL refer to rating_url; 20 likes refer to critic_likes = ’20’; user 45579900 refer to user_id | SELECT T2.rating_url FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T2.user_id = 45579900 AND T1.movie_title = 'The Vertical Ray of the Sun' AND T2.critic_likes = 20 | 46 | |
movie_platform | What is the average popularity of each movie that was directed by Christopher Nolan? Indicate which movie directed by him has received the highest number of 5 rating scores. | 5 rating scores refer to rating_score; Christopher Nolan refer to director_name; average popularity of each movie refer to AVG(movie_popularity where director_name = 'Christopher Nolan') | SELECT AVG(T2.movie_popularity) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.director_name = 'Christopher Nolan' | 47 | |
movie_platform | What are the names of the movie that was rated by the user between 1/1/2013 to 12/31/2013 by the user who created the list "100 Greatest Living American Filmmakers"? Calculate for the average rating score of those movies in 2013. | Between 1/1/2013 to 12/31/2013 refer to rating_timestamp_utc; 100 Greatest Living American Filmmakers refer to list_title; average rating score refer to DIVIDE( ADD(rating_score where rating_timestamp_utc = '1/1/2013-12/31/2013'), COUNT(rating_timestamp_utc = '1/1/2013-12/31/2013')) | 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 T1.rating_timestamp_utc BETWEEN '2013-01-01' AND '2013-12-31' AND T3.list_title = '100 Greatest Living American Filmmakers' | 48 | |
movie_platform | What is the average rating score of the 'Pavee Lackeen: The Traveller Girl' movie and what year was it released? | year it was released refers to movie_release_year; average rating score refers to AVG(rating_score where movie_title = 'Final Destination 6'); Final Destination 6 refers to movie_title | SELECT AVG(T1.rating_score), T2.movie_release_year FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'Pavee Lackeen: The Traveller Girl' | 49 | |
movie_platform | How many movie lists were still updated 10 years after it was created? | updated 10 years after it was created refers to list_update_timestamp_utc > (list_creation_timestamp_utc+10); | SELECT COUNT(*) FROM lists WHERE SUBSTR(list_update_timestamp_utc, 1, 4) - SUBSTR(list_creation_timestamp_utc, 1, 4) > 10 | 50 | |
movie_platform | What's the description for the movie list "Short and pretty damn sweet"? | Short and pretty damn sweet is list_title; description refers to list_description; | SELECT list_description FROM lists WHERE list_title = 'Short and pretty damn sweet' | 51 | |
movie_platform | Where can I find the movie list "Short and pretty damn sweet"? | Short and pretty damn sweet is list_title; location of the movie refers to list_url; | SELECT list_url FROM lists WHERE list_title = 'Short and pretty damn sweet' | 52 | |
movie_platform | Among the movie lists created after 2010/1/1, how many of them have over 200 followers? | created after 2010/1/1 refers to list_update_timestamp_utc>'2010/1/1'; over 200 followers refers to list_followers>200; | SELECT COUNT(*) FROM lists WHERE list_followers > 200 AND list_update_timestamp_utc > '2010-01-01' | 53 | |
movie_platform | How many movie lists were created by user 83373278 when he or she was a subscriber? | the user was a subscriber when he created the list refers to user_subscriber = 1; user 83373278 refers to user_id = 83373278; | SELECT COUNT(*) FROM lists_users WHERE user_id = 83373278 AND user_subscriber = 1 | 54 | |
movie_platform | In which year was the movie "La Antena" released? | movie La Antena refers to movie_title = 'La Antena'; which year refers to movie_release_year; | SELECT movie_release_year FROM movies WHERE movie_title = 'La Antena' | 55 | |
movie_platform | Please give me the url of the movie "La Antena". | movie La Antena refers to movie_title = 'La Antena'; url refers to movie_url; | SELECT movie_url FROM movies WHERE movie_title = 'La Antena' | 56 | |
movie_platform | Which movie is more popular, "The General" or "Il grido"? | The General and Il grido are movie_title; more popular movie refers to higher (movie_popularity); | SELECT movie_title FROM movies WHERE movie_title = 'The General' OR movie_title = 'Il grido' ORDER BY movie_popularity DESC LIMIT 1 | 57 | |
movie_platform | How many movies registered on Mubi are directed by Hong Sang-soo? | Hong Sang-soo is the name of director; | SELECT COUNT(movie_id) FROM movies WHERE director_name = 'Hong Sang-soo' | 58 | |
movie_platform | Was the user who created the list "250 Favourite Films" a trialist when he or she created the list? | the user was a trialist when he created the list refers to user_trailist = 1; 250 Favourite Films is list_title; | 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' | 59 | |
movie_platform | Please list the titles of the movie lists user 32172230 created when he or she was eligible for trial. | 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; | 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 | 60 | |
movie_platform | How many movie lists with over 100 movies had user 85981819 created when he or she was a paying subscriber? | 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; | 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 | 61 | |
movie_platform | What's the description of user 85981819's movie list with the most followers? | user 85981819 refers to user_id = 85981819; most followers refers to Max(list_followers); description refers to list_descriptions; | 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 | 62 | |
movie_platform | When did the creator of the list "250 Favourite Films" last updated a movie list? | 250 Favourite Films refers to list_title; last update refers to list_update_date_utc; | 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 | 63 | |
movie_platform | What's the avatar image of the user who created the movie list "250 Favourite Films"? | 250 Favourite Films refers to list_title; avatar image refers to user_avatar_image_url; | 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' | 64 | |
movie_platform | How many more movie lists were created by the user who created the movie list "250 Favourite Films"? | 250 Favourite Films refers to list_title; | SELECT COUNT(list_id) FROM lists_users WHERE user_id = ( SELECT user_id FROM lists WHERE list_title = '250 Favourite Films' ) | 65 | |
movie_platform | How many users liked the movie "A Way of Life" to the highest extent? | like the movie highest to the extent refers to rating_score = 5; A Way of Life refers to movie_title; | 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 | 66 | |
movie_platform | Please list all the critics made by the user rating the movie "A Way of Life". | A Way of Life refers to movie_title; | 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' | 67 | |
movie_platform | How many critics of the movie "Imitation of Life" got more than 1 like? | Imitation of Life refers to movie_title; critics got more than 1 like refers to critic_likes >1; | 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 | 68 | |
movie_platform | Which user made a critic for the film "When Will I Be Loved" and got 2 comments for the critic? | When Will I Be Loved refers to movie_title; 2 comments for the critic refers to critic_comments = 2; | 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 | 69 | |
movie_platform | When did user 39115684 rate the movie "A Way of Life"? | A Way of Life' refers to movie_title; user 39115684 refers to userid = 39115684; when the user rate refers to rating_timestamp_utc; | 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 | 70 | |
movie_platform | What's the url of user 39115684's rating on the movie 'When Will I Be Loved'? | A Way of Life refers to movie_title; user 39115684 refers to userid = 39115684; url refers to rating_url; | 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 | 71 | |
movie_platform | Was user 39115684 a trialist when he or she rated the movie "A Way of Life"? | 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; | 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 | 72 | |
movie_platform | How many users were trialists when they rated the movie "A Way of Life"? | A Way of Life' refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1; | 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 | 73 | |
movie_platform | Please list all the links to the ratings on the movie "A Way of Life" with a critic. | 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; | 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 | 74 | |
movie_platform | How many users have rated the most popular movie? | most popular refers to Max(movie_popularity); | SELECT COUNT(rating_id) FROM ratings WHERE movie_id = ( SELECT movie_id FROM movies ORDER BY movie_popularity DESC LIMIT 1 ) | 75 | |
movie_platform | User 58149469's critic on which film got 1 like and 2 comments? | 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; | 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 | 76 | |
movie_platform | 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? | 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; | 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 | 77 | |
movie_platform | How many ratings on the movie "A Way of Life" are made after the year 2011? | A Way of Life' is movie_title; rating after the year 2011 refers to rating_timestamp_utc > '2011'; | 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' | 78 | |
movie_platform | What's of rating on the movie "Innocence Unprotected" by the user who created the movie list "250 Favourite Films"? | Innocence Unprotected' is movie_title; '250 Favourite Films' is list_title; rating refers to rating_score; | 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' | 79 | |
movie_platform | Please list the movies rated by the user who created the movie list "250 Favourite Films". | 250 Favourite Films' is list_title; movies refers to movie_title; | 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' | 80 | |
movie_platform | What's the average rating score of the movie "A Way of Life"? | A Way of Life' is movie_title; average rating score = Divide (Sum(rating_score), Count(rating_id)); | 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' | 81 | |
movie_platform | What's the percentage of the users who have rated "1" on the movie "When Will I Be Loved"? | 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; | 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' | 82 | |
movie_platform | How much higher is the average rating score of the movie "Innocence Unprotected" than the movie "When Will I Be Loved"? | Innocence Unprotected' and 'When Will I Be Loved' are movie_title; Average rating score = Divide(Sum(rating_score), Count(rating_id)); | 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 | 83 | |
movie_platform | Who was the director of the movie "Tokyo Eyes"? | Tokyo Eyes' is movie_title, director refers to director_name; | SELECT director_name FROM movies WHERE movie_title = 'Tokyo Eyes' | 84 | |
movie_platform | How many films were released in 2007? | film released in 2007 refers to movie_release_year = 2007; film refers to movie | SELECT COUNT(*) FROM movies WHERE movie_release_year = 2007 | 85 | |
movie_platform | Which of the films released in 2006 was the most popular among Mubi users? | released in 2006 refers to movie_release_year = 2006; most popular refers to Max(movie_popularity); film refers to movie; | SELECT movie_title FROM movies WHERE movie_release_year = 2006 ORDER BY movie_popularity DESC LIMIT 1 | 86 | |
movie_platform | How many films did Åke Sandgren direct? | Ake Sandgren is the director name; film refers to movie | SELECT COUNT(movie_title) FROM movies WHERE director_name = 'Åke Sandgren' | 87 | |
movie_platform | Which of the films directed by Álex de la Iclesia is the most popular among Mubi users? | Alex de la Iclesia is the director name; the most popular refers to Max(movie_popularity); films refers to movies; | SELECT movie_title FROM movies WHERE director_name = 'Åke Sandgren' ORDER BY movie_popularity DESC LIMIT 1 | 88 | |
movie_platform | When was the movie Cops released? | Cops' is movie_title; released refers to movie_release_year; | SELECT movie_release_year FROM movies WHERE movie_title = 'Cops' | 89 | |
movie_platform | Please list the id of the director of the movie "It's Winter". | It's Winter' is movie_title; | SELECT director_id FROM movies WHERE movie_title = 'It''s Winter' | 90 | |
movie_platform | Please provide the ID of the user with the most followers on the list. | most followers refers to Max(list_followers); | SELECT user_id FROM lists ORDER BY list_followers DESC LIMIT 1 | 91 | |
movie_platform | Please provide the title of the list with the most comments on the list. | the most comments refers to Max(list_comments); | SELECT list_title FROM lists GROUP BY list_title ORDER BY COUNT(list_comments) DESC LIMIT 1 | 92 | |
movie_platform | Which of the film released in 2008 scored the highest? | film released in 2008 refers to movie_release_year = 2008; scored the highest refers to Max(rating_score); film refers to movie; | 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 | 93 | |
movie_platform | 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. | likes related to the critic made by the user rating the movie refers to critic_likes; top refers to Max(critic_likes); | 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 | 94 | |
movie_platform | How many users have more than 100 followers in the list created by users in 2009? | more than 100 followers refers to list_followers >100; list created by the user in 2009 refers to list_creation_date_utc = '2009'; | 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%' | 95 | |
movie_platform | How many users in Mubi give the movie "White Night Wedding for 5"? | White Night Wedding' is movie_title; for 5 refers to rating_score = 5; | 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' | 96 | |
movie_platform | What's the cover image of the user who created the movie list 'Georgia related films'? | Play it cool' is list_title; cover image of user refers to user_cover_image_url; | 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' | 97 | |
movie_platform | 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? | followers refers to list_followers; | 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' | 98 | |
movie_platform | Please list the names of the movies that user 94978 scored as 5. | user 94978 refers to user_id = 94978; scored as 5 refers to rating_score = 5; | 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 | 99 |
End of preview. Expand
in Dataset Viewer.
README.md exists but content is empty.
Use the Edit dataset card button to edit it.
- Downloads last month
- 75