db_id stringclasses 69
values | schema stringclasses 69
values | m_schema stringclasses 69
values | question stringlengths 24 325 | sql stringlengths 23 804 | evidence stringlengths 0 673 |
|---|---|---|---|---|---|
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | Name movie titles released in year 1945. Sort the listing by the descending order of movie popularity. | SELECT movie_title FROM movies WHERE movie_release_year = 1945 ORDER BY movie_popularity DESC LIMIT 1 | released in the year 1945 refers to movie_release_year = 1945; |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | State the most popular movie? When was it released and who is the director for the movie? | SELECT movie_title, movie_release_year, director_name FROM movies ORDER BY movie_popularity DESC LIMIT 1 | 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; |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | What is the name of the longest movie title? When was it released? | SELECT movie_title, movie_release_year FROM movies ORDER BY LENGTH(movie_popularity) DESC LIMIT 1 | longest movie title refers to MAX(LENGTH(movie_title)); when it was released refers to movie_release_year; |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | Name the movie with the most ratings. | SELECT movie_title FROM movies GROUP BY movie_title ORDER BY COUNT(movie_title) DESC LIMIT 1 | movie with the most rating refers to MAX(SUM(rating_score)); |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | What is the average number of Mubi users who love movies directed by Stanley Kubrick? | SELECT AVG(movie_popularity) FROM movies WHERE director_name = 'Stanley Kubrick' | average = AVG(movie_popularity); number of Mubi users who loves the movie refers to movie_popularity; |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | What is the average rating for movie titled 'When Will I Be Loved'? | 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' | average rating = DIVIDE((SUM(rating_score where movie_title = 'When Will I Be Loved')), COUNT(rating_score)); |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | What is the user avatar url for user 41579158? What is the latest movie rated by him / her? | 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 | user avatar url refers to user_avatar_image_url; latest movie rated refers to latest rating_date; |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | What is the percentage of the ratings were rated by user who was a subcriber? | SELECT CAST(SUM(CASE WHEN user_subscriber = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM ratings | user is a subscriber refers to user_subscriber = 1; percentage of ratings = DIVIDE(SUM(user_subscriber = 1), SUM(rating_score)) as percent; |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | List all movie title rated in April 2020 from user who was a trialist. | 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%' | movie title rated in April 2020 refers to rating_timestamp_utc LIKE '%2020-04-%'; user is a trial list refers to user_trialist = 1; |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | List ther users who gave the worst rating for movie 'Love Will Tear Us Apart'. | 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 | worst rating refers to rating_score = 1; |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | List all movies with the best rating score. State the movie title and number of Mubi user who loves the movie. | 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 | best rating score refers to rating_score = 5; number of Mubi user who loves the movie refers to movie_popularity; |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | For all ratings which are rated in year 2020, name the movies which has the rating scored 4 and above. | 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 | ratings in year 2020 refers to rating_timestamp_utc like '%2020%'; rating_score > = 4; |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | For all movies where users left a critic, find the movie name, user, rating and critics comments from the user. | 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 | movies where users left a critic refers to critic IS NOT NULL; critic comments refers to critic; |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | For movie titled 'Welcome to the Dollhouse', how many percentage of the ratings were rated with highest score. | 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' | rated with highest score refers to rating_score = 5; percentage = MULTIPLY(DIVIDE(SUM(rating_score = 5), COUNT(rating_score)), 100) |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | What is the percentage of rated movies were released in 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 | percentage = DIVIDE(SUM(movie_release_year = 2021), COUNT(rating_id)) as percent; movies released in year 2021 refers to movie_release_year = 2021; |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | Who is the director of the movie Sex, Drink and Bloodshed? | SELECT director_name FROM movies WHERE movie_title = 'Sex, Drink and Bloodshed' | Sex, Drink and Bloodshed refers to movie title = 'Sex, Drink and Bloodshed'; |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | What is the name of the most followed list? | SELECT list_title FROM lists ORDER BY list_followers DESC LIMIT 1 | most followed list refers to MAX(list_followers); |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | 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? | 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 | 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'; |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | What is the list ID that was first created by user 85981819? | SELECT list_id FROM lists_users WHERE user_id = 85981819 ORDER BY list_creation_date_utc ASC LIMIT 1 | first created list refers to oldest list_creation_date_utc; |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | 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? | SELECT COUNT(*) FROM ratings WHERE movie_id = 1269 AND rating_score <= 2 AND user_eligible_for_trial = 1 AND user_has_payment_method = 1 | paying subscriber refers to user_has_payment_method = 1; eligible for trial refers to user_eligible_for_trial = 1; rating_score< = 2; |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | 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. | SELECT movie_title, movie_popularity FROM movies WHERE movie_release_year = 2021 AND director_name = 'Steven Spielberg' | movie released in 2021 refers to movie_release_year = 2021; popularity refers to movie_popularity; |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | When was the first movie released and who directed it? | SELECT movie_release_year, director_name FROM movies WHERE movie_release_year IS NOT NULL ORDER BY movie_release_year ASC LIMIT 1 | first movie refers to oldest movie_release_year; |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | 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. | 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 | 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; |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | How many users gave "Pavee Lackeen: The Traveller Girl" movie a rating score of 4? | 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 | FALSE; |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | 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. | 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' | 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; |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | 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. | 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 | third movie refers to third movie that has oldest movie_release_year; |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | 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? | 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 | URL to the movie director page on Mubi refers to director_url; likes refers to critic_likes; critic_likes = 39; |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | What is the average rating score of the movie "When Will I Be Loved" and who was its director? | 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' | average rating score = AVG(rating_score); |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | 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. | 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 | 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; |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | 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? | 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 | number of likes received refers to critic likes; received the highest number of likes refers to MAX(critic_likes); |
movie_platform | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... | 【DB_ID】 movie_platform
【Schema】
# Table: main.lists
[
(user_id:INTEGER, Examples: [88260493, 45204418, 48905025]),
(list_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(list_title:TEXT, Examples: [Films that made your kid sister cry]),
(list_movie_number:INTEGER, Examples: [5, 3, 7]),
(list_update_timestamp_utc:TEXT, E... | 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 ? | 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 | 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; |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 19