Dataset Viewer
Auto-converted to Parquet Duplicate
context_id
stringclasses
64 values
question_id
stringlengths
1
4
question_prompt_info
dict
eval_info
dict
movie_platform
142
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null primary key,\n\tlist_title TEXT, -- Example Values: `('Films that made your kid sister cry',)`, `('Headscratchers',)`, `('Sexy Time Movies',)` | Value Statics: Total count 79565 - Distinct count 58898 - Null count 0 | Column Description: Name of the list \n\tlist_movie_number INTEGER, -- Example Values: `(5,)`, `(3,)`, `(7,)` | Value Statics: Total count 79565 - Distinct count 907 - Null count 0 | Column Description: Number of movies added to the list \n\tlist_update_timestamp_utc TEXT, -- Example Values: `('2019-01-24 19:16:18',)`, `('2018-12-03 15:12:20',)`, `('2019-05-30 03:00:07',)` | Value Statics: Total count 79565 - Distinct count 69576 - Null count 0 | Column Description: Last update timestamp for the list \n\tlist_creation_timestamp_utc TEXT, -- Example Values: `('2009-11-11 00:02:21',)`, `('2009-11-11 00:05:11',)`, `('2009-11-11 00:20:00',)` | Value Statics: Total count 79565 - Distinct count 79499 - Null count 0 | Column Description: Creation timestamp for the list \n\tlist_followers INTEGER, -- Example Values: `(5,)`, `(1,)`, `(6,)` | Value Statics: Total count 79565 - Distinct count 400 - Null count 0 | Column Description: Number of followers on the list \n\tlist_url TEXT, -- | Column Description: URL to the list page on Mubi \n\tlist_comments INTEGER, -- Example Values: `(3,)`, `(2,)`, `(5,)` | Value Statics: Total count 79565 - Distinct count 76 - Null count 0 | Column Description: Number of comments on the list \n\tlist_description TEXT, -- | Column Description: List description made by the user \n\tlist_cover_image_url TEXT, -- \n\tlist_first_image_url TEXT, -- \n\tlist_second_image_url TEXT, -- \n\tlist_third_image_url TEXT, -- \n);\n\nCREATE TABLE movies\n(\n\tmovie_id INTEGER not null primary key,\n\tmovie_title TEXT, -- Example Values: `('La Antena',)`, `('Elementary Particles',)`, `(\"It's Winter\",)` | Value Statics: Total count 100000 - Distinct count 91630 - Null count 0 | Column Description: Name of the movie \n\tmovie_release_year INTEGER, -- Example Values: `(2007,)`, `(2006,)`, `(2005,)` | Value Statics: Total count 99998 - Distinct count 135 - Null count 2 | Column Description: Release year of the movie \n\tmovie_url TEXT, -- Example Values: `('http://mubi.com/films/la-antena',)`, `('http://mubi.com/films/elementary-particles',)`, `('http://mubi.com/films/its-winter',)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 | Column Description: URL to the movie page on Mubi \n\tmovie_title_language TEXT, -- Example Values: `en` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0 | Column Description: By default, the title is in English. | Value Description: Only contains one value which is 'en'\n\tmovie_popularity INTEGER, -- Example Values: `(105,)`, `(23,)`, `(21,)` | Value Statics: Total count 100000 - Distinct count 1262 - Null count 0 | Column Description: Number of Mubi users who love this movie \n\tmovie_image_url TEXT, -- | Column Description: Image URL to the movie on Mubi \n\tdirector_id TEXT, -- Example Values: `('131',)`, `('73',)`, `('82',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: ID related to the movie director on Mubi \n\tdirector_name TEXT, -- Example Values: `('Esteban Sapir',)`, `('Oskar Roehler',)`, `('Rafi Pitts',)` | Value Statics: Total count 99997 - Distinct count 40150 - Null count 3 | Column Description: Full Name of the movie director \n\tdirector_url TEXT, -- Example Values: `('http://mubi.com/cast/esteban-sapir',)`, `('http://mubi.com/cast/oskar-roehler',)`, `('http://mubi.com/cast/rafi-pitts',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: URL to the movie director page on Mubi \n);\n\nCREATE TABLE ratings_users\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(41579158,)`, `(68654088,)`, `(84114365,)` | Value Statics: Total count 100000 - Distinct count 44084 - Null count 0 | Column Description: ID related to the user rating the movie \n\trating_date_utc TEXT, -- Example Values: `('2017-06-10',)`, `('2012-10-02',)`, `('2010-12-25',)` | Value Statics: Total count 100000 - Distinct count 4143 - Null count 0 | Column Description: Rating date for the movie rating. | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a trialist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he rated the movie | Value Description: 1 = the user was a subscriber when he rated the movie 0 = the user was not a subscriber when he rated the movie\n\tuser_avatar_image_url TEXT, -- | Column Description: URL to the user profile image on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: URL to the user profile cover image on Mubi \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he rated the movie | Value Description: 1 = the user was eligible for trial when he rated the movie 0 = the user was not eligible for trial when he rated the movie\n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he rated the movie | Value Description: 1 = the user was a paying subscriber when he rated the movie 0 = the user was not a paying subscriber when he rated\n);\n\nCREATE TABLE lists_users\n(\n\tuser_id INTEGER not null, -- Example Values: `(2385,)`, `(15264,)`, `(15344,)` | Value Statics: Total count 80311 - Distinct count 23118 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null, -- Example Values: `(192287,)`, `(192313,)`, `(192318,)` | Value Statics: Total count 80311 - Distinct count 80311 - Null count 0 | Column Description: ID of the list on Mubi \n\tlist_update_date_utc TEXT, -- Example Values: `('2019-11-26',)`, `('2020-05-01',)`, `('2020-04-12',)` | Value Statics: Total count 80311 - Distinct count 3801 - Null count 0 | Column Description: Last update date for the list | Value Description: YYYY-MM-DD\n\tlist_creation_date_utc TEXT, -- Example Values: `('2009-12-18',)`, `('2010-01-30',)`, `('2010-03-31',)` | Value Statics: Total count 80311 - Distinct count 3798 - Null count 0 | Column Description: Creation date for the list | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a tralist when he created the list | Value Description: 1 = the user was a trialist when he created the list 0 = the user was not a trialist when he created the list\n\tuser_subscriber INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he created the list | Value Description: 1 = the user was a subscriber when he created the list 0 = the user was not a subscriber when he created the list\n\tuser_avatar_image_url TEXT, -- | Column Description: User profile image URL on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: User profile cover image URL on Mubi \n\tuser_eligible_for_trial TEXT, -- Example Values: `0`, `1` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he created the list | Value Description: 1 = the user was eligible for trial when he created the list 0 = the user was not eligible for trial when he created the list\n\tuser_has_payment_method TEXT, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he created the list | Value Description: 1 = the user was a paying subscriber when he created the list 0 = the user was not a paying subscriber when he created the list\n\tprimary key (user_id, list_id),\n\tforeign key (list_id) references lists(list_id),\n\tforeign key (user_id) references lists(user_id),\n);\n\nCREATE TABLE ratings\n(\n\tmovie_id INTEGER, -- Example Values: `(1066,)`, `(1067,)`, `(1068,)` | Value Statics: Total count 100000 - Distinct count 371 - Null count 0 | Column Description: Movie ID related to the rating \n\trating_id INTEGER, -- Example Values: `(15610495,)`, `(10704606,)`, `(10177114,)` | Value Statics: Total count 100000 - Distinct count 99999 - Null count 0 | Column Description: Rating ID on Mubi \n\trating_url TEXT, -- | Column Description: URL to the rating on Mubi \n\trating_score INTEGER, -- Example Values: `3`, `2`, `4`, `5`, `1` | Value Statics: Total count 99731 - Distinct count 5 - Null count 269 | Column Description: Rating score ranging from 1 (lowest) to 5 (highest) | Value Description: The score is proportional to the user's liking. The higher the score is, the more the user likes the movie\n\trating_timestamp_utc TEXT, -- Example Values: `('2017-06-10 12:38:33',)`, `('2014-08-15 23:42:31',)`, `('2014-01-30 13:21:57',)` | Value Statics: Total count 100000 - Distinct count 99962 - Null count 0 | Column Description: Timestamp for the movie rating made by the user on Mubi \n\tcritic TEXT, -- | Column Description: Critic made by the user rating the movie. | Value Description: If value = \"None\", the user did not write a critic when rating the movie.\n\tcritic_likes INTEGER, -- Example Values: `(0,)`, `(1,)`, `(2,)` | Value Statics: Total count 100000 - Distinct count 22 - Null count 0 | Column Description: Number of likes related to the critic made by the user rating the movie \n\tcritic_comments INTEGER, -- Example Values: `(0,)`, `(2,)`, `(1,)` | Value Statics: Total count 100000 - Distinct count 15 - Null count 0 | Column Description: Number of comments related to the critic made by the user rating the movie \n\tuser_id INTEGER, -- Example Values: `(41579158,)`, `(85981819,)`, `(4208563,)` | Value Statics: Total count 100000 - Distinct count 34674 - Null count 0 | Column Description: ID related to the user rating the movie \n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether user was a tralist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tforeign key (movie_id) references movies(movie_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (rating_id) references ratings(rating_id),\n\tforeign key (user_id) references ratings_users(user_id),\n\tforeign key (user_id) references ratings_users(user_id),\n);", "question": "Provide list titles created by user who are eligible for trial when he created the list.", "evidence": "eligible for trial refers to user_eligible_for_trial = 1" }
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT DISTINCT T2.list_title FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T1.user_eligible_for_trial = 1" }
movie_platform
103
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null primary key,\n\tlist_title TEXT, -- Example Values: `('Films that made your kid sister cry',)`, `('Headscratchers',)`, `('Sexy Time Movies',)` | Value Statics: Total count 79565 - Distinct count 58898 - Null count 0 | Column Description: Name of the list \n\tlist_movie_number INTEGER, -- Example Values: `(5,)`, `(3,)`, `(7,)` | Value Statics: Total count 79565 - Distinct count 907 - Null count 0 | Column Description: Number of movies added to the list \n\tlist_update_timestamp_utc TEXT, -- Example Values: `('2019-01-24 19:16:18',)`, `('2018-12-03 15:12:20',)`, `('2019-05-30 03:00:07',)` | Value Statics: Total count 79565 - Distinct count 69576 - Null count 0 | Column Description: Last update timestamp for the list \n\tlist_creation_timestamp_utc TEXT, -- Example Values: `('2009-11-11 00:02:21',)`, `('2009-11-11 00:05:11',)`, `('2009-11-11 00:20:00',)` | Value Statics: Total count 79565 - Distinct count 79499 - Null count 0 | Column Description: Creation timestamp for the list \n\tlist_followers INTEGER, -- Example Values: `(5,)`, `(1,)`, `(6,)` | Value Statics: Total count 79565 - Distinct count 400 - Null count 0 | Column Description: Number of followers on the list \n\tlist_url TEXT, -- | Column Description: URL to the list page on Mubi \n\tlist_comments INTEGER, -- Example Values: `(3,)`, `(2,)`, `(5,)` | Value Statics: Total count 79565 - Distinct count 76 - Null count 0 | Column Description: Number of comments on the list \n\tlist_description TEXT, -- | Column Description: List description made by the user \n\tlist_cover_image_url TEXT, -- \n\tlist_first_image_url TEXT, -- \n\tlist_second_image_url TEXT, -- \n\tlist_third_image_url TEXT, -- \n);\n\nCREATE TABLE movies\n(\n\tmovie_id INTEGER not null primary key,\n\tmovie_title TEXT, -- Example Values: `('La Antena',)`, `('Elementary Particles',)`, `(\"It's Winter\",)` | Value Statics: Total count 100000 - Distinct count 91630 - Null count 0 | Column Description: Name of the movie \n\tmovie_release_year INTEGER, -- Example Values: `(2007,)`, `(2006,)`, `(2005,)` | Value Statics: Total count 99998 - Distinct count 135 - Null count 2 | Column Description: Release year of the movie \n\tmovie_url TEXT, -- Example Values: `('http://mubi.com/films/la-antena',)`, `('http://mubi.com/films/elementary-particles',)`, `('http://mubi.com/films/its-winter',)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 | Column Description: URL to the movie page on Mubi \n\tmovie_title_language TEXT, -- Example Values: `en` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0 | Column Description: By default, the title is in English. | Value Description: Only contains one value which is 'en'\n\tmovie_popularity INTEGER, -- Example Values: `(105,)`, `(23,)`, `(21,)` | Value Statics: Total count 100000 - Distinct count 1262 - Null count 0 | Column Description: Number of Mubi users who love this movie \n\tmovie_image_url TEXT, -- | Column Description: Image URL to the movie on Mubi \n\tdirector_id TEXT, -- Example Values: `('131',)`, `('73',)`, `('82',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: ID related to the movie director on Mubi \n\tdirector_name TEXT, -- Example Values: `('Esteban Sapir',)`, `('Oskar Roehler',)`, `('Rafi Pitts',)` | Value Statics: Total count 99997 - Distinct count 40150 - Null count 3 | Column Description: Full Name of the movie director \n\tdirector_url TEXT, -- Example Values: `('http://mubi.com/cast/esteban-sapir',)`, `('http://mubi.com/cast/oskar-roehler',)`, `('http://mubi.com/cast/rafi-pitts',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: URL to the movie director page on Mubi \n);\n\nCREATE TABLE ratings_users\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(41579158,)`, `(68654088,)`, `(84114365,)` | Value Statics: Total count 100000 - Distinct count 44084 - Null count 0 | Column Description: ID related to the user rating the movie \n\trating_date_utc TEXT, -- Example Values: `('2017-06-10',)`, `('2012-10-02',)`, `('2010-12-25',)` | Value Statics: Total count 100000 - Distinct count 4143 - Null count 0 | Column Description: Rating date for the movie rating. | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a trialist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he rated the movie | Value Description: 1 = the user was a subscriber when he rated the movie 0 = the user was not a subscriber when he rated the movie\n\tuser_avatar_image_url TEXT, -- | Column Description: URL to the user profile image on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: URL to the user profile cover image on Mubi \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he rated the movie | Value Description: 1 = the user was eligible for trial when he rated the movie 0 = the user was not eligible for trial when he rated the movie\n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he rated the movie | Value Description: 1 = the user was a paying subscriber when he rated the movie 0 = the user was not a paying subscriber when he rated\n);\n\nCREATE TABLE lists_users\n(\n\tuser_id INTEGER not null, -- Example Values: `(2385,)`, `(15264,)`, `(15344,)` | Value Statics: Total count 80311 - Distinct count 23118 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null, -- Example Values: `(192287,)`, `(192313,)`, `(192318,)` | Value Statics: Total count 80311 - Distinct count 80311 - Null count 0 | Column Description: ID of the list on Mubi \n\tlist_update_date_utc TEXT, -- Example Values: `('2019-11-26',)`, `('2020-05-01',)`, `('2020-04-12',)` | Value Statics: Total count 80311 - Distinct count 3801 - Null count 0 | Column Description: Last update date for the list | Value Description: YYYY-MM-DD\n\tlist_creation_date_utc TEXT, -- Example Values: `('2009-12-18',)`, `('2010-01-30',)`, `('2010-03-31',)` | Value Statics: Total count 80311 - Distinct count 3798 - Null count 0 | Column Description: Creation date for the list | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a tralist when he created the list | Value Description: 1 = the user was a trialist when he created the list 0 = the user was not a trialist when he created the list\n\tuser_subscriber INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he created the list | Value Description: 1 = the user was a subscriber when he created the list 0 = the user was not a subscriber when he created the list\n\tuser_avatar_image_url TEXT, -- | Column Description: User profile image URL on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: User profile cover image URL on Mubi \n\tuser_eligible_for_trial TEXT, -- Example Values: `0`, `1` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he created the list | Value Description: 1 = the user was eligible for trial when he created the list 0 = the user was not eligible for trial when he created the list\n\tuser_has_payment_method TEXT, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he created the list | Value Description: 1 = the user was a paying subscriber when he created the list 0 = the user was not a paying subscriber when he created the list\n\tprimary key (user_id, list_id),\n\tforeign key (list_id) references lists(list_id),\n\tforeign key (user_id) references lists(user_id),\n);\n\nCREATE TABLE ratings\n(\n\tmovie_id INTEGER, -- Example Values: `(1066,)`, `(1067,)`, `(1068,)` | Value Statics: Total count 100000 - Distinct count 371 - Null count 0 | Column Description: Movie ID related to the rating \n\trating_id INTEGER, -- Example Values: `(15610495,)`, `(10704606,)`, `(10177114,)` | Value Statics: Total count 100000 - Distinct count 99999 - Null count 0 | Column Description: Rating ID on Mubi \n\trating_url TEXT, -- | Column Description: URL to the rating on Mubi \n\trating_score INTEGER, -- Example Values: `3`, `2`, `4`, `5`, `1` | Value Statics: Total count 99731 - Distinct count 5 - Null count 269 | Column Description: Rating score ranging from 1 (lowest) to 5 (highest) | Value Description: The score is proportional to the user's liking. The higher the score is, the more the user likes the movie\n\trating_timestamp_utc TEXT, -- Example Values: `('2017-06-10 12:38:33',)`, `('2014-08-15 23:42:31',)`, `('2014-01-30 13:21:57',)` | Value Statics: Total count 100000 - Distinct count 99962 - Null count 0 | Column Description: Timestamp for the movie rating made by the user on Mubi \n\tcritic TEXT, -- | Column Description: Critic made by the user rating the movie. | Value Description: If value = \"None\", the user did not write a critic when rating the movie.\n\tcritic_likes INTEGER, -- Example Values: `(0,)`, `(1,)`, `(2,)` | Value Statics: Total count 100000 - Distinct count 22 - Null count 0 | Column Description: Number of likes related to the critic made by the user rating the movie \n\tcritic_comments INTEGER, -- Example Values: `(0,)`, `(2,)`, `(1,)` | Value Statics: Total count 100000 - Distinct count 15 - Null count 0 | Column Description: Number of comments related to the critic made by the user rating the movie \n\tuser_id INTEGER, -- Example Values: `(41579158,)`, `(85981819,)`, `(4208563,)` | Value Statics: Total count 100000 - Distinct count 34674 - Null count 0 | Column Description: ID related to the user rating the movie \n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether user was a tralist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tforeign key (movie_id) references movies(movie_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (rating_id) references ratings(rating_id),\n\tforeign key (user_id) references ratings_users(user_id),\n\tforeign key (user_id) references ratings_users(user_id),\n);", "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);" }
{ "db_mode": "train", "db_id": "movie_platform", "gt_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" }
movie_platform
136
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null primary key,\n\tlist_title TEXT, -- Example Values: `('Films that made your kid sister cry',)`, `('Headscratchers',)`, `('Sexy Time Movies',)` | Value Statics: Total count 79565 - Distinct count 58898 - Null count 0 | Column Description: Name of the list \n\tlist_movie_number INTEGER, -- Example Values: `(5,)`, `(3,)`, `(7,)` | Value Statics: Total count 79565 - Distinct count 907 - Null count 0 | Column Description: Number of movies added to the list \n\tlist_update_timestamp_utc TEXT, -- Example Values: `('2019-01-24 19:16:18',)`, `('2018-12-03 15:12:20',)`, `('2019-05-30 03:00:07',)` | Value Statics: Total count 79565 - Distinct count 69576 - Null count 0 | Column Description: Last update timestamp for the list \n\tlist_creation_timestamp_utc TEXT, -- Example Values: `('2009-11-11 00:02:21',)`, `('2009-11-11 00:05:11',)`, `('2009-11-11 00:20:00',)` | Value Statics: Total count 79565 - Distinct count 79499 - Null count 0 | Column Description: Creation timestamp for the list \n\tlist_followers INTEGER, -- Example Values: `(5,)`, `(1,)`, `(6,)` | Value Statics: Total count 79565 - Distinct count 400 - Null count 0 | Column Description: Number of followers on the list \n\tlist_url TEXT, -- | Column Description: URL to the list page on Mubi \n\tlist_comments INTEGER, -- Example Values: `(3,)`, `(2,)`, `(5,)` | Value Statics: Total count 79565 - Distinct count 76 - Null count 0 | Column Description: Number of comments on the list \n\tlist_description TEXT, -- | Column Description: List description made by the user \n\tlist_cover_image_url TEXT, -- \n\tlist_first_image_url TEXT, -- \n\tlist_second_image_url TEXT, -- \n\tlist_third_image_url TEXT, -- \n);\n\nCREATE TABLE movies\n(\n\tmovie_id INTEGER not null primary key,\n\tmovie_title TEXT, -- Example Values: `('La Antena',)`, `('Elementary Particles',)`, `(\"It's Winter\",)` | Value Statics: Total count 100000 - Distinct count 91630 - Null count 0 | Column Description: Name of the movie \n\tmovie_release_year INTEGER, -- Example Values: `(2007,)`, `(2006,)`, `(2005,)` | Value Statics: Total count 99998 - Distinct count 135 - Null count 2 | Column Description: Release year of the movie \n\tmovie_url TEXT, -- Example Values: `('http://mubi.com/films/la-antena',)`, `('http://mubi.com/films/elementary-particles',)`, `('http://mubi.com/films/its-winter',)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 | Column Description: URL to the movie page on Mubi \n\tmovie_title_language TEXT, -- Example Values: `en` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0 | Column Description: By default, the title is in English. | Value Description: Only contains one value which is 'en'\n\tmovie_popularity INTEGER, -- Example Values: `(105,)`, `(23,)`, `(21,)` | Value Statics: Total count 100000 - Distinct count 1262 - Null count 0 | Column Description: Number of Mubi users who love this movie \n\tmovie_image_url TEXT, -- | Column Description: Image URL to the movie on Mubi \n\tdirector_id TEXT, -- Example Values: `('131',)`, `('73',)`, `('82',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: ID related to the movie director on Mubi \n\tdirector_name TEXT, -- Example Values: `('Esteban Sapir',)`, `('Oskar Roehler',)`, `('Rafi Pitts',)` | Value Statics: Total count 99997 - Distinct count 40150 - Null count 3 | Column Description: Full Name of the movie director \n\tdirector_url TEXT, -- Example Values: `('http://mubi.com/cast/esteban-sapir',)`, `('http://mubi.com/cast/oskar-roehler',)`, `('http://mubi.com/cast/rafi-pitts',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: URL to the movie director page on Mubi \n);\n\nCREATE TABLE ratings_users\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(41579158,)`, `(68654088,)`, `(84114365,)` | Value Statics: Total count 100000 - Distinct count 44084 - Null count 0 | Column Description: ID related to the user rating the movie \n\trating_date_utc TEXT, -- Example Values: `('2017-06-10',)`, `('2012-10-02',)`, `('2010-12-25',)` | Value Statics: Total count 100000 - Distinct count 4143 - Null count 0 | Column Description: Rating date for the movie rating. | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a trialist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he rated the movie | Value Description: 1 = the user was a subscriber when he rated the movie 0 = the user was not a subscriber when he rated the movie\n\tuser_avatar_image_url TEXT, -- | Column Description: URL to the user profile image on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: URL to the user profile cover image on Mubi \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he rated the movie | Value Description: 1 = the user was eligible for trial when he rated the movie 0 = the user was not eligible for trial when he rated the movie\n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he rated the movie | Value Description: 1 = the user was a paying subscriber when he rated the movie 0 = the user was not a paying subscriber when he rated\n);\n\nCREATE TABLE lists_users\n(\n\tuser_id INTEGER not null, -- Example Values: `(2385,)`, `(15264,)`, `(15344,)` | Value Statics: Total count 80311 - Distinct count 23118 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null, -- Example Values: `(192287,)`, `(192313,)`, `(192318,)` | Value Statics: Total count 80311 - Distinct count 80311 - Null count 0 | Column Description: ID of the list on Mubi \n\tlist_update_date_utc TEXT, -- Example Values: `('2019-11-26',)`, `('2020-05-01',)`, `('2020-04-12',)` | Value Statics: Total count 80311 - Distinct count 3801 - Null count 0 | Column Description: Last update date for the list | Value Description: YYYY-MM-DD\n\tlist_creation_date_utc TEXT, -- Example Values: `('2009-12-18',)`, `('2010-01-30',)`, `('2010-03-31',)` | Value Statics: Total count 80311 - Distinct count 3798 - Null count 0 | Column Description: Creation date for the list | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a tralist when he created the list | Value Description: 1 = the user was a trialist when he created the list 0 = the user was not a trialist when he created the list\n\tuser_subscriber INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he created the list | Value Description: 1 = the user was a subscriber when he created the list 0 = the user was not a subscriber when he created the list\n\tuser_avatar_image_url TEXT, -- | Column Description: User profile image URL on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: User profile cover image URL on Mubi \n\tuser_eligible_for_trial TEXT, -- Example Values: `0`, `1` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he created the list | Value Description: 1 = the user was eligible for trial when he created the list 0 = the user was not eligible for trial when he created the list\n\tuser_has_payment_method TEXT, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he created the list | Value Description: 1 = the user was a paying subscriber when he created the list 0 = the user was not a paying subscriber when he created the list\n\tprimary key (user_id, list_id),\n\tforeign key (list_id) references lists(list_id),\n\tforeign key (user_id) references lists(user_id),\n);\n\nCREATE TABLE ratings\n(\n\tmovie_id INTEGER, -- Example Values: `(1066,)`, `(1067,)`, `(1068,)` | Value Statics: Total count 100000 - Distinct count 371 - Null count 0 | Column Description: Movie ID related to the rating \n\trating_id INTEGER, -- Example Values: `(15610495,)`, `(10704606,)`, `(10177114,)` | Value Statics: Total count 100000 - Distinct count 99999 - Null count 0 | Column Description: Rating ID on Mubi \n\trating_url TEXT, -- | Column Description: URL to the rating on Mubi \n\trating_score INTEGER, -- Example Values: `3`, `2`, `4`, `5`, `1` | Value Statics: Total count 99731 - Distinct count 5 - Null count 269 | Column Description: Rating score ranging from 1 (lowest) to 5 (highest) | Value Description: The score is proportional to the user's liking. The higher the score is, the more the user likes the movie\n\trating_timestamp_utc TEXT, -- Example Values: `('2017-06-10 12:38:33',)`, `('2014-08-15 23:42:31',)`, `('2014-01-30 13:21:57',)` | Value Statics: Total count 100000 - Distinct count 99962 - Null count 0 | Column Description: Timestamp for the movie rating made by the user on Mubi \n\tcritic TEXT, -- | Column Description: Critic made by the user rating the movie. | Value Description: If value = \"None\", the user did not write a critic when rating the movie.\n\tcritic_likes INTEGER, -- Example Values: `(0,)`, `(1,)`, `(2,)` | Value Statics: Total count 100000 - Distinct count 22 - Null count 0 | Column Description: Number of likes related to the critic made by the user rating the movie \n\tcritic_comments INTEGER, -- Example Values: `(0,)`, `(2,)`, `(1,)` | Value Statics: Total count 100000 - Distinct count 15 - Null count 0 | Column Description: Number of comments related to the critic made by the user rating the movie \n\tuser_id INTEGER, -- Example Values: `(41579158,)`, `(85981819,)`, `(4208563,)` | Value Statics: Total count 100000 - Distinct count 34674 - Null count 0 | Column Description: ID related to the user rating the movie \n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether user was a tralist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tforeign key (movie_id) references movies(movie_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (rating_id) references ratings(rating_id),\n\tforeign key (user_id) references ratings_users(user_id),\n\tforeign key (user_id) references ratings_users(user_id),\n);", "question": "Give the percentage of subscribers who rated who rated the movie \"G.I. Jane\".", "evidence": "movie \"G.I. Jane\" refers to movie_title = 'G.I. Jane'; subscribers refers to user_subscriber = 1; percentage refers to DIVIDE(COUNT(user_subscriber = 1),COUNT(user_subscriber))*100" }
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT CAST(SUM(CASE WHEN T3.user_subscriber = 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 INNER JOIN lists_users AS T3 ON T1.user_id = T3.user_id WHERE T2.movie_title = 'G.I. Jane'" }
movie_platform
30
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null primary key,\n\tlist_title TEXT, -- Example Values: `('Films that made your kid sister cry',)`, `('Headscratchers',)`, `('Sexy Time Movies',)` | Value Statics: Total count 79565 - Distinct count 58898 - Null count 0 | Column Description: Name of the list \n\tlist_movie_number INTEGER, -- Example Values: `(5,)`, `(3,)`, `(7,)` | Value Statics: Total count 79565 - Distinct count 907 - Null count 0 | Column Description: Number of movies added to the list \n\tlist_update_timestamp_utc TEXT, -- Example Values: `('2019-01-24 19:16:18',)`, `('2018-12-03 15:12:20',)`, `('2019-05-30 03:00:07',)` | Value Statics: Total count 79565 - Distinct count 69576 - Null count 0 | Column Description: Last update timestamp for the list \n\tlist_creation_timestamp_utc TEXT, -- Example Values: `('2009-11-11 00:02:21',)`, `('2009-11-11 00:05:11',)`, `('2009-11-11 00:20:00',)` | Value Statics: Total count 79565 - Distinct count 79499 - Null count 0 | Column Description: Creation timestamp for the list \n\tlist_followers INTEGER, -- Example Values: `(5,)`, `(1,)`, `(6,)` | Value Statics: Total count 79565 - Distinct count 400 - Null count 0 | Column Description: Number of followers on the list \n\tlist_url TEXT, -- | Column Description: URL to the list page on Mubi \n\tlist_comments INTEGER, -- Example Values: `(3,)`, `(2,)`, `(5,)` | Value Statics: Total count 79565 - Distinct count 76 - Null count 0 | Column Description: Number of comments on the list \n\tlist_description TEXT, -- | Column Description: List description made by the user \n\tlist_cover_image_url TEXT, -- \n\tlist_first_image_url TEXT, -- \n\tlist_second_image_url TEXT, -- \n\tlist_third_image_url TEXT, -- \n);\n\nCREATE TABLE movies\n(\n\tmovie_id INTEGER not null primary key,\n\tmovie_title TEXT, -- Example Values: `('La Antena',)`, `('Elementary Particles',)`, `(\"It's Winter\",)` | Value Statics: Total count 100000 - Distinct count 91630 - Null count 0 | Column Description: Name of the movie \n\tmovie_release_year INTEGER, -- Example Values: `(2007,)`, `(2006,)`, `(2005,)` | Value Statics: Total count 99998 - Distinct count 135 - Null count 2 | Column Description: Release year of the movie \n\tmovie_url TEXT, -- Example Values: `('http://mubi.com/films/la-antena',)`, `('http://mubi.com/films/elementary-particles',)`, `('http://mubi.com/films/its-winter',)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 | Column Description: URL to the movie page on Mubi \n\tmovie_title_language TEXT, -- Example Values: `en` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0 | Column Description: By default, the title is in English. | Value Description: Only contains one value which is 'en'\n\tmovie_popularity INTEGER, -- Example Values: `(105,)`, `(23,)`, `(21,)` | Value Statics: Total count 100000 - Distinct count 1262 - Null count 0 | Column Description: Number of Mubi users who love this movie \n\tmovie_image_url TEXT, -- | Column Description: Image URL to the movie on Mubi \n\tdirector_id TEXT, -- Example Values: `('131',)`, `('73',)`, `('82',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: ID related to the movie director on Mubi \n\tdirector_name TEXT, -- Example Values: `('Esteban Sapir',)`, `('Oskar Roehler',)`, `('Rafi Pitts',)` | Value Statics: Total count 99997 - Distinct count 40150 - Null count 3 | Column Description: Full Name of the movie director \n\tdirector_url TEXT, -- Example Values: `('http://mubi.com/cast/esteban-sapir',)`, `('http://mubi.com/cast/oskar-roehler',)`, `('http://mubi.com/cast/rafi-pitts',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: URL to the movie director page on Mubi \n);\n\nCREATE TABLE ratings_users\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(41579158,)`, `(68654088,)`, `(84114365,)` | Value Statics: Total count 100000 - Distinct count 44084 - Null count 0 | Column Description: ID related to the user rating the movie \n\trating_date_utc TEXT, -- Example Values: `('2017-06-10',)`, `('2012-10-02',)`, `('2010-12-25',)` | Value Statics: Total count 100000 - Distinct count 4143 - Null count 0 | Column Description: Rating date for the movie rating. | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a trialist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he rated the movie | Value Description: 1 = the user was a subscriber when he rated the movie 0 = the user was not a subscriber when he rated the movie\n\tuser_avatar_image_url TEXT, -- | Column Description: URL to the user profile image on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: URL to the user profile cover image on Mubi \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he rated the movie | Value Description: 1 = the user was eligible for trial when he rated the movie 0 = the user was not eligible for trial when he rated the movie\n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he rated the movie | Value Description: 1 = the user was a paying subscriber when he rated the movie 0 = the user was not a paying subscriber when he rated\n);\n\nCREATE TABLE lists_users\n(\n\tuser_id INTEGER not null, -- Example Values: `(2385,)`, `(15264,)`, `(15344,)` | Value Statics: Total count 80311 - Distinct count 23118 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null, -- Example Values: `(192287,)`, `(192313,)`, `(192318,)` | Value Statics: Total count 80311 - Distinct count 80311 - Null count 0 | Column Description: ID of the list on Mubi \n\tlist_update_date_utc TEXT, -- Example Values: `('2019-11-26',)`, `('2020-05-01',)`, `('2020-04-12',)` | Value Statics: Total count 80311 - Distinct count 3801 - Null count 0 | Column Description: Last update date for the list | Value Description: YYYY-MM-DD\n\tlist_creation_date_utc TEXT, -- Example Values: `('2009-12-18',)`, `('2010-01-30',)`, `('2010-03-31',)` | Value Statics: Total count 80311 - Distinct count 3798 - Null count 0 | Column Description: Creation date for the list | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a tralist when he created the list | Value Description: 1 = the user was a trialist when he created the list 0 = the user was not a trialist when he created the list\n\tuser_subscriber INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he created the list | Value Description: 1 = the user was a subscriber when he created the list 0 = the user was not a subscriber when he created the list\n\tuser_avatar_image_url TEXT, -- | Column Description: User profile image URL on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: User profile cover image URL on Mubi \n\tuser_eligible_for_trial TEXT, -- Example Values: `0`, `1` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he created the list | Value Description: 1 = the user was eligible for trial when he created the list 0 = the user was not eligible for trial when he created the list\n\tuser_has_payment_method TEXT, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he created the list | Value Description: 1 = the user was a paying subscriber when he created the list 0 = the user was not a paying subscriber when he created the list\n\tprimary key (user_id, list_id),\n\tforeign key (list_id) references lists(list_id),\n\tforeign key (user_id) references lists(user_id),\n);\n\nCREATE TABLE ratings\n(\n\tmovie_id INTEGER, -- Example Values: `(1066,)`, `(1067,)`, `(1068,)` | Value Statics: Total count 100000 - Distinct count 371 - Null count 0 | Column Description: Movie ID related to the rating \n\trating_id INTEGER, -- Example Values: `(15610495,)`, `(10704606,)`, `(10177114,)` | Value Statics: Total count 100000 - Distinct count 99999 - Null count 0 | Column Description: Rating ID on Mubi \n\trating_url TEXT, -- | Column Description: URL to the rating on Mubi \n\trating_score INTEGER, -- Example Values: `3`, `2`, `4`, `5`, `1` | Value Statics: Total count 99731 - Distinct count 5 - Null count 269 | Column Description: Rating score ranging from 1 (lowest) to 5 (highest) | Value Description: The score is proportional to the user's liking. The higher the score is, the more the user likes the movie\n\trating_timestamp_utc TEXT, -- Example Values: `('2017-06-10 12:38:33',)`, `('2014-08-15 23:42:31',)`, `('2014-01-30 13:21:57',)` | Value Statics: Total count 100000 - Distinct count 99962 - Null count 0 | Column Description: Timestamp for the movie rating made by the user on Mubi \n\tcritic TEXT, -- | Column Description: Critic made by the user rating the movie. | Value Description: If value = \"None\", the user did not write a critic when rating the movie.\n\tcritic_likes INTEGER, -- Example Values: `(0,)`, `(1,)`, `(2,)` | Value Statics: Total count 100000 - Distinct count 22 - Null count 0 | Column Description: Number of likes related to the critic made by the user rating the movie \n\tcritic_comments INTEGER, -- Example Values: `(0,)`, `(2,)`, `(1,)` | Value Statics: Total count 100000 - Distinct count 15 - Null count 0 | Column Description: Number of comments related to the critic made by the user rating the movie \n\tuser_id INTEGER, -- Example Values: `(41579158,)`, `(85981819,)`, `(4208563,)` | Value Statics: Total count 100000 - Distinct count 34674 - Null count 0 | Column Description: ID related to the user rating the movie \n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether user was a tralist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tforeign key (movie_id) references movies(movie_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (rating_id) references ratings(rating_id),\n\tforeign key (user_id) references ratings_users(user_id),\n\tforeign key (user_id) references ratings_users(user_id),\n);", "question": "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 ?", "evidence": "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;" }
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "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_platform
98
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null primary key,\n\tlist_title TEXT, -- Example Values: `('Films that made your kid sister cry',)`, `('Headscratchers',)`, `('Sexy Time Movies',)` | Value Statics: Total count 79565 - Distinct count 58898 - Null count 0 | Column Description: Name of the list \n\tlist_movie_number INTEGER, -- Example Values: `(5,)`, `(3,)`, `(7,)` | Value Statics: Total count 79565 - Distinct count 907 - Null count 0 | Column Description: Number of movies added to the list \n\tlist_update_timestamp_utc TEXT, -- Example Values: `('2019-01-24 19:16:18',)`, `('2018-12-03 15:12:20',)`, `('2019-05-30 03:00:07',)` | Value Statics: Total count 79565 - Distinct count 69576 - Null count 0 | Column Description: Last update timestamp for the list \n\tlist_creation_timestamp_utc TEXT, -- Example Values: `('2009-11-11 00:02:21',)`, `('2009-11-11 00:05:11',)`, `('2009-11-11 00:20:00',)` | Value Statics: Total count 79565 - Distinct count 79499 - Null count 0 | Column Description: Creation timestamp for the list \n\tlist_followers INTEGER, -- Example Values: `(5,)`, `(1,)`, `(6,)` | Value Statics: Total count 79565 - Distinct count 400 - Null count 0 | Column Description: Number of followers on the list \n\tlist_url TEXT, -- | Column Description: URL to the list page on Mubi \n\tlist_comments INTEGER, -- Example Values: `(3,)`, `(2,)`, `(5,)` | Value Statics: Total count 79565 - Distinct count 76 - Null count 0 | Column Description: Number of comments on the list \n\tlist_description TEXT, -- | Column Description: List description made by the user \n\tlist_cover_image_url TEXT, -- \n\tlist_first_image_url TEXT, -- \n\tlist_second_image_url TEXT, -- \n\tlist_third_image_url TEXT, -- \n);\n\nCREATE TABLE movies\n(\n\tmovie_id INTEGER not null primary key,\n\tmovie_title TEXT, -- Example Values: `('La Antena',)`, `('Elementary Particles',)`, `(\"It's Winter\",)` | Value Statics: Total count 100000 - Distinct count 91630 - Null count 0 | Column Description: Name of the movie \n\tmovie_release_year INTEGER, -- Example Values: `(2007,)`, `(2006,)`, `(2005,)` | Value Statics: Total count 99998 - Distinct count 135 - Null count 2 | Column Description: Release year of the movie \n\tmovie_url TEXT, -- Example Values: `('http://mubi.com/films/la-antena',)`, `('http://mubi.com/films/elementary-particles',)`, `('http://mubi.com/films/its-winter',)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 | Column Description: URL to the movie page on Mubi \n\tmovie_title_language TEXT, -- Example Values: `en` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0 | Column Description: By default, the title is in English. | Value Description: Only contains one value which is 'en'\n\tmovie_popularity INTEGER, -- Example Values: `(105,)`, `(23,)`, `(21,)` | Value Statics: Total count 100000 - Distinct count 1262 - Null count 0 | Column Description: Number of Mubi users who love this movie \n\tmovie_image_url TEXT, -- | Column Description: Image URL to the movie on Mubi \n\tdirector_id TEXT, -- Example Values: `('131',)`, `('73',)`, `('82',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: ID related to the movie director on Mubi \n\tdirector_name TEXT, -- Example Values: `('Esteban Sapir',)`, `('Oskar Roehler',)`, `('Rafi Pitts',)` | Value Statics: Total count 99997 - Distinct count 40150 - Null count 3 | Column Description: Full Name of the movie director \n\tdirector_url TEXT, -- Example Values: `('http://mubi.com/cast/esteban-sapir',)`, `('http://mubi.com/cast/oskar-roehler',)`, `('http://mubi.com/cast/rafi-pitts',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: URL to the movie director page on Mubi \n);\n\nCREATE TABLE ratings_users\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(41579158,)`, `(68654088,)`, `(84114365,)` | Value Statics: Total count 100000 - Distinct count 44084 - Null count 0 | Column Description: ID related to the user rating the movie \n\trating_date_utc TEXT, -- Example Values: `('2017-06-10',)`, `('2012-10-02',)`, `('2010-12-25',)` | Value Statics: Total count 100000 - Distinct count 4143 - Null count 0 | Column Description: Rating date for the movie rating. | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a trialist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he rated the movie | Value Description: 1 = the user was a subscriber when he rated the movie 0 = the user was not a subscriber when he rated the movie\n\tuser_avatar_image_url TEXT, -- | Column Description: URL to the user profile image on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: URL to the user profile cover image on Mubi \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he rated the movie | Value Description: 1 = the user was eligible for trial when he rated the movie 0 = the user was not eligible for trial when he rated the movie\n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he rated the movie | Value Description: 1 = the user was a paying subscriber when he rated the movie 0 = the user was not a paying subscriber when he rated\n);\n\nCREATE TABLE lists_users\n(\n\tuser_id INTEGER not null, -- Example Values: `(2385,)`, `(15264,)`, `(15344,)` | Value Statics: Total count 80311 - Distinct count 23118 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null, -- Example Values: `(192287,)`, `(192313,)`, `(192318,)` | Value Statics: Total count 80311 - Distinct count 80311 - Null count 0 | Column Description: ID of the list on Mubi \n\tlist_update_date_utc TEXT, -- Example Values: `('2019-11-26',)`, `('2020-05-01',)`, `('2020-04-12',)` | Value Statics: Total count 80311 - Distinct count 3801 - Null count 0 | Column Description: Last update date for the list | Value Description: YYYY-MM-DD\n\tlist_creation_date_utc TEXT, -- Example Values: `('2009-12-18',)`, `('2010-01-30',)`, `('2010-03-31',)` | Value Statics: Total count 80311 - Distinct count 3798 - Null count 0 | Column Description: Creation date for the list | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a tralist when he created the list | Value Description: 1 = the user was a trialist when he created the list 0 = the user was not a trialist when he created the list\n\tuser_subscriber INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he created the list | Value Description: 1 = the user was a subscriber when he created the list 0 = the user was not a subscriber when he created the list\n\tuser_avatar_image_url TEXT, -- | Column Description: User profile image URL on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: User profile cover image URL on Mubi \n\tuser_eligible_for_trial TEXT, -- Example Values: `0`, `1` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he created the list | Value Description: 1 = the user was eligible for trial when he created the list 0 = the user was not eligible for trial when he created the list\n\tuser_has_payment_method TEXT, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he created the list | Value Description: 1 = the user was a paying subscriber when he created the list 0 = the user was not a paying subscriber when he created the list\n\tprimary key (user_id, list_id),\n\tforeign key (list_id) references lists(list_id),\n\tforeign key (user_id) references lists(user_id),\n);\n\nCREATE TABLE ratings\n(\n\tmovie_id INTEGER, -- Example Values: `(1066,)`, `(1067,)`, `(1068,)` | Value Statics: Total count 100000 - Distinct count 371 - Null count 0 | Column Description: Movie ID related to the rating \n\trating_id INTEGER, -- Example Values: `(15610495,)`, `(10704606,)`, `(10177114,)` | Value Statics: Total count 100000 - Distinct count 99999 - Null count 0 | Column Description: Rating ID on Mubi \n\trating_url TEXT, -- | Column Description: URL to the rating on Mubi \n\trating_score INTEGER, -- Example Values: `3`, `2`, `4`, `5`, `1` | Value Statics: Total count 99731 - Distinct count 5 - Null count 269 | Column Description: Rating score ranging from 1 (lowest) to 5 (highest) | Value Description: The score is proportional to the user's liking. The higher the score is, the more the user likes the movie\n\trating_timestamp_utc TEXT, -- Example Values: `('2017-06-10 12:38:33',)`, `('2014-08-15 23:42:31',)`, `('2014-01-30 13:21:57',)` | Value Statics: Total count 100000 - Distinct count 99962 - Null count 0 | Column Description: Timestamp for the movie rating made by the user on Mubi \n\tcritic TEXT, -- | Column Description: Critic made by the user rating the movie. | Value Description: If value = \"None\", the user did not write a critic when rating the movie.\n\tcritic_likes INTEGER, -- Example Values: `(0,)`, `(1,)`, `(2,)` | Value Statics: Total count 100000 - Distinct count 22 - Null count 0 | Column Description: Number of likes related to the critic made by the user rating the movie \n\tcritic_comments INTEGER, -- Example Values: `(0,)`, `(2,)`, `(1,)` | Value Statics: Total count 100000 - Distinct count 15 - Null count 0 | Column Description: Number of comments related to the critic made by the user rating the movie \n\tuser_id INTEGER, -- Example Values: `(41579158,)`, `(85981819,)`, `(4208563,)` | Value Statics: Total count 100000 - Distinct count 34674 - Null count 0 | Column Description: ID related to the user rating the movie \n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether user was a tralist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tforeign key (movie_id) references movies(movie_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (rating_id) references ratings(rating_id),\n\tforeign key (user_id) references ratings_users(user_id),\n\tforeign key (user_id) references ratings_users(user_id),\n);", "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;" }
{ "db_mode": "train", "db_id": "movie_platform", "gt_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'" }
movie_platform
140
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null primary key,\n\tlist_title TEXT, -- Example Values: `('Films that made your kid sister cry',)`, `('Headscratchers',)`, `('Sexy Time Movies',)` | Value Statics: Total count 79565 - Distinct count 58898 - Null count 0 | Column Description: Name of the list \n\tlist_movie_number INTEGER, -- Example Values: `(5,)`, `(3,)`, `(7,)` | Value Statics: Total count 79565 - Distinct count 907 - Null count 0 | Column Description: Number of movies added to the list \n\tlist_update_timestamp_utc TEXT, -- Example Values: `('2019-01-24 19:16:18',)`, `('2018-12-03 15:12:20',)`, `('2019-05-30 03:00:07',)` | Value Statics: Total count 79565 - Distinct count 69576 - Null count 0 | Column Description: Last update timestamp for the list \n\tlist_creation_timestamp_utc TEXT, -- Example Values: `('2009-11-11 00:02:21',)`, `('2009-11-11 00:05:11',)`, `('2009-11-11 00:20:00',)` | Value Statics: Total count 79565 - Distinct count 79499 - Null count 0 | Column Description: Creation timestamp for the list \n\tlist_followers INTEGER, -- Example Values: `(5,)`, `(1,)`, `(6,)` | Value Statics: Total count 79565 - Distinct count 400 - Null count 0 | Column Description: Number of followers on the list \n\tlist_url TEXT, -- | Column Description: URL to the list page on Mubi \n\tlist_comments INTEGER, -- Example Values: `(3,)`, `(2,)`, `(5,)` | Value Statics: Total count 79565 - Distinct count 76 - Null count 0 | Column Description: Number of comments on the list \n\tlist_description TEXT, -- | Column Description: List description made by the user \n\tlist_cover_image_url TEXT, -- \n\tlist_first_image_url TEXT, -- \n\tlist_second_image_url TEXT, -- \n\tlist_third_image_url TEXT, -- \n);\n\nCREATE TABLE movies\n(\n\tmovie_id INTEGER not null primary key,\n\tmovie_title TEXT, -- Example Values: `('La Antena',)`, `('Elementary Particles',)`, `(\"It's Winter\",)` | Value Statics: Total count 100000 - Distinct count 91630 - Null count 0 | Column Description: Name of the movie \n\tmovie_release_year INTEGER, -- Example Values: `(2007,)`, `(2006,)`, `(2005,)` | Value Statics: Total count 99998 - Distinct count 135 - Null count 2 | Column Description: Release year of the movie \n\tmovie_url TEXT, -- Example Values: `('http://mubi.com/films/la-antena',)`, `('http://mubi.com/films/elementary-particles',)`, `('http://mubi.com/films/its-winter',)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 | Column Description: URL to the movie page on Mubi \n\tmovie_title_language TEXT, -- Example Values: `en` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0 | Column Description: By default, the title is in English. | Value Description: Only contains one value which is 'en'\n\tmovie_popularity INTEGER, -- Example Values: `(105,)`, `(23,)`, `(21,)` | Value Statics: Total count 100000 - Distinct count 1262 - Null count 0 | Column Description: Number of Mubi users who love this movie \n\tmovie_image_url TEXT, -- | Column Description: Image URL to the movie on Mubi \n\tdirector_id TEXT, -- Example Values: `('131',)`, `('73',)`, `('82',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: ID related to the movie director on Mubi \n\tdirector_name TEXT, -- Example Values: `('Esteban Sapir',)`, `('Oskar Roehler',)`, `('Rafi Pitts',)` | Value Statics: Total count 99997 - Distinct count 40150 - Null count 3 | Column Description: Full Name of the movie director \n\tdirector_url TEXT, -- Example Values: `('http://mubi.com/cast/esteban-sapir',)`, `('http://mubi.com/cast/oskar-roehler',)`, `('http://mubi.com/cast/rafi-pitts',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: URL to the movie director page on Mubi \n);\n\nCREATE TABLE ratings_users\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(41579158,)`, `(68654088,)`, `(84114365,)` | Value Statics: Total count 100000 - Distinct count 44084 - Null count 0 | Column Description: ID related to the user rating the movie \n\trating_date_utc TEXT, -- Example Values: `('2017-06-10',)`, `('2012-10-02',)`, `('2010-12-25',)` | Value Statics: Total count 100000 - Distinct count 4143 - Null count 0 | Column Description: Rating date for the movie rating. | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a trialist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he rated the movie | Value Description: 1 = the user was a subscriber when he rated the movie 0 = the user was not a subscriber when he rated the movie\n\tuser_avatar_image_url TEXT, -- | Column Description: URL to the user profile image on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: URL to the user profile cover image on Mubi \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he rated the movie | Value Description: 1 = the user was eligible for trial when he rated the movie 0 = the user was not eligible for trial when he rated the movie\n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he rated the movie | Value Description: 1 = the user was a paying subscriber when he rated the movie 0 = the user was not a paying subscriber when he rated\n);\n\nCREATE TABLE lists_users\n(\n\tuser_id INTEGER not null, -- Example Values: `(2385,)`, `(15264,)`, `(15344,)` | Value Statics: Total count 80311 - Distinct count 23118 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null, -- Example Values: `(192287,)`, `(192313,)`, `(192318,)` | Value Statics: Total count 80311 - Distinct count 80311 - Null count 0 | Column Description: ID of the list on Mubi \n\tlist_update_date_utc TEXT, -- Example Values: `('2019-11-26',)`, `('2020-05-01',)`, `('2020-04-12',)` | Value Statics: Total count 80311 - Distinct count 3801 - Null count 0 | Column Description: Last update date for the list | Value Description: YYYY-MM-DD\n\tlist_creation_date_utc TEXT, -- Example Values: `('2009-12-18',)`, `('2010-01-30',)`, `('2010-03-31',)` | Value Statics: Total count 80311 - Distinct count 3798 - Null count 0 | Column Description: Creation date for the list | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a tralist when he created the list | Value Description: 1 = the user was a trialist when he created the list 0 = the user was not a trialist when he created the list\n\tuser_subscriber INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he created the list | Value Description: 1 = the user was a subscriber when he created the list 0 = the user was not a subscriber when he created the list\n\tuser_avatar_image_url TEXT, -- | Column Description: User profile image URL on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: User profile cover image URL on Mubi \n\tuser_eligible_for_trial TEXT, -- Example Values: `0`, `1` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he created the list | Value Description: 1 = the user was eligible for trial when he created the list 0 = the user was not eligible for trial when he created the list\n\tuser_has_payment_method TEXT, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he created the list | Value Description: 1 = the user was a paying subscriber when he created the list 0 = the user was not a paying subscriber when he created the list\n\tprimary key (user_id, list_id),\n\tforeign key (list_id) references lists(list_id),\n\tforeign key (user_id) references lists(user_id),\n);\n\nCREATE TABLE ratings\n(\n\tmovie_id INTEGER, -- Example Values: `(1066,)`, `(1067,)`, `(1068,)` | Value Statics: Total count 100000 - Distinct count 371 - Null count 0 | Column Description: Movie ID related to the rating \n\trating_id INTEGER, -- Example Values: `(15610495,)`, `(10704606,)`, `(10177114,)` | Value Statics: Total count 100000 - Distinct count 99999 - Null count 0 | Column Description: Rating ID on Mubi \n\trating_url TEXT, -- | Column Description: URL to the rating on Mubi \n\trating_score INTEGER, -- Example Values: `3`, `2`, `4`, `5`, `1` | Value Statics: Total count 99731 - Distinct count 5 - Null count 269 | Column Description: Rating score ranging from 1 (lowest) to 5 (highest) | Value Description: The score is proportional to the user's liking. The higher the score is, the more the user likes the movie\n\trating_timestamp_utc TEXT, -- Example Values: `('2017-06-10 12:38:33',)`, `('2014-08-15 23:42:31',)`, `('2014-01-30 13:21:57',)` | Value Statics: Total count 100000 - Distinct count 99962 - Null count 0 | Column Description: Timestamp for the movie rating made by the user on Mubi \n\tcritic TEXT, -- | Column Description: Critic made by the user rating the movie. | Value Description: If value = \"None\", the user did not write a critic when rating the movie.\n\tcritic_likes INTEGER, -- Example Values: `(0,)`, `(1,)`, `(2,)` | Value Statics: Total count 100000 - Distinct count 22 - Null count 0 | Column Description: Number of likes related to the critic made by the user rating the movie \n\tcritic_comments INTEGER, -- Example Values: `(0,)`, `(2,)`, `(1,)` | Value Statics: Total count 100000 - Distinct count 15 - Null count 0 | Column Description: Number of comments related to the critic made by the user rating the movie \n\tuser_id INTEGER, -- Example Values: `(41579158,)`, `(85981819,)`, `(4208563,)` | Value Statics: Total count 100000 - Distinct count 34674 - Null count 0 | Column Description: ID related to the user rating the movie \n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether user was a tralist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tforeign key (movie_id) references movies(movie_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (rating_id) references ratings(rating_id),\n\tforeign key (user_id) references ratings_users(user_id),\n\tforeign key (user_id) references ratings_users(user_id),\n);", "question": "What is the percentage of list created by user who was a subscriber when he created the list?", "evidence": "was a subscriber refers to user_subscriber = 1; percentage refers to DIVIDE(COUNT(user_subscriber = 1),COUNT(list_id))" }
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT CAST(SUM(CASE WHEN user_subscriber = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(list_id) FROM lists_users" }
movie_platform
80
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null primary key,\n\tlist_title TEXT, -- Example Values: `('Films that made your kid sister cry',)`, `('Headscratchers',)`, `('Sexy Time Movies',)` | Value Statics: Total count 79565 - Distinct count 58898 - Null count 0 | Column Description: Name of the list \n\tlist_movie_number INTEGER, -- Example Values: `(5,)`, `(3,)`, `(7,)` | Value Statics: Total count 79565 - Distinct count 907 - Null count 0 | Column Description: Number of movies added to the list \n\tlist_update_timestamp_utc TEXT, -- Example Values: `('2019-01-24 19:16:18',)`, `('2018-12-03 15:12:20',)`, `('2019-05-30 03:00:07',)` | Value Statics: Total count 79565 - Distinct count 69576 - Null count 0 | Column Description: Last update timestamp for the list \n\tlist_creation_timestamp_utc TEXT, -- Example Values: `('2009-11-11 00:02:21',)`, `('2009-11-11 00:05:11',)`, `('2009-11-11 00:20:00',)` | Value Statics: Total count 79565 - Distinct count 79499 - Null count 0 | Column Description: Creation timestamp for the list \n\tlist_followers INTEGER, -- Example Values: `(5,)`, `(1,)`, `(6,)` | Value Statics: Total count 79565 - Distinct count 400 - Null count 0 | Column Description: Number of followers on the list \n\tlist_url TEXT, -- | Column Description: URL to the list page on Mubi \n\tlist_comments INTEGER, -- Example Values: `(3,)`, `(2,)`, `(5,)` | Value Statics: Total count 79565 - Distinct count 76 - Null count 0 | Column Description: Number of comments on the list \n\tlist_description TEXT, -- | Column Description: List description made by the user \n\tlist_cover_image_url TEXT, -- \n\tlist_first_image_url TEXT, -- \n\tlist_second_image_url TEXT, -- \n\tlist_third_image_url TEXT, -- \n);\n\nCREATE TABLE movies\n(\n\tmovie_id INTEGER not null primary key,\n\tmovie_title TEXT, -- Example Values: `('La Antena',)`, `('Elementary Particles',)`, `(\"It's Winter\",)` | Value Statics: Total count 100000 - Distinct count 91630 - Null count 0 | Column Description: Name of the movie \n\tmovie_release_year INTEGER, -- Example Values: `(2007,)`, `(2006,)`, `(2005,)` | Value Statics: Total count 99998 - Distinct count 135 - Null count 2 | Column Description: Release year of the movie \n\tmovie_url TEXT, -- Example Values: `('http://mubi.com/films/la-antena',)`, `('http://mubi.com/films/elementary-particles',)`, `('http://mubi.com/films/its-winter',)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 | Column Description: URL to the movie page on Mubi \n\tmovie_title_language TEXT, -- Example Values: `en` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0 | Column Description: By default, the title is in English. | Value Description: Only contains one value which is 'en'\n\tmovie_popularity INTEGER, -- Example Values: `(105,)`, `(23,)`, `(21,)` | Value Statics: Total count 100000 - Distinct count 1262 - Null count 0 | Column Description: Number of Mubi users who love this movie \n\tmovie_image_url TEXT, -- | Column Description: Image URL to the movie on Mubi \n\tdirector_id TEXT, -- Example Values: `('131',)`, `('73',)`, `('82',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: ID related to the movie director on Mubi \n\tdirector_name TEXT, -- Example Values: `('Esteban Sapir',)`, `('Oskar Roehler',)`, `('Rafi Pitts',)` | Value Statics: Total count 99997 - Distinct count 40150 - Null count 3 | Column Description: Full Name of the movie director \n\tdirector_url TEXT, -- Example Values: `('http://mubi.com/cast/esteban-sapir',)`, `('http://mubi.com/cast/oskar-roehler',)`, `('http://mubi.com/cast/rafi-pitts',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: URL to the movie director page on Mubi \n);\n\nCREATE TABLE ratings_users\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(41579158,)`, `(68654088,)`, `(84114365,)` | Value Statics: Total count 100000 - Distinct count 44084 - Null count 0 | Column Description: ID related to the user rating the movie \n\trating_date_utc TEXT, -- Example Values: `('2017-06-10',)`, `('2012-10-02',)`, `('2010-12-25',)` | Value Statics: Total count 100000 - Distinct count 4143 - Null count 0 | Column Description: Rating date for the movie rating. | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a trialist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he rated the movie | Value Description: 1 = the user was a subscriber when he rated the movie 0 = the user was not a subscriber when he rated the movie\n\tuser_avatar_image_url TEXT, -- | Column Description: URL to the user profile image on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: URL to the user profile cover image on Mubi \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he rated the movie | Value Description: 1 = the user was eligible for trial when he rated the movie 0 = the user was not eligible for trial when he rated the movie\n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he rated the movie | Value Description: 1 = the user was a paying subscriber when he rated the movie 0 = the user was not a paying subscriber when he rated\n);\n\nCREATE TABLE lists_users\n(\n\tuser_id INTEGER not null, -- Example Values: `(2385,)`, `(15264,)`, `(15344,)` | Value Statics: Total count 80311 - Distinct count 23118 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null, -- Example Values: `(192287,)`, `(192313,)`, `(192318,)` | Value Statics: Total count 80311 - Distinct count 80311 - Null count 0 | Column Description: ID of the list on Mubi \n\tlist_update_date_utc TEXT, -- Example Values: `('2019-11-26',)`, `('2020-05-01',)`, `('2020-04-12',)` | Value Statics: Total count 80311 - Distinct count 3801 - Null count 0 | Column Description: Last update date for the list | Value Description: YYYY-MM-DD\n\tlist_creation_date_utc TEXT, -- Example Values: `('2009-12-18',)`, `('2010-01-30',)`, `('2010-03-31',)` | Value Statics: Total count 80311 - Distinct count 3798 - Null count 0 | Column Description: Creation date for the list | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a tralist when he created the list | Value Description: 1 = the user was a trialist when he created the list 0 = the user was not a trialist when he created the list\n\tuser_subscriber INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he created the list | Value Description: 1 = the user was a subscriber when he created the list 0 = the user was not a subscriber when he created the list\n\tuser_avatar_image_url TEXT, -- | Column Description: User profile image URL on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: User profile cover image URL on Mubi \n\tuser_eligible_for_trial TEXT, -- Example Values: `0`, `1` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he created the list | Value Description: 1 = the user was eligible for trial when he created the list 0 = the user was not eligible for trial when he created the list\n\tuser_has_payment_method TEXT, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he created the list | Value Description: 1 = the user was a paying subscriber when he created the list 0 = the user was not a paying subscriber when he created the list\n\tprimary key (user_id, list_id),\n\tforeign key (list_id) references lists(list_id),\n\tforeign key (user_id) references lists(user_id),\n);\n\nCREATE TABLE ratings\n(\n\tmovie_id INTEGER, -- Example Values: `(1066,)`, `(1067,)`, `(1068,)` | Value Statics: Total count 100000 - Distinct count 371 - Null count 0 | Column Description: Movie ID related to the rating \n\trating_id INTEGER, -- Example Values: `(15610495,)`, `(10704606,)`, `(10177114,)` | Value Statics: Total count 100000 - Distinct count 99999 - Null count 0 | Column Description: Rating ID on Mubi \n\trating_url TEXT, -- | Column Description: URL to the rating on Mubi \n\trating_score INTEGER, -- Example Values: `3`, `2`, `4`, `5`, `1` | Value Statics: Total count 99731 - Distinct count 5 - Null count 269 | Column Description: Rating score ranging from 1 (lowest) to 5 (highest) | Value Description: The score is proportional to the user's liking. The higher the score is, the more the user likes the movie\n\trating_timestamp_utc TEXT, -- Example Values: `('2017-06-10 12:38:33',)`, `('2014-08-15 23:42:31',)`, `('2014-01-30 13:21:57',)` | Value Statics: Total count 100000 - Distinct count 99962 - Null count 0 | Column Description: Timestamp for the movie rating made by the user on Mubi \n\tcritic TEXT, -- | Column Description: Critic made by the user rating the movie. | Value Description: If value = \"None\", the user did not write a critic when rating the movie.\n\tcritic_likes INTEGER, -- Example Values: `(0,)`, `(1,)`, `(2,)` | Value Statics: Total count 100000 - Distinct count 22 - Null count 0 | Column Description: Number of likes related to the critic made by the user rating the movie \n\tcritic_comments INTEGER, -- Example Values: `(0,)`, `(2,)`, `(1,)` | Value Statics: Total count 100000 - Distinct count 15 - Null count 0 | Column Description: Number of comments related to the critic made by the user rating the movie \n\tuser_id INTEGER, -- Example Values: `(41579158,)`, `(85981819,)`, `(4208563,)` | Value Statics: Total count 100000 - Distinct count 34674 - Null count 0 | Column Description: ID related to the user rating the movie \n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether user was a tralist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tforeign key (movie_id) references movies(movie_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (rating_id) references ratings(rating_id),\n\tforeign key (user_id) references ratings_users(user_id),\n\tforeign key (user_id) references ratings_users(user_id),\n);", "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;" }
{ "db_mode": "train", "db_id": "movie_platform", "gt_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'" }
movie_platform
59
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null primary key,\n\tlist_title TEXT, -- Example Values: `('Films that made your kid sister cry',)`, `('Headscratchers',)`, `('Sexy Time Movies',)` | Value Statics: Total count 79565 - Distinct count 58898 - Null count 0 | Column Description: Name of the list \n\tlist_movie_number INTEGER, -- Example Values: `(5,)`, `(3,)`, `(7,)` | Value Statics: Total count 79565 - Distinct count 907 - Null count 0 | Column Description: Number of movies added to the list \n\tlist_update_timestamp_utc TEXT, -- Example Values: `('2019-01-24 19:16:18',)`, `('2018-12-03 15:12:20',)`, `('2019-05-30 03:00:07',)` | Value Statics: Total count 79565 - Distinct count 69576 - Null count 0 | Column Description: Last update timestamp for the list \n\tlist_creation_timestamp_utc TEXT, -- Example Values: `('2009-11-11 00:02:21',)`, `('2009-11-11 00:05:11',)`, `('2009-11-11 00:20:00',)` | Value Statics: Total count 79565 - Distinct count 79499 - Null count 0 | Column Description: Creation timestamp for the list \n\tlist_followers INTEGER, -- Example Values: `(5,)`, `(1,)`, `(6,)` | Value Statics: Total count 79565 - Distinct count 400 - Null count 0 | Column Description: Number of followers on the list \n\tlist_url TEXT, -- | Column Description: URL to the list page on Mubi \n\tlist_comments INTEGER, -- Example Values: `(3,)`, `(2,)`, `(5,)` | Value Statics: Total count 79565 - Distinct count 76 - Null count 0 | Column Description: Number of comments on the list \n\tlist_description TEXT, -- | Column Description: List description made by the user \n\tlist_cover_image_url TEXT, -- \n\tlist_first_image_url TEXT, -- \n\tlist_second_image_url TEXT, -- \n\tlist_third_image_url TEXT, -- \n);\n\nCREATE TABLE movies\n(\n\tmovie_id INTEGER not null primary key,\n\tmovie_title TEXT, -- Example Values: `('La Antena',)`, `('Elementary Particles',)`, `(\"It's Winter\",)` | Value Statics: Total count 100000 - Distinct count 91630 - Null count 0 | Column Description: Name of the movie \n\tmovie_release_year INTEGER, -- Example Values: `(2007,)`, `(2006,)`, `(2005,)` | Value Statics: Total count 99998 - Distinct count 135 - Null count 2 | Column Description: Release year of the movie \n\tmovie_url TEXT, -- Example Values: `('http://mubi.com/films/la-antena',)`, `('http://mubi.com/films/elementary-particles',)`, `('http://mubi.com/films/its-winter',)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 | Column Description: URL to the movie page on Mubi \n\tmovie_title_language TEXT, -- Example Values: `en` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0 | Column Description: By default, the title is in English. | Value Description: Only contains one value which is 'en'\n\tmovie_popularity INTEGER, -- Example Values: `(105,)`, `(23,)`, `(21,)` | Value Statics: Total count 100000 - Distinct count 1262 - Null count 0 | Column Description: Number of Mubi users who love this movie \n\tmovie_image_url TEXT, -- | Column Description: Image URL to the movie on Mubi \n\tdirector_id TEXT, -- Example Values: `('131',)`, `('73',)`, `('82',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: ID related to the movie director on Mubi \n\tdirector_name TEXT, -- Example Values: `('Esteban Sapir',)`, `('Oskar Roehler',)`, `('Rafi Pitts',)` | Value Statics: Total count 99997 - Distinct count 40150 - Null count 3 | Column Description: Full Name of the movie director \n\tdirector_url TEXT, -- Example Values: `('http://mubi.com/cast/esteban-sapir',)`, `('http://mubi.com/cast/oskar-roehler',)`, `('http://mubi.com/cast/rafi-pitts',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: URL to the movie director page on Mubi \n);\n\nCREATE TABLE ratings_users\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(41579158,)`, `(68654088,)`, `(84114365,)` | Value Statics: Total count 100000 - Distinct count 44084 - Null count 0 | Column Description: ID related to the user rating the movie \n\trating_date_utc TEXT, -- Example Values: `('2017-06-10',)`, `('2012-10-02',)`, `('2010-12-25',)` | Value Statics: Total count 100000 - Distinct count 4143 - Null count 0 | Column Description: Rating date for the movie rating. | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a trialist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he rated the movie | Value Description: 1 = the user was a subscriber when he rated the movie 0 = the user was not a subscriber when he rated the movie\n\tuser_avatar_image_url TEXT, -- | Column Description: URL to the user profile image on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: URL to the user profile cover image on Mubi \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he rated the movie | Value Description: 1 = the user was eligible for trial when he rated the movie 0 = the user was not eligible for trial when he rated the movie\n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he rated the movie | Value Description: 1 = the user was a paying subscriber when he rated the movie 0 = the user was not a paying subscriber when he rated\n);\n\nCREATE TABLE lists_users\n(\n\tuser_id INTEGER not null, -- Example Values: `(2385,)`, `(15264,)`, `(15344,)` | Value Statics: Total count 80311 - Distinct count 23118 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null, -- Example Values: `(192287,)`, `(192313,)`, `(192318,)` | Value Statics: Total count 80311 - Distinct count 80311 - Null count 0 | Column Description: ID of the list on Mubi \n\tlist_update_date_utc TEXT, -- Example Values: `('2019-11-26',)`, `('2020-05-01',)`, `('2020-04-12',)` | Value Statics: Total count 80311 - Distinct count 3801 - Null count 0 | Column Description: Last update date for the list | Value Description: YYYY-MM-DD\n\tlist_creation_date_utc TEXT, -- Example Values: `('2009-12-18',)`, `('2010-01-30',)`, `('2010-03-31',)` | Value Statics: Total count 80311 - Distinct count 3798 - Null count 0 | Column Description: Creation date for the list | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a tralist when he created the list | Value Description: 1 = the user was a trialist when he created the list 0 = the user was not a trialist when he created the list\n\tuser_subscriber INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he created the list | Value Description: 1 = the user was a subscriber when he created the list 0 = the user was not a subscriber when he created the list\n\tuser_avatar_image_url TEXT, -- | Column Description: User profile image URL on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: User profile cover image URL on Mubi \n\tuser_eligible_for_trial TEXT, -- Example Values: `0`, `1` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he created the list | Value Description: 1 = the user was eligible for trial when he created the list 0 = the user was not eligible for trial when he created the list\n\tuser_has_payment_method TEXT, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he created the list | Value Description: 1 = the user was a paying subscriber when he created the list 0 = the user was not a paying subscriber when he created the list\n\tprimary key (user_id, list_id),\n\tforeign key (list_id) references lists(list_id),\n\tforeign key (user_id) references lists(user_id),\n);\n\nCREATE TABLE ratings\n(\n\tmovie_id INTEGER, -- Example Values: `(1066,)`, `(1067,)`, `(1068,)` | Value Statics: Total count 100000 - Distinct count 371 - Null count 0 | Column Description: Movie ID related to the rating \n\trating_id INTEGER, -- Example Values: `(15610495,)`, `(10704606,)`, `(10177114,)` | Value Statics: Total count 100000 - Distinct count 99999 - Null count 0 | Column Description: Rating ID on Mubi \n\trating_url TEXT, -- | Column Description: URL to the rating on Mubi \n\trating_score INTEGER, -- Example Values: `3`, `2`, `4`, `5`, `1` | Value Statics: Total count 99731 - Distinct count 5 - Null count 269 | Column Description: Rating score ranging from 1 (lowest) to 5 (highest) | Value Description: The score is proportional to the user's liking. The higher the score is, the more the user likes the movie\n\trating_timestamp_utc TEXT, -- Example Values: `('2017-06-10 12:38:33',)`, `('2014-08-15 23:42:31',)`, `('2014-01-30 13:21:57',)` | Value Statics: Total count 100000 - Distinct count 99962 - Null count 0 | Column Description: Timestamp for the movie rating made by the user on Mubi \n\tcritic TEXT, -- | Column Description: Critic made by the user rating the movie. | Value Description: If value = \"None\", the user did not write a critic when rating the movie.\n\tcritic_likes INTEGER, -- Example Values: `(0,)`, `(1,)`, `(2,)` | Value Statics: Total count 100000 - Distinct count 22 - Null count 0 | Column Description: Number of likes related to the critic made by the user rating the movie \n\tcritic_comments INTEGER, -- Example Values: `(0,)`, `(2,)`, `(1,)` | Value Statics: Total count 100000 - Distinct count 15 - Null count 0 | Column Description: Number of comments related to the critic made by the user rating the movie \n\tuser_id INTEGER, -- Example Values: `(41579158,)`, `(85981819,)`, `(4208563,)` | Value Statics: Total count 100000 - Distinct count 34674 - Null count 0 | Column Description: ID related to the user rating the movie \n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether user was a tralist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tforeign key (movie_id) references movies(movie_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (rating_id) references ratings(rating_id),\n\tforeign key (user_id) references ratings_users(user_id),\n\tforeign key (user_id) references ratings_users(user_id),\n);", "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;" }
{ "db_mode": "train", "db_id": "movie_platform", "gt_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'" }
movie_platform
161
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null primary key,\n\tlist_title TEXT, -- Example Values: `('Films that made your kid sister cry',)`, `('Headscratchers',)`, `('Sexy Time Movies',)` | Value Statics: Total count 79565 - Distinct count 58898 - Null count 0 | Column Description: Name of the list \n\tlist_movie_number INTEGER, -- Example Values: `(5,)`, `(3,)`, `(7,)` | Value Statics: Total count 79565 - Distinct count 907 - Null count 0 | Column Description: Number of movies added to the list \n\tlist_update_timestamp_utc TEXT, -- Example Values: `('2019-01-24 19:16:18',)`, `('2018-12-03 15:12:20',)`, `('2019-05-30 03:00:07',)` | Value Statics: Total count 79565 - Distinct count 69576 - Null count 0 | Column Description: Last update timestamp for the list \n\tlist_creation_timestamp_utc TEXT, -- Example Values: `('2009-11-11 00:02:21',)`, `('2009-11-11 00:05:11',)`, `('2009-11-11 00:20:00',)` | Value Statics: Total count 79565 - Distinct count 79499 - Null count 0 | Column Description: Creation timestamp for the list \n\tlist_followers INTEGER, -- Example Values: `(5,)`, `(1,)`, `(6,)` | Value Statics: Total count 79565 - Distinct count 400 - Null count 0 | Column Description: Number of followers on the list \n\tlist_url TEXT, -- | Column Description: URL to the list page on Mubi \n\tlist_comments INTEGER, -- Example Values: `(3,)`, `(2,)`, `(5,)` | Value Statics: Total count 79565 - Distinct count 76 - Null count 0 | Column Description: Number of comments on the list \n\tlist_description TEXT, -- | Column Description: List description made by the user \n\tlist_cover_image_url TEXT, -- \n\tlist_first_image_url TEXT, -- \n\tlist_second_image_url TEXT, -- \n\tlist_third_image_url TEXT, -- \n);\n\nCREATE TABLE movies\n(\n\tmovie_id INTEGER not null primary key,\n\tmovie_title TEXT, -- Example Values: `('La Antena',)`, `('Elementary Particles',)`, `(\"It's Winter\",)` | Value Statics: Total count 100000 - Distinct count 91630 - Null count 0 | Column Description: Name of the movie \n\tmovie_release_year INTEGER, -- Example Values: `(2007,)`, `(2006,)`, `(2005,)` | Value Statics: Total count 99998 - Distinct count 135 - Null count 2 | Column Description: Release year of the movie \n\tmovie_url TEXT, -- Example Values: `('http://mubi.com/films/la-antena',)`, `('http://mubi.com/films/elementary-particles',)`, `('http://mubi.com/films/its-winter',)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 | Column Description: URL to the movie page on Mubi \n\tmovie_title_language TEXT, -- Example Values: `en` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0 | Column Description: By default, the title is in English. | Value Description: Only contains one value which is 'en'\n\tmovie_popularity INTEGER, -- Example Values: `(105,)`, `(23,)`, `(21,)` | Value Statics: Total count 100000 - Distinct count 1262 - Null count 0 | Column Description: Number of Mubi users who love this movie \n\tmovie_image_url TEXT, -- | Column Description: Image URL to the movie on Mubi \n\tdirector_id TEXT, -- Example Values: `('131',)`, `('73',)`, `('82',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: ID related to the movie director on Mubi \n\tdirector_name TEXT, -- Example Values: `('Esteban Sapir',)`, `('Oskar Roehler',)`, `('Rafi Pitts',)` | Value Statics: Total count 99997 - Distinct count 40150 - Null count 3 | Column Description: Full Name of the movie director \n\tdirector_url TEXT, -- Example Values: `('http://mubi.com/cast/esteban-sapir',)`, `('http://mubi.com/cast/oskar-roehler',)`, `('http://mubi.com/cast/rafi-pitts',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: URL to the movie director page on Mubi \n);\n\nCREATE TABLE ratings_users\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(41579158,)`, `(68654088,)`, `(84114365,)` | Value Statics: Total count 100000 - Distinct count 44084 - Null count 0 | Column Description: ID related to the user rating the movie \n\trating_date_utc TEXT, -- Example Values: `('2017-06-10',)`, `('2012-10-02',)`, `('2010-12-25',)` | Value Statics: Total count 100000 - Distinct count 4143 - Null count 0 | Column Description: Rating date for the movie rating. | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a trialist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he rated the movie | Value Description: 1 = the user was a subscriber when he rated the movie 0 = the user was not a subscriber when he rated the movie\n\tuser_avatar_image_url TEXT, -- | Column Description: URL to the user profile image on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: URL to the user profile cover image on Mubi \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he rated the movie | Value Description: 1 = the user was eligible for trial when he rated the movie 0 = the user was not eligible for trial when he rated the movie\n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he rated the movie | Value Description: 1 = the user was a paying subscriber when he rated the movie 0 = the user was not a paying subscriber when he rated\n);\n\nCREATE TABLE lists_users\n(\n\tuser_id INTEGER not null, -- Example Values: `(2385,)`, `(15264,)`, `(15344,)` | Value Statics: Total count 80311 - Distinct count 23118 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null, -- Example Values: `(192287,)`, `(192313,)`, `(192318,)` | Value Statics: Total count 80311 - Distinct count 80311 - Null count 0 | Column Description: ID of the list on Mubi \n\tlist_update_date_utc TEXT, -- Example Values: `('2019-11-26',)`, `('2020-05-01',)`, `('2020-04-12',)` | Value Statics: Total count 80311 - Distinct count 3801 - Null count 0 | Column Description: Last update date for the list | Value Description: YYYY-MM-DD\n\tlist_creation_date_utc TEXT, -- Example Values: `('2009-12-18',)`, `('2010-01-30',)`, `('2010-03-31',)` | Value Statics: Total count 80311 - Distinct count 3798 - Null count 0 | Column Description: Creation date for the list | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a tralist when he created the list | Value Description: 1 = the user was a trialist when he created the list 0 = the user was not a trialist when he created the list\n\tuser_subscriber INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he created the list | Value Description: 1 = the user was a subscriber when he created the list 0 = the user was not a subscriber when he created the list\n\tuser_avatar_image_url TEXT, -- | Column Description: User profile image URL on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: User profile cover image URL on Mubi \n\tuser_eligible_for_trial TEXT, -- Example Values: `0`, `1` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he created the list | Value Description: 1 = the user was eligible for trial when he created the list 0 = the user was not eligible for trial when he created the list\n\tuser_has_payment_method TEXT, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he created the list | Value Description: 1 = the user was a paying subscriber when he created the list 0 = the user was not a paying subscriber when he created the list\n\tprimary key (user_id, list_id),\n\tforeign key (list_id) references lists(list_id),\n\tforeign key (user_id) references lists(user_id),\n);\n\nCREATE TABLE ratings\n(\n\tmovie_id INTEGER, -- Example Values: `(1066,)`, `(1067,)`, `(1068,)` | Value Statics: Total count 100000 - Distinct count 371 - Null count 0 | Column Description: Movie ID related to the rating \n\trating_id INTEGER, -- Example Values: `(15610495,)`, `(10704606,)`, `(10177114,)` | Value Statics: Total count 100000 - Distinct count 99999 - Null count 0 | Column Description: Rating ID on Mubi \n\trating_url TEXT, -- | Column Description: URL to the rating on Mubi \n\trating_score INTEGER, -- Example Values: `3`, `2`, `4`, `5`, `1` | Value Statics: Total count 99731 - Distinct count 5 - Null count 269 | Column Description: Rating score ranging from 1 (lowest) to 5 (highest) | Value Description: The score is proportional to the user's liking. The higher the score is, the more the user likes the movie\n\trating_timestamp_utc TEXT, -- Example Values: `('2017-06-10 12:38:33',)`, `('2014-08-15 23:42:31',)`, `('2014-01-30 13:21:57',)` | Value Statics: Total count 100000 - Distinct count 99962 - Null count 0 | Column Description: Timestamp for the movie rating made by the user on Mubi \n\tcritic TEXT, -- | Column Description: Critic made by the user rating the movie. | Value Description: If value = \"None\", the user did not write a critic when rating the movie.\n\tcritic_likes INTEGER, -- Example Values: `(0,)`, `(1,)`, `(2,)` | Value Statics: Total count 100000 - Distinct count 22 - Null count 0 | Column Description: Number of likes related to the critic made by the user rating the movie \n\tcritic_comments INTEGER, -- Example Values: `(0,)`, `(2,)`, `(1,)` | Value Statics: Total count 100000 - Distinct count 15 - Null count 0 | Column Description: Number of comments related to the critic made by the user rating the movie \n\tuser_id INTEGER, -- Example Values: `(41579158,)`, `(85981819,)`, `(4208563,)` | Value Statics: Total count 100000 - Distinct count 34674 - Null count 0 | Column Description: ID related to the user rating the movie \n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether user was a tralist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tforeign key (movie_id) references movies(movie_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (rating_id) references ratings(rating_id),\n\tforeign key (user_id) references ratings_users(user_id),\n\tforeign key (user_id) references ratings_users(user_id),\n);", "question": "What is the average number of followers of the lists created by the user who rated the movie \"Pavee Lackeen: The Traveller Girl\" on 3/27/2011 at 2:06:34 AM?", "evidence": "average number of followers refers to AVG(list_followers); movie \"Pavee Lackeen: The Traveller Girl\" refers to movie_title = 'Pavee Lackeen: The Traveller Girl'; on 3/27/2011 at 2:06:34 AM refers to rating_timestamp_utc = '2011-03-27 02:06:34'" }
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT CAST(SUM(T4.list_followers) AS REAL) / COUNT(T2.list_id) FROM ratings AS T1 INNER JOIN lists_users AS T2 ON T1.user_id = T2.user_id INNER JOIN movies AS T3 ON T1.movie_id = T3.movie_id INNER JOIN lists AS T4 ON T2.list_id = T4.list_id WHERE T3.movie_title LIKE 'Pavee Lackeen: The Traveller Girl' AND T1.rating_timestamp_utc LIKE '2011-03-27 02:06:34'" }
movie_platform
23
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null primary key,\n\tlist_title TEXT, -- Example Values: `('Films that made your kid sister cry',)`, `('Headscratchers',)`, `('Sexy Time Movies',)` | Value Statics: Total count 79565 - Distinct count 58898 - Null count 0 | Column Description: Name of the list \n\tlist_movie_number INTEGER, -- Example Values: `(5,)`, `(3,)`, `(7,)` | Value Statics: Total count 79565 - Distinct count 907 - Null count 0 | Column Description: Number of movies added to the list \n\tlist_update_timestamp_utc TEXT, -- Example Values: `('2019-01-24 19:16:18',)`, `('2018-12-03 15:12:20',)`, `('2019-05-30 03:00:07',)` | Value Statics: Total count 79565 - Distinct count 69576 - Null count 0 | Column Description: Last update timestamp for the list \n\tlist_creation_timestamp_utc TEXT, -- Example Values: `('2009-11-11 00:02:21',)`, `('2009-11-11 00:05:11',)`, `('2009-11-11 00:20:00',)` | Value Statics: Total count 79565 - Distinct count 79499 - Null count 0 | Column Description: Creation timestamp for the list \n\tlist_followers INTEGER, -- Example Values: `(5,)`, `(1,)`, `(6,)` | Value Statics: Total count 79565 - Distinct count 400 - Null count 0 | Column Description: Number of followers on the list \n\tlist_url TEXT, -- | Column Description: URL to the list page on Mubi \n\tlist_comments INTEGER, -- Example Values: `(3,)`, `(2,)`, `(5,)` | Value Statics: Total count 79565 - Distinct count 76 - Null count 0 | Column Description: Number of comments on the list \n\tlist_description TEXT, -- | Column Description: List description made by the user \n\tlist_cover_image_url TEXT, -- \n\tlist_first_image_url TEXT, -- \n\tlist_second_image_url TEXT, -- \n\tlist_third_image_url TEXT, -- \n);\n\nCREATE TABLE movies\n(\n\tmovie_id INTEGER not null primary key,\n\tmovie_title TEXT, -- Example Values: `('La Antena',)`, `('Elementary Particles',)`, `(\"It's Winter\",)` | Value Statics: Total count 100000 - Distinct count 91630 - Null count 0 | Column Description: Name of the movie \n\tmovie_release_year INTEGER, -- Example Values: `(2007,)`, `(2006,)`, `(2005,)` | Value Statics: Total count 99998 - Distinct count 135 - Null count 2 | Column Description: Release year of the movie \n\tmovie_url TEXT, -- Example Values: `('http://mubi.com/films/la-antena',)`, `('http://mubi.com/films/elementary-particles',)`, `('http://mubi.com/films/its-winter',)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 | Column Description: URL to the movie page on Mubi \n\tmovie_title_language TEXT, -- Example Values: `en` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0 | Column Description: By default, the title is in English. | Value Description: Only contains one value which is 'en'\n\tmovie_popularity INTEGER, -- Example Values: `(105,)`, `(23,)`, `(21,)` | Value Statics: Total count 100000 - Distinct count 1262 - Null count 0 | Column Description: Number of Mubi users who love this movie \n\tmovie_image_url TEXT, -- | Column Description: Image URL to the movie on Mubi \n\tdirector_id TEXT, -- Example Values: `('131',)`, `('73',)`, `('82',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: ID related to the movie director on Mubi \n\tdirector_name TEXT, -- Example Values: `('Esteban Sapir',)`, `('Oskar Roehler',)`, `('Rafi Pitts',)` | Value Statics: Total count 99997 - Distinct count 40150 - Null count 3 | Column Description: Full Name of the movie director \n\tdirector_url TEXT, -- Example Values: `('http://mubi.com/cast/esteban-sapir',)`, `('http://mubi.com/cast/oskar-roehler',)`, `('http://mubi.com/cast/rafi-pitts',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: URL to the movie director page on Mubi \n);\n\nCREATE TABLE ratings_users\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(41579158,)`, `(68654088,)`, `(84114365,)` | Value Statics: Total count 100000 - Distinct count 44084 - Null count 0 | Column Description: ID related to the user rating the movie \n\trating_date_utc TEXT, -- Example Values: `('2017-06-10',)`, `('2012-10-02',)`, `('2010-12-25',)` | Value Statics: Total count 100000 - Distinct count 4143 - Null count 0 | Column Description: Rating date for the movie rating. | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a trialist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he rated the movie | Value Description: 1 = the user was a subscriber when he rated the movie 0 = the user was not a subscriber when he rated the movie\n\tuser_avatar_image_url TEXT, -- | Column Description: URL to the user profile image on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: URL to the user profile cover image on Mubi \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he rated the movie | Value Description: 1 = the user was eligible for trial when he rated the movie 0 = the user was not eligible for trial when he rated the movie\n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he rated the movie | Value Description: 1 = the user was a paying subscriber when he rated the movie 0 = the user was not a paying subscriber when he rated\n);\n\nCREATE TABLE lists_users\n(\n\tuser_id INTEGER not null, -- Example Values: `(2385,)`, `(15264,)`, `(15344,)` | Value Statics: Total count 80311 - Distinct count 23118 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null, -- Example Values: `(192287,)`, `(192313,)`, `(192318,)` | Value Statics: Total count 80311 - Distinct count 80311 - Null count 0 | Column Description: ID of the list on Mubi \n\tlist_update_date_utc TEXT, -- Example Values: `('2019-11-26',)`, `('2020-05-01',)`, `('2020-04-12',)` | Value Statics: Total count 80311 - Distinct count 3801 - Null count 0 | Column Description: Last update date for the list | Value Description: YYYY-MM-DD\n\tlist_creation_date_utc TEXT, -- Example Values: `('2009-12-18',)`, `('2010-01-30',)`, `('2010-03-31',)` | Value Statics: Total count 80311 - Distinct count 3798 - Null count 0 | Column Description: Creation date for the list | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a tralist when he created the list | Value Description: 1 = the user was a trialist when he created the list 0 = the user was not a trialist when he created the list\n\tuser_subscriber INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he created the list | Value Description: 1 = the user was a subscriber when he created the list 0 = the user was not a subscriber when he created the list\n\tuser_avatar_image_url TEXT, -- | Column Description: User profile image URL on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: User profile cover image URL on Mubi \n\tuser_eligible_for_trial TEXT, -- Example Values: `0`, `1` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he created the list | Value Description: 1 = the user was eligible for trial when he created the list 0 = the user was not eligible for trial when he created the list\n\tuser_has_payment_method TEXT, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he created the list | Value Description: 1 = the user was a paying subscriber when he created the list 0 = the user was not a paying subscriber when he created the list\n\tprimary key (user_id, list_id),\n\tforeign key (list_id) references lists(list_id),\n\tforeign key (user_id) references lists(user_id),\n);\n\nCREATE TABLE ratings\n(\n\tmovie_id INTEGER, -- Example Values: `(1066,)`, `(1067,)`, `(1068,)` | Value Statics: Total count 100000 - Distinct count 371 - Null count 0 | Column Description: Movie ID related to the rating \n\trating_id INTEGER, -- Example Values: `(15610495,)`, `(10704606,)`, `(10177114,)` | Value Statics: Total count 100000 - Distinct count 99999 - Null count 0 | Column Description: Rating ID on Mubi \n\trating_url TEXT, -- | Column Description: URL to the rating on Mubi \n\trating_score INTEGER, -- Example Values: `3`, `2`, `4`, `5`, `1` | Value Statics: Total count 99731 - Distinct count 5 - Null count 269 | Column Description: Rating score ranging from 1 (lowest) to 5 (highest) | Value Description: The score is proportional to the user's liking. The higher the score is, the more the user likes the movie\n\trating_timestamp_utc TEXT, -- Example Values: `('2017-06-10 12:38:33',)`, `('2014-08-15 23:42:31',)`, `('2014-01-30 13:21:57',)` | Value Statics: Total count 100000 - Distinct count 99962 - Null count 0 | Column Description: Timestamp for the movie rating made by the user on Mubi \n\tcritic TEXT, -- | Column Description: Critic made by the user rating the movie. | Value Description: If value = \"None\", the user did not write a critic when rating the movie.\n\tcritic_likes INTEGER, -- Example Values: `(0,)`, `(1,)`, `(2,)` | Value Statics: Total count 100000 - Distinct count 22 - Null count 0 | Column Description: Number of likes related to the critic made by the user rating the movie \n\tcritic_comments INTEGER, -- Example Values: `(0,)`, `(2,)`, `(1,)` | Value Statics: Total count 100000 - Distinct count 15 - Null count 0 | Column Description: Number of comments related to the critic made by the user rating the movie \n\tuser_id INTEGER, -- Example Values: `(41579158,)`, `(85981819,)`, `(4208563,)` | Value Statics: Total count 100000 - Distinct count 34674 - Null count 0 | Column Description: ID related to the user rating the movie \n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether user was a tralist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tforeign key (movie_id) references movies(movie_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (rating_id) references ratings(rating_id),\n\tforeign key (user_id) references ratings_users(user_id),\n\tforeign key (user_id) references ratings_users(user_id),\n);", "question": "How many users gave \"Pavee Lackeen: The Traveller Girl\" movie a rating score of 4?", "evidence": "FALSE;" }
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "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" }
movie_platform
141
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null primary key,\n\tlist_title TEXT, -- Example Values: `('Films that made your kid sister cry',)`, `('Headscratchers',)`, `('Sexy Time Movies',)` | Value Statics: Total count 79565 - Distinct count 58898 - Null count 0 | Column Description: Name of the list \n\tlist_movie_number INTEGER, -- Example Values: `(5,)`, `(3,)`, `(7,)` | Value Statics: Total count 79565 - Distinct count 907 - Null count 0 | Column Description: Number of movies added to the list \n\tlist_update_timestamp_utc TEXT, -- Example Values: `('2019-01-24 19:16:18',)`, `('2018-12-03 15:12:20',)`, `('2019-05-30 03:00:07',)` | Value Statics: Total count 79565 - Distinct count 69576 - Null count 0 | Column Description: Last update timestamp for the list \n\tlist_creation_timestamp_utc TEXT, -- Example Values: `('2009-11-11 00:02:21',)`, `('2009-11-11 00:05:11',)`, `('2009-11-11 00:20:00',)` | Value Statics: Total count 79565 - Distinct count 79499 - Null count 0 | Column Description: Creation timestamp for the list \n\tlist_followers INTEGER, -- Example Values: `(5,)`, `(1,)`, `(6,)` | Value Statics: Total count 79565 - Distinct count 400 - Null count 0 | Column Description: Number of followers on the list \n\tlist_url TEXT, -- | Column Description: URL to the list page on Mubi \n\tlist_comments INTEGER, -- Example Values: `(3,)`, `(2,)`, `(5,)` | Value Statics: Total count 79565 - Distinct count 76 - Null count 0 | Column Description: Number of comments on the list \n\tlist_description TEXT, -- | Column Description: List description made by the user \n\tlist_cover_image_url TEXT, -- \n\tlist_first_image_url TEXT, -- \n\tlist_second_image_url TEXT, -- \n\tlist_third_image_url TEXT, -- \n);\n\nCREATE TABLE movies\n(\n\tmovie_id INTEGER not null primary key,\n\tmovie_title TEXT, -- Example Values: `('La Antena',)`, `('Elementary Particles',)`, `(\"It's Winter\",)` | Value Statics: Total count 100000 - Distinct count 91630 - Null count 0 | Column Description: Name of the movie \n\tmovie_release_year INTEGER, -- Example Values: `(2007,)`, `(2006,)`, `(2005,)` | Value Statics: Total count 99998 - Distinct count 135 - Null count 2 | Column Description: Release year of the movie \n\tmovie_url TEXT, -- Example Values: `('http://mubi.com/films/la-antena',)`, `('http://mubi.com/films/elementary-particles',)`, `('http://mubi.com/films/its-winter',)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 | Column Description: URL to the movie page on Mubi \n\tmovie_title_language TEXT, -- Example Values: `en` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0 | Column Description: By default, the title is in English. | Value Description: Only contains one value which is 'en'\n\tmovie_popularity INTEGER, -- Example Values: `(105,)`, `(23,)`, `(21,)` | Value Statics: Total count 100000 - Distinct count 1262 - Null count 0 | Column Description: Number of Mubi users who love this movie \n\tmovie_image_url TEXT, -- | Column Description: Image URL to the movie on Mubi \n\tdirector_id TEXT, -- Example Values: `('131',)`, `('73',)`, `('82',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: ID related to the movie director on Mubi \n\tdirector_name TEXT, -- Example Values: `('Esteban Sapir',)`, `('Oskar Roehler',)`, `('Rafi Pitts',)` | Value Statics: Total count 99997 - Distinct count 40150 - Null count 3 | Column Description: Full Name of the movie director \n\tdirector_url TEXT, -- Example Values: `('http://mubi.com/cast/esteban-sapir',)`, `('http://mubi.com/cast/oskar-roehler',)`, `('http://mubi.com/cast/rafi-pitts',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: URL to the movie director page on Mubi \n);\n\nCREATE TABLE ratings_users\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(41579158,)`, `(68654088,)`, `(84114365,)` | Value Statics: Total count 100000 - Distinct count 44084 - Null count 0 | Column Description: ID related to the user rating the movie \n\trating_date_utc TEXT, -- Example Values: `('2017-06-10',)`, `('2012-10-02',)`, `('2010-12-25',)` | Value Statics: Total count 100000 - Distinct count 4143 - Null count 0 | Column Description: Rating date for the movie rating. | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a trialist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he rated the movie | Value Description: 1 = the user was a subscriber when he rated the movie 0 = the user was not a subscriber when he rated the movie\n\tuser_avatar_image_url TEXT, -- | Column Description: URL to the user profile image on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: URL to the user profile cover image on Mubi \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he rated the movie | Value Description: 1 = the user was eligible for trial when he rated the movie 0 = the user was not eligible for trial when he rated the movie\n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he rated the movie | Value Description: 1 = the user was a paying subscriber when he rated the movie 0 = the user was not a paying subscriber when he rated\n);\n\nCREATE TABLE lists_users\n(\n\tuser_id INTEGER not null, -- Example Values: `(2385,)`, `(15264,)`, `(15344,)` | Value Statics: Total count 80311 - Distinct count 23118 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null, -- Example Values: `(192287,)`, `(192313,)`, `(192318,)` | Value Statics: Total count 80311 - Distinct count 80311 - Null count 0 | Column Description: ID of the list on Mubi \n\tlist_update_date_utc TEXT, -- Example Values: `('2019-11-26',)`, `('2020-05-01',)`, `('2020-04-12',)` | Value Statics: Total count 80311 - Distinct count 3801 - Null count 0 | Column Description: Last update date for the list | Value Description: YYYY-MM-DD\n\tlist_creation_date_utc TEXT, -- Example Values: `('2009-12-18',)`, `('2010-01-30',)`, `('2010-03-31',)` | Value Statics: Total count 80311 - Distinct count 3798 - Null count 0 | Column Description: Creation date for the list | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a tralist when he created the list | Value Description: 1 = the user was a trialist when he created the list 0 = the user was not a trialist when he created the list\n\tuser_subscriber INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he created the list | Value Description: 1 = the user was a subscriber when he created the list 0 = the user was not a subscriber when he created the list\n\tuser_avatar_image_url TEXT, -- | Column Description: User profile image URL on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: User profile cover image URL on Mubi \n\tuser_eligible_for_trial TEXT, -- Example Values: `0`, `1` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he created the list | Value Description: 1 = the user was eligible for trial when he created the list 0 = the user was not eligible for trial when he created the list\n\tuser_has_payment_method TEXT, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he created the list | Value Description: 1 = the user was a paying subscriber when he created the list 0 = the user was not a paying subscriber when he created the list\n\tprimary key (user_id, list_id),\n\tforeign key (list_id) references lists(list_id),\n\tforeign key (user_id) references lists(user_id),\n);\n\nCREATE TABLE ratings\n(\n\tmovie_id INTEGER, -- Example Values: `(1066,)`, `(1067,)`, `(1068,)` | Value Statics: Total count 100000 - Distinct count 371 - Null count 0 | Column Description: Movie ID related to the rating \n\trating_id INTEGER, -- Example Values: `(15610495,)`, `(10704606,)`, `(10177114,)` | Value Statics: Total count 100000 - Distinct count 99999 - Null count 0 | Column Description: Rating ID on Mubi \n\trating_url TEXT, -- | Column Description: URL to the rating on Mubi \n\trating_score INTEGER, -- Example Values: `3`, `2`, `4`, `5`, `1` | Value Statics: Total count 99731 - Distinct count 5 - Null count 269 | Column Description: Rating score ranging from 1 (lowest) to 5 (highest) | Value Description: The score is proportional to the user's liking. The higher the score is, the more the user likes the movie\n\trating_timestamp_utc TEXT, -- Example Values: `('2017-06-10 12:38:33',)`, `('2014-08-15 23:42:31',)`, `('2014-01-30 13:21:57',)` | Value Statics: Total count 100000 - Distinct count 99962 - Null count 0 | Column Description: Timestamp for the movie rating made by the user on Mubi \n\tcritic TEXT, -- | Column Description: Critic made by the user rating the movie. | Value Description: If value = \"None\", the user did not write a critic when rating the movie.\n\tcritic_likes INTEGER, -- Example Values: `(0,)`, `(1,)`, `(2,)` | Value Statics: Total count 100000 - Distinct count 22 - Null count 0 | Column Description: Number of likes related to the critic made by the user rating the movie \n\tcritic_comments INTEGER, -- Example Values: `(0,)`, `(2,)`, `(1,)` | Value Statics: Total count 100000 - Distinct count 15 - Null count 0 | Column Description: Number of comments related to the critic made by the user rating the movie \n\tuser_id INTEGER, -- Example Values: `(41579158,)`, `(85981819,)`, `(4208563,)` | Value Statics: Total count 100000 - Distinct count 34674 - Null count 0 | Column Description: ID related to the user rating the movie \n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether user was a tralist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tforeign key (movie_id) references movies(movie_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (rating_id) references ratings(rating_id),\n\tforeign key (user_id) references ratings_users(user_id),\n\tforeign key (user_id) references ratings_users(user_id),\n);", "question": "Name all lists created by a user who was a subcriber when created the list.", "evidence": "was a subscriber refers to user_subscriber = 1" }
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT DISTINCT T2.list_id FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T1.user_subscriber = 1" }
movie_platform
148
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null primary key,\n\tlist_title TEXT, -- Example Values: `('Films that made your kid sister cry',)`, `('Headscratchers',)`, `('Sexy Time Movies',)` | Value Statics: Total count 79565 - Distinct count 58898 - Null count 0 | Column Description: Name of the list \n\tlist_movie_number INTEGER, -- Example Values: `(5,)`, `(3,)`, `(7,)` | Value Statics: Total count 79565 - Distinct count 907 - Null count 0 | Column Description: Number of movies added to the list \n\tlist_update_timestamp_utc TEXT, -- Example Values: `('2019-01-24 19:16:18',)`, `('2018-12-03 15:12:20',)`, `('2019-05-30 03:00:07',)` | Value Statics: Total count 79565 - Distinct count 69576 - Null count 0 | Column Description: Last update timestamp for the list \n\tlist_creation_timestamp_utc TEXT, -- Example Values: `('2009-11-11 00:02:21',)`, `('2009-11-11 00:05:11',)`, `('2009-11-11 00:20:00',)` | Value Statics: Total count 79565 - Distinct count 79499 - Null count 0 | Column Description: Creation timestamp for the list \n\tlist_followers INTEGER, -- Example Values: `(5,)`, `(1,)`, `(6,)` | Value Statics: Total count 79565 - Distinct count 400 - Null count 0 | Column Description: Number of followers on the list \n\tlist_url TEXT, -- | Column Description: URL to the list page on Mubi \n\tlist_comments INTEGER, -- Example Values: `(3,)`, `(2,)`, `(5,)` | Value Statics: Total count 79565 - Distinct count 76 - Null count 0 | Column Description: Number of comments on the list \n\tlist_description TEXT, -- | Column Description: List description made by the user \n\tlist_cover_image_url TEXT, -- \n\tlist_first_image_url TEXT, -- \n\tlist_second_image_url TEXT, -- \n\tlist_third_image_url TEXT, -- \n);\n\nCREATE TABLE movies\n(\n\tmovie_id INTEGER not null primary key,\n\tmovie_title TEXT, -- Example Values: `('La Antena',)`, `('Elementary Particles',)`, `(\"It's Winter\",)` | Value Statics: Total count 100000 - Distinct count 91630 - Null count 0 | Column Description: Name of the movie \n\tmovie_release_year INTEGER, -- Example Values: `(2007,)`, `(2006,)`, `(2005,)` | Value Statics: Total count 99998 - Distinct count 135 - Null count 2 | Column Description: Release year of the movie \n\tmovie_url TEXT, -- Example Values: `('http://mubi.com/films/la-antena',)`, `('http://mubi.com/films/elementary-particles',)`, `('http://mubi.com/films/its-winter',)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 | Column Description: URL to the movie page on Mubi \n\tmovie_title_language TEXT, -- Example Values: `en` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0 | Column Description: By default, the title is in English. | Value Description: Only contains one value which is 'en'\n\tmovie_popularity INTEGER, -- Example Values: `(105,)`, `(23,)`, `(21,)` | Value Statics: Total count 100000 - Distinct count 1262 - Null count 0 | Column Description: Number of Mubi users who love this movie \n\tmovie_image_url TEXT, -- | Column Description: Image URL to the movie on Mubi \n\tdirector_id TEXT, -- Example Values: `('131',)`, `('73',)`, `('82',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: ID related to the movie director on Mubi \n\tdirector_name TEXT, -- Example Values: `('Esteban Sapir',)`, `('Oskar Roehler',)`, `('Rafi Pitts',)` | Value Statics: Total count 99997 - Distinct count 40150 - Null count 3 | Column Description: Full Name of the movie director \n\tdirector_url TEXT, -- Example Values: `('http://mubi.com/cast/esteban-sapir',)`, `('http://mubi.com/cast/oskar-roehler',)`, `('http://mubi.com/cast/rafi-pitts',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: URL to the movie director page on Mubi \n);\n\nCREATE TABLE ratings_users\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(41579158,)`, `(68654088,)`, `(84114365,)` | Value Statics: Total count 100000 - Distinct count 44084 - Null count 0 | Column Description: ID related to the user rating the movie \n\trating_date_utc TEXT, -- Example Values: `('2017-06-10',)`, `('2012-10-02',)`, `('2010-12-25',)` | Value Statics: Total count 100000 - Distinct count 4143 - Null count 0 | Column Description: Rating date for the movie rating. | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a trialist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he rated the movie | Value Description: 1 = the user was a subscriber when he rated the movie 0 = the user was not a subscriber when he rated the movie\n\tuser_avatar_image_url TEXT, -- | Column Description: URL to the user profile image on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: URL to the user profile cover image on Mubi \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he rated the movie | Value Description: 1 = the user was eligible for trial when he rated the movie 0 = the user was not eligible for trial when he rated the movie\n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he rated the movie | Value Description: 1 = the user was a paying subscriber when he rated the movie 0 = the user was not a paying subscriber when he rated\n);\n\nCREATE TABLE lists_users\n(\n\tuser_id INTEGER not null, -- Example Values: `(2385,)`, `(15264,)`, `(15344,)` | Value Statics: Total count 80311 - Distinct count 23118 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null, -- Example Values: `(192287,)`, `(192313,)`, `(192318,)` | Value Statics: Total count 80311 - Distinct count 80311 - Null count 0 | Column Description: ID of the list on Mubi \n\tlist_update_date_utc TEXT, -- Example Values: `('2019-11-26',)`, `('2020-05-01',)`, `('2020-04-12',)` | Value Statics: Total count 80311 - Distinct count 3801 - Null count 0 | Column Description: Last update date for the list | Value Description: YYYY-MM-DD\n\tlist_creation_date_utc TEXT, -- Example Values: `('2009-12-18',)`, `('2010-01-30',)`, `('2010-03-31',)` | Value Statics: Total count 80311 - Distinct count 3798 - Null count 0 | Column Description: Creation date for the list | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a tralist when he created the list | Value Description: 1 = the user was a trialist when he created the list 0 = the user was not a trialist when he created the list\n\tuser_subscriber INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he created the list | Value Description: 1 = the user was a subscriber when he created the list 0 = the user was not a subscriber when he created the list\n\tuser_avatar_image_url TEXT, -- | Column Description: User profile image URL on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: User profile cover image URL on Mubi \n\tuser_eligible_for_trial TEXT, -- Example Values: `0`, `1` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he created the list | Value Description: 1 = the user was eligible for trial when he created the list 0 = the user was not eligible for trial when he created the list\n\tuser_has_payment_method TEXT, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he created the list | Value Description: 1 = the user was a paying subscriber when he created the list 0 = the user was not a paying subscriber when he created the list\n\tprimary key (user_id, list_id),\n\tforeign key (list_id) references lists(list_id),\n\tforeign key (user_id) references lists(user_id),\n);\n\nCREATE TABLE ratings\n(\n\tmovie_id INTEGER, -- Example Values: `(1066,)`, `(1067,)`, `(1068,)` | Value Statics: Total count 100000 - Distinct count 371 - Null count 0 | Column Description: Movie ID related to the rating \n\trating_id INTEGER, -- Example Values: `(15610495,)`, `(10704606,)`, `(10177114,)` | Value Statics: Total count 100000 - Distinct count 99999 - Null count 0 | Column Description: Rating ID on Mubi \n\trating_url TEXT, -- | Column Description: URL to the rating on Mubi \n\trating_score INTEGER, -- Example Values: `3`, `2`, `4`, `5`, `1` | Value Statics: Total count 99731 - Distinct count 5 - Null count 269 | Column Description: Rating score ranging from 1 (lowest) to 5 (highest) | Value Description: The score is proportional to the user's liking. The higher the score is, the more the user likes the movie\n\trating_timestamp_utc TEXT, -- Example Values: `('2017-06-10 12:38:33',)`, `('2014-08-15 23:42:31',)`, `('2014-01-30 13:21:57',)` | Value Statics: Total count 100000 - Distinct count 99962 - Null count 0 | Column Description: Timestamp for the movie rating made by the user on Mubi \n\tcritic TEXT, -- | Column Description: Critic made by the user rating the movie. | Value Description: If value = \"None\", the user did not write a critic when rating the movie.\n\tcritic_likes INTEGER, -- Example Values: `(0,)`, `(1,)`, `(2,)` | Value Statics: Total count 100000 - Distinct count 22 - Null count 0 | Column Description: Number of likes related to the critic made by the user rating the movie \n\tcritic_comments INTEGER, -- Example Values: `(0,)`, `(2,)`, `(1,)` | Value Statics: Total count 100000 - Distinct count 15 - Null count 0 | Column Description: Number of comments related to the critic made by the user rating the movie \n\tuser_id INTEGER, -- Example Values: `(41579158,)`, `(85981819,)`, `(4208563,)` | Value Statics: Total count 100000 - Distinct count 34674 - Null count 0 | Column Description: ID related to the user rating the movie \n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether user was a tralist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tforeign key (movie_id) references movies(movie_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (rating_id) references ratings(rating_id),\n\tforeign key (user_id) references ratings_users(user_id),\n\tforeign key (user_id) references ratings_users(user_id),\n);", "question": "For the list with more than 200 followers, state the title and how long the list has been created?", "evidence": "more than 200 followers refers to list_followers >200; how long the list has been created refers to SUBTRACT(CURRENT_TIMESTAMP,list_creation_timestamp_utc)" }
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT list_title , 365 * (strftime('%Y', 'now') - strftime('%Y', list_creation_timestamp_utc)) + 30 * (strftime('%m', 'now') - strftime('%m', list_creation_timestamp_utc)) + strftime('%d', 'now') - strftime('%d', list_creation_timestamp_utc) FROM lists WHERE list_followers > 200" }
movie_platform
73
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null primary key,\n\tlist_title TEXT, -- Example Values: `('Films that made your kid sister cry',)`, `('Headscratchers',)`, `('Sexy Time Movies',)` | Value Statics: Total count 79565 - Distinct count 58898 - Null count 0 | Column Description: Name of the list \n\tlist_movie_number INTEGER, -- Example Values: `(5,)`, `(3,)`, `(7,)` | Value Statics: Total count 79565 - Distinct count 907 - Null count 0 | Column Description: Number of movies added to the list \n\tlist_update_timestamp_utc TEXT, -- Example Values: `('2019-01-24 19:16:18',)`, `('2018-12-03 15:12:20',)`, `('2019-05-30 03:00:07',)` | Value Statics: Total count 79565 - Distinct count 69576 - Null count 0 | Column Description: Last update timestamp for the list \n\tlist_creation_timestamp_utc TEXT, -- Example Values: `('2009-11-11 00:02:21',)`, `('2009-11-11 00:05:11',)`, `('2009-11-11 00:20:00',)` | Value Statics: Total count 79565 - Distinct count 79499 - Null count 0 | Column Description: Creation timestamp for the list \n\tlist_followers INTEGER, -- Example Values: `(5,)`, `(1,)`, `(6,)` | Value Statics: Total count 79565 - Distinct count 400 - Null count 0 | Column Description: Number of followers on the list \n\tlist_url TEXT, -- | Column Description: URL to the list page on Mubi \n\tlist_comments INTEGER, -- Example Values: `(3,)`, `(2,)`, `(5,)` | Value Statics: Total count 79565 - Distinct count 76 - Null count 0 | Column Description: Number of comments on the list \n\tlist_description TEXT, -- | Column Description: List description made by the user \n\tlist_cover_image_url TEXT, -- \n\tlist_first_image_url TEXT, -- \n\tlist_second_image_url TEXT, -- \n\tlist_third_image_url TEXT, -- \n);\n\nCREATE TABLE movies\n(\n\tmovie_id INTEGER not null primary key,\n\tmovie_title TEXT, -- Example Values: `('La Antena',)`, `('Elementary Particles',)`, `(\"It's Winter\",)` | Value Statics: Total count 100000 - Distinct count 91630 - Null count 0 | Column Description: Name of the movie \n\tmovie_release_year INTEGER, -- Example Values: `(2007,)`, `(2006,)`, `(2005,)` | Value Statics: Total count 99998 - Distinct count 135 - Null count 2 | Column Description: Release year of the movie \n\tmovie_url TEXT, -- Example Values: `('http://mubi.com/films/la-antena',)`, `('http://mubi.com/films/elementary-particles',)`, `('http://mubi.com/films/its-winter',)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 | Column Description: URL to the movie page on Mubi \n\tmovie_title_language TEXT, -- Example Values: `en` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0 | Column Description: By default, the title is in English. | Value Description: Only contains one value which is 'en'\n\tmovie_popularity INTEGER, -- Example Values: `(105,)`, `(23,)`, `(21,)` | Value Statics: Total count 100000 - Distinct count 1262 - Null count 0 | Column Description: Number of Mubi users who love this movie \n\tmovie_image_url TEXT, -- | Column Description: Image URL to the movie on Mubi \n\tdirector_id TEXT, -- Example Values: `('131',)`, `('73',)`, `('82',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: ID related to the movie director on Mubi \n\tdirector_name TEXT, -- Example Values: `('Esteban Sapir',)`, `('Oskar Roehler',)`, `('Rafi Pitts',)` | Value Statics: Total count 99997 - Distinct count 40150 - Null count 3 | Column Description: Full Name of the movie director \n\tdirector_url TEXT, -- Example Values: `('http://mubi.com/cast/esteban-sapir',)`, `('http://mubi.com/cast/oskar-roehler',)`, `('http://mubi.com/cast/rafi-pitts',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: URL to the movie director page on Mubi \n);\n\nCREATE TABLE ratings_users\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(41579158,)`, `(68654088,)`, `(84114365,)` | Value Statics: Total count 100000 - Distinct count 44084 - Null count 0 | Column Description: ID related to the user rating the movie \n\trating_date_utc TEXT, -- Example Values: `('2017-06-10',)`, `('2012-10-02',)`, `('2010-12-25',)` | Value Statics: Total count 100000 - Distinct count 4143 - Null count 0 | Column Description: Rating date for the movie rating. | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a trialist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he rated the movie | Value Description: 1 = the user was a subscriber when he rated the movie 0 = the user was not a subscriber when he rated the movie\n\tuser_avatar_image_url TEXT, -- | Column Description: URL to the user profile image on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: URL to the user profile cover image on Mubi \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he rated the movie | Value Description: 1 = the user was eligible for trial when he rated the movie 0 = the user was not eligible for trial when he rated the movie\n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he rated the movie | Value Description: 1 = the user was a paying subscriber when he rated the movie 0 = the user was not a paying subscriber when he rated\n);\n\nCREATE TABLE lists_users\n(\n\tuser_id INTEGER not null, -- Example Values: `(2385,)`, `(15264,)`, `(15344,)` | Value Statics: Total count 80311 - Distinct count 23118 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null, -- Example Values: `(192287,)`, `(192313,)`, `(192318,)` | Value Statics: Total count 80311 - Distinct count 80311 - Null count 0 | Column Description: ID of the list on Mubi \n\tlist_update_date_utc TEXT, -- Example Values: `('2019-11-26',)`, `('2020-05-01',)`, `('2020-04-12',)` | Value Statics: Total count 80311 - Distinct count 3801 - Null count 0 | Column Description: Last update date for the list | Value Description: YYYY-MM-DD\n\tlist_creation_date_utc TEXT, -- Example Values: `('2009-12-18',)`, `('2010-01-30',)`, `('2010-03-31',)` | Value Statics: Total count 80311 - Distinct count 3798 - Null count 0 | Column Description: Creation date for the list | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a tralist when he created the list | Value Description: 1 = the user was a trialist when he created the list 0 = the user was not a trialist when he created the list\n\tuser_subscriber INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he created the list | Value Description: 1 = the user was a subscriber when he created the list 0 = the user was not a subscriber when he created the list\n\tuser_avatar_image_url TEXT, -- | Column Description: User profile image URL on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: User profile cover image URL on Mubi \n\tuser_eligible_for_trial TEXT, -- Example Values: `0`, `1` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he created the list | Value Description: 1 = the user was eligible for trial when he created the list 0 = the user was not eligible for trial when he created the list\n\tuser_has_payment_method TEXT, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he created the list | Value Description: 1 = the user was a paying subscriber when he created the list 0 = the user was not a paying subscriber when he created the list\n\tprimary key (user_id, list_id),\n\tforeign key (list_id) references lists(list_id),\n\tforeign key (user_id) references lists(user_id),\n);\n\nCREATE TABLE ratings\n(\n\tmovie_id INTEGER, -- Example Values: `(1066,)`, `(1067,)`, `(1068,)` | Value Statics: Total count 100000 - Distinct count 371 - Null count 0 | Column Description: Movie ID related to the rating \n\trating_id INTEGER, -- Example Values: `(15610495,)`, `(10704606,)`, `(10177114,)` | Value Statics: Total count 100000 - Distinct count 99999 - Null count 0 | Column Description: Rating ID on Mubi \n\trating_url TEXT, -- | Column Description: URL to the rating on Mubi \n\trating_score INTEGER, -- Example Values: `3`, `2`, `4`, `5`, `1` | Value Statics: Total count 99731 - Distinct count 5 - Null count 269 | Column Description: Rating score ranging from 1 (lowest) to 5 (highest) | Value Description: The score is proportional to the user's liking. The higher the score is, the more the user likes the movie\n\trating_timestamp_utc TEXT, -- Example Values: `('2017-06-10 12:38:33',)`, `('2014-08-15 23:42:31',)`, `('2014-01-30 13:21:57',)` | Value Statics: Total count 100000 - Distinct count 99962 - Null count 0 | Column Description: Timestamp for the movie rating made by the user on Mubi \n\tcritic TEXT, -- | Column Description: Critic made by the user rating the movie. | Value Description: If value = \"None\", the user did not write a critic when rating the movie.\n\tcritic_likes INTEGER, -- Example Values: `(0,)`, `(1,)`, `(2,)` | Value Statics: Total count 100000 - Distinct count 22 - Null count 0 | Column Description: Number of likes related to the critic made by the user rating the movie \n\tcritic_comments INTEGER, -- Example Values: `(0,)`, `(2,)`, `(1,)` | Value Statics: Total count 100000 - Distinct count 15 - Null count 0 | Column Description: Number of comments related to the critic made by the user rating the movie \n\tuser_id INTEGER, -- Example Values: `(41579158,)`, `(85981819,)`, `(4208563,)` | Value Statics: Total count 100000 - Distinct count 34674 - Null count 0 | Column Description: ID related to the user rating the movie \n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether user was a tralist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tforeign key (movie_id) references movies(movie_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (rating_id) references ratings(rating_id),\n\tforeign key (user_id) references ratings_users(user_id),\n\tforeign key (user_id) references ratings_users(user_id),\n);", "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;" }
{ "db_mode": "train", "db_id": "movie_platform", "gt_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" }
movie_platform
27
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null primary key,\n\tlist_title TEXT, -- Example Values: `('Films that made your kid sister cry',)`, `('Headscratchers',)`, `('Sexy Time Movies',)` | Value Statics: Total count 79565 - Distinct count 58898 - Null count 0 | Column Description: Name of the list \n\tlist_movie_number INTEGER, -- Example Values: `(5,)`, `(3,)`, `(7,)` | Value Statics: Total count 79565 - Distinct count 907 - Null count 0 | Column Description: Number of movies added to the list \n\tlist_update_timestamp_utc TEXT, -- Example Values: `('2019-01-24 19:16:18',)`, `('2018-12-03 15:12:20',)`, `('2019-05-30 03:00:07',)` | Value Statics: Total count 79565 - Distinct count 69576 - Null count 0 | Column Description: Last update timestamp for the list \n\tlist_creation_timestamp_utc TEXT, -- Example Values: `('2009-11-11 00:02:21',)`, `('2009-11-11 00:05:11',)`, `('2009-11-11 00:20:00',)` | Value Statics: Total count 79565 - Distinct count 79499 - Null count 0 | Column Description: Creation timestamp for the list \n\tlist_followers INTEGER, -- Example Values: `(5,)`, `(1,)`, `(6,)` | Value Statics: Total count 79565 - Distinct count 400 - Null count 0 | Column Description: Number of followers on the list \n\tlist_url TEXT, -- | Column Description: URL to the list page on Mubi \n\tlist_comments INTEGER, -- Example Values: `(3,)`, `(2,)`, `(5,)` | Value Statics: Total count 79565 - Distinct count 76 - Null count 0 | Column Description: Number of comments on the list \n\tlist_description TEXT, -- | Column Description: List description made by the user \n\tlist_cover_image_url TEXT, -- \n\tlist_first_image_url TEXT, -- \n\tlist_second_image_url TEXT, -- \n\tlist_third_image_url TEXT, -- \n);\n\nCREATE TABLE movies\n(\n\tmovie_id INTEGER not null primary key,\n\tmovie_title TEXT, -- Example Values: `('La Antena',)`, `('Elementary Particles',)`, `(\"It's Winter\",)` | Value Statics: Total count 100000 - Distinct count 91630 - Null count 0 | Column Description: Name of the movie \n\tmovie_release_year INTEGER, -- Example Values: `(2007,)`, `(2006,)`, `(2005,)` | Value Statics: Total count 99998 - Distinct count 135 - Null count 2 | Column Description: Release year of the movie \n\tmovie_url TEXT, -- Example Values: `('http://mubi.com/films/la-antena',)`, `('http://mubi.com/films/elementary-particles',)`, `('http://mubi.com/films/its-winter',)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 | Column Description: URL to the movie page on Mubi \n\tmovie_title_language TEXT, -- Example Values: `en` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0 | Column Description: By default, the title is in English. | Value Description: Only contains one value which is 'en'\n\tmovie_popularity INTEGER, -- Example Values: `(105,)`, `(23,)`, `(21,)` | Value Statics: Total count 100000 - Distinct count 1262 - Null count 0 | Column Description: Number of Mubi users who love this movie \n\tmovie_image_url TEXT, -- | Column Description: Image URL to the movie on Mubi \n\tdirector_id TEXT, -- Example Values: `('131',)`, `('73',)`, `('82',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: ID related to the movie director on Mubi \n\tdirector_name TEXT, -- Example Values: `('Esteban Sapir',)`, `('Oskar Roehler',)`, `('Rafi Pitts',)` | Value Statics: Total count 99997 - Distinct count 40150 - Null count 3 | Column Description: Full Name of the movie director \n\tdirector_url TEXT, -- Example Values: `('http://mubi.com/cast/esteban-sapir',)`, `('http://mubi.com/cast/oskar-roehler',)`, `('http://mubi.com/cast/rafi-pitts',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: URL to the movie director page on Mubi \n);\n\nCREATE TABLE ratings_users\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(41579158,)`, `(68654088,)`, `(84114365,)` | Value Statics: Total count 100000 - Distinct count 44084 - Null count 0 | Column Description: ID related to the user rating the movie \n\trating_date_utc TEXT, -- Example Values: `('2017-06-10',)`, `('2012-10-02',)`, `('2010-12-25',)` | Value Statics: Total count 100000 - Distinct count 4143 - Null count 0 | Column Description: Rating date for the movie rating. | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a trialist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he rated the movie | Value Description: 1 = the user was a subscriber when he rated the movie 0 = the user was not a subscriber when he rated the movie\n\tuser_avatar_image_url TEXT, -- | Column Description: URL to the user profile image on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: URL to the user profile cover image on Mubi \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he rated the movie | Value Description: 1 = the user was eligible for trial when he rated the movie 0 = the user was not eligible for trial when he rated the movie\n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he rated the movie | Value Description: 1 = the user was a paying subscriber when he rated the movie 0 = the user was not a paying subscriber when he rated\n);\n\nCREATE TABLE lists_users\n(\n\tuser_id INTEGER not null, -- Example Values: `(2385,)`, `(15264,)`, `(15344,)` | Value Statics: Total count 80311 - Distinct count 23118 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null, -- Example Values: `(192287,)`, `(192313,)`, `(192318,)` | Value Statics: Total count 80311 - Distinct count 80311 - Null count 0 | Column Description: ID of the list on Mubi \n\tlist_update_date_utc TEXT, -- Example Values: `('2019-11-26',)`, `('2020-05-01',)`, `('2020-04-12',)` | Value Statics: Total count 80311 - Distinct count 3801 - Null count 0 | Column Description: Last update date for the list | Value Description: YYYY-MM-DD\n\tlist_creation_date_utc TEXT, -- Example Values: `('2009-12-18',)`, `('2010-01-30',)`, `('2010-03-31',)` | Value Statics: Total count 80311 - Distinct count 3798 - Null count 0 | Column Description: Creation date for the list | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a tralist when he created the list | Value Description: 1 = the user was a trialist when he created the list 0 = the user was not a trialist when he created the list\n\tuser_subscriber INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he created the list | Value Description: 1 = the user was a subscriber when he created the list 0 = the user was not a subscriber when he created the list\n\tuser_avatar_image_url TEXT, -- | Column Description: User profile image URL on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: User profile cover image URL on Mubi \n\tuser_eligible_for_trial TEXT, -- Example Values: `0`, `1` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he created the list | Value Description: 1 = the user was eligible for trial when he created the list 0 = the user was not eligible for trial when he created the list\n\tuser_has_payment_method TEXT, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he created the list | Value Description: 1 = the user was a paying subscriber when he created the list 0 = the user was not a paying subscriber when he created the list\n\tprimary key (user_id, list_id),\n\tforeign key (list_id) references lists(list_id),\n\tforeign key (user_id) references lists(user_id),\n);\n\nCREATE TABLE ratings\n(\n\tmovie_id INTEGER, -- Example Values: `(1066,)`, `(1067,)`, `(1068,)` | Value Statics: Total count 100000 - Distinct count 371 - Null count 0 | Column Description: Movie ID related to the rating \n\trating_id INTEGER, -- Example Values: `(15610495,)`, `(10704606,)`, `(10177114,)` | Value Statics: Total count 100000 - Distinct count 99999 - Null count 0 | Column Description: Rating ID on Mubi \n\trating_url TEXT, -- | Column Description: URL to the rating on Mubi \n\trating_score INTEGER, -- Example Values: `3`, `2`, `4`, `5`, `1` | Value Statics: Total count 99731 - Distinct count 5 - Null count 269 | Column Description: Rating score ranging from 1 (lowest) to 5 (highest) | Value Description: The score is proportional to the user's liking. The higher the score is, the more the user likes the movie\n\trating_timestamp_utc TEXT, -- Example Values: `('2017-06-10 12:38:33',)`, `('2014-08-15 23:42:31',)`, `('2014-01-30 13:21:57',)` | Value Statics: Total count 100000 - Distinct count 99962 - Null count 0 | Column Description: Timestamp for the movie rating made by the user on Mubi \n\tcritic TEXT, -- | Column Description: Critic made by the user rating the movie. | Value Description: If value = \"None\", the user did not write a critic when rating the movie.\n\tcritic_likes INTEGER, -- Example Values: `(0,)`, `(1,)`, `(2,)` | Value Statics: Total count 100000 - Distinct count 22 - Null count 0 | Column Description: Number of likes related to the critic made by the user rating the movie \n\tcritic_comments INTEGER, -- Example Values: `(0,)`, `(2,)`, `(1,)` | Value Statics: Total count 100000 - Distinct count 15 - Null count 0 | Column Description: Number of comments related to the critic made by the user rating the movie \n\tuser_id INTEGER, -- Example Values: `(41579158,)`, `(85981819,)`, `(4208563,)` | Value Statics: Total count 100000 - Distinct count 34674 - Null count 0 | Column Description: ID related to the user rating the movie \n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether user was a tralist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tforeign key (movie_id) references movies(movie_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (rating_id) references ratings(rating_id),\n\tforeign key (user_id) references ratings_users(user_id),\n\tforeign key (user_id) references ratings_users(user_id),\n);", "question": "What is the average rating score of the movie \"When Will I Be Loved\" and who was its director?", "evidence": "average rating score = AVG(rating_score);" }
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "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'" }
movie_platform
8
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null primary key,\n\tlist_title TEXT, -- Example Values: `('Films that made your kid sister cry',)`, `('Headscratchers',)`, `('Sexy Time Movies',)` | Value Statics: Total count 79565 - Distinct count 58898 - Null count 0 | Column Description: Name of the list \n\tlist_movie_number INTEGER, -- Example Values: `(5,)`, `(3,)`, `(7,)` | Value Statics: Total count 79565 - Distinct count 907 - Null count 0 | Column Description: Number of movies added to the list \n\tlist_update_timestamp_utc TEXT, -- Example Values: `('2019-01-24 19:16:18',)`, `('2018-12-03 15:12:20',)`, `('2019-05-30 03:00:07',)` | Value Statics: Total count 79565 - Distinct count 69576 - Null count 0 | Column Description: Last update timestamp for the list \n\tlist_creation_timestamp_utc TEXT, -- Example Values: `('2009-11-11 00:02:21',)`, `('2009-11-11 00:05:11',)`, `('2009-11-11 00:20:00',)` | Value Statics: Total count 79565 - Distinct count 79499 - Null count 0 | Column Description: Creation timestamp for the list \n\tlist_followers INTEGER, -- Example Values: `(5,)`, `(1,)`, `(6,)` | Value Statics: Total count 79565 - Distinct count 400 - Null count 0 | Column Description: Number of followers on the list \n\tlist_url TEXT, -- | Column Description: URL to the list page on Mubi \n\tlist_comments INTEGER, -- Example Values: `(3,)`, `(2,)`, `(5,)` | Value Statics: Total count 79565 - Distinct count 76 - Null count 0 | Column Description: Number of comments on the list \n\tlist_description TEXT, -- | Column Description: List description made by the user \n\tlist_cover_image_url TEXT, -- \n\tlist_first_image_url TEXT, -- \n\tlist_second_image_url TEXT, -- \n\tlist_third_image_url TEXT, -- \n);\n\nCREATE TABLE movies\n(\n\tmovie_id INTEGER not null primary key,\n\tmovie_title TEXT, -- Example Values: `('La Antena',)`, `('Elementary Particles',)`, `(\"It's Winter\",)` | Value Statics: Total count 100000 - Distinct count 91630 - Null count 0 | Column Description: Name of the movie \n\tmovie_release_year INTEGER, -- Example Values: `(2007,)`, `(2006,)`, `(2005,)` | Value Statics: Total count 99998 - Distinct count 135 - Null count 2 | Column Description: Release year of the movie \n\tmovie_url TEXT, -- Example Values: `('http://mubi.com/films/la-antena',)`, `('http://mubi.com/films/elementary-particles',)`, `('http://mubi.com/films/its-winter',)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 | Column Description: URL to the movie page on Mubi \n\tmovie_title_language TEXT, -- Example Values: `en` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0 | Column Description: By default, the title is in English. | Value Description: Only contains one value which is 'en'\n\tmovie_popularity INTEGER, -- Example Values: `(105,)`, `(23,)`, `(21,)` | Value Statics: Total count 100000 - Distinct count 1262 - Null count 0 | Column Description: Number of Mubi users who love this movie \n\tmovie_image_url TEXT, -- | Column Description: Image URL to the movie on Mubi \n\tdirector_id TEXT, -- Example Values: `('131',)`, `('73',)`, `('82',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: ID related to the movie director on Mubi \n\tdirector_name TEXT, -- Example Values: `('Esteban Sapir',)`, `('Oskar Roehler',)`, `('Rafi Pitts',)` | Value Statics: Total count 99997 - Distinct count 40150 - Null count 3 | Column Description: Full Name of the movie director \n\tdirector_url TEXT, -- Example Values: `('http://mubi.com/cast/esteban-sapir',)`, `('http://mubi.com/cast/oskar-roehler',)`, `('http://mubi.com/cast/rafi-pitts',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: URL to the movie director page on Mubi \n);\n\nCREATE TABLE ratings_users\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(41579158,)`, `(68654088,)`, `(84114365,)` | Value Statics: Total count 100000 - Distinct count 44084 - Null count 0 | Column Description: ID related to the user rating the movie \n\trating_date_utc TEXT, -- Example Values: `('2017-06-10',)`, `('2012-10-02',)`, `('2010-12-25',)` | Value Statics: Total count 100000 - Distinct count 4143 - Null count 0 | Column Description: Rating date for the movie rating. | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a trialist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he rated the movie | Value Description: 1 = the user was a subscriber when he rated the movie 0 = the user was not a subscriber when he rated the movie\n\tuser_avatar_image_url TEXT, -- | Column Description: URL to the user profile image on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: URL to the user profile cover image on Mubi \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he rated the movie | Value Description: 1 = the user was eligible for trial when he rated the movie 0 = the user was not eligible for trial when he rated the movie\n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he rated the movie | Value Description: 1 = the user was a paying subscriber when he rated the movie 0 = the user was not a paying subscriber when he rated\n);\n\nCREATE TABLE lists_users\n(\n\tuser_id INTEGER not null, -- Example Values: `(2385,)`, `(15264,)`, `(15344,)` | Value Statics: Total count 80311 - Distinct count 23118 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null, -- Example Values: `(192287,)`, `(192313,)`, `(192318,)` | Value Statics: Total count 80311 - Distinct count 80311 - Null count 0 | Column Description: ID of the list on Mubi \n\tlist_update_date_utc TEXT, -- Example Values: `('2019-11-26',)`, `('2020-05-01',)`, `('2020-04-12',)` | Value Statics: Total count 80311 - Distinct count 3801 - Null count 0 | Column Description: Last update date for the list | Value Description: YYYY-MM-DD\n\tlist_creation_date_utc TEXT, -- Example Values: `('2009-12-18',)`, `('2010-01-30',)`, `('2010-03-31',)` | Value Statics: Total count 80311 - Distinct count 3798 - Null count 0 | Column Description: Creation date for the list | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a tralist when he created the list | Value Description: 1 = the user was a trialist when he created the list 0 = the user was not a trialist when he created the list\n\tuser_subscriber INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he created the list | Value Description: 1 = the user was a subscriber when he created the list 0 = the user was not a subscriber when he created the list\n\tuser_avatar_image_url TEXT, -- | Column Description: User profile image URL on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: User profile cover image URL on Mubi \n\tuser_eligible_for_trial TEXT, -- Example Values: `0`, `1` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he created the list | Value Description: 1 = the user was eligible for trial when he created the list 0 = the user was not eligible for trial when he created the list\n\tuser_has_payment_method TEXT, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he created the list | Value Description: 1 = the user was a paying subscriber when he created the list 0 = the user was not a paying subscriber when he created the list\n\tprimary key (user_id, list_id),\n\tforeign key (list_id) references lists(list_id),\n\tforeign key (user_id) references lists(user_id),\n);\n\nCREATE TABLE ratings\n(\n\tmovie_id INTEGER, -- Example Values: `(1066,)`, `(1067,)`, `(1068,)` | Value Statics: Total count 100000 - Distinct count 371 - Null count 0 | Column Description: Movie ID related to the rating \n\trating_id INTEGER, -- Example Values: `(15610495,)`, `(10704606,)`, `(10177114,)` | Value Statics: Total count 100000 - Distinct count 99999 - Null count 0 | Column Description: Rating ID on Mubi \n\trating_url TEXT, -- | Column Description: URL to the rating on Mubi \n\trating_score INTEGER, -- Example Values: `3`, `2`, `4`, `5`, `1` | Value Statics: Total count 99731 - Distinct count 5 - Null count 269 | Column Description: Rating score ranging from 1 (lowest) to 5 (highest) | Value Description: The score is proportional to the user's liking. The higher the score is, the more the user likes the movie\n\trating_timestamp_utc TEXT, -- Example Values: `('2017-06-10 12:38:33',)`, `('2014-08-15 23:42:31',)`, `('2014-01-30 13:21:57',)` | Value Statics: Total count 100000 - Distinct count 99962 - Null count 0 | Column Description: Timestamp for the movie rating made by the user on Mubi \n\tcritic TEXT, -- | Column Description: Critic made by the user rating the movie. | Value Description: If value = \"None\", the user did not write a critic when rating the movie.\n\tcritic_likes INTEGER, -- Example Values: `(0,)`, `(1,)`, `(2,)` | Value Statics: Total count 100000 - Distinct count 22 - Null count 0 | Column Description: Number of likes related to the critic made by the user rating the movie \n\tcritic_comments INTEGER, -- Example Values: `(0,)`, `(2,)`, `(1,)` | Value Statics: Total count 100000 - Distinct count 15 - Null count 0 | Column Description: Number of comments related to the critic made by the user rating the movie \n\tuser_id INTEGER, -- Example Values: `(41579158,)`, `(85981819,)`, `(4208563,)` | Value Statics: Total count 100000 - Distinct count 34674 - Null count 0 | Column Description: ID related to the user rating the movie \n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether user was a tralist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tforeign key (movie_id) references movies(movie_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (rating_id) references ratings(rating_id),\n\tforeign key (user_id) references ratings_users(user_id),\n\tforeign key (user_id) references ratings_users(user_id),\n);", "question": "List all movie title rated in April 2020 from user who was a trialist.", "evidence": "movie title rated in April 2020 refers to rating_timestamp_utc LIKE '%2020-04-%'; user is a trial list refers to user_trialist = 1;" }
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT T1.movie_title FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T2.user_trialist = 1 AND T2.rating_timestamp_utc LIKE '2020-04%'" }
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
7