instruction
stringlengths
646
49.5k
input
stringclasses
1 value
output
stringlengths
23
804
Solve the following sql problem: Name movie titles released in year 1945. Sort the listing by the descending order of movie popularity. Schema: SCHEMA: - Table: lists - Column: user_id - Samples: [88260493, 45204418, 48905025, 12074910, 67171533] - Column: list_id - Samples: [1, 2, 3, 7, 8] - Column: list_title - Samples: [Films that made your kid sister cry, Headscratchers, Sexy Time Movies, This is America, Best Documentaries] - Column: list_movie_number - Samples: [5, 3, 7, 11, 41] - Column: list_update_timestamp_utc - Samples: [2019-01-24 19:16:18, 2018-12-03 15:12:20, 2019-05-30 03:00:07, 2019-01-24 19:16:18, 2020-04-25 05:55:07] - Column: list_creation_timestamp_utc - Samples: [2009-11-11 00:02:21, 2009-11-11 00:05:11, 2009-11-11 00:20:00, 2009-11-11 00:32:52, 2009-11-11 00:41:10] - Column: list_followers - Samples: [5, 1, 6, 9, 90] - Column: list_url - Samples: [http://mubi.com/lists/films-that-made-your-kid-sister-cry, http://mubi.com/lists/headscratchers, http://mubi.com/lists/sexy-time-movies, http://mubi.com/lists/this-is-america, http://mubi.com/lists/best-documentaries] - Column: list_comments - Samples: [3, 2, 5, 3, 4] - Column: list_description - Samples: [<p>Don’t be such a baby!!</p> <p><strong>bold</strong></p>, <p>Films that need at least two viewings to really make sense.</p> <p>..., <p>Films that get you in the mood…for love. In development.</p> <p>Rem..., <p>Stories of the people, place and things.</p>, <p>See also: <a href="http://www.theauteurs.com/lists/31" rel="nofollo... (truncated)] - Column: list_cover_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w1280.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w1280.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w1280.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w1280.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w1280.jpg?1546480829] - Column: list_first_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w320.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w320.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w320.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w320.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w320.jpg?1546480829] - Column: list_second_image_url - Samples: [https://assets.mubicdn.net/images/film/506/image-w320.jpg?1543838422, https://assets.mubicdn.net/images/film/159/image-w320.jpg?1548864573, https://assets.mubicdn.net/images/film/2377/image-w320.jpg?1564675204, https://assets.mubicdn.net/images/film/1033/image-w320.jpg?1553538051, https://assets.mubicdn.net/images/film/2115/image-w320.jpg?1563782406] - Column: list_third_image_url - Samples: [https://assets.mubicdn.net/images/film/485/image-w320.jpg?1575331204, https://assets.mubicdn.net/images/film/142/image-w320.jpg?1544094102, https://assets.mubicdn.net/images/film/2874/image-w320.jpg?1546574412, https://assets.mubicdn.net/images/film/407/image-w320.jpg?1490057681, https://assets.mubicdn.net/images/film/1688/image-w320.jpg?1575033549] - Table: movies - Column: movie_id - Samples: [1, 2, 3, 4, 5] - Column: movie_title - Samples: [La Antena, Elementary Particles, It's Winter, Kirikou and the Wild Beasts, Padre Nuestro] - Column: movie_release_year - Samples: [2007, 2006, 2006, 2005, 2007] - Column: movie_url - Samples: [http://mubi.com/films/la-antena, http://mubi.com/films/elementary-particles, http://mubi.com/films/its-winter, http://mubi.com/films/kirikou-and-the-wild-beasts, http://mubi.com/films/padre-nuestro] - Column: movie_title_language - Samples: [en, en, en, en, en] - Column: movie_popularity - Samples: [105, 23, 21, 46, 7] - Column: movie_image_url - Samples: [https://images.mubicdn.net/images/film/1/cache-7927-1581389497/image-w..., https://images.mubicdn.net/images/film/2/cache-512179-1581389841/image..., https://images.mubicdn.net/images/film/3/cache-7929-1481539519/image-w..., https://images.mubicdn.net/images/film/4/cache-7930-1568880017/image-w..., https://images.mubicdn.net/images/film/5/cache-7931-1581390636/image-w... (truncated)] - Column: director_id - Samples: [131, 73, 82, 89, 90, 92] - Column: director_name - Samples: [Esteban Sapir, Oskar Roehler, Rafi Pitts, Michel Ocelot, Bénédicte Galup, Christopher Zalla] - Column: director_url - Samples: [http://mubi.com/cast/esteban-sapir, http://mubi.com/cast/oskar-roehler, http://mubi.com/cast/rafi-pitts, http://mubi.com/cast/michel-ocelot, http://mubi.com/cast/benedicte-gal..., http://mubi.com/cast/christopher-zalla (truncated)] - Table: ratings_users - Column: user_id - Samples: [41579158, 68654088, 84114365, 29755671, 93302487] - Column: rating_date_utc - Samples: [2017-06-10, 2012-10-02, 2010-12-25, 2010-11-15, 2010-01-05] - Column: user_trialist - Samples: [0, 0, 0, 0, 0] - Column: user_subscriber - Samples: [0, 0, 0, 0, 0] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74283/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/27714/images-w150.jpg?152388..., https://assets.mubicdn.net/images/avatars/1808/images-w150.jpg?1523883..., //mubi.com/assets/placeholders/avatar-c68833eec06a12b110c74dd2fa1709ae..., https://assets.mubicdn.net/images/avatars/12246/images-w150.jpg?152388... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [1, 1, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 0, 0, 0] - Table: lists_users - Column: user_id - Samples: [85981819, 85981819, 85981819, 85981819, 85981819] - Column: list_id - Samples: [1969, 3946, 6683, 8865, 13796] - Column: list_update_date_utc - Samples: [2019-11-26, 2020-05-01, 2020-04-12, 2018-12-14, 2019-11-26] - Column: list_creation_date_utc - Samples: [2009-12-18, 2010-01-30, 2010-03-31, 2010-05-10, 2010-08-25] - Column: user_trialist - Samples: [1, 1, 1, 1, 1] - Column: user_subscriber - Samples: [1, 1, 1, 1, 1] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [0, 0, 0, 0, 0] - Column: user_has_payment_method - Samples: [1, 1, 1, 1, 1] - Table: ratings - Column: movie_id - Samples: [1066, 1066, 1066, 1066, 1066] - Column: rating_id - Samples: [15610495, 10704606, 10177114, 10130280, 8357049] - Column: rating_url - Samples: [http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1561049..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1070460..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1017711..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1013028..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/8357049 (truncated)] - Column: rating_score - Samples: [3, 2, 2, 3, 4] - Column: rating_timestamp_utc - Samples: [2017-06-10 12:38:33, 2014-08-15 23:42:31, 2014-01-30 13:21:57, 2014-01-19 01:04:23, 2012-10-02 18:28:47] - Column: critic - Samples: [None, None, None, I am a bit disappointed by this documentary film I've been wanting to ..., None (truncated)] - Column: critic_likes - Samples: [0, 0, 0, 0, 0] - Column: critic_comments - Samples: [0, 0, 0, 0, 0] - Column: user_id - Samples: [41579158, 85981819, 4208563, 9820140, 68654088] - Column: user_trialist - Samples: [0, 1, 0, 0, 0] - Column: user_subscriber - Samples: [0, 1, 0, 0, 0] - Column: user_eligible_for_trial - Samples: [1, 0, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 1, 0, 1]
SELECT movie_title FROM movies WHERE movie_release_year = 1945 ORDER BY movie_popularity DESC LIMIT 1
Solve the following sql problem: State the most popular movie? When was it released and who is the director for the movie? Schema: SCHEMA: - Table: lists - Column: user_id - Samples: [88260493, 45204418, 48905025, 12074910, 67171533] - Column: list_id - Samples: [1, 2, 3, 7, 8] - Column: list_title - Samples: [Films that made your kid sister cry, Headscratchers, Sexy Time Movies, This is America, Best Documentaries] - Column: list_movie_number - Samples: [5, 3, 7, 11, 41] - Column: list_update_timestamp_utc - Samples: [2019-01-24 19:16:18, 2018-12-03 15:12:20, 2019-05-30 03:00:07, 2019-01-24 19:16:18, 2020-04-25 05:55:07] - Column: list_creation_timestamp_utc - Samples: [2009-11-11 00:02:21, 2009-11-11 00:05:11, 2009-11-11 00:20:00, 2009-11-11 00:32:52, 2009-11-11 00:41:10] - Column: list_followers - Samples: [5, 1, 6, 9, 90] - Column: list_url - Samples: [http://mubi.com/lists/films-that-made-your-kid-sister-cry, http://mubi.com/lists/headscratchers, http://mubi.com/lists/sexy-time-movies, http://mubi.com/lists/this-is-america, http://mubi.com/lists/best-documentaries] - Column: list_comments - Samples: [3, 2, 5, 3, 4] - Column: list_description - Samples: [<p>Don’t be such a baby!!</p> <p><strong>bold</strong></p>, <p>Films that need at least two viewings to really make sense.</p> <p>..., <p>Films that get you in the mood…for love. In development.</p> <p>Rem..., <p>Stories of the people, place and things.</p>, <p>See also: <a href="http://www.theauteurs.com/lists/31" rel="nofollo... (truncated)] - Column: list_cover_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w1280.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w1280.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w1280.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w1280.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w1280.jpg?1546480829] - Column: list_first_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w320.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w320.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w320.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w320.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w320.jpg?1546480829] - Column: list_second_image_url - Samples: [https://assets.mubicdn.net/images/film/506/image-w320.jpg?1543838422, https://assets.mubicdn.net/images/film/159/image-w320.jpg?1548864573, https://assets.mubicdn.net/images/film/2377/image-w320.jpg?1564675204, https://assets.mubicdn.net/images/film/1033/image-w320.jpg?1553538051, https://assets.mubicdn.net/images/film/2115/image-w320.jpg?1563782406] - Column: list_third_image_url - Samples: [https://assets.mubicdn.net/images/film/485/image-w320.jpg?1575331204, https://assets.mubicdn.net/images/film/142/image-w320.jpg?1544094102, https://assets.mubicdn.net/images/film/2874/image-w320.jpg?1546574412, https://assets.mubicdn.net/images/film/407/image-w320.jpg?1490057681, https://assets.mubicdn.net/images/film/1688/image-w320.jpg?1575033549] - Table: movies - Column: movie_id - Samples: [1, 2, 3, 4, 5] - Column: movie_title - Samples: [La Antena, Elementary Particles, It's Winter, Kirikou and the Wild Beasts, Padre Nuestro] - Column: movie_release_year - Samples: [2007, 2006, 2006, 2005, 2007] - Column: movie_url - Samples: [http://mubi.com/films/la-antena, http://mubi.com/films/elementary-particles, http://mubi.com/films/its-winter, http://mubi.com/films/kirikou-and-the-wild-beasts, http://mubi.com/films/padre-nuestro] - Column: movie_title_language - Samples: [en, en, en, en, en] - Column: movie_popularity - Samples: [105, 23, 21, 46, 7] - Column: movie_image_url - Samples: [https://images.mubicdn.net/images/film/1/cache-7927-1581389497/image-w..., https://images.mubicdn.net/images/film/2/cache-512179-1581389841/image..., https://images.mubicdn.net/images/film/3/cache-7929-1481539519/image-w..., https://images.mubicdn.net/images/film/4/cache-7930-1568880017/image-w..., https://images.mubicdn.net/images/film/5/cache-7931-1581390636/image-w... (truncated)] - Column: director_id - Samples: [131, 73, 82, 89, 90, 92] - Column: director_name - Samples: [Esteban Sapir, Oskar Roehler, Rafi Pitts, Michel Ocelot, Bénédicte Galup, Christopher Zalla] - Column: director_url - Samples: [http://mubi.com/cast/esteban-sapir, http://mubi.com/cast/oskar-roehler, http://mubi.com/cast/rafi-pitts, http://mubi.com/cast/michel-ocelot, http://mubi.com/cast/benedicte-gal..., http://mubi.com/cast/christopher-zalla (truncated)] - Table: ratings_users - Column: user_id - Samples: [41579158, 68654088, 84114365, 29755671, 93302487] - Column: rating_date_utc - Samples: [2017-06-10, 2012-10-02, 2010-12-25, 2010-11-15, 2010-01-05] - Column: user_trialist - Samples: [0, 0, 0, 0, 0] - Column: user_subscriber - Samples: [0, 0, 0, 0, 0] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74283/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/27714/images-w150.jpg?152388..., https://assets.mubicdn.net/images/avatars/1808/images-w150.jpg?1523883..., //mubi.com/assets/placeholders/avatar-c68833eec06a12b110c74dd2fa1709ae..., https://assets.mubicdn.net/images/avatars/12246/images-w150.jpg?152388... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [1, 1, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 0, 0, 0] - Table: lists_users - Column: user_id - Samples: [85981819, 85981819, 85981819, 85981819, 85981819] - Column: list_id - Samples: [1969, 3946, 6683, 8865, 13796] - Column: list_update_date_utc - Samples: [2019-11-26, 2020-05-01, 2020-04-12, 2018-12-14, 2019-11-26] - Column: list_creation_date_utc - Samples: [2009-12-18, 2010-01-30, 2010-03-31, 2010-05-10, 2010-08-25] - Column: user_trialist - Samples: [1, 1, 1, 1, 1] - Column: user_subscriber - Samples: [1, 1, 1, 1, 1] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [0, 0, 0, 0, 0] - Column: user_has_payment_method - Samples: [1, 1, 1, 1, 1] - Table: ratings - Column: movie_id - Samples: [1066, 1066, 1066, 1066, 1066] - Column: rating_id - Samples: [15610495, 10704606, 10177114, 10130280, 8357049] - Column: rating_url - Samples: [http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1561049..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1070460..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1017711..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1013028..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/8357049 (truncated)] - Column: rating_score - Samples: [3, 2, 2, 3, 4] - Column: rating_timestamp_utc - Samples: [2017-06-10 12:38:33, 2014-08-15 23:42:31, 2014-01-30 13:21:57, 2014-01-19 01:04:23, 2012-10-02 18:28:47] - Column: critic - Samples: [None, None, None, I am a bit disappointed by this documentary film I've been wanting to ..., None (truncated)] - Column: critic_likes - Samples: [0, 0, 0, 0, 0] - Column: critic_comments - Samples: [0, 0, 0, 0, 0] - Column: user_id - Samples: [41579158, 85981819, 4208563, 9820140, 68654088] - Column: user_trialist - Samples: [0, 1, 0, 0, 0] - Column: user_subscriber - Samples: [0, 1, 0, 0, 0] - Column: user_eligible_for_trial - Samples: [1, 0, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 1, 0, 1]
SELECT movie_title, movie_release_year, director_name FROM movies ORDER BY movie_popularity DESC LIMIT 1
Solve the following sql problem: What is the name of the longest movie title? When was it released? Schema: SCHEMA: - Table: lists - Column: user_id - Samples: [88260493, 45204418, 48905025, 12074910, 67171533] - Column: list_id - Samples: [1, 2, 3, 7, 8] - Column: list_title - Samples: [Films that made your kid sister cry, Headscratchers, Sexy Time Movies, This is America, Best Documentaries] - Column: list_movie_number - Samples: [5, 3, 7, 11, 41] - Column: list_update_timestamp_utc - Samples: [2019-01-24 19:16:18, 2018-12-03 15:12:20, 2019-05-30 03:00:07, 2019-01-24 19:16:18, 2020-04-25 05:55:07] - Column: list_creation_timestamp_utc - Samples: [2009-11-11 00:02:21, 2009-11-11 00:05:11, 2009-11-11 00:20:00, 2009-11-11 00:32:52, 2009-11-11 00:41:10] - Column: list_followers - Samples: [5, 1, 6, 9, 90] - Column: list_url - Samples: [http://mubi.com/lists/films-that-made-your-kid-sister-cry, http://mubi.com/lists/headscratchers, http://mubi.com/lists/sexy-time-movies, http://mubi.com/lists/this-is-america, http://mubi.com/lists/best-documentaries] - Column: list_comments - Samples: [3, 2, 5, 3, 4] - Column: list_description - Samples: [<p>Don’t be such a baby!!</p> <p><strong>bold</strong></p>, <p>Films that need at least two viewings to really make sense.</p> <p>..., <p>Films that get you in the mood…for love. In development.</p> <p>Rem..., <p>Stories of the people, place and things.</p>, <p>See also: <a href="http://www.theauteurs.com/lists/31" rel="nofollo... (truncated)] - Column: list_cover_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w1280.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w1280.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w1280.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w1280.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w1280.jpg?1546480829] - Column: list_first_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w320.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w320.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w320.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w320.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w320.jpg?1546480829] - Column: list_second_image_url - Samples: [https://assets.mubicdn.net/images/film/506/image-w320.jpg?1543838422, https://assets.mubicdn.net/images/film/159/image-w320.jpg?1548864573, https://assets.mubicdn.net/images/film/2377/image-w320.jpg?1564675204, https://assets.mubicdn.net/images/film/1033/image-w320.jpg?1553538051, https://assets.mubicdn.net/images/film/2115/image-w320.jpg?1563782406] - Column: list_third_image_url - Samples: [https://assets.mubicdn.net/images/film/485/image-w320.jpg?1575331204, https://assets.mubicdn.net/images/film/142/image-w320.jpg?1544094102, https://assets.mubicdn.net/images/film/2874/image-w320.jpg?1546574412, https://assets.mubicdn.net/images/film/407/image-w320.jpg?1490057681, https://assets.mubicdn.net/images/film/1688/image-w320.jpg?1575033549] - Table: movies - Column: movie_id - Samples: [1, 2, 3, 4, 5] - Column: movie_title - Samples: [La Antena, Elementary Particles, It's Winter, Kirikou and the Wild Beasts, Padre Nuestro] - Column: movie_release_year - Samples: [2007, 2006, 2006, 2005, 2007] - Column: movie_url - Samples: [http://mubi.com/films/la-antena, http://mubi.com/films/elementary-particles, http://mubi.com/films/its-winter, http://mubi.com/films/kirikou-and-the-wild-beasts, http://mubi.com/films/padre-nuestro] - Column: movie_title_language - Samples: [en, en, en, en, en] - Column: movie_popularity - Samples: [105, 23, 21, 46, 7] - Column: movie_image_url - Samples: [https://images.mubicdn.net/images/film/1/cache-7927-1581389497/image-w..., https://images.mubicdn.net/images/film/2/cache-512179-1581389841/image..., https://images.mubicdn.net/images/film/3/cache-7929-1481539519/image-w..., https://images.mubicdn.net/images/film/4/cache-7930-1568880017/image-w..., https://images.mubicdn.net/images/film/5/cache-7931-1581390636/image-w... (truncated)] - Column: director_id - Samples: [131, 73, 82, 89, 90, 92] - Column: director_name - Samples: [Esteban Sapir, Oskar Roehler, Rafi Pitts, Michel Ocelot, Bénédicte Galup, Christopher Zalla] - Column: director_url - Samples: [http://mubi.com/cast/esteban-sapir, http://mubi.com/cast/oskar-roehler, http://mubi.com/cast/rafi-pitts, http://mubi.com/cast/michel-ocelot, http://mubi.com/cast/benedicte-gal..., http://mubi.com/cast/christopher-zalla (truncated)] - Table: ratings_users - Column: user_id - Samples: [41579158, 68654088, 84114365, 29755671, 93302487] - Column: rating_date_utc - Samples: [2017-06-10, 2012-10-02, 2010-12-25, 2010-11-15, 2010-01-05] - Column: user_trialist - Samples: [0, 0, 0, 0, 0] - Column: user_subscriber - Samples: [0, 0, 0, 0, 0] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74283/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/27714/images-w150.jpg?152388..., https://assets.mubicdn.net/images/avatars/1808/images-w150.jpg?1523883..., //mubi.com/assets/placeholders/avatar-c68833eec06a12b110c74dd2fa1709ae..., https://assets.mubicdn.net/images/avatars/12246/images-w150.jpg?152388... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [1, 1, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 0, 0, 0] - Table: lists_users - Column: user_id - Samples: [85981819, 85981819, 85981819, 85981819, 85981819] - Column: list_id - Samples: [1969, 3946, 6683, 8865, 13796] - Column: list_update_date_utc - Samples: [2019-11-26, 2020-05-01, 2020-04-12, 2018-12-14, 2019-11-26] - Column: list_creation_date_utc - Samples: [2009-12-18, 2010-01-30, 2010-03-31, 2010-05-10, 2010-08-25] - Column: user_trialist - Samples: [1, 1, 1, 1, 1] - Column: user_subscriber - Samples: [1, 1, 1, 1, 1] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [0, 0, 0, 0, 0] - Column: user_has_payment_method - Samples: [1, 1, 1, 1, 1] - Table: ratings - Column: movie_id - Samples: [1066, 1066, 1066, 1066, 1066] - Column: rating_id - Samples: [15610495, 10704606, 10177114, 10130280, 8357049] - Column: rating_url - Samples: [http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1561049..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1070460..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1017711..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1013028..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/8357049 (truncated)] - Column: rating_score - Samples: [3, 2, 2, 3, 4] - Column: rating_timestamp_utc - Samples: [2017-06-10 12:38:33, 2014-08-15 23:42:31, 2014-01-30 13:21:57, 2014-01-19 01:04:23, 2012-10-02 18:28:47] - Column: critic - Samples: [None, None, None, I am a bit disappointed by this documentary film I've been wanting to ..., None (truncated)] - Column: critic_likes - Samples: [0, 0, 0, 0, 0] - Column: critic_comments - Samples: [0, 0, 0, 0, 0] - Column: user_id - Samples: [41579158, 85981819, 4208563, 9820140, 68654088] - Column: user_trialist - Samples: [0, 1, 0, 0, 0] - Column: user_subscriber - Samples: [0, 1, 0, 0, 0] - Column: user_eligible_for_trial - Samples: [1, 0, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 1, 0, 1]
SELECT movie_title, movie_release_year FROM movies ORDER BY LENGTH(movie_popularity) DESC LIMIT 1
Solve the following sql problem: Name the movie with the most ratings. Schema: SCHEMA: - Table: lists - Column: user_id - Samples: [88260493, 45204418, 48905025, 12074910, 67171533] - Column: list_id - Samples: [1, 2, 3, 7, 8] - Column: list_title - Samples: [Films that made your kid sister cry, Headscratchers, Sexy Time Movies, This is America, Best Documentaries] - Column: list_movie_number - Samples: [5, 3, 7, 11, 41] - Column: list_update_timestamp_utc - Samples: [2019-01-24 19:16:18, 2018-12-03 15:12:20, 2019-05-30 03:00:07, 2019-01-24 19:16:18, 2020-04-25 05:55:07] - Column: list_creation_timestamp_utc - Samples: [2009-11-11 00:02:21, 2009-11-11 00:05:11, 2009-11-11 00:20:00, 2009-11-11 00:32:52, 2009-11-11 00:41:10] - Column: list_followers - Samples: [5, 1, 6, 9, 90] - Column: list_url - Samples: [http://mubi.com/lists/films-that-made-your-kid-sister-cry, http://mubi.com/lists/headscratchers, http://mubi.com/lists/sexy-time-movies, http://mubi.com/lists/this-is-america, http://mubi.com/lists/best-documentaries] - Column: list_comments - Samples: [3, 2, 5, 3, 4] - Column: list_description - Samples: [<p>Don’t be such a baby!!</p> <p><strong>bold</strong></p>, <p>Films that need at least two viewings to really make sense.</p> <p>..., <p>Films that get you in the mood…for love. In development.</p> <p>Rem..., <p>Stories of the people, place and things.</p>, <p>See also: <a href="http://www.theauteurs.com/lists/31" rel="nofollo... (truncated)] - Column: list_cover_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w1280.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w1280.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w1280.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w1280.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w1280.jpg?1546480829] - Column: list_first_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w320.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w320.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w320.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w320.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w320.jpg?1546480829] - Column: list_second_image_url - Samples: [https://assets.mubicdn.net/images/film/506/image-w320.jpg?1543838422, https://assets.mubicdn.net/images/film/159/image-w320.jpg?1548864573, https://assets.mubicdn.net/images/film/2377/image-w320.jpg?1564675204, https://assets.mubicdn.net/images/film/1033/image-w320.jpg?1553538051, https://assets.mubicdn.net/images/film/2115/image-w320.jpg?1563782406] - Column: list_third_image_url - Samples: [https://assets.mubicdn.net/images/film/485/image-w320.jpg?1575331204, https://assets.mubicdn.net/images/film/142/image-w320.jpg?1544094102, https://assets.mubicdn.net/images/film/2874/image-w320.jpg?1546574412, https://assets.mubicdn.net/images/film/407/image-w320.jpg?1490057681, https://assets.mubicdn.net/images/film/1688/image-w320.jpg?1575033549] - Table: movies - Column: movie_id - Samples: [1, 2, 3, 4, 5] - Column: movie_title - Samples: [La Antena, Elementary Particles, It's Winter, Kirikou and the Wild Beasts, Padre Nuestro] - Column: movie_release_year - Samples: [2007, 2006, 2006, 2005, 2007] - Column: movie_url - Samples: [http://mubi.com/films/la-antena, http://mubi.com/films/elementary-particles, http://mubi.com/films/its-winter, http://mubi.com/films/kirikou-and-the-wild-beasts, http://mubi.com/films/padre-nuestro] - Column: movie_title_language - Samples: [en, en, en, en, en] - Column: movie_popularity - Samples: [105, 23, 21, 46, 7] - Column: movie_image_url - Samples: [https://images.mubicdn.net/images/film/1/cache-7927-1581389497/image-w..., https://images.mubicdn.net/images/film/2/cache-512179-1581389841/image..., https://images.mubicdn.net/images/film/3/cache-7929-1481539519/image-w..., https://images.mubicdn.net/images/film/4/cache-7930-1568880017/image-w..., https://images.mubicdn.net/images/film/5/cache-7931-1581390636/image-w... (truncated)] - Column: director_id - Samples: [131, 73, 82, 89, 90, 92] - Column: director_name - Samples: [Esteban Sapir, Oskar Roehler, Rafi Pitts, Michel Ocelot, Bénédicte Galup, Christopher Zalla] - Column: director_url - Samples: [http://mubi.com/cast/esteban-sapir, http://mubi.com/cast/oskar-roehler, http://mubi.com/cast/rafi-pitts, http://mubi.com/cast/michel-ocelot, http://mubi.com/cast/benedicte-gal..., http://mubi.com/cast/christopher-zalla (truncated)] - Table: ratings_users - Column: user_id - Samples: [41579158, 68654088, 84114365, 29755671, 93302487] - Column: rating_date_utc - Samples: [2017-06-10, 2012-10-02, 2010-12-25, 2010-11-15, 2010-01-05] - Column: user_trialist - Samples: [0, 0, 0, 0, 0] - Column: user_subscriber - Samples: [0, 0, 0, 0, 0] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74283/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/27714/images-w150.jpg?152388..., https://assets.mubicdn.net/images/avatars/1808/images-w150.jpg?1523883..., //mubi.com/assets/placeholders/avatar-c68833eec06a12b110c74dd2fa1709ae..., https://assets.mubicdn.net/images/avatars/12246/images-w150.jpg?152388... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [1, 1, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 0, 0, 0] - Table: lists_users - Column: user_id - Samples: [85981819, 85981819, 85981819, 85981819, 85981819] - Column: list_id - Samples: [1969, 3946, 6683, 8865, 13796] - Column: list_update_date_utc - Samples: [2019-11-26, 2020-05-01, 2020-04-12, 2018-12-14, 2019-11-26] - Column: list_creation_date_utc - Samples: [2009-12-18, 2010-01-30, 2010-03-31, 2010-05-10, 2010-08-25] - Column: user_trialist - Samples: [1, 1, 1, 1, 1] - Column: user_subscriber - Samples: [1, 1, 1, 1, 1] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [0, 0, 0, 0, 0] - Column: user_has_payment_method - Samples: [1, 1, 1, 1, 1] - Table: ratings - Column: movie_id - Samples: [1066, 1066, 1066, 1066, 1066] - Column: rating_id - Samples: [15610495, 10704606, 10177114, 10130280, 8357049] - Column: rating_url - Samples: [http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1561049..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1070460..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1017711..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1013028..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/8357049 (truncated)] - Column: rating_score - Samples: [3, 2, 2, 3, 4] - Column: rating_timestamp_utc - Samples: [2017-06-10 12:38:33, 2014-08-15 23:42:31, 2014-01-30 13:21:57, 2014-01-19 01:04:23, 2012-10-02 18:28:47] - Column: critic - Samples: [None, None, None, I am a bit disappointed by this documentary film I've been wanting to ..., None (truncated)] - Column: critic_likes - Samples: [0, 0, 0, 0, 0] - Column: critic_comments - Samples: [0, 0, 0, 0, 0] - Column: user_id - Samples: [41579158, 85981819, 4208563, 9820140, 68654088] - Column: user_trialist - Samples: [0, 1, 0, 0, 0] - Column: user_subscriber - Samples: [0, 1, 0, 0, 0] - Column: user_eligible_for_trial - Samples: [1, 0, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 1, 0, 1]
SELECT movie_title FROM movies GROUP BY movie_title ORDER BY COUNT(movie_title) DESC LIMIT 1
Solve the following sql problem: What is the average number of Mubi users who love movies directed by Stanley Kubrick? Schema: SCHEMA: - Table: lists - Column: user_id - Samples: [88260493, 45204418, 48905025, 12074910, 67171533] - Column: list_id - Samples: [1, 2, 3, 7, 8] - Column: list_title - Samples: [Films that made your kid sister cry, Headscratchers, Sexy Time Movies, This is America, Best Documentaries] - Column: list_movie_number - Samples: [5, 3, 7, 11, 41] - Column: list_update_timestamp_utc - Samples: [2019-01-24 19:16:18, 2018-12-03 15:12:20, 2019-05-30 03:00:07, 2019-01-24 19:16:18, 2020-04-25 05:55:07] - Column: list_creation_timestamp_utc - Samples: [2009-11-11 00:02:21, 2009-11-11 00:05:11, 2009-11-11 00:20:00, 2009-11-11 00:32:52, 2009-11-11 00:41:10] - Column: list_followers - Samples: [5, 1, 6, 9, 90] - Column: list_url - Samples: [http://mubi.com/lists/films-that-made-your-kid-sister-cry, http://mubi.com/lists/headscratchers, http://mubi.com/lists/sexy-time-movies, http://mubi.com/lists/this-is-america, http://mubi.com/lists/best-documentaries] - Column: list_comments - Samples: [3, 2, 5, 3, 4] - Column: list_description - Samples: [<p>Don’t be such a baby!!</p> <p><strong>bold</strong></p>, <p>Films that need at least two viewings to really make sense.</p> <p>..., <p>Films that get you in the mood…for love. In development.</p> <p>Rem..., <p>Stories of the people, place and things.</p>, <p>See also: <a href="http://www.theauteurs.com/lists/31" rel="nofollo... (truncated)] - Column: list_cover_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w1280.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w1280.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w1280.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w1280.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w1280.jpg?1546480829] - Column: list_first_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w320.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w320.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w320.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w320.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w320.jpg?1546480829] - Column: list_second_image_url - Samples: [https://assets.mubicdn.net/images/film/506/image-w320.jpg?1543838422, https://assets.mubicdn.net/images/film/159/image-w320.jpg?1548864573, https://assets.mubicdn.net/images/film/2377/image-w320.jpg?1564675204, https://assets.mubicdn.net/images/film/1033/image-w320.jpg?1553538051, https://assets.mubicdn.net/images/film/2115/image-w320.jpg?1563782406] - Column: list_third_image_url - Samples: [https://assets.mubicdn.net/images/film/485/image-w320.jpg?1575331204, https://assets.mubicdn.net/images/film/142/image-w320.jpg?1544094102, https://assets.mubicdn.net/images/film/2874/image-w320.jpg?1546574412, https://assets.mubicdn.net/images/film/407/image-w320.jpg?1490057681, https://assets.mubicdn.net/images/film/1688/image-w320.jpg?1575033549] - Table: movies - Column: movie_id - Samples: [1, 2, 3, 4, 5] - Column: movie_title - Samples: [La Antena, Elementary Particles, It's Winter, Kirikou and the Wild Beasts, Padre Nuestro] - Column: movie_release_year - Samples: [2007, 2006, 2006, 2005, 2007] - Column: movie_url - Samples: [http://mubi.com/films/la-antena, http://mubi.com/films/elementary-particles, http://mubi.com/films/its-winter, http://mubi.com/films/kirikou-and-the-wild-beasts, http://mubi.com/films/padre-nuestro] - Column: movie_title_language - Samples: [en, en, en, en, en] - Column: movie_popularity - Samples: [105, 23, 21, 46, 7] - Column: movie_image_url - Samples: [https://images.mubicdn.net/images/film/1/cache-7927-1581389497/image-w..., https://images.mubicdn.net/images/film/2/cache-512179-1581389841/image..., https://images.mubicdn.net/images/film/3/cache-7929-1481539519/image-w..., https://images.mubicdn.net/images/film/4/cache-7930-1568880017/image-w..., https://images.mubicdn.net/images/film/5/cache-7931-1581390636/image-w... (truncated)] - Column: director_id - Samples: [131, 73, 82, 89, 90, 92] - Column: director_name - Samples: [Esteban Sapir, Oskar Roehler, Rafi Pitts, Michel Ocelot, Bénédicte Galup, Christopher Zalla] - Column: director_url - Samples: [http://mubi.com/cast/esteban-sapir, http://mubi.com/cast/oskar-roehler, http://mubi.com/cast/rafi-pitts, http://mubi.com/cast/michel-ocelot, http://mubi.com/cast/benedicte-gal..., http://mubi.com/cast/christopher-zalla (truncated)] - Table: ratings_users - Column: user_id - Samples: [41579158, 68654088, 84114365, 29755671, 93302487] - Column: rating_date_utc - Samples: [2017-06-10, 2012-10-02, 2010-12-25, 2010-11-15, 2010-01-05] - Column: user_trialist - Samples: [0, 0, 0, 0, 0] - Column: user_subscriber - Samples: [0, 0, 0, 0, 0] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74283/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/27714/images-w150.jpg?152388..., https://assets.mubicdn.net/images/avatars/1808/images-w150.jpg?1523883..., //mubi.com/assets/placeholders/avatar-c68833eec06a12b110c74dd2fa1709ae..., https://assets.mubicdn.net/images/avatars/12246/images-w150.jpg?152388... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [1, 1, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 0, 0, 0] - Table: lists_users - Column: user_id - Samples: [85981819, 85981819, 85981819, 85981819, 85981819] - Column: list_id - Samples: [1969, 3946, 6683, 8865, 13796] - Column: list_update_date_utc - Samples: [2019-11-26, 2020-05-01, 2020-04-12, 2018-12-14, 2019-11-26] - Column: list_creation_date_utc - Samples: [2009-12-18, 2010-01-30, 2010-03-31, 2010-05-10, 2010-08-25] - Column: user_trialist - Samples: [1, 1, 1, 1, 1] - Column: user_subscriber - Samples: [1, 1, 1, 1, 1] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [0, 0, 0, 0, 0] - Column: user_has_payment_method - Samples: [1, 1, 1, 1, 1] - Table: ratings - Column: movie_id - Samples: [1066, 1066, 1066, 1066, 1066] - Column: rating_id - Samples: [15610495, 10704606, 10177114, 10130280, 8357049] - Column: rating_url - Samples: [http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1561049..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1070460..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1017711..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1013028..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/8357049 (truncated)] - Column: rating_score - Samples: [3, 2, 2, 3, 4] - Column: rating_timestamp_utc - Samples: [2017-06-10 12:38:33, 2014-08-15 23:42:31, 2014-01-30 13:21:57, 2014-01-19 01:04:23, 2012-10-02 18:28:47] - Column: critic - Samples: [None, None, None, I am a bit disappointed by this documentary film I've been wanting to ..., None (truncated)] - Column: critic_likes - Samples: [0, 0, 0, 0, 0] - Column: critic_comments - Samples: [0, 0, 0, 0, 0] - Column: user_id - Samples: [41579158, 85981819, 4208563, 9820140, 68654088] - Column: user_trialist - Samples: [0, 1, 0, 0, 0] - Column: user_subscriber - Samples: [0, 1, 0, 0, 0] - Column: user_eligible_for_trial - Samples: [1, 0, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 1, 0, 1]
SELECT AVG(movie_popularity) FROM movies WHERE director_name = 'Stanley Kubrick'
Solve the following sql problem: What is the average rating for movie titled 'When Will I Be Loved'? Schema: SCHEMA: - Table: lists - Column: user_id - Samples: [88260493, 45204418, 48905025, 12074910, 67171533] - Column: list_id - Samples: [1, 2, 3, 7, 8] - Column: list_title - Samples: [Films that made your kid sister cry, Headscratchers, Sexy Time Movies, This is America, Best Documentaries] - Column: list_movie_number - Samples: [5, 3, 7, 11, 41] - Column: list_update_timestamp_utc - Samples: [2019-01-24 19:16:18, 2018-12-03 15:12:20, 2019-05-30 03:00:07, 2019-01-24 19:16:18, 2020-04-25 05:55:07] - Column: list_creation_timestamp_utc - Samples: [2009-11-11 00:02:21, 2009-11-11 00:05:11, 2009-11-11 00:20:00, 2009-11-11 00:32:52, 2009-11-11 00:41:10] - Column: list_followers - Samples: [5, 1, 6, 9, 90] - Column: list_url - Samples: [http://mubi.com/lists/films-that-made-your-kid-sister-cry, http://mubi.com/lists/headscratchers, http://mubi.com/lists/sexy-time-movies, http://mubi.com/lists/this-is-america, http://mubi.com/lists/best-documentaries] - Column: list_comments - Samples: [3, 2, 5, 3, 4] - Column: list_description - Samples: [<p>Don’t be such a baby!!</p> <p><strong>bold</strong></p>, <p>Films that need at least two viewings to really make sense.</p> <p>..., <p>Films that get you in the mood…for love. In development.</p> <p>Rem..., <p>Stories of the people, place and things.</p>, <p>See also: <a href="http://www.theauteurs.com/lists/31" rel="nofollo... (truncated)] - Column: list_cover_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w1280.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w1280.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w1280.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w1280.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w1280.jpg?1546480829] - Column: list_first_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w320.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w320.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w320.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w320.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w320.jpg?1546480829] - Column: list_second_image_url - Samples: [https://assets.mubicdn.net/images/film/506/image-w320.jpg?1543838422, https://assets.mubicdn.net/images/film/159/image-w320.jpg?1548864573, https://assets.mubicdn.net/images/film/2377/image-w320.jpg?1564675204, https://assets.mubicdn.net/images/film/1033/image-w320.jpg?1553538051, https://assets.mubicdn.net/images/film/2115/image-w320.jpg?1563782406] - Column: list_third_image_url - Samples: [https://assets.mubicdn.net/images/film/485/image-w320.jpg?1575331204, https://assets.mubicdn.net/images/film/142/image-w320.jpg?1544094102, https://assets.mubicdn.net/images/film/2874/image-w320.jpg?1546574412, https://assets.mubicdn.net/images/film/407/image-w320.jpg?1490057681, https://assets.mubicdn.net/images/film/1688/image-w320.jpg?1575033549] - Table: movies - Column: movie_id - Samples: [1, 2, 3, 4, 5] - Column: movie_title - Samples: [La Antena, Elementary Particles, It's Winter, Kirikou and the Wild Beasts, Padre Nuestro] - Column: movie_release_year - Samples: [2007, 2006, 2006, 2005, 2007] - Column: movie_url - Samples: [http://mubi.com/films/la-antena, http://mubi.com/films/elementary-particles, http://mubi.com/films/its-winter, http://mubi.com/films/kirikou-and-the-wild-beasts, http://mubi.com/films/padre-nuestro] - Column: movie_title_language - Samples: [en, en, en, en, en] - Column: movie_popularity - Samples: [105, 23, 21, 46, 7] - Column: movie_image_url - Samples: [https://images.mubicdn.net/images/film/1/cache-7927-1581389497/image-w..., https://images.mubicdn.net/images/film/2/cache-512179-1581389841/image..., https://images.mubicdn.net/images/film/3/cache-7929-1481539519/image-w..., https://images.mubicdn.net/images/film/4/cache-7930-1568880017/image-w..., https://images.mubicdn.net/images/film/5/cache-7931-1581390636/image-w... (truncated)] - Column: director_id - Samples: [131, 73, 82, 89, 90, 92] - Column: director_name - Samples: [Esteban Sapir, Oskar Roehler, Rafi Pitts, Michel Ocelot, Bénédicte Galup, Christopher Zalla] - Column: director_url - Samples: [http://mubi.com/cast/esteban-sapir, http://mubi.com/cast/oskar-roehler, http://mubi.com/cast/rafi-pitts, http://mubi.com/cast/michel-ocelot, http://mubi.com/cast/benedicte-gal..., http://mubi.com/cast/christopher-zalla (truncated)] - Table: ratings_users - Column: user_id - Samples: [41579158, 68654088, 84114365, 29755671, 93302487] - Column: rating_date_utc - Samples: [2017-06-10, 2012-10-02, 2010-12-25, 2010-11-15, 2010-01-05] - Column: user_trialist - Samples: [0, 0, 0, 0, 0] - Column: user_subscriber - Samples: [0, 0, 0, 0, 0] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74283/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/27714/images-w150.jpg?152388..., https://assets.mubicdn.net/images/avatars/1808/images-w150.jpg?1523883..., //mubi.com/assets/placeholders/avatar-c68833eec06a12b110c74dd2fa1709ae..., https://assets.mubicdn.net/images/avatars/12246/images-w150.jpg?152388... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [1, 1, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 0, 0, 0] - Table: lists_users - Column: user_id - Samples: [85981819, 85981819, 85981819, 85981819, 85981819] - Column: list_id - Samples: [1969, 3946, 6683, 8865, 13796] - Column: list_update_date_utc - Samples: [2019-11-26, 2020-05-01, 2020-04-12, 2018-12-14, 2019-11-26] - Column: list_creation_date_utc - Samples: [2009-12-18, 2010-01-30, 2010-03-31, 2010-05-10, 2010-08-25] - Column: user_trialist - Samples: [1, 1, 1, 1, 1] - Column: user_subscriber - Samples: [1, 1, 1, 1, 1] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [0, 0, 0, 0, 0] - Column: user_has_payment_method - Samples: [1, 1, 1, 1, 1] - Table: ratings - Column: movie_id - Samples: [1066, 1066, 1066, 1066, 1066] - Column: rating_id - Samples: [15610495, 10704606, 10177114, 10130280, 8357049] - Column: rating_url - Samples: [http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1561049..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1070460..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1017711..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1013028..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/8357049 (truncated)] - Column: rating_score - Samples: [3, 2, 2, 3, 4] - Column: rating_timestamp_utc - Samples: [2017-06-10 12:38:33, 2014-08-15 23:42:31, 2014-01-30 13:21:57, 2014-01-19 01:04:23, 2012-10-02 18:28:47] - Column: critic - Samples: [None, None, None, I am a bit disappointed by this documentary film I've been wanting to ..., None (truncated)] - Column: critic_likes - Samples: [0, 0, 0, 0, 0] - Column: critic_comments - Samples: [0, 0, 0, 0, 0] - Column: user_id - Samples: [41579158, 85981819, 4208563, 9820140, 68654088] - Column: user_trialist - Samples: [0, 1, 0, 0, 0] - Column: user_subscriber - Samples: [0, 1, 0, 0, 0] - Column: user_eligible_for_trial - Samples: [1, 0, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 1, 0, 1]
SELECT AVG(T2.rating_score) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_title = 'When Will I Be Loved'
Solve the following sql problem: What is the user avatar url for user 41579158? What is the latest movie rated by him / her? Schema: SCHEMA: - Table: lists - Column: user_id - Samples: [88260493, 45204418, 48905025, 12074910, 67171533] - Column: list_id - Samples: [1, 2, 3, 7, 8] - Column: list_title - Samples: [Films that made your kid sister cry, Headscratchers, Sexy Time Movies, This is America, Best Documentaries] - Column: list_movie_number - Samples: [5, 3, 7, 11, 41] - Column: list_update_timestamp_utc - Samples: [2019-01-24 19:16:18, 2018-12-03 15:12:20, 2019-05-30 03:00:07, 2019-01-24 19:16:18, 2020-04-25 05:55:07] - Column: list_creation_timestamp_utc - Samples: [2009-11-11 00:02:21, 2009-11-11 00:05:11, 2009-11-11 00:20:00, 2009-11-11 00:32:52, 2009-11-11 00:41:10] - Column: list_followers - Samples: [5, 1, 6, 9, 90] - Column: list_url - Samples: [http://mubi.com/lists/films-that-made-your-kid-sister-cry, http://mubi.com/lists/headscratchers, http://mubi.com/lists/sexy-time-movies, http://mubi.com/lists/this-is-america, http://mubi.com/lists/best-documentaries] - Column: list_comments - Samples: [3, 2, 5, 3, 4] - Column: list_description - Samples: [<p>Don’t be such a baby!!</p> <p><strong>bold</strong></p>, <p>Films that need at least two viewings to really make sense.</p> <p>..., <p>Films that get you in the mood…for love. In development.</p> <p>Rem..., <p>Stories of the people, place and things.</p>, <p>See also: <a href="http://www.theauteurs.com/lists/31" rel="nofollo... (truncated)] - Column: list_cover_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w1280.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w1280.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w1280.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w1280.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w1280.jpg?1546480829] - Column: list_first_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w320.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w320.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w320.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w320.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w320.jpg?1546480829] - Column: list_second_image_url - Samples: [https://assets.mubicdn.net/images/film/506/image-w320.jpg?1543838422, https://assets.mubicdn.net/images/film/159/image-w320.jpg?1548864573, https://assets.mubicdn.net/images/film/2377/image-w320.jpg?1564675204, https://assets.mubicdn.net/images/film/1033/image-w320.jpg?1553538051, https://assets.mubicdn.net/images/film/2115/image-w320.jpg?1563782406] - Column: list_third_image_url - Samples: [https://assets.mubicdn.net/images/film/485/image-w320.jpg?1575331204, https://assets.mubicdn.net/images/film/142/image-w320.jpg?1544094102, https://assets.mubicdn.net/images/film/2874/image-w320.jpg?1546574412, https://assets.mubicdn.net/images/film/407/image-w320.jpg?1490057681, https://assets.mubicdn.net/images/film/1688/image-w320.jpg?1575033549] - Table: movies - Column: movie_id - Samples: [1, 2, 3, 4, 5] - Column: movie_title - Samples: [La Antena, Elementary Particles, It's Winter, Kirikou and the Wild Beasts, Padre Nuestro] - Column: movie_release_year - Samples: [2007, 2006, 2006, 2005, 2007] - Column: movie_url - Samples: [http://mubi.com/films/la-antena, http://mubi.com/films/elementary-particles, http://mubi.com/films/its-winter, http://mubi.com/films/kirikou-and-the-wild-beasts, http://mubi.com/films/padre-nuestro] - Column: movie_title_language - Samples: [en, en, en, en, en] - Column: movie_popularity - Samples: [105, 23, 21, 46, 7] - Column: movie_image_url - Samples: [https://images.mubicdn.net/images/film/1/cache-7927-1581389497/image-w..., https://images.mubicdn.net/images/film/2/cache-512179-1581389841/image..., https://images.mubicdn.net/images/film/3/cache-7929-1481539519/image-w..., https://images.mubicdn.net/images/film/4/cache-7930-1568880017/image-w..., https://images.mubicdn.net/images/film/5/cache-7931-1581390636/image-w... (truncated)] - Column: director_id - Samples: [131, 73, 82, 89, 90, 92] - Column: director_name - Samples: [Esteban Sapir, Oskar Roehler, Rafi Pitts, Michel Ocelot, Bénédicte Galup, Christopher Zalla] - Column: director_url - Samples: [http://mubi.com/cast/esteban-sapir, http://mubi.com/cast/oskar-roehler, http://mubi.com/cast/rafi-pitts, http://mubi.com/cast/michel-ocelot, http://mubi.com/cast/benedicte-gal..., http://mubi.com/cast/christopher-zalla (truncated)] - Table: ratings_users - Column: user_id - Samples: [41579158, 68654088, 84114365, 29755671, 93302487] - Column: rating_date_utc - Samples: [2017-06-10, 2012-10-02, 2010-12-25, 2010-11-15, 2010-01-05] - Column: user_trialist - Samples: [0, 0, 0, 0, 0] - Column: user_subscriber - Samples: [0, 0, 0, 0, 0] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74283/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/27714/images-w150.jpg?152388..., https://assets.mubicdn.net/images/avatars/1808/images-w150.jpg?1523883..., //mubi.com/assets/placeholders/avatar-c68833eec06a12b110c74dd2fa1709ae..., https://assets.mubicdn.net/images/avatars/12246/images-w150.jpg?152388... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [1, 1, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 0, 0, 0] - Table: lists_users - Column: user_id - Samples: [85981819, 85981819, 85981819, 85981819, 85981819] - Column: list_id - Samples: [1969, 3946, 6683, 8865, 13796] - Column: list_update_date_utc - Samples: [2019-11-26, 2020-05-01, 2020-04-12, 2018-12-14, 2019-11-26] - Column: list_creation_date_utc - Samples: [2009-12-18, 2010-01-30, 2010-03-31, 2010-05-10, 2010-08-25] - Column: user_trialist - Samples: [1, 1, 1, 1, 1] - Column: user_subscriber - Samples: [1, 1, 1, 1, 1] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [0, 0, 0, 0, 0] - Column: user_has_payment_method - Samples: [1, 1, 1, 1, 1] - Table: ratings - Column: movie_id - Samples: [1066, 1066, 1066, 1066, 1066] - Column: rating_id - Samples: [15610495, 10704606, 10177114, 10130280, 8357049] - Column: rating_url - Samples: [http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1561049..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1070460..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1017711..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1013028..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/8357049 (truncated)] - Column: rating_score - Samples: [3, 2, 2, 3, 4] - Column: rating_timestamp_utc - Samples: [2017-06-10 12:38:33, 2014-08-15 23:42:31, 2014-01-30 13:21:57, 2014-01-19 01:04:23, 2012-10-02 18:28:47] - Column: critic - Samples: [None, None, None, I am a bit disappointed by this documentary film I've been wanting to ..., None (truncated)] - Column: critic_likes - Samples: [0, 0, 0, 0, 0] - Column: critic_comments - Samples: [0, 0, 0, 0, 0] - Column: user_id - Samples: [41579158, 85981819, 4208563, 9820140, 68654088] - Column: user_trialist - Samples: [0, 1, 0, 0, 0] - Column: user_subscriber - Samples: [0, 1, 0, 0, 0] - Column: user_eligible_for_trial - Samples: [1, 0, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 1, 0, 1]
SELECT T3.user_avatar_image_url, T3.rating_date_utc FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id INNER JOIN ratings_users AS T3 ON T3.user_id = T2.user_id WHERE T3.user_id = 41579158 ORDER BY T3.rating_date_utc DESC LIMIT 1
Solve the following sql problem: What is the percentage of the ratings were rated by user who was a subcriber? Schema: SCHEMA: - Table: lists - Column: user_id - Samples: [88260493, 45204418, 48905025, 12074910, 67171533] - Column: list_id - Samples: [1, 2, 3, 7, 8] - Column: list_title - Samples: [Films that made your kid sister cry, Headscratchers, Sexy Time Movies, This is America, Best Documentaries] - Column: list_movie_number - Samples: [5, 3, 7, 11, 41] - Column: list_update_timestamp_utc - Samples: [2019-01-24 19:16:18, 2018-12-03 15:12:20, 2019-05-30 03:00:07, 2019-01-24 19:16:18, 2020-04-25 05:55:07] - Column: list_creation_timestamp_utc - Samples: [2009-11-11 00:02:21, 2009-11-11 00:05:11, 2009-11-11 00:20:00, 2009-11-11 00:32:52, 2009-11-11 00:41:10] - Column: list_followers - Samples: [5, 1, 6, 9, 90] - Column: list_url - Samples: [http://mubi.com/lists/films-that-made-your-kid-sister-cry, http://mubi.com/lists/headscratchers, http://mubi.com/lists/sexy-time-movies, http://mubi.com/lists/this-is-america, http://mubi.com/lists/best-documentaries] - Column: list_comments - Samples: [3, 2, 5, 3, 4] - Column: list_description - Samples: [<p>Don’t be such a baby!!</p> <p><strong>bold</strong></p>, <p>Films that need at least two viewings to really make sense.</p> <p>..., <p>Films that get you in the mood…for love. In development.</p> <p>Rem..., <p>Stories of the people, place and things.</p>, <p>See also: <a href="http://www.theauteurs.com/lists/31" rel="nofollo... (truncated)] - Column: list_cover_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w1280.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w1280.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w1280.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w1280.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w1280.jpg?1546480829] - Column: list_first_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w320.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w320.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w320.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w320.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w320.jpg?1546480829] - Column: list_second_image_url - Samples: [https://assets.mubicdn.net/images/film/506/image-w320.jpg?1543838422, https://assets.mubicdn.net/images/film/159/image-w320.jpg?1548864573, https://assets.mubicdn.net/images/film/2377/image-w320.jpg?1564675204, https://assets.mubicdn.net/images/film/1033/image-w320.jpg?1553538051, https://assets.mubicdn.net/images/film/2115/image-w320.jpg?1563782406] - Column: list_third_image_url - Samples: [https://assets.mubicdn.net/images/film/485/image-w320.jpg?1575331204, https://assets.mubicdn.net/images/film/142/image-w320.jpg?1544094102, https://assets.mubicdn.net/images/film/2874/image-w320.jpg?1546574412, https://assets.mubicdn.net/images/film/407/image-w320.jpg?1490057681, https://assets.mubicdn.net/images/film/1688/image-w320.jpg?1575033549] - Table: movies - Column: movie_id - Samples: [1, 2, 3, 4, 5] - Column: movie_title - Samples: [La Antena, Elementary Particles, It's Winter, Kirikou and the Wild Beasts, Padre Nuestro] - Column: movie_release_year - Samples: [2007, 2006, 2006, 2005, 2007] - Column: movie_url - Samples: [http://mubi.com/films/la-antena, http://mubi.com/films/elementary-particles, http://mubi.com/films/its-winter, http://mubi.com/films/kirikou-and-the-wild-beasts, http://mubi.com/films/padre-nuestro] - Column: movie_title_language - Samples: [en, en, en, en, en] - Column: movie_popularity - Samples: [105, 23, 21, 46, 7] - Column: movie_image_url - Samples: [https://images.mubicdn.net/images/film/1/cache-7927-1581389497/image-w..., https://images.mubicdn.net/images/film/2/cache-512179-1581389841/image..., https://images.mubicdn.net/images/film/3/cache-7929-1481539519/image-w..., https://images.mubicdn.net/images/film/4/cache-7930-1568880017/image-w..., https://images.mubicdn.net/images/film/5/cache-7931-1581390636/image-w... (truncated)] - Column: director_id - Samples: [131, 73, 82, 89, 90, 92] - Column: director_name - Samples: [Esteban Sapir, Oskar Roehler, Rafi Pitts, Michel Ocelot, Bénédicte Galup, Christopher Zalla] - Column: director_url - Samples: [http://mubi.com/cast/esteban-sapir, http://mubi.com/cast/oskar-roehler, http://mubi.com/cast/rafi-pitts, http://mubi.com/cast/michel-ocelot, http://mubi.com/cast/benedicte-gal..., http://mubi.com/cast/christopher-zalla (truncated)] - Table: ratings_users - Column: user_id - Samples: [41579158, 68654088, 84114365, 29755671, 93302487] - Column: rating_date_utc - Samples: [2017-06-10, 2012-10-02, 2010-12-25, 2010-11-15, 2010-01-05] - Column: user_trialist - Samples: [0, 0, 0, 0, 0] - Column: user_subscriber - Samples: [0, 0, 0, 0, 0] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74283/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/27714/images-w150.jpg?152388..., https://assets.mubicdn.net/images/avatars/1808/images-w150.jpg?1523883..., //mubi.com/assets/placeholders/avatar-c68833eec06a12b110c74dd2fa1709ae..., https://assets.mubicdn.net/images/avatars/12246/images-w150.jpg?152388... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [1, 1, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 0, 0, 0] - Table: lists_users - Column: user_id - Samples: [85981819, 85981819, 85981819, 85981819, 85981819] - Column: list_id - Samples: [1969, 3946, 6683, 8865, 13796] - Column: list_update_date_utc - Samples: [2019-11-26, 2020-05-01, 2020-04-12, 2018-12-14, 2019-11-26] - Column: list_creation_date_utc - Samples: [2009-12-18, 2010-01-30, 2010-03-31, 2010-05-10, 2010-08-25] - Column: user_trialist - Samples: [1, 1, 1, 1, 1] - Column: user_subscriber - Samples: [1, 1, 1, 1, 1] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [0, 0, 0, 0, 0] - Column: user_has_payment_method - Samples: [1, 1, 1, 1, 1] - Table: ratings - Column: movie_id - Samples: [1066, 1066, 1066, 1066, 1066] - Column: rating_id - Samples: [15610495, 10704606, 10177114, 10130280, 8357049] - Column: rating_url - Samples: [http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1561049..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1070460..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1017711..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1013028..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/8357049 (truncated)] - Column: rating_score - Samples: [3, 2, 2, 3, 4] - Column: rating_timestamp_utc - Samples: [2017-06-10 12:38:33, 2014-08-15 23:42:31, 2014-01-30 13:21:57, 2014-01-19 01:04:23, 2012-10-02 18:28:47] - Column: critic - Samples: [None, None, None, I am a bit disappointed by this documentary film I've been wanting to ..., None (truncated)] - Column: critic_likes - Samples: [0, 0, 0, 0, 0] - Column: critic_comments - Samples: [0, 0, 0, 0, 0] - Column: user_id - Samples: [41579158, 85981819, 4208563, 9820140, 68654088] - Column: user_trialist - Samples: [0, 1, 0, 0, 0] - Column: user_subscriber - Samples: [0, 1, 0, 0, 0] - Column: user_eligible_for_trial - Samples: [1, 0, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 1, 0, 1]
SELECT CAST(SUM(CASE WHEN user_subscriber = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM ratings
Solve the following sql problem: List all movie title rated in April 2020 from user who was a trialist. Schema: SCHEMA: - Table: lists - Column: user_id - Samples: [88260493, 45204418, 48905025, 12074910, 67171533] - Column: list_id - Samples: [1, 2, 3, 7, 8] - Column: list_title - Samples: [Films that made your kid sister cry, Headscratchers, Sexy Time Movies, This is America, Best Documentaries] - Column: list_movie_number - Samples: [5, 3, 7, 11, 41] - Column: list_update_timestamp_utc - Samples: [2019-01-24 19:16:18, 2018-12-03 15:12:20, 2019-05-30 03:00:07, 2019-01-24 19:16:18, 2020-04-25 05:55:07] - Column: list_creation_timestamp_utc - Samples: [2009-11-11 00:02:21, 2009-11-11 00:05:11, 2009-11-11 00:20:00, 2009-11-11 00:32:52, 2009-11-11 00:41:10] - Column: list_followers - Samples: [5, 1, 6, 9, 90] - Column: list_url - Samples: [http://mubi.com/lists/films-that-made-your-kid-sister-cry, http://mubi.com/lists/headscratchers, http://mubi.com/lists/sexy-time-movies, http://mubi.com/lists/this-is-america, http://mubi.com/lists/best-documentaries] - Column: list_comments - Samples: [3, 2, 5, 3, 4] - Column: list_description - Samples: [<p>Don’t be such a baby!!</p> <p><strong>bold</strong></p>, <p>Films that need at least two viewings to really make sense.</p> <p>..., <p>Films that get you in the mood…for love. In development.</p> <p>Rem..., <p>Stories of the people, place and things.</p>, <p>See also: <a href="http://www.theauteurs.com/lists/31" rel="nofollo... (truncated)] - Column: list_cover_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w1280.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w1280.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w1280.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w1280.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w1280.jpg?1546480829] - Column: list_first_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w320.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w320.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w320.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w320.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w320.jpg?1546480829] - Column: list_second_image_url - Samples: [https://assets.mubicdn.net/images/film/506/image-w320.jpg?1543838422, https://assets.mubicdn.net/images/film/159/image-w320.jpg?1548864573, https://assets.mubicdn.net/images/film/2377/image-w320.jpg?1564675204, https://assets.mubicdn.net/images/film/1033/image-w320.jpg?1553538051, https://assets.mubicdn.net/images/film/2115/image-w320.jpg?1563782406] - Column: list_third_image_url - Samples: [https://assets.mubicdn.net/images/film/485/image-w320.jpg?1575331204, https://assets.mubicdn.net/images/film/142/image-w320.jpg?1544094102, https://assets.mubicdn.net/images/film/2874/image-w320.jpg?1546574412, https://assets.mubicdn.net/images/film/407/image-w320.jpg?1490057681, https://assets.mubicdn.net/images/film/1688/image-w320.jpg?1575033549] - Table: movies - Column: movie_id - Samples: [1, 2, 3, 4, 5] - Column: movie_title - Samples: [La Antena, Elementary Particles, It's Winter, Kirikou and the Wild Beasts, Padre Nuestro] - Column: movie_release_year - Samples: [2007, 2006, 2006, 2005, 2007] - Column: movie_url - Samples: [http://mubi.com/films/la-antena, http://mubi.com/films/elementary-particles, http://mubi.com/films/its-winter, http://mubi.com/films/kirikou-and-the-wild-beasts, http://mubi.com/films/padre-nuestro] - Column: movie_title_language - Samples: [en, en, en, en, en] - Column: movie_popularity - Samples: [105, 23, 21, 46, 7] - Column: movie_image_url - Samples: [https://images.mubicdn.net/images/film/1/cache-7927-1581389497/image-w..., https://images.mubicdn.net/images/film/2/cache-512179-1581389841/image..., https://images.mubicdn.net/images/film/3/cache-7929-1481539519/image-w..., https://images.mubicdn.net/images/film/4/cache-7930-1568880017/image-w..., https://images.mubicdn.net/images/film/5/cache-7931-1581390636/image-w... (truncated)] - Column: director_id - Samples: [131, 73, 82, 89, 90, 92] - Column: director_name - Samples: [Esteban Sapir, Oskar Roehler, Rafi Pitts, Michel Ocelot, Bénédicte Galup, Christopher Zalla] - Column: director_url - Samples: [http://mubi.com/cast/esteban-sapir, http://mubi.com/cast/oskar-roehler, http://mubi.com/cast/rafi-pitts, http://mubi.com/cast/michel-ocelot, http://mubi.com/cast/benedicte-gal..., http://mubi.com/cast/christopher-zalla (truncated)] - Table: ratings_users - Column: user_id - Samples: [41579158, 68654088, 84114365, 29755671, 93302487] - Column: rating_date_utc - Samples: [2017-06-10, 2012-10-02, 2010-12-25, 2010-11-15, 2010-01-05] - Column: user_trialist - Samples: [0, 0, 0, 0, 0] - Column: user_subscriber - Samples: [0, 0, 0, 0, 0] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74283/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/27714/images-w150.jpg?152388..., https://assets.mubicdn.net/images/avatars/1808/images-w150.jpg?1523883..., //mubi.com/assets/placeholders/avatar-c68833eec06a12b110c74dd2fa1709ae..., https://assets.mubicdn.net/images/avatars/12246/images-w150.jpg?152388... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [1, 1, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 0, 0, 0] - Table: lists_users - Column: user_id - Samples: [85981819, 85981819, 85981819, 85981819, 85981819] - Column: list_id - Samples: [1969, 3946, 6683, 8865, 13796] - Column: list_update_date_utc - Samples: [2019-11-26, 2020-05-01, 2020-04-12, 2018-12-14, 2019-11-26] - Column: list_creation_date_utc - Samples: [2009-12-18, 2010-01-30, 2010-03-31, 2010-05-10, 2010-08-25] - Column: user_trialist - Samples: [1, 1, 1, 1, 1] - Column: user_subscriber - Samples: [1, 1, 1, 1, 1] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [0, 0, 0, 0, 0] - Column: user_has_payment_method - Samples: [1, 1, 1, 1, 1] - Table: ratings - Column: movie_id - Samples: [1066, 1066, 1066, 1066, 1066] - Column: rating_id - Samples: [15610495, 10704606, 10177114, 10130280, 8357049] - Column: rating_url - Samples: [http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1561049..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1070460..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1017711..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1013028..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/8357049 (truncated)] - Column: rating_score - Samples: [3, 2, 2, 3, 4] - Column: rating_timestamp_utc - Samples: [2017-06-10 12:38:33, 2014-08-15 23:42:31, 2014-01-30 13:21:57, 2014-01-19 01:04:23, 2012-10-02 18:28:47] - Column: critic - Samples: [None, None, None, I am a bit disappointed by this documentary film I've been wanting to ..., None (truncated)] - Column: critic_likes - Samples: [0, 0, 0, 0, 0] - Column: critic_comments - Samples: [0, 0, 0, 0, 0] - Column: user_id - Samples: [41579158, 85981819, 4208563, 9820140, 68654088] - Column: user_trialist - Samples: [0, 1, 0, 0, 0] - Column: user_subscriber - Samples: [0, 1, 0, 0, 0] - Column: user_eligible_for_trial - Samples: [1, 0, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 1, 0, 1]
SELECT T1.movie_title FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T2.user_trialist = 1 AND T2.rating_timestamp_utc LIKE '2020-04%'
Solve the following sql problem: List ther users who gave the worst rating for movie 'Love Will Tear Us Apart'. Schema: SCHEMA: - Table: lists - Column: user_id - Samples: [88260493, 45204418, 48905025, 12074910, 67171533] - Column: list_id - Samples: [1, 2, 3, 7, 8] - Column: list_title - Samples: [Films that made your kid sister cry, Headscratchers, Sexy Time Movies, This is America, Best Documentaries] - Column: list_movie_number - Samples: [5, 3, 7, 11, 41] - Column: list_update_timestamp_utc - Samples: [2019-01-24 19:16:18, 2018-12-03 15:12:20, 2019-05-30 03:00:07, 2019-01-24 19:16:18, 2020-04-25 05:55:07] - Column: list_creation_timestamp_utc - Samples: [2009-11-11 00:02:21, 2009-11-11 00:05:11, 2009-11-11 00:20:00, 2009-11-11 00:32:52, 2009-11-11 00:41:10] - Column: list_followers - Samples: [5, 1, 6, 9, 90] - Column: list_url - Samples: [http://mubi.com/lists/films-that-made-your-kid-sister-cry, http://mubi.com/lists/headscratchers, http://mubi.com/lists/sexy-time-movies, http://mubi.com/lists/this-is-america, http://mubi.com/lists/best-documentaries] - Column: list_comments - Samples: [3, 2, 5, 3, 4] - Column: list_description - Samples: [<p>Don’t be such a baby!!</p> <p><strong>bold</strong></p>, <p>Films that need at least two viewings to really make sense.</p> <p>..., <p>Films that get you in the mood…for love. In development.</p> <p>Rem..., <p>Stories of the people, place and things.</p>, <p>See also: <a href="http://www.theauteurs.com/lists/31" rel="nofollo... (truncated)] - Column: list_cover_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w1280.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w1280.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w1280.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w1280.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w1280.jpg?1546480829] - Column: list_first_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w320.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w320.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w320.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w320.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w320.jpg?1546480829] - Column: list_second_image_url - Samples: [https://assets.mubicdn.net/images/film/506/image-w320.jpg?1543838422, https://assets.mubicdn.net/images/film/159/image-w320.jpg?1548864573, https://assets.mubicdn.net/images/film/2377/image-w320.jpg?1564675204, https://assets.mubicdn.net/images/film/1033/image-w320.jpg?1553538051, https://assets.mubicdn.net/images/film/2115/image-w320.jpg?1563782406] - Column: list_third_image_url - Samples: [https://assets.mubicdn.net/images/film/485/image-w320.jpg?1575331204, https://assets.mubicdn.net/images/film/142/image-w320.jpg?1544094102, https://assets.mubicdn.net/images/film/2874/image-w320.jpg?1546574412, https://assets.mubicdn.net/images/film/407/image-w320.jpg?1490057681, https://assets.mubicdn.net/images/film/1688/image-w320.jpg?1575033549] - Table: movies - Column: movie_id - Samples: [1, 2, 3, 4, 5] - Column: movie_title - Samples: [La Antena, Elementary Particles, It's Winter, Kirikou and the Wild Beasts, Padre Nuestro] - Column: movie_release_year - Samples: [2007, 2006, 2006, 2005, 2007] - Column: movie_url - Samples: [http://mubi.com/films/la-antena, http://mubi.com/films/elementary-particles, http://mubi.com/films/its-winter, http://mubi.com/films/kirikou-and-the-wild-beasts, http://mubi.com/films/padre-nuestro] - Column: movie_title_language - Samples: [en, en, en, en, en] - Column: movie_popularity - Samples: [105, 23, 21, 46, 7] - Column: movie_image_url - Samples: [https://images.mubicdn.net/images/film/1/cache-7927-1581389497/image-w..., https://images.mubicdn.net/images/film/2/cache-512179-1581389841/image..., https://images.mubicdn.net/images/film/3/cache-7929-1481539519/image-w..., https://images.mubicdn.net/images/film/4/cache-7930-1568880017/image-w..., https://images.mubicdn.net/images/film/5/cache-7931-1581390636/image-w... (truncated)] - Column: director_id - Samples: [131, 73, 82, 89, 90, 92] - Column: director_name - Samples: [Esteban Sapir, Oskar Roehler, Rafi Pitts, Michel Ocelot, Bénédicte Galup, Christopher Zalla] - Column: director_url - Samples: [http://mubi.com/cast/esteban-sapir, http://mubi.com/cast/oskar-roehler, http://mubi.com/cast/rafi-pitts, http://mubi.com/cast/michel-ocelot, http://mubi.com/cast/benedicte-gal..., http://mubi.com/cast/christopher-zalla (truncated)] - Table: ratings_users - Column: user_id - Samples: [41579158, 68654088, 84114365, 29755671, 93302487] - Column: rating_date_utc - Samples: [2017-06-10, 2012-10-02, 2010-12-25, 2010-11-15, 2010-01-05] - Column: user_trialist - Samples: [0, 0, 0, 0, 0] - Column: user_subscriber - Samples: [0, 0, 0, 0, 0] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74283/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/27714/images-w150.jpg?152388..., https://assets.mubicdn.net/images/avatars/1808/images-w150.jpg?1523883..., //mubi.com/assets/placeholders/avatar-c68833eec06a12b110c74dd2fa1709ae..., https://assets.mubicdn.net/images/avatars/12246/images-w150.jpg?152388... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [1, 1, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 0, 0, 0] - Table: lists_users - Column: user_id - Samples: [85981819, 85981819, 85981819, 85981819, 85981819] - Column: list_id - Samples: [1969, 3946, 6683, 8865, 13796] - Column: list_update_date_utc - Samples: [2019-11-26, 2020-05-01, 2020-04-12, 2018-12-14, 2019-11-26] - Column: list_creation_date_utc - Samples: [2009-12-18, 2010-01-30, 2010-03-31, 2010-05-10, 2010-08-25] - Column: user_trialist - Samples: [1, 1, 1, 1, 1] - Column: user_subscriber - Samples: [1, 1, 1, 1, 1] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [0, 0, 0, 0, 0] - Column: user_has_payment_method - Samples: [1, 1, 1, 1, 1] - Table: ratings - Column: movie_id - Samples: [1066, 1066, 1066, 1066, 1066] - Column: rating_id - Samples: [15610495, 10704606, 10177114, 10130280, 8357049] - Column: rating_url - Samples: [http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1561049..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1070460..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1017711..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1013028..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/8357049 (truncated)] - Column: rating_score - Samples: [3, 2, 2, 3, 4] - Column: rating_timestamp_utc - Samples: [2017-06-10 12:38:33, 2014-08-15 23:42:31, 2014-01-30 13:21:57, 2014-01-19 01:04:23, 2012-10-02 18:28:47] - Column: critic - Samples: [None, None, None, I am a bit disappointed by this documentary film I've been wanting to ..., None (truncated)] - Column: critic_likes - Samples: [0, 0, 0, 0, 0] - Column: critic_comments - Samples: [0, 0, 0, 0, 0] - Column: user_id - Samples: [41579158, 85981819, 4208563, 9820140, 68654088] - Column: user_trialist - Samples: [0, 1, 0, 0, 0] - Column: user_subscriber - Samples: [0, 1, 0, 0, 0] - Column: user_eligible_for_trial - Samples: [1, 0, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 1, 0, 1]
SELECT T1.user_id FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'Love Will Tear Us Apart' AND T1.rating_score = 1
Solve the following sql problem: List all movies with the best rating score. State the movie title and number of Mubi user who loves the movie. Schema: SCHEMA: - Table: lists - Column: user_id - Samples: [88260493, 45204418, 48905025, 12074910, 67171533] - Column: list_id - Samples: [1, 2, 3, 7, 8] - Column: list_title - Samples: [Films that made your kid sister cry, Headscratchers, Sexy Time Movies, This is America, Best Documentaries] - Column: list_movie_number - Samples: [5, 3, 7, 11, 41] - Column: list_update_timestamp_utc - Samples: [2019-01-24 19:16:18, 2018-12-03 15:12:20, 2019-05-30 03:00:07, 2019-01-24 19:16:18, 2020-04-25 05:55:07] - Column: list_creation_timestamp_utc - Samples: [2009-11-11 00:02:21, 2009-11-11 00:05:11, 2009-11-11 00:20:00, 2009-11-11 00:32:52, 2009-11-11 00:41:10] - Column: list_followers - Samples: [5, 1, 6, 9, 90] - Column: list_url - Samples: [http://mubi.com/lists/films-that-made-your-kid-sister-cry, http://mubi.com/lists/headscratchers, http://mubi.com/lists/sexy-time-movies, http://mubi.com/lists/this-is-america, http://mubi.com/lists/best-documentaries] - Column: list_comments - Samples: [3, 2, 5, 3, 4] - Column: list_description - Samples: [<p>Don’t be such a baby!!</p> <p><strong>bold</strong></p>, <p>Films that need at least two viewings to really make sense.</p> <p>..., <p>Films that get you in the mood…for love. In development.</p> <p>Rem..., <p>Stories of the people, place and things.</p>, <p>See also: <a href="http://www.theauteurs.com/lists/31" rel="nofollo... (truncated)] - Column: list_cover_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w1280.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w1280.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w1280.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w1280.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w1280.jpg?1546480829] - Column: list_first_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w320.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w320.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w320.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w320.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w320.jpg?1546480829] - Column: list_second_image_url - Samples: [https://assets.mubicdn.net/images/film/506/image-w320.jpg?1543838422, https://assets.mubicdn.net/images/film/159/image-w320.jpg?1548864573, https://assets.mubicdn.net/images/film/2377/image-w320.jpg?1564675204, https://assets.mubicdn.net/images/film/1033/image-w320.jpg?1553538051, https://assets.mubicdn.net/images/film/2115/image-w320.jpg?1563782406] - Column: list_third_image_url - Samples: [https://assets.mubicdn.net/images/film/485/image-w320.jpg?1575331204, https://assets.mubicdn.net/images/film/142/image-w320.jpg?1544094102, https://assets.mubicdn.net/images/film/2874/image-w320.jpg?1546574412, https://assets.mubicdn.net/images/film/407/image-w320.jpg?1490057681, https://assets.mubicdn.net/images/film/1688/image-w320.jpg?1575033549] - Table: movies - Column: movie_id - Samples: [1, 2, 3, 4, 5] - Column: movie_title - Samples: [La Antena, Elementary Particles, It's Winter, Kirikou and the Wild Beasts, Padre Nuestro] - Column: movie_release_year - Samples: [2007, 2006, 2006, 2005, 2007] - Column: movie_url - Samples: [http://mubi.com/films/la-antena, http://mubi.com/films/elementary-particles, http://mubi.com/films/its-winter, http://mubi.com/films/kirikou-and-the-wild-beasts, http://mubi.com/films/padre-nuestro] - Column: movie_title_language - Samples: [en, en, en, en, en] - Column: movie_popularity - Samples: [105, 23, 21, 46, 7] - Column: movie_image_url - Samples: [https://images.mubicdn.net/images/film/1/cache-7927-1581389497/image-w..., https://images.mubicdn.net/images/film/2/cache-512179-1581389841/image..., https://images.mubicdn.net/images/film/3/cache-7929-1481539519/image-w..., https://images.mubicdn.net/images/film/4/cache-7930-1568880017/image-w..., https://images.mubicdn.net/images/film/5/cache-7931-1581390636/image-w... (truncated)] - Column: director_id - Samples: [131, 73, 82, 89, 90, 92] - Column: director_name - Samples: [Esteban Sapir, Oskar Roehler, Rafi Pitts, Michel Ocelot, Bénédicte Galup, Christopher Zalla] - Column: director_url - Samples: [http://mubi.com/cast/esteban-sapir, http://mubi.com/cast/oskar-roehler, http://mubi.com/cast/rafi-pitts, http://mubi.com/cast/michel-ocelot, http://mubi.com/cast/benedicte-gal..., http://mubi.com/cast/christopher-zalla (truncated)] - Table: ratings_users - Column: user_id - Samples: [41579158, 68654088, 84114365, 29755671, 93302487] - Column: rating_date_utc - Samples: [2017-06-10, 2012-10-02, 2010-12-25, 2010-11-15, 2010-01-05] - Column: user_trialist - Samples: [0, 0, 0, 0, 0] - Column: user_subscriber - Samples: [0, 0, 0, 0, 0] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74283/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/27714/images-w150.jpg?152388..., https://assets.mubicdn.net/images/avatars/1808/images-w150.jpg?1523883..., //mubi.com/assets/placeholders/avatar-c68833eec06a12b110c74dd2fa1709ae..., https://assets.mubicdn.net/images/avatars/12246/images-w150.jpg?152388... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [1, 1, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 0, 0, 0] - Table: lists_users - Column: user_id - Samples: [85981819, 85981819, 85981819, 85981819, 85981819] - Column: list_id - Samples: [1969, 3946, 6683, 8865, 13796] - Column: list_update_date_utc - Samples: [2019-11-26, 2020-05-01, 2020-04-12, 2018-12-14, 2019-11-26] - Column: list_creation_date_utc - Samples: [2009-12-18, 2010-01-30, 2010-03-31, 2010-05-10, 2010-08-25] - Column: user_trialist - Samples: [1, 1, 1, 1, 1] - Column: user_subscriber - Samples: [1, 1, 1, 1, 1] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [0, 0, 0, 0, 0] - Column: user_has_payment_method - Samples: [1, 1, 1, 1, 1] - Table: ratings - Column: movie_id - Samples: [1066, 1066, 1066, 1066, 1066] - Column: rating_id - Samples: [15610495, 10704606, 10177114, 10130280, 8357049] - Column: rating_url - Samples: [http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1561049..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1070460..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1017711..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1013028..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/8357049 (truncated)] - Column: rating_score - Samples: [3, 2, 2, 3, 4] - Column: rating_timestamp_utc - Samples: [2017-06-10 12:38:33, 2014-08-15 23:42:31, 2014-01-30 13:21:57, 2014-01-19 01:04:23, 2012-10-02 18:28:47] - Column: critic - Samples: [None, None, None, I am a bit disappointed by this documentary film I've been wanting to ..., None (truncated)] - Column: critic_likes - Samples: [0, 0, 0, 0, 0] - Column: critic_comments - Samples: [0, 0, 0, 0, 0] - Column: user_id - Samples: [41579158, 85981819, 4208563, 9820140, 68654088] - Column: user_trialist - Samples: [0, 1, 0, 0, 0] - Column: user_subscriber - Samples: [0, 1, 0, 0, 0] - Column: user_eligible_for_trial - Samples: [1, 0, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 1, 0, 1]
SELECT DISTINCT T2.movie_title, T2.movie_popularity FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.rating_score = 5
Solve the following sql problem: For all ratings which are rated in year 2020, name the movies which has the rating scored 4 and above. Schema: SCHEMA: - Table: lists - Column: user_id - Samples: [88260493, 45204418, 48905025, 12074910, 67171533] - Column: list_id - Samples: [1, 2, 3, 7, 8] - Column: list_title - Samples: [Films that made your kid sister cry, Headscratchers, Sexy Time Movies, This is America, Best Documentaries] - Column: list_movie_number - Samples: [5, 3, 7, 11, 41] - Column: list_update_timestamp_utc - Samples: [2019-01-24 19:16:18, 2018-12-03 15:12:20, 2019-05-30 03:00:07, 2019-01-24 19:16:18, 2020-04-25 05:55:07] - Column: list_creation_timestamp_utc - Samples: [2009-11-11 00:02:21, 2009-11-11 00:05:11, 2009-11-11 00:20:00, 2009-11-11 00:32:52, 2009-11-11 00:41:10] - Column: list_followers - Samples: [5, 1, 6, 9, 90] - Column: list_url - Samples: [http://mubi.com/lists/films-that-made-your-kid-sister-cry, http://mubi.com/lists/headscratchers, http://mubi.com/lists/sexy-time-movies, http://mubi.com/lists/this-is-america, http://mubi.com/lists/best-documentaries] - Column: list_comments - Samples: [3, 2, 5, 3, 4] - Column: list_description - Samples: [<p>Don’t be such a baby!!</p> <p><strong>bold</strong></p>, <p>Films that need at least two viewings to really make sense.</p> <p>..., <p>Films that get you in the mood…for love. In development.</p> <p>Rem..., <p>Stories of the people, place and things.</p>, <p>See also: <a href="http://www.theauteurs.com/lists/31" rel="nofollo... (truncated)] - Column: list_cover_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w1280.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w1280.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w1280.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w1280.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w1280.jpg?1546480829] - Column: list_first_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w320.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w320.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w320.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w320.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w320.jpg?1546480829] - Column: list_second_image_url - Samples: [https://assets.mubicdn.net/images/film/506/image-w320.jpg?1543838422, https://assets.mubicdn.net/images/film/159/image-w320.jpg?1548864573, https://assets.mubicdn.net/images/film/2377/image-w320.jpg?1564675204, https://assets.mubicdn.net/images/film/1033/image-w320.jpg?1553538051, https://assets.mubicdn.net/images/film/2115/image-w320.jpg?1563782406] - Column: list_third_image_url - Samples: [https://assets.mubicdn.net/images/film/485/image-w320.jpg?1575331204, https://assets.mubicdn.net/images/film/142/image-w320.jpg?1544094102, https://assets.mubicdn.net/images/film/2874/image-w320.jpg?1546574412, https://assets.mubicdn.net/images/film/407/image-w320.jpg?1490057681, https://assets.mubicdn.net/images/film/1688/image-w320.jpg?1575033549] - Table: movies - Column: movie_id - Samples: [1, 2, 3, 4, 5] - Column: movie_title - Samples: [La Antena, Elementary Particles, It's Winter, Kirikou and the Wild Beasts, Padre Nuestro] - Column: movie_release_year - Samples: [2007, 2006, 2006, 2005, 2007] - Column: movie_url - Samples: [http://mubi.com/films/la-antena, http://mubi.com/films/elementary-particles, http://mubi.com/films/its-winter, http://mubi.com/films/kirikou-and-the-wild-beasts, http://mubi.com/films/padre-nuestro] - Column: movie_title_language - Samples: [en, en, en, en, en] - Column: movie_popularity - Samples: [105, 23, 21, 46, 7] - Column: movie_image_url - Samples: [https://images.mubicdn.net/images/film/1/cache-7927-1581389497/image-w..., https://images.mubicdn.net/images/film/2/cache-512179-1581389841/image..., https://images.mubicdn.net/images/film/3/cache-7929-1481539519/image-w..., https://images.mubicdn.net/images/film/4/cache-7930-1568880017/image-w..., https://images.mubicdn.net/images/film/5/cache-7931-1581390636/image-w... (truncated)] - Column: director_id - Samples: [131, 73, 82, 89, 90, 92] - Column: director_name - Samples: [Esteban Sapir, Oskar Roehler, Rafi Pitts, Michel Ocelot, Bénédicte Galup, Christopher Zalla] - Column: director_url - Samples: [http://mubi.com/cast/esteban-sapir, http://mubi.com/cast/oskar-roehler, http://mubi.com/cast/rafi-pitts, http://mubi.com/cast/michel-ocelot, http://mubi.com/cast/benedicte-gal..., http://mubi.com/cast/christopher-zalla (truncated)] - Table: ratings_users - Column: user_id - Samples: [41579158, 68654088, 84114365, 29755671, 93302487] - Column: rating_date_utc - Samples: [2017-06-10, 2012-10-02, 2010-12-25, 2010-11-15, 2010-01-05] - Column: user_trialist - Samples: [0, 0, 0, 0, 0] - Column: user_subscriber - Samples: [0, 0, 0, 0, 0] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74283/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/27714/images-w150.jpg?152388..., https://assets.mubicdn.net/images/avatars/1808/images-w150.jpg?1523883..., //mubi.com/assets/placeholders/avatar-c68833eec06a12b110c74dd2fa1709ae..., https://assets.mubicdn.net/images/avatars/12246/images-w150.jpg?152388... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [1, 1, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 0, 0, 0] - Table: lists_users - Column: user_id - Samples: [85981819, 85981819, 85981819, 85981819, 85981819] - Column: list_id - Samples: [1969, 3946, 6683, 8865, 13796] - Column: list_update_date_utc - Samples: [2019-11-26, 2020-05-01, 2020-04-12, 2018-12-14, 2019-11-26] - Column: list_creation_date_utc - Samples: [2009-12-18, 2010-01-30, 2010-03-31, 2010-05-10, 2010-08-25] - Column: user_trialist - Samples: [1, 1, 1, 1, 1] - Column: user_subscriber - Samples: [1, 1, 1, 1, 1] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [0, 0, 0, 0, 0] - Column: user_has_payment_method - Samples: [1, 1, 1, 1, 1] - Table: ratings - Column: movie_id - Samples: [1066, 1066, 1066, 1066, 1066] - Column: rating_id - Samples: [15610495, 10704606, 10177114, 10130280, 8357049] - Column: rating_url - Samples: [http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1561049..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1070460..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1017711..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1013028..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/8357049 (truncated)] - Column: rating_score - Samples: [3, 2, 2, 3, 4] - Column: rating_timestamp_utc - Samples: [2017-06-10 12:38:33, 2014-08-15 23:42:31, 2014-01-30 13:21:57, 2014-01-19 01:04:23, 2012-10-02 18:28:47] - Column: critic - Samples: [None, None, None, I am a bit disappointed by this documentary film I've been wanting to ..., None (truncated)] - Column: critic_likes - Samples: [0, 0, 0, 0, 0] - Column: critic_comments - Samples: [0, 0, 0, 0, 0] - Column: user_id - Samples: [41579158, 85981819, 4208563, 9820140, 68654088] - Column: user_trialist - Samples: [0, 1, 0, 0, 0] - Column: user_subscriber - Samples: [0, 1, 0, 0, 0] - Column: user_eligible_for_trial - Samples: [1, 0, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 1, 0, 1]
SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE CAST(SUBSTR(T1.rating_timestamp_utc, 1, 4) AS INTEGER) = 2020 AND CAST(SUBSTR(T1.rating_timestamp_utc, 6, 2) AS INTEGER) > 4
Solve the following sql problem: For all movies where users left a critic, find the movie name, user, rating and critics comments from the user. Schema: SCHEMA: - Table: lists - Column: user_id - Samples: [88260493, 45204418, 48905025, 12074910, 67171533] - Column: list_id - Samples: [1, 2, 3, 7, 8] - Column: list_title - Samples: [Films that made your kid sister cry, Headscratchers, Sexy Time Movies, This is America, Best Documentaries] - Column: list_movie_number - Samples: [5, 3, 7, 11, 41] - Column: list_update_timestamp_utc - Samples: [2019-01-24 19:16:18, 2018-12-03 15:12:20, 2019-05-30 03:00:07, 2019-01-24 19:16:18, 2020-04-25 05:55:07] - Column: list_creation_timestamp_utc - Samples: [2009-11-11 00:02:21, 2009-11-11 00:05:11, 2009-11-11 00:20:00, 2009-11-11 00:32:52, 2009-11-11 00:41:10] - Column: list_followers - Samples: [5, 1, 6, 9, 90] - Column: list_url - Samples: [http://mubi.com/lists/films-that-made-your-kid-sister-cry, http://mubi.com/lists/headscratchers, http://mubi.com/lists/sexy-time-movies, http://mubi.com/lists/this-is-america, http://mubi.com/lists/best-documentaries] - Column: list_comments - Samples: [3, 2, 5, 3, 4] - Column: list_description - Samples: [<p>Don’t be such a baby!!</p> <p><strong>bold</strong></p>, <p>Films that need at least two viewings to really make sense.</p> <p>..., <p>Films that get you in the mood…for love. In development.</p> <p>Rem..., <p>Stories of the people, place and things.</p>, <p>See also: <a href="http://www.theauteurs.com/lists/31" rel="nofollo... (truncated)] - Column: list_cover_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w1280.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w1280.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w1280.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w1280.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w1280.jpg?1546480829] - Column: list_first_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w320.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w320.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w320.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w320.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w320.jpg?1546480829] - Column: list_second_image_url - Samples: [https://assets.mubicdn.net/images/film/506/image-w320.jpg?1543838422, https://assets.mubicdn.net/images/film/159/image-w320.jpg?1548864573, https://assets.mubicdn.net/images/film/2377/image-w320.jpg?1564675204, https://assets.mubicdn.net/images/film/1033/image-w320.jpg?1553538051, https://assets.mubicdn.net/images/film/2115/image-w320.jpg?1563782406] - Column: list_third_image_url - Samples: [https://assets.mubicdn.net/images/film/485/image-w320.jpg?1575331204, https://assets.mubicdn.net/images/film/142/image-w320.jpg?1544094102, https://assets.mubicdn.net/images/film/2874/image-w320.jpg?1546574412, https://assets.mubicdn.net/images/film/407/image-w320.jpg?1490057681, https://assets.mubicdn.net/images/film/1688/image-w320.jpg?1575033549] - Table: movies - Column: movie_id - Samples: [1, 2, 3, 4, 5] - Column: movie_title - Samples: [La Antena, Elementary Particles, It's Winter, Kirikou and the Wild Beasts, Padre Nuestro] - Column: movie_release_year - Samples: [2007, 2006, 2006, 2005, 2007] - Column: movie_url - Samples: [http://mubi.com/films/la-antena, http://mubi.com/films/elementary-particles, http://mubi.com/films/its-winter, http://mubi.com/films/kirikou-and-the-wild-beasts, http://mubi.com/films/padre-nuestro] - Column: movie_title_language - Samples: [en, en, en, en, en] - Column: movie_popularity - Samples: [105, 23, 21, 46, 7] - Column: movie_image_url - Samples: [https://images.mubicdn.net/images/film/1/cache-7927-1581389497/image-w..., https://images.mubicdn.net/images/film/2/cache-512179-1581389841/image..., https://images.mubicdn.net/images/film/3/cache-7929-1481539519/image-w..., https://images.mubicdn.net/images/film/4/cache-7930-1568880017/image-w..., https://images.mubicdn.net/images/film/5/cache-7931-1581390636/image-w... (truncated)] - Column: director_id - Samples: [131, 73, 82, 89, 90, 92] - Column: director_name - Samples: [Esteban Sapir, Oskar Roehler, Rafi Pitts, Michel Ocelot, Bénédicte Galup, Christopher Zalla] - Column: director_url - Samples: [http://mubi.com/cast/esteban-sapir, http://mubi.com/cast/oskar-roehler, http://mubi.com/cast/rafi-pitts, http://mubi.com/cast/michel-ocelot, http://mubi.com/cast/benedicte-gal..., http://mubi.com/cast/christopher-zalla (truncated)] - Table: ratings_users - Column: user_id - Samples: [41579158, 68654088, 84114365, 29755671, 93302487] - Column: rating_date_utc - Samples: [2017-06-10, 2012-10-02, 2010-12-25, 2010-11-15, 2010-01-05] - Column: user_trialist - Samples: [0, 0, 0, 0, 0] - Column: user_subscriber - Samples: [0, 0, 0, 0, 0] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74283/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/27714/images-w150.jpg?152388..., https://assets.mubicdn.net/images/avatars/1808/images-w150.jpg?1523883..., //mubi.com/assets/placeholders/avatar-c68833eec06a12b110c74dd2fa1709ae..., https://assets.mubicdn.net/images/avatars/12246/images-w150.jpg?152388... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [1, 1, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 0, 0, 0] - Table: lists_users - Column: user_id - Samples: [85981819, 85981819, 85981819, 85981819, 85981819] - Column: list_id - Samples: [1969, 3946, 6683, 8865, 13796] - Column: list_update_date_utc - Samples: [2019-11-26, 2020-05-01, 2020-04-12, 2018-12-14, 2019-11-26] - Column: list_creation_date_utc - Samples: [2009-12-18, 2010-01-30, 2010-03-31, 2010-05-10, 2010-08-25] - Column: user_trialist - Samples: [1, 1, 1, 1, 1] - Column: user_subscriber - Samples: [1, 1, 1, 1, 1] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [0, 0, 0, 0, 0] - Column: user_has_payment_method - Samples: [1, 1, 1, 1, 1] - Table: ratings - Column: movie_id - Samples: [1066, 1066, 1066, 1066, 1066] - Column: rating_id - Samples: [15610495, 10704606, 10177114, 10130280, 8357049] - Column: rating_url - Samples: [http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1561049..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1070460..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1017711..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1013028..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/8357049 (truncated)] - Column: rating_score - Samples: [3, 2, 2, 3, 4] - Column: rating_timestamp_utc - Samples: [2017-06-10 12:38:33, 2014-08-15 23:42:31, 2014-01-30 13:21:57, 2014-01-19 01:04:23, 2012-10-02 18:28:47] - Column: critic - Samples: [None, None, None, I am a bit disappointed by this documentary film I've been wanting to ..., None (truncated)] - Column: critic_likes - Samples: [0, 0, 0, 0, 0] - Column: critic_comments - Samples: [0, 0, 0, 0, 0] - Column: user_id - Samples: [41579158, 85981819, 4208563, 9820140, 68654088] - Column: user_trialist - Samples: [0, 1, 0, 0, 0] - Column: user_subscriber - Samples: [0, 1, 0, 0, 0] - Column: user_eligible_for_trial - Samples: [1, 0, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 1, 0, 1]
SELECT T2.movie_title, T1.user_id, T1.rating_score, T1.critic FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.critic IS NOT NULL
Solve the following sql problem: For movie titled 'Welcome to the Dollhouse', how many percentage of the ratings were rated with highest score. Schema: SCHEMA: - Table: lists - Column: user_id - Samples: [88260493, 45204418, 48905025, 12074910, 67171533] - Column: list_id - Samples: [1, 2, 3, 7, 8] - Column: list_title - Samples: [Films that made your kid sister cry, Headscratchers, Sexy Time Movies, This is America, Best Documentaries] - Column: list_movie_number - Samples: [5, 3, 7, 11, 41] - Column: list_update_timestamp_utc - Samples: [2019-01-24 19:16:18, 2018-12-03 15:12:20, 2019-05-30 03:00:07, 2019-01-24 19:16:18, 2020-04-25 05:55:07] - Column: list_creation_timestamp_utc - Samples: [2009-11-11 00:02:21, 2009-11-11 00:05:11, 2009-11-11 00:20:00, 2009-11-11 00:32:52, 2009-11-11 00:41:10] - Column: list_followers - Samples: [5, 1, 6, 9, 90] - Column: list_url - Samples: [http://mubi.com/lists/films-that-made-your-kid-sister-cry, http://mubi.com/lists/headscratchers, http://mubi.com/lists/sexy-time-movies, http://mubi.com/lists/this-is-america, http://mubi.com/lists/best-documentaries] - Column: list_comments - Samples: [3, 2, 5, 3, 4] - Column: list_description - Samples: [<p>Don’t be such a baby!!</p> <p><strong>bold</strong></p>, <p>Films that need at least two viewings to really make sense.</p> <p>..., <p>Films that get you in the mood…for love. In development.</p> <p>Rem..., <p>Stories of the people, place and things.</p>, <p>See also: <a href="http://www.theauteurs.com/lists/31" rel="nofollo... (truncated)] - Column: list_cover_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w1280.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w1280.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w1280.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w1280.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w1280.jpg?1546480829] - Column: list_first_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w320.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w320.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w320.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w320.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w320.jpg?1546480829] - Column: list_second_image_url - Samples: [https://assets.mubicdn.net/images/film/506/image-w320.jpg?1543838422, https://assets.mubicdn.net/images/film/159/image-w320.jpg?1548864573, https://assets.mubicdn.net/images/film/2377/image-w320.jpg?1564675204, https://assets.mubicdn.net/images/film/1033/image-w320.jpg?1553538051, https://assets.mubicdn.net/images/film/2115/image-w320.jpg?1563782406] - Column: list_third_image_url - Samples: [https://assets.mubicdn.net/images/film/485/image-w320.jpg?1575331204, https://assets.mubicdn.net/images/film/142/image-w320.jpg?1544094102, https://assets.mubicdn.net/images/film/2874/image-w320.jpg?1546574412, https://assets.mubicdn.net/images/film/407/image-w320.jpg?1490057681, https://assets.mubicdn.net/images/film/1688/image-w320.jpg?1575033549] - Table: movies - Column: movie_id - Samples: [1, 2, 3, 4, 5] - Column: movie_title - Samples: [La Antena, Elementary Particles, It's Winter, Kirikou and the Wild Beasts, Padre Nuestro] - Column: movie_release_year - Samples: [2007, 2006, 2006, 2005, 2007] - Column: movie_url - Samples: [http://mubi.com/films/la-antena, http://mubi.com/films/elementary-particles, http://mubi.com/films/its-winter, http://mubi.com/films/kirikou-and-the-wild-beasts, http://mubi.com/films/padre-nuestro] - Column: movie_title_language - Samples: [en, en, en, en, en] - Column: movie_popularity - Samples: [105, 23, 21, 46, 7] - Column: movie_image_url - Samples: [https://images.mubicdn.net/images/film/1/cache-7927-1581389497/image-w..., https://images.mubicdn.net/images/film/2/cache-512179-1581389841/image..., https://images.mubicdn.net/images/film/3/cache-7929-1481539519/image-w..., https://images.mubicdn.net/images/film/4/cache-7930-1568880017/image-w..., https://images.mubicdn.net/images/film/5/cache-7931-1581390636/image-w... (truncated)] - Column: director_id - Samples: [131, 73, 82, 89, 90, 92] - Column: director_name - Samples: [Esteban Sapir, Oskar Roehler, Rafi Pitts, Michel Ocelot, Bénédicte Galup, Christopher Zalla] - Column: director_url - Samples: [http://mubi.com/cast/esteban-sapir, http://mubi.com/cast/oskar-roehler, http://mubi.com/cast/rafi-pitts, http://mubi.com/cast/michel-ocelot, http://mubi.com/cast/benedicte-gal..., http://mubi.com/cast/christopher-zalla (truncated)] - Table: ratings_users - Column: user_id - Samples: [41579158, 68654088, 84114365, 29755671, 93302487] - Column: rating_date_utc - Samples: [2017-06-10, 2012-10-02, 2010-12-25, 2010-11-15, 2010-01-05] - Column: user_trialist - Samples: [0, 0, 0, 0, 0] - Column: user_subscriber - Samples: [0, 0, 0, 0, 0] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74283/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/27714/images-w150.jpg?152388..., https://assets.mubicdn.net/images/avatars/1808/images-w150.jpg?1523883..., //mubi.com/assets/placeholders/avatar-c68833eec06a12b110c74dd2fa1709ae..., https://assets.mubicdn.net/images/avatars/12246/images-w150.jpg?152388... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [1, 1, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 0, 0, 0] - Table: lists_users - Column: user_id - Samples: [85981819, 85981819, 85981819, 85981819, 85981819] - Column: list_id - Samples: [1969, 3946, 6683, 8865, 13796] - Column: list_update_date_utc - Samples: [2019-11-26, 2020-05-01, 2020-04-12, 2018-12-14, 2019-11-26] - Column: list_creation_date_utc - Samples: [2009-12-18, 2010-01-30, 2010-03-31, 2010-05-10, 2010-08-25] - Column: user_trialist - Samples: [1, 1, 1, 1, 1] - Column: user_subscriber - Samples: [1, 1, 1, 1, 1] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [0, 0, 0, 0, 0] - Column: user_has_payment_method - Samples: [1, 1, 1, 1, 1] - Table: ratings - Column: movie_id - Samples: [1066, 1066, 1066, 1066, 1066] - Column: rating_id - Samples: [15610495, 10704606, 10177114, 10130280, 8357049] - Column: rating_url - Samples: [http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1561049..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1070460..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1017711..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1013028..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/8357049 (truncated)] - Column: rating_score - Samples: [3, 2, 2, 3, 4] - Column: rating_timestamp_utc - Samples: [2017-06-10 12:38:33, 2014-08-15 23:42:31, 2014-01-30 13:21:57, 2014-01-19 01:04:23, 2012-10-02 18:28:47] - Column: critic - Samples: [None, None, None, I am a bit disappointed by this documentary film I've been wanting to ..., None (truncated)] - Column: critic_likes - Samples: [0, 0, 0, 0, 0] - Column: critic_comments - Samples: [0, 0, 0, 0, 0] - Column: user_id - Samples: [41579158, 85981819, 4208563, 9820140, 68654088] - Column: user_trialist - Samples: [0, 1, 0, 0, 0] - Column: user_subscriber - Samples: [0, 1, 0, 0, 0] - Column: user_eligible_for_trial - Samples: [1, 0, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 1, 0, 1]
SELECT CAST(SUM(CASE WHEN T2.rating_score = 5 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_title = 'Welcome to the Dollhouse'
Solve the following sql problem: What is the percentage of rated movies were released in year 2021? Schema: SCHEMA: - Table: lists - Column: user_id - Samples: [88260493, 45204418, 48905025, 12074910, 67171533] - Column: list_id - Samples: [1, 2, 3, 7, 8] - Column: list_title - Samples: [Films that made your kid sister cry, Headscratchers, Sexy Time Movies, This is America, Best Documentaries] - Column: list_movie_number - Samples: [5, 3, 7, 11, 41] - Column: list_update_timestamp_utc - Samples: [2019-01-24 19:16:18, 2018-12-03 15:12:20, 2019-05-30 03:00:07, 2019-01-24 19:16:18, 2020-04-25 05:55:07] - Column: list_creation_timestamp_utc - Samples: [2009-11-11 00:02:21, 2009-11-11 00:05:11, 2009-11-11 00:20:00, 2009-11-11 00:32:52, 2009-11-11 00:41:10] - Column: list_followers - Samples: [5, 1, 6, 9, 90] - Column: list_url - Samples: [http://mubi.com/lists/films-that-made-your-kid-sister-cry, http://mubi.com/lists/headscratchers, http://mubi.com/lists/sexy-time-movies, http://mubi.com/lists/this-is-america, http://mubi.com/lists/best-documentaries] - Column: list_comments - Samples: [3, 2, 5, 3, 4] - Column: list_description - Samples: [<p>Don’t be such a baby!!</p> <p><strong>bold</strong></p>, <p>Films that need at least two viewings to really make sense.</p> <p>..., <p>Films that get you in the mood…for love. In development.</p> <p>Rem..., <p>Stories of the people, place and things.</p>, <p>See also: <a href="http://www.theauteurs.com/lists/31" rel="nofollo... (truncated)] - Column: list_cover_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w1280.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w1280.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w1280.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w1280.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w1280.jpg?1546480829] - Column: list_first_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w320.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w320.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w320.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w320.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w320.jpg?1546480829] - Column: list_second_image_url - Samples: [https://assets.mubicdn.net/images/film/506/image-w320.jpg?1543838422, https://assets.mubicdn.net/images/film/159/image-w320.jpg?1548864573, https://assets.mubicdn.net/images/film/2377/image-w320.jpg?1564675204, https://assets.mubicdn.net/images/film/1033/image-w320.jpg?1553538051, https://assets.mubicdn.net/images/film/2115/image-w320.jpg?1563782406] - Column: list_third_image_url - Samples: [https://assets.mubicdn.net/images/film/485/image-w320.jpg?1575331204, https://assets.mubicdn.net/images/film/142/image-w320.jpg?1544094102, https://assets.mubicdn.net/images/film/2874/image-w320.jpg?1546574412, https://assets.mubicdn.net/images/film/407/image-w320.jpg?1490057681, https://assets.mubicdn.net/images/film/1688/image-w320.jpg?1575033549] - Table: movies - Column: movie_id - Samples: [1, 2, 3, 4, 5] - Column: movie_title - Samples: [La Antena, Elementary Particles, It's Winter, Kirikou and the Wild Beasts, Padre Nuestro] - Column: movie_release_year - Samples: [2007, 2006, 2006, 2005, 2007] - Column: movie_url - Samples: [http://mubi.com/films/la-antena, http://mubi.com/films/elementary-particles, http://mubi.com/films/its-winter, http://mubi.com/films/kirikou-and-the-wild-beasts, http://mubi.com/films/padre-nuestro] - Column: movie_title_language - Samples: [en, en, en, en, en] - Column: movie_popularity - Samples: [105, 23, 21, 46, 7] - Column: movie_image_url - Samples: [https://images.mubicdn.net/images/film/1/cache-7927-1581389497/image-w..., https://images.mubicdn.net/images/film/2/cache-512179-1581389841/image..., https://images.mubicdn.net/images/film/3/cache-7929-1481539519/image-w..., https://images.mubicdn.net/images/film/4/cache-7930-1568880017/image-w..., https://images.mubicdn.net/images/film/5/cache-7931-1581390636/image-w... (truncated)] - Column: director_id - Samples: [131, 73, 82, 89, 90, 92] - Column: director_name - Samples: [Esteban Sapir, Oskar Roehler, Rafi Pitts, Michel Ocelot, Bénédicte Galup, Christopher Zalla] - Column: director_url - Samples: [http://mubi.com/cast/esteban-sapir, http://mubi.com/cast/oskar-roehler, http://mubi.com/cast/rafi-pitts, http://mubi.com/cast/michel-ocelot, http://mubi.com/cast/benedicte-gal..., http://mubi.com/cast/christopher-zalla (truncated)] - Table: ratings_users - Column: user_id - Samples: [41579158, 68654088, 84114365, 29755671, 93302487] - Column: rating_date_utc - Samples: [2017-06-10, 2012-10-02, 2010-12-25, 2010-11-15, 2010-01-05] - Column: user_trialist - Samples: [0, 0, 0, 0, 0] - Column: user_subscriber - Samples: [0, 0, 0, 0, 0] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74283/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/27714/images-w150.jpg?152388..., https://assets.mubicdn.net/images/avatars/1808/images-w150.jpg?1523883..., //mubi.com/assets/placeholders/avatar-c68833eec06a12b110c74dd2fa1709ae..., https://assets.mubicdn.net/images/avatars/12246/images-w150.jpg?152388... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [1, 1, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 0, 0, 0] - Table: lists_users - Column: user_id - Samples: [85981819, 85981819, 85981819, 85981819, 85981819] - Column: list_id - Samples: [1969, 3946, 6683, 8865, 13796] - Column: list_update_date_utc - Samples: [2019-11-26, 2020-05-01, 2020-04-12, 2018-12-14, 2019-11-26] - Column: list_creation_date_utc - Samples: [2009-12-18, 2010-01-30, 2010-03-31, 2010-05-10, 2010-08-25] - Column: user_trialist - Samples: [1, 1, 1, 1, 1] - Column: user_subscriber - Samples: [1, 1, 1, 1, 1] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [0, 0, 0, 0, 0] - Column: user_has_payment_method - Samples: [1, 1, 1, 1, 1] - Table: ratings - Column: movie_id - Samples: [1066, 1066, 1066, 1066, 1066] - Column: rating_id - Samples: [15610495, 10704606, 10177114, 10130280, 8357049] - Column: rating_url - Samples: [http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1561049..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1070460..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1017711..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1013028..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/8357049 (truncated)] - Column: rating_score - Samples: [3, 2, 2, 3, 4] - Column: rating_timestamp_utc - Samples: [2017-06-10 12:38:33, 2014-08-15 23:42:31, 2014-01-30 13:21:57, 2014-01-19 01:04:23, 2012-10-02 18:28:47] - Column: critic - Samples: [None, None, None, I am a bit disappointed by this documentary film I've been wanting to ..., None (truncated)] - Column: critic_likes - Samples: [0, 0, 0, 0, 0] - Column: critic_comments - Samples: [0, 0, 0, 0, 0] - Column: user_id - Samples: [41579158, 85981819, 4208563, 9820140, 68654088] - Column: user_trialist - Samples: [0, 1, 0, 0, 0] - Column: user_subscriber - Samples: [0, 1, 0, 0, 0] - Column: user_eligible_for_trial - Samples: [1, 0, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 1, 0, 1]
SELECT CAST(SUM(CASE WHEN T1.movie_release_year = 2021 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id
Solve the following sql problem: Who is the director of the movie Sex, Drink and Bloodshed? Schema: SCHEMA: - Table: lists - Column: user_id - Samples: [88260493, 45204418, 48905025, 12074910, 67171533] - Column: list_id - Samples: [1, 2, 3, 7, 8] - Column: list_title - Samples: [Films that made your kid sister cry, Headscratchers, Sexy Time Movies, This is America, Best Documentaries] - Column: list_movie_number - Samples: [5, 3, 7, 11, 41] - Column: list_update_timestamp_utc - Samples: [2019-01-24 19:16:18, 2018-12-03 15:12:20, 2019-05-30 03:00:07, 2019-01-24 19:16:18, 2020-04-25 05:55:07] - Column: list_creation_timestamp_utc - Samples: [2009-11-11 00:02:21, 2009-11-11 00:05:11, 2009-11-11 00:20:00, 2009-11-11 00:32:52, 2009-11-11 00:41:10] - Column: list_followers - Samples: [5, 1, 6, 9, 90] - Column: list_url - Samples: [http://mubi.com/lists/films-that-made-your-kid-sister-cry, http://mubi.com/lists/headscratchers, http://mubi.com/lists/sexy-time-movies, http://mubi.com/lists/this-is-america, http://mubi.com/lists/best-documentaries] - Column: list_comments - Samples: [3, 2, 5, 3, 4] - Column: list_description - Samples: [<p>Don’t be such a baby!!</p> <p><strong>bold</strong></p>, <p>Films that need at least two viewings to really make sense.</p> <p>..., <p>Films that get you in the mood…for love. In development.</p> <p>Rem..., <p>Stories of the people, place and things.</p>, <p>See also: <a href="http://www.theauteurs.com/lists/31" rel="nofollo... (truncated)] - Column: list_cover_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w1280.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w1280.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w1280.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w1280.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w1280.jpg?1546480829] - Column: list_first_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w320.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w320.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w320.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w320.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w320.jpg?1546480829] - Column: list_second_image_url - Samples: [https://assets.mubicdn.net/images/film/506/image-w320.jpg?1543838422, https://assets.mubicdn.net/images/film/159/image-w320.jpg?1548864573, https://assets.mubicdn.net/images/film/2377/image-w320.jpg?1564675204, https://assets.mubicdn.net/images/film/1033/image-w320.jpg?1553538051, https://assets.mubicdn.net/images/film/2115/image-w320.jpg?1563782406] - Column: list_third_image_url - Samples: [https://assets.mubicdn.net/images/film/485/image-w320.jpg?1575331204, https://assets.mubicdn.net/images/film/142/image-w320.jpg?1544094102, https://assets.mubicdn.net/images/film/2874/image-w320.jpg?1546574412, https://assets.mubicdn.net/images/film/407/image-w320.jpg?1490057681, https://assets.mubicdn.net/images/film/1688/image-w320.jpg?1575033549] - Table: movies - Column: movie_id - Samples: [1, 2, 3, 4, 5] - Column: movie_title - Samples: [La Antena, Elementary Particles, It's Winter, Kirikou and the Wild Beasts, Padre Nuestro] - Column: movie_release_year - Samples: [2007, 2006, 2006, 2005, 2007] - Column: movie_url - Samples: [http://mubi.com/films/la-antena, http://mubi.com/films/elementary-particles, http://mubi.com/films/its-winter, http://mubi.com/films/kirikou-and-the-wild-beasts, http://mubi.com/films/padre-nuestro] - Column: movie_title_language - Samples: [en, en, en, en, en] - Column: movie_popularity - Samples: [105, 23, 21, 46, 7] - Column: movie_image_url - Samples: [https://images.mubicdn.net/images/film/1/cache-7927-1581389497/image-w..., https://images.mubicdn.net/images/film/2/cache-512179-1581389841/image..., https://images.mubicdn.net/images/film/3/cache-7929-1481539519/image-w..., https://images.mubicdn.net/images/film/4/cache-7930-1568880017/image-w..., https://images.mubicdn.net/images/film/5/cache-7931-1581390636/image-w... (truncated)] - Column: director_id - Samples: [131, 73, 82, 89, 90, 92] - Column: director_name - Samples: [Esteban Sapir, Oskar Roehler, Rafi Pitts, Michel Ocelot, Bénédicte Galup, Christopher Zalla] - Column: director_url - Samples: [http://mubi.com/cast/esteban-sapir, http://mubi.com/cast/oskar-roehler, http://mubi.com/cast/rafi-pitts, http://mubi.com/cast/michel-ocelot, http://mubi.com/cast/benedicte-gal..., http://mubi.com/cast/christopher-zalla (truncated)] - Table: ratings_users - Column: user_id - Samples: [41579158, 68654088, 84114365, 29755671, 93302487] - Column: rating_date_utc - Samples: [2017-06-10, 2012-10-02, 2010-12-25, 2010-11-15, 2010-01-05] - Column: user_trialist - Samples: [0, 0, 0, 0, 0] - Column: user_subscriber - Samples: [0, 0, 0, 0, 0] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74283/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/27714/images-w150.jpg?152388..., https://assets.mubicdn.net/images/avatars/1808/images-w150.jpg?1523883..., //mubi.com/assets/placeholders/avatar-c68833eec06a12b110c74dd2fa1709ae..., https://assets.mubicdn.net/images/avatars/12246/images-w150.jpg?152388... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [1, 1, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 0, 0, 0] - Table: lists_users - Column: user_id - Samples: [85981819, 85981819, 85981819, 85981819, 85981819] - Column: list_id - Samples: [1969, 3946, 6683, 8865, 13796] - Column: list_update_date_utc - Samples: [2019-11-26, 2020-05-01, 2020-04-12, 2018-12-14, 2019-11-26] - Column: list_creation_date_utc - Samples: [2009-12-18, 2010-01-30, 2010-03-31, 2010-05-10, 2010-08-25] - Column: user_trialist - Samples: [1, 1, 1, 1, 1] - Column: user_subscriber - Samples: [1, 1, 1, 1, 1] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [0, 0, 0, 0, 0] - Column: user_has_payment_method - Samples: [1, 1, 1, 1, 1] - Table: ratings - Column: movie_id - Samples: [1066, 1066, 1066, 1066, 1066] - Column: rating_id - Samples: [15610495, 10704606, 10177114, 10130280, 8357049] - Column: rating_url - Samples: [http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1561049..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1070460..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1017711..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1013028..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/8357049 (truncated)] - Column: rating_score - Samples: [3, 2, 2, 3, 4] - Column: rating_timestamp_utc - Samples: [2017-06-10 12:38:33, 2014-08-15 23:42:31, 2014-01-30 13:21:57, 2014-01-19 01:04:23, 2012-10-02 18:28:47] - Column: critic - Samples: [None, None, None, I am a bit disappointed by this documentary film I've been wanting to ..., None (truncated)] - Column: critic_likes - Samples: [0, 0, 0, 0, 0] - Column: critic_comments - Samples: [0, 0, 0, 0, 0] - Column: user_id - Samples: [41579158, 85981819, 4208563, 9820140, 68654088] - Column: user_trialist - Samples: [0, 1, 0, 0, 0] - Column: user_subscriber - Samples: [0, 1, 0, 0, 0] - Column: user_eligible_for_trial - Samples: [1, 0, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 1, 0, 1]
SELECT director_name FROM movies WHERE movie_title = 'Sex, Drink and Bloodshed'
Solve the following sql problem: What is the name of the most followed list? Schema: SCHEMA: - Table: lists - Column: user_id - Samples: [88260493, 45204418, 48905025, 12074910, 67171533] - Column: list_id - Samples: [1, 2, 3, 7, 8] - Column: list_title - Samples: [Films that made your kid sister cry, Headscratchers, Sexy Time Movies, This is America, Best Documentaries] - Column: list_movie_number - Samples: [5, 3, 7, 11, 41] - Column: list_update_timestamp_utc - Samples: [2019-01-24 19:16:18, 2018-12-03 15:12:20, 2019-05-30 03:00:07, 2019-01-24 19:16:18, 2020-04-25 05:55:07] - Column: list_creation_timestamp_utc - Samples: [2009-11-11 00:02:21, 2009-11-11 00:05:11, 2009-11-11 00:20:00, 2009-11-11 00:32:52, 2009-11-11 00:41:10] - Column: list_followers - Samples: [5, 1, 6, 9, 90] - Column: list_url - Samples: [http://mubi.com/lists/films-that-made-your-kid-sister-cry, http://mubi.com/lists/headscratchers, http://mubi.com/lists/sexy-time-movies, http://mubi.com/lists/this-is-america, http://mubi.com/lists/best-documentaries] - Column: list_comments - Samples: [3, 2, 5, 3, 4] - Column: list_description - Samples: [<p>Don’t be such a baby!!</p> <p><strong>bold</strong></p>, <p>Films that need at least two viewings to really make sense.</p> <p>..., <p>Films that get you in the mood…for love. In development.</p> <p>Rem..., <p>Stories of the people, place and things.</p>, <p>See also: <a href="http://www.theauteurs.com/lists/31" rel="nofollo... (truncated)] - Column: list_cover_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w1280.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w1280.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w1280.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w1280.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w1280.jpg?1546480829] - Column: list_first_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w320.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w320.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w320.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w320.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w320.jpg?1546480829] - Column: list_second_image_url - Samples: [https://assets.mubicdn.net/images/film/506/image-w320.jpg?1543838422, https://assets.mubicdn.net/images/film/159/image-w320.jpg?1548864573, https://assets.mubicdn.net/images/film/2377/image-w320.jpg?1564675204, https://assets.mubicdn.net/images/film/1033/image-w320.jpg?1553538051, https://assets.mubicdn.net/images/film/2115/image-w320.jpg?1563782406] - Column: list_third_image_url - Samples: [https://assets.mubicdn.net/images/film/485/image-w320.jpg?1575331204, https://assets.mubicdn.net/images/film/142/image-w320.jpg?1544094102, https://assets.mubicdn.net/images/film/2874/image-w320.jpg?1546574412, https://assets.mubicdn.net/images/film/407/image-w320.jpg?1490057681, https://assets.mubicdn.net/images/film/1688/image-w320.jpg?1575033549] - Table: movies - Column: movie_id - Samples: [1, 2, 3, 4, 5] - Column: movie_title - Samples: [La Antena, Elementary Particles, It's Winter, Kirikou and the Wild Beasts, Padre Nuestro] - Column: movie_release_year - Samples: [2007, 2006, 2006, 2005, 2007] - Column: movie_url - Samples: [http://mubi.com/films/la-antena, http://mubi.com/films/elementary-particles, http://mubi.com/films/its-winter, http://mubi.com/films/kirikou-and-the-wild-beasts, http://mubi.com/films/padre-nuestro] - Column: movie_title_language - Samples: [en, en, en, en, en] - Column: movie_popularity - Samples: [105, 23, 21, 46, 7] - Column: movie_image_url - Samples: [https://images.mubicdn.net/images/film/1/cache-7927-1581389497/image-w..., https://images.mubicdn.net/images/film/2/cache-512179-1581389841/image..., https://images.mubicdn.net/images/film/3/cache-7929-1481539519/image-w..., https://images.mubicdn.net/images/film/4/cache-7930-1568880017/image-w..., https://images.mubicdn.net/images/film/5/cache-7931-1581390636/image-w... (truncated)] - Column: director_id - Samples: [131, 73, 82, 89, 90, 92] - Column: director_name - Samples: [Esteban Sapir, Oskar Roehler, Rafi Pitts, Michel Ocelot, Bénédicte Galup, Christopher Zalla] - Column: director_url - Samples: [http://mubi.com/cast/esteban-sapir, http://mubi.com/cast/oskar-roehler, http://mubi.com/cast/rafi-pitts, http://mubi.com/cast/michel-ocelot, http://mubi.com/cast/benedicte-gal..., http://mubi.com/cast/christopher-zalla (truncated)] - Table: ratings_users - Column: user_id - Samples: [41579158, 68654088, 84114365, 29755671, 93302487] - Column: rating_date_utc - Samples: [2017-06-10, 2012-10-02, 2010-12-25, 2010-11-15, 2010-01-05] - Column: user_trialist - Samples: [0, 0, 0, 0, 0] - Column: user_subscriber - Samples: [0, 0, 0, 0, 0] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74283/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/27714/images-w150.jpg?152388..., https://assets.mubicdn.net/images/avatars/1808/images-w150.jpg?1523883..., //mubi.com/assets/placeholders/avatar-c68833eec06a12b110c74dd2fa1709ae..., https://assets.mubicdn.net/images/avatars/12246/images-w150.jpg?152388... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [1, 1, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 0, 0, 0] - Table: lists_users - Column: user_id - Samples: [85981819, 85981819, 85981819, 85981819, 85981819] - Column: list_id - Samples: [1969, 3946, 6683, 8865, 13796] - Column: list_update_date_utc - Samples: [2019-11-26, 2020-05-01, 2020-04-12, 2018-12-14, 2019-11-26] - Column: list_creation_date_utc - Samples: [2009-12-18, 2010-01-30, 2010-03-31, 2010-05-10, 2010-08-25] - Column: user_trialist - Samples: [1, 1, 1, 1, 1] - Column: user_subscriber - Samples: [1, 1, 1, 1, 1] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [0, 0, 0, 0, 0] - Column: user_has_payment_method - Samples: [1, 1, 1, 1, 1] - Table: ratings - Column: movie_id - Samples: [1066, 1066, 1066, 1066, 1066] - Column: rating_id - Samples: [15610495, 10704606, 10177114, 10130280, 8357049] - Column: rating_url - Samples: [http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1561049..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1070460..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1017711..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1013028..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/8357049 (truncated)] - Column: rating_score - Samples: [3, 2, 2, 3, 4] - Column: rating_timestamp_utc - Samples: [2017-06-10 12:38:33, 2014-08-15 23:42:31, 2014-01-30 13:21:57, 2014-01-19 01:04:23, 2012-10-02 18:28:47] - Column: critic - Samples: [None, None, None, I am a bit disappointed by this documentary film I've been wanting to ..., None (truncated)] - Column: critic_likes - Samples: [0, 0, 0, 0, 0] - Column: critic_comments - Samples: [0, 0, 0, 0, 0] - Column: user_id - Samples: [41579158, 85981819, 4208563, 9820140, 68654088] - Column: user_trialist - Samples: [0, 1, 0, 0, 0] - Column: user_subscriber - Samples: [0, 1, 0, 0, 0] - Column: user_eligible_for_trial - Samples: [1, 0, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 1, 0, 1]
SELECT list_title FROM lists ORDER BY list_followers DESC LIMIT 1
Solve the following sql problem: What are the URL to the list page on Mubi of the lists with followers between 1-2 and whose last update timestamp was on 2012? Schema: SCHEMA: - Table: lists - Column: user_id - Samples: [88260493, 45204418, 48905025, 12074910, 67171533] - Column: list_id - Samples: [1, 2, 3, 7, 8] - Column: list_title - Samples: [Films that made your kid sister cry, Headscratchers, Sexy Time Movies, This is America, Best Documentaries] - Column: list_movie_number - Samples: [5, 3, 7, 11, 41] - Column: list_update_timestamp_utc - Samples: [2019-01-24 19:16:18, 2018-12-03 15:12:20, 2019-05-30 03:00:07, 2019-01-24 19:16:18, 2020-04-25 05:55:07] - Column: list_creation_timestamp_utc - Samples: [2009-11-11 00:02:21, 2009-11-11 00:05:11, 2009-11-11 00:20:00, 2009-11-11 00:32:52, 2009-11-11 00:41:10] - Column: list_followers - Samples: [5, 1, 6, 9, 90] - Column: list_url - Samples: [http://mubi.com/lists/films-that-made-your-kid-sister-cry, http://mubi.com/lists/headscratchers, http://mubi.com/lists/sexy-time-movies, http://mubi.com/lists/this-is-america, http://mubi.com/lists/best-documentaries] - Column: list_comments - Samples: [3, 2, 5, 3, 4] - Column: list_description - Samples: [<p>Don’t be such a baby!!</p> <p><strong>bold</strong></p>, <p>Films that need at least two viewings to really make sense.</p> <p>..., <p>Films that get you in the mood…for love. In development.</p> <p>Rem..., <p>Stories of the people, place and things.</p>, <p>See also: <a href="http://www.theauteurs.com/lists/31" rel="nofollo... (truncated)] - Column: list_cover_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w1280.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w1280.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w1280.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w1280.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w1280.jpg?1546480829] - Column: list_first_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w320.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w320.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w320.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w320.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w320.jpg?1546480829] - Column: list_second_image_url - Samples: [https://assets.mubicdn.net/images/film/506/image-w320.jpg?1543838422, https://assets.mubicdn.net/images/film/159/image-w320.jpg?1548864573, https://assets.mubicdn.net/images/film/2377/image-w320.jpg?1564675204, https://assets.mubicdn.net/images/film/1033/image-w320.jpg?1553538051, https://assets.mubicdn.net/images/film/2115/image-w320.jpg?1563782406] - Column: list_third_image_url - Samples: [https://assets.mubicdn.net/images/film/485/image-w320.jpg?1575331204, https://assets.mubicdn.net/images/film/142/image-w320.jpg?1544094102, https://assets.mubicdn.net/images/film/2874/image-w320.jpg?1546574412, https://assets.mubicdn.net/images/film/407/image-w320.jpg?1490057681, https://assets.mubicdn.net/images/film/1688/image-w320.jpg?1575033549] - Table: movies - Column: movie_id - Samples: [1, 2, 3, 4, 5] - Column: movie_title - Samples: [La Antena, Elementary Particles, It's Winter, Kirikou and the Wild Beasts, Padre Nuestro] - Column: movie_release_year - Samples: [2007, 2006, 2006, 2005, 2007] - Column: movie_url - Samples: [http://mubi.com/films/la-antena, http://mubi.com/films/elementary-particles, http://mubi.com/films/its-winter, http://mubi.com/films/kirikou-and-the-wild-beasts, http://mubi.com/films/padre-nuestro] - Column: movie_title_language - Samples: [en, en, en, en, en] - Column: movie_popularity - Samples: [105, 23, 21, 46, 7] - Column: movie_image_url - Samples: [https://images.mubicdn.net/images/film/1/cache-7927-1581389497/image-w..., https://images.mubicdn.net/images/film/2/cache-512179-1581389841/image..., https://images.mubicdn.net/images/film/3/cache-7929-1481539519/image-w..., https://images.mubicdn.net/images/film/4/cache-7930-1568880017/image-w..., https://images.mubicdn.net/images/film/5/cache-7931-1581390636/image-w... (truncated)] - Column: director_id - Samples: [131, 73, 82, 89, 90, 92] - Column: director_name - Samples: [Esteban Sapir, Oskar Roehler, Rafi Pitts, Michel Ocelot, Bénédicte Galup, Christopher Zalla] - Column: director_url - Samples: [http://mubi.com/cast/esteban-sapir, http://mubi.com/cast/oskar-roehler, http://mubi.com/cast/rafi-pitts, http://mubi.com/cast/michel-ocelot, http://mubi.com/cast/benedicte-gal..., http://mubi.com/cast/christopher-zalla (truncated)] - Table: ratings_users - Column: user_id - Samples: [41579158, 68654088, 84114365, 29755671, 93302487] - Column: rating_date_utc - Samples: [2017-06-10, 2012-10-02, 2010-12-25, 2010-11-15, 2010-01-05] - Column: user_trialist - Samples: [0, 0, 0, 0, 0] - Column: user_subscriber - Samples: [0, 0, 0, 0, 0] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74283/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/27714/images-w150.jpg?152388..., https://assets.mubicdn.net/images/avatars/1808/images-w150.jpg?1523883..., //mubi.com/assets/placeholders/avatar-c68833eec06a12b110c74dd2fa1709ae..., https://assets.mubicdn.net/images/avatars/12246/images-w150.jpg?152388... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [1, 1, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 0, 0, 0] - Table: lists_users - Column: user_id - Samples: [85981819, 85981819, 85981819, 85981819, 85981819] - Column: list_id - Samples: [1969, 3946, 6683, 8865, 13796] - Column: list_update_date_utc - Samples: [2019-11-26, 2020-05-01, 2020-04-12, 2018-12-14, 2019-11-26] - Column: list_creation_date_utc - Samples: [2009-12-18, 2010-01-30, 2010-03-31, 2010-05-10, 2010-08-25] - Column: user_trialist - Samples: [1, 1, 1, 1, 1] - Column: user_subscriber - Samples: [1, 1, 1, 1, 1] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [0, 0, 0, 0, 0] - Column: user_has_payment_method - Samples: [1, 1, 1, 1, 1] - Table: ratings - Column: movie_id - Samples: [1066, 1066, 1066, 1066, 1066] - Column: rating_id - Samples: [15610495, 10704606, 10177114, 10130280, 8357049] - Column: rating_url - Samples: [http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1561049..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1070460..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1017711..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1013028..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/8357049 (truncated)] - Column: rating_score - Samples: [3, 2, 2, 3, 4] - Column: rating_timestamp_utc - Samples: [2017-06-10 12:38:33, 2014-08-15 23:42:31, 2014-01-30 13:21:57, 2014-01-19 01:04:23, 2012-10-02 18:28:47] - Column: critic - Samples: [None, None, None, I am a bit disappointed by this documentary film I've been wanting to ..., None (truncated)] - Column: critic_likes - Samples: [0, 0, 0, 0, 0] - Column: critic_comments - Samples: [0, 0, 0, 0, 0] - Column: user_id - Samples: [41579158, 85981819, 4208563, 9820140, 68654088] - Column: user_trialist - Samples: [0, 1, 0, 0, 0] - Column: user_subscriber - Samples: [0, 1, 0, 0, 0] - Column: user_eligible_for_trial - Samples: [1, 0, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 1, 0, 1]
SELECT list_url FROM lists WHERE list_update_timestamp_utc LIKE '2012%' AND list_followers BETWEEN 1 AND 2 ORDER BY list_update_timestamp_utc DESC LIMIT 1
Solve the following sql problem: What is the list ID that was first created by user 85981819? Schema: SCHEMA: - Table: lists - Column: user_id - Samples: [88260493, 45204418, 48905025, 12074910, 67171533] - Column: list_id - Samples: [1, 2, 3, 7, 8] - Column: list_title - Samples: [Films that made your kid sister cry, Headscratchers, Sexy Time Movies, This is America, Best Documentaries] - Column: list_movie_number - Samples: [5, 3, 7, 11, 41] - Column: list_update_timestamp_utc - Samples: [2019-01-24 19:16:18, 2018-12-03 15:12:20, 2019-05-30 03:00:07, 2019-01-24 19:16:18, 2020-04-25 05:55:07] - Column: list_creation_timestamp_utc - Samples: [2009-11-11 00:02:21, 2009-11-11 00:05:11, 2009-11-11 00:20:00, 2009-11-11 00:32:52, 2009-11-11 00:41:10] - Column: list_followers - Samples: [5, 1, 6, 9, 90] - Column: list_url - Samples: [http://mubi.com/lists/films-that-made-your-kid-sister-cry, http://mubi.com/lists/headscratchers, http://mubi.com/lists/sexy-time-movies, http://mubi.com/lists/this-is-america, http://mubi.com/lists/best-documentaries] - Column: list_comments - Samples: [3, 2, 5, 3, 4] - Column: list_description - Samples: [<p>Don’t be such a baby!!</p> <p><strong>bold</strong></p>, <p>Films that need at least two viewings to really make sense.</p> <p>..., <p>Films that get you in the mood…for love. In development.</p> <p>Rem..., <p>Stories of the people, place and things.</p>, <p>See also: <a href="http://www.theauteurs.com/lists/31" rel="nofollo... (truncated)] - Column: list_cover_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w1280.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w1280.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w1280.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w1280.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w1280.jpg?1546480829] - Column: list_first_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w320.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w320.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w320.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w320.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w320.jpg?1546480829] - Column: list_second_image_url - Samples: [https://assets.mubicdn.net/images/film/506/image-w320.jpg?1543838422, https://assets.mubicdn.net/images/film/159/image-w320.jpg?1548864573, https://assets.mubicdn.net/images/film/2377/image-w320.jpg?1564675204, https://assets.mubicdn.net/images/film/1033/image-w320.jpg?1553538051, https://assets.mubicdn.net/images/film/2115/image-w320.jpg?1563782406] - Column: list_third_image_url - Samples: [https://assets.mubicdn.net/images/film/485/image-w320.jpg?1575331204, https://assets.mubicdn.net/images/film/142/image-w320.jpg?1544094102, https://assets.mubicdn.net/images/film/2874/image-w320.jpg?1546574412, https://assets.mubicdn.net/images/film/407/image-w320.jpg?1490057681, https://assets.mubicdn.net/images/film/1688/image-w320.jpg?1575033549] - Table: movies - Column: movie_id - Samples: [1, 2, 3, 4, 5] - Column: movie_title - Samples: [La Antena, Elementary Particles, It's Winter, Kirikou and the Wild Beasts, Padre Nuestro] - Column: movie_release_year - Samples: [2007, 2006, 2006, 2005, 2007] - Column: movie_url - Samples: [http://mubi.com/films/la-antena, http://mubi.com/films/elementary-particles, http://mubi.com/films/its-winter, http://mubi.com/films/kirikou-and-the-wild-beasts, http://mubi.com/films/padre-nuestro] - Column: movie_title_language - Samples: [en, en, en, en, en] - Column: movie_popularity - Samples: [105, 23, 21, 46, 7] - Column: movie_image_url - Samples: [https://images.mubicdn.net/images/film/1/cache-7927-1581389497/image-w..., https://images.mubicdn.net/images/film/2/cache-512179-1581389841/image..., https://images.mubicdn.net/images/film/3/cache-7929-1481539519/image-w..., https://images.mubicdn.net/images/film/4/cache-7930-1568880017/image-w..., https://images.mubicdn.net/images/film/5/cache-7931-1581390636/image-w... (truncated)] - Column: director_id - Samples: [131, 73, 82, 89, 90, 92] - Column: director_name - Samples: [Esteban Sapir, Oskar Roehler, Rafi Pitts, Michel Ocelot, Bénédicte Galup, Christopher Zalla] - Column: director_url - Samples: [http://mubi.com/cast/esteban-sapir, http://mubi.com/cast/oskar-roehler, http://mubi.com/cast/rafi-pitts, http://mubi.com/cast/michel-ocelot, http://mubi.com/cast/benedicte-gal..., http://mubi.com/cast/christopher-zalla (truncated)] - Table: ratings_users - Column: user_id - Samples: [41579158, 68654088, 84114365, 29755671, 93302487] - Column: rating_date_utc - Samples: [2017-06-10, 2012-10-02, 2010-12-25, 2010-11-15, 2010-01-05] - Column: user_trialist - Samples: [0, 0, 0, 0, 0] - Column: user_subscriber - Samples: [0, 0, 0, 0, 0] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74283/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/27714/images-w150.jpg?152388..., https://assets.mubicdn.net/images/avatars/1808/images-w150.jpg?1523883..., //mubi.com/assets/placeholders/avatar-c68833eec06a12b110c74dd2fa1709ae..., https://assets.mubicdn.net/images/avatars/12246/images-w150.jpg?152388... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [1, 1, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 0, 0, 0] - Table: lists_users - Column: user_id - Samples: [85981819, 85981819, 85981819, 85981819, 85981819] - Column: list_id - Samples: [1969, 3946, 6683, 8865, 13796] - Column: list_update_date_utc - Samples: [2019-11-26, 2020-05-01, 2020-04-12, 2018-12-14, 2019-11-26] - Column: list_creation_date_utc - Samples: [2009-12-18, 2010-01-30, 2010-03-31, 2010-05-10, 2010-08-25] - Column: user_trialist - Samples: [1, 1, 1, 1, 1] - Column: user_subscriber - Samples: [1, 1, 1, 1, 1] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [0, 0, 0, 0, 0] - Column: user_has_payment_method - Samples: [1, 1, 1, 1, 1] - Table: ratings - Column: movie_id - Samples: [1066, 1066, 1066, 1066, 1066] - Column: rating_id - Samples: [15610495, 10704606, 10177114, 10130280, 8357049] - Column: rating_url - Samples: [http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1561049..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1070460..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1017711..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1013028..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/8357049 (truncated)] - Column: rating_score - Samples: [3, 2, 2, 3, 4] - Column: rating_timestamp_utc - Samples: [2017-06-10 12:38:33, 2014-08-15 23:42:31, 2014-01-30 13:21:57, 2014-01-19 01:04:23, 2012-10-02 18:28:47] - Column: critic - Samples: [None, None, None, I am a bit disappointed by this documentary film I've been wanting to ..., None (truncated)] - Column: critic_likes - Samples: [0, 0, 0, 0, 0] - Column: critic_comments - Samples: [0, 0, 0, 0, 0] - Column: user_id - Samples: [41579158, 85981819, 4208563, 9820140, 68654088] - Column: user_trialist - Samples: [0, 1, 0, 0, 0] - Column: user_subscriber - Samples: [0, 1, 0, 0, 0] - Column: user_eligible_for_trial - Samples: [1, 0, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 1, 0, 1]
SELECT list_id FROM lists_users WHERE user_id = 85981819 ORDER BY list_creation_date_utc ASC LIMIT 1
Solve the following sql problem: For movie id 1269, how many users, who was a paying subscriber and was eligible for trial when he rated the movie, gave the movie a rating score of less than or equal to 2? Schema: SCHEMA: - Table: lists - Column: user_id - Samples: [88260493, 45204418, 48905025, 12074910, 67171533] - Column: list_id - Samples: [1, 2, 3, 7, 8] - Column: list_title - Samples: [Films that made your kid sister cry, Headscratchers, Sexy Time Movies, This is America, Best Documentaries] - Column: list_movie_number - Samples: [5, 3, 7, 11, 41] - Column: list_update_timestamp_utc - Samples: [2019-01-24 19:16:18, 2018-12-03 15:12:20, 2019-05-30 03:00:07, 2019-01-24 19:16:18, 2020-04-25 05:55:07] - Column: list_creation_timestamp_utc - Samples: [2009-11-11 00:02:21, 2009-11-11 00:05:11, 2009-11-11 00:20:00, 2009-11-11 00:32:52, 2009-11-11 00:41:10] - Column: list_followers - Samples: [5, 1, 6, 9, 90] - Column: list_url - Samples: [http://mubi.com/lists/films-that-made-your-kid-sister-cry, http://mubi.com/lists/headscratchers, http://mubi.com/lists/sexy-time-movies, http://mubi.com/lists/this-is-america, http://mubi.com/lists/best-documentaries] - Column: list_comments - Samples: [3, 2, 5, 3, 4] - Column: list_description - Samples: [<p>Don’t be such a baby!!</p> <p><strong>bold</strong></p>, <p>Films that need at least two viewings to really make sense.</p> <p>..., <p>Films that get you in the mood…for love. In development.</p> <p>Rem..., <p>Stories of the people, place and things.</p>, <p>See also: <a href="http://www.theauteurs.com/lists/31" rel="nofollo... (truncated)] - Column: list_cover_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w1280.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w1280.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w1280.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w1280.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w1280.jpg?1546480829] - Column: list_first_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w320.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w320.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w320.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w320.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w320.jpg?1546480829] - Column: list_second_image_url - Samples: [https://assets.mubicdn.net/images/film/506/image-w320.jpg?1543838422, https://assets.mubicdn.net/images/film/159/image-w320.jpg?1548864573, https://assets.mubicdn.net/images/film/2377/image-w320.jpg?1564675204, https://assets.mubicdn.net/images/film/1033/image-w320.jpg?1553538051, https://assets.mubicdn.net/images/film/2115/image-w320.jpg?1563782406] - Column: list_third_image_url - Samples: [https://assets.mubicdn.net/images/film/485/image-w320.jpg?1575331204, https://assets.mubicdn.net/images/film/142/image-w320.jpg?1544094102, https://assets.mubicdn.net/images/film/2874/image-w320.jpg?1546574412, https://assets.mubicdn.net/images/film/407/image-w320.jpg?1490057681, https://assets.mubicdn.net/images/film/1688/image-w320.jpg?1575033549] - Table: movies - Column: movie_id - Samples: [1, 2, 3, 4, 5] - Column: movie_title - Samples: [La Antena, Elementary Particles, It's Winter, Kirikou and the Wild Beasts, Padre Nuestro] - Column: movie_release_year - Samples: [2007, 2006, 2006, 2005, 2007] - Column: movie_url - Samples: [http://mubi.com/films/la-antena, http://mubi.com/films/elementary-particles, http://mubi.com/films/its-winter, http://mubi.com/films/kirikou-and-the-wild-beasts, http://mubi.com/films/padre-nuestro] - Column: movie_title_language - Samples: [en, en, en, en, en] - Column: movie_popularity - Samples: [105, 23, 21, 46, 7] - Column: movie_image_url - Samples: [https://images.mubicdn.net/images/film/1/cache-7927-1581389497/image-w..., https://images.mubicdn.net/images/film/2/cache-512179-1581389841/image..., https://images.mubicdn.net/images/film/3/cache-7929-1481539519/image-w..., https://images.mubicdn.net/images/film/4/cache-7930-1568880017/image-w..., https://images.mubicdn.net/images/film/5/cache-7931-1581390636/image-w... (truncated)] - Column: director_id - Samples: [131, 73, 82, 89, 90, 92] - Column: director_name - Samples: [Esteban Sapir, Oskar Roehler, Rafi Pitts, Michel Ocelot, Bénédicte Galup, Christopher Zalla] - Column: director_url - Samples: [http://mubi.com/cast/esteban-sapir, http://mubi.com/cast/oskar-roehler, http://mubi.com/cast/rafi-pitts, http://mubi.com/cast/michel-ocelot, http://mubi.com/cast/benedicte-gal..., http://mubi.com/cast/christopher-zalla (truncated)] - Table: ratings_users - Column: user_id - Samples: [41579158, 68654088, 84114365, 29755671, 93302487] - Column: rating_date_utc - Samples: [2017-06-10, 2012-10-02, 2010-12-25, 2010-11-15, 2010-01-05] - Column: user_trialist - Samples: [0, 0, 0, 0, 0] - Column: user_subscriber - Samples: [0, 0, 0, 0, 0] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74283/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/27714/images-w150.jpg?152388..., https://assets.mubicdn.net/images/avatars/1808/images-w150.jpg?1523883..., //mubi.com/assets/placeholders/avatar-c68833eec06a12b110c74dd2fa1709ae..., https://assets.mubicdn.net/images/avatars/12246/images-w150.jpg?152388... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [1, 1, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 0, 0, 0] - Table: lists_users - Column: user_id - Samples: [85981819, 85981819, 85981819, 85981819, 85981819] - Column: list_id - Samples: [1969, 3946, 6683, 8865, 13796] - Column: list_update_date_utc - Samples: [2019-11-26, 2020-05-01, 2020-04-12, 2018-12-14, 2019-11-26] - Column: list_creation_date_utc - Samples: [2009-12-18, 2010-01-30, 2010-03-31, 2010-05-10, 2010-08-25] - Column: user_trialist - Samples: [1, 1, 1, 1, 1] - Column: user_subscriber - Samples: [1, 1, 1, 1, 1] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [0, 0, 0, 0, 0] - Column: user_has_payment_method - Samples: [1, 1, 1, 1, 1] - Table: ratings - Column: movie_id - Samples: [1066, 1066, 1066, 1066, 1066] - Column: rating_id - Samples: [15610495, 10704606, 10177114, 10130280, 8357049] - Column: rating_url - Samples: [http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1561049..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1070460..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1017711..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1013028..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/8357049 (truncated)] - Column: rating_score - Samples: [3, 2, 2, 3, 4] - Column: rating_timestamp_utc - Samples: [2017-06-10 12:38:33, 2014-08-15 23:42:31, 2014-01-30 13:21:57, 2014-01-19 01:04:23, 2012-10-02 18:28:47] - Column: critic - Samples: [None, None, None, I am a bit disappointed by this documentary film I've been wanting to ..., None (truncated)] - Column: critic_likes - Samples: [0, 0, 0, 0, 0] - Column: critic_comments - Samples: [0, 0, 0, 0, 0] - Column: user_id - Samples: [41579158, 85981819, 4208563, 9820140, 68654088] - Column: user_trialist - Samples: [0, 1, 0, 0, 0] - Column: user_subscriber - Samples: [0, 1, 0, 0, 0] - Column: user_eligible_for_trial - Samples: [1, 0, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 1, 0, 1]
SELECT COUNT(*) FROM ratings WHERE movie_id = 1269 AND rating_score <= 2 AND user_eligible_for_trial = 1 AND user_has_payment_method = 1
Solve the following sql problem: What are the movie popularity of the movies released in 2021 that were directed by Steven Spielberg? List the names of the movies and their corresponding popularity. Schema: SCHEMA: - Table: lists - Column: user_id - Samples: [88260493, 45204418, 48905025, 12074910, 67171533] - Column: list_id - Samples: [1, 2, 3, 7, 8] - Column: list_title - Samples: [Films that made your kid sister cry, Headscratchers, Sexy Time Movies, This is America, Best Documentaries] - Column: list_movie_number - Samples: [5, 3, 7, 11, 41] - Column: list_update_timestamp_utc - Samples: [2019-01-24 19:16:18, 2018-12-03 15:12:20, 2019-05-30 03:00:07, 2019-01-24 19:16:18, 2020-04-25 05:55:07] - Column: list_creation_timestamp_utc - Samples: [2009-11-11 00:02:21, 2009-11-11 00:05:11, 2009-11-11 00:20:00, 2009-11-11 00:32:52, 2009-11-11 00:41:10] - Column: list_followers - Samples: [5, 1, 6, 9, 90] - Column: list_url - Samples: [http://mubi.com/lists/films-that-made-your-kid-sister-cry, http://mubi.com/lists/headscratchers, http://mubi.com/lists/sexy-time-movies, http://mubi.com/lists/this-is-america, http://mubi.com/lists/best-documentaries] - Column: list_comments - Samples: [3, 2, 5, 3, 4] - Column: list_description - Samples: [<p>Don’t be such a baby!!</p> <p><strong>bold</strong></p>, <p>Films that need at least two viewings to really make sense.</p> <p>..., <p>Films that get you in the mood…for love. In development.</p> <p>Rem..., <p>Stories of the people, place and things.</p>, <p>See also: <a href="http://www.theauteurs.com/lists/31" rel="nofollo... (truncated)] - Column: list_cover_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w1280.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w1280.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w1280.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w1280.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w1280.jpg?1546480829] - Column: list_first_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w320.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w320.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w320.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w320.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w320.jpg?1546480829] - Column: list_second_image_url - Samples: [https://assets.mubicdn.net/images/film/506/image-w320.jpg?1543838422, https://assets.mubicdn.net/images/film/159/image-w320.jpg?1548864573, https://assets.mubicdn.net/images/film/2377/image-w320.jpg?1564675204, https://assets.mubicdn.net/images/film/1033/image-w320.jpg?1553538051, https://assets.mubicdn.net/images/film/2115/image-w320.jpg?1563782406] - Column: list_third_image_url - Samples: [https://assets.mubicdn.net/images/film/485/image-w320.jpg?1575331204, https://assets.mubicdn.net/images/film/142/image-w320.jpg?1544094102, https://assets.mubicdn.net/images/film/2874/image-w320.jpg?1546574412, https://assets.mubicdn.net/images/film/407/image-w320.jpg?1490057681, https://assets.mubicdn.net/images/film/1688/image-w320.jpg?1575033549] - Table: movies - Column: movie_id - Samples: [1, 2, 3, 4, 5] - Column: movie_title - Samples: [La Antena, Elementary Particles, It's Winter, Kirikou and the Wild Beasts, Padre Nuestro] - Column: movie_release_year - Samples: [2007, 2006, 2006, 2005, 2007] - Column: movie_url - Samples: [http://mubi.com/films/la-antena, http://mubi.com/films/elementary-particles, http://mubi.com/films/its-winter, http://mubi.com/films/kirikou-and-the-wild-beasts, http://mubi.com/films/padre-nuestro] - Column: movie_title_language - Samples: [en, en, en, en, en] - Column: movie_popularity - Samples: [105, 23, 21, 46, 7] - Column: movie_image_url - Samples: [https://images.mubicdn.net/images/film/1/cache-7927-1581389497/image-w..., https://images.mubicdn.net/images/film/2/cache-512179-1581389841/image..., https://images.mubicdn.net/images/film/3/cache-7929-1481539519/image-w..., https://images.mubicdn.net/images/film/4/cache-7930-1568880017/image-w..., https://images.mubicdn.net/images/film/5/cache-7931-1581390636/image-w... (truncated)] - Column: director_id - Samples: [131, 73, 82, 89, 90, 92] - Column: director_name - Samples: [Esteban Sapir, Oskar Roehler, Rafi Pitts, Michel Ocelot, Bénédicte Galup, Christopher Zalla] - Column: director_url - Samples: [http://mubi.com/cast/esteban-sapir, http://mubi.com/cast/oskar-roehler, http://mubi.com/cast/rafi-pitts, http://mubi.com/cast/michel-ocelot, http://mubi.com/cast/benedicte-gal..., http://mubi.com/cast/christopher-zalla (truncated)] - Table: ratings_users - Column: user_id - Samples: [41579158, 68654088, 84114365, 29755671, 93302487] - Column: rating_date_utc - Samples: [2017-06-10, 2012-10-02, 2010-12-25, 2010-11-15, 2010-01-05] - Column: user_trialist - Samples: [0, 0, 0, 0, 0] - Column: user_subscriber - Samples: [0, 0, 0, 0, 0] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74283/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/27714/images-w150.jpg?152388..., https://assets.mubicdn.net/images/avatars/1808/images-w150.jpg?1523883..., //mubi.com/assets/placeholders/avatar-c68833eec06a12b110c74dd2fa1709ae..., https://assets.mubicdn.net/images/avatars/12246/images-w150.jpg?152388... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [1, 1, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 0, 0, 0] - Table: lists_users - Column: user_id - Samples: [85981819, 85981819, 85981819, 85981819, 85981819] - Column: list_id - Samples: [1969, 3946, 6683, 8865, 13796] - Column: list_update_date_utc - Samples: [2019-11-26, 2020-05-01, 2020-04-12, 2018-12-14, 2019-11-26] - Column: list_creation_date_utc - Samples: [2009-12-18, 2010-01-30, 2010-03-31, 2010-05-10, 2010-08-25] - Column: user_trialist - Samples: [1, 1, 1, 1, 1] - Column: user_subscriber - Samples: [1, 1, 1, 1, 1] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [0, 0, 0, 0, 0] - Column: user_has_payment_method - Samples: [1, 1, 1, 1, 1] - Table: ratings - Column: movie_id - Samples: [1066, 1066, 1066, 1066, 1066] - Column: rating_id - Samples: [15610495, 10704606, 10177114, 10130280, 8357049] - Column: rating_url - Samples: [http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1561049..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1070460..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1017711..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1013028..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/8357049 (truncated)] - Column: rating_score - Samples: [3, 2, 2, 3, 4] - Column: rating_timestamp_utc - Samples: [2017-06-10 12:38:33, 2014-08-15 23:42:31, 2014-01-30 13:21:57, 2014-01-19 01:04:23, 2012-10-02 18:28:47] - Column: critic - Samples: [None, None, None, I am a bit disappointed by this documentary film I've been wanting to ..., None (truncated)] - Column: critic_likes - Samples: [0, 0, 0, 0, 0] - Column: critic_comments - Samples: [0, 0, 0, 0, 0] - Column: user_id - Samples: [41579158, 85981819, 4208563, 9820140, 68654088] - Column: user_trialist - Samples: [0, 1, 0, 0, 0] - Column: user_subscriber - Samples: [0, 1, 0, 0, 0] - Column: user_eligible_for_trial - Samples: [1, 0, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 1, 0, 1]
SELECT movie_title, movie_popularity FROM movies WHERE movie_release_year = 2021 AND director_name = 'Steven Spielberg'
Solve the following sql problem: When was the first movie released and who directed it? Schema: SCHEMA: - Table: lists - Column: user_id - Samples: [88260493, 45204418, 48905025, 12074910, 67171533] - Column: list_id - Samples: [1, 2, 3, 7, 8] - Column: list_title - Samples: [Films that made your kid sister cry, Headscratchers, Sexy Time Movies, This is America, Best Documentaries] - Column: list_movie_number - Samples: [5, 3, 7, 11, 41] - Column: list_update_timestamp_utc - Samples: [2019-01-24 19:16:18, 2018-12-03 15:12:20, 2019-05-30 03:00:07, 2019-01-24 19:16:18, 2020-04-25 05:55:07] - Column: list_creation_timestamp_utc - Samples: [2009-11-11 00:02:21, 2009-11-11 00:05:11, 2009-11-11 00:20:00, 2009-11-11 00:32:52, 2009-11-11 00:41:10] - Column: list_followers - Samples: [5, 1, 6, 9, 90] - Column: list_url - Samples: [http://mubi.com/lists/films-that-made-your-kid-sister-cry, http://mubi.com/lists/headscratchers, http://mubi.com/lists/sexy-time-movies, http://mubi.com/lists/this-is-america, http://mubi.com/lists/best-documentaries] - Column: list_comments - Samples: [3, 2, 5, 3, 4] - Column: list_description - Samples: [<p>Don’t be such a baby!!</p> <p><strong>bold</strong></p>, <p>Films that need at least two viewings to really make sense.</p> <p>..., <p>Films that get you in the mood…for love. In development.</p> <p>Rem..., <p>Stories of the people, place and things.</p>, <p>See also: <a href="http://www.theauteurs.com/lists/31" rel="nofollo... (truncated)] - Column: list_cover_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w1280.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w1280.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w1280.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w1280.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w1280.jpg?1546480829] - Column: list_first_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w320.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w320.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w320.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w320.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w320.jpg?1546480829] - Column: list_second_image_url - Samples: [https://assets.mubicdn.net/images/film/506/image-w320.jpg?1543838422, https://assets.mubicdn.net/images/film/159/image-w320.jpg?1548864573, https://assets.mubicdn.net/images/film/2377/image-w320.jpg?1564675204, https://assets.mubicdn.net/images/film/1033/image-w320.jpg?1553538051, https://assets.mubicdn.net/images/film/2115/image-w320.jpg?1563782406] - Column: list_third_image_url - Samples: [https://assets.mubicdn.net/images/film/485/image-w320.jpg?1575331204, https://assets.mubicdn.net/images/film/142/image-w320.jpg?1544094102, https://assets.mubicdn.net/images/film/2874/image-w320.jpg?1546574412, https://assets.mubicdn.net/images/film/407/image-w320.jpg?1490057681, https://assets.mubicdn.net/images/film/1688/image-w320.jpg?1575033549] - Table: movies - Column: movie_id - Samples: [1, 2, 3, 4, 5] - Column: movie_title - Samples: [La Antena, Elementary Particles, It's Winter, Kirikou and the Wild Beasts, Padre Nuestro] - Column: movie_release_year - Samples: [2007, 2006, 2006, 2005, 2007] - Column: movie_url - Samples: [http://mubi.com/films/la-antena, http://mubi.com/films/elementary-particles, http://mubi.com/films/its-winter, http://mubi.com/films/kirikou-and-the-wild-beasts, http://mubi.com/films/padre-nuestro] - Column: movie_title_language - Samples: [en, en, en, en, en] - Column: movie_popularity - Samples: [105, 23, 21, 46, 7] - Column: movie_image_url - Samples: [https://images.mubicdn.net/images/film/1/cache-7927-1581389497/image-w..., https://images.mubicdn.net/images/film/2/cache-512179-1581389841/image..., https://images.mubicdn.net/images/film/3/cache-7929-1481539519/image-w..., https://images.mubicdn.net/images/film/4/cache-7930-1568880017/image-w..., https://images.mubicdn.net/images/film/5/cache-7931-1581390636/image-w... (truncated)] - Column: director_id - Samples: [131, 73, 82, 89, 90, 92] - Column: director_name - Samples: [Esteban Sapir, Oskar Roehler, Rafi Pitts, Michel Ocelot, Bénédicte Galup, Christopher Zalla] - Column: director_url - Samples: [http://mubi.com/cast/esteban-sapir, http://mubi.com/cast/oskar-roehler, http://mubi.com/cast/rafi-pitts, http://mubi.com/cast/michel-ocelot, http://mubi.com/cast/benedicte-gal..., http://mubi.com/cast/christopher-zalla (truncated)] - Table: ratings_users - Column: user_id - Samples: [41579158, 68654088, 84114365, 29755671, 93302487] - Column: rating_date_utc - Samples: [2017-06-10, 2012-10-02, 2010-12-25, 2010-11-15, 2010-01-05] - Column: user_trialist - Samples: [0, 0, 0, 0, 0] - Column: user_subscriber - Samples: [0, 0, 0, 0, 0] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74283/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/27714/images-w150.jpg?152388..., https://assets.mubicdn.net/images/avatars/1808/images-w150.jpg?1523883..., //mubi.com/assets/placeholders/avatar-c68833eec06a12b110c74dd2fa1709ae..., https://assets.mubicdn.net/images/avatars/12246/images-w150.jpg?152388... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [1, 1, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 0, 0, 0] - Table: lists_users - Column: user_id - Samples: [85981819, 85981819, 85981819, 85981819, 85981819] - Column: list_id - Samples: [1969, 3946, 6683, 8865, 13796] - Column: list_update_date_utc - Samples: [2019-11-26, 2020-05-01, 2020-04-12, 2018-12-14, 2019-11-26] - Column: list_creation_date_utc - Samples: [2009-12-18, 2010-01-30, 2010-03-31, 2010-05-10, 2010-08-25] - Column: user_trialist - Samples: [1, 1, 1, 1, 1] - Column: user_subscriber - Samples: [1, 1, 1, 1, 1] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [0, 0, 0, 0, 0] - Column: user_has_payment_method - Samples: [1, 1, 1, 1, 1] - Table: ratings - Column: movie_id - Samples: [1066, 1066, 1066, 1066, 1066] - Column: rating_id - Samples: [15610495, 10704606, 10177114, 10130280, 8357049] - Column: rating_url - Samples: [http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1561049..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1070460..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1017711..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1013028..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/8357049 (truncated)] - Column: rating_score - Samples: [3, 2, 2, 3, 4] - Column: rating_timestamp_utc - Samples: [2017-06-10 12:38:33, 2014-08-15 23:42:31, 2014-01-30 13:21:57, 2014-01-19 01:04:23, 2012-10-02 18:28:47] - Column: critic - Samples: [None, None, None, I am a bit disappointed by this documentary film I've been wanting to ..., None (truncated)] - Column: critic_likes - Samples: [0, 0, 0, 0, 0] - Column: critic_comments - Samples: [0, 0, 0, 0, 0] - Column: user_id - Samples: [41579158, 85981819, 4208563, 9820140, 68654088] - Column: user_trialist - Samples: [0, 1, 0, 0, 0] - Column: user_subscriber - Samples: [0, 1, 0, 0, 0] - Column: user_eligible_for_trial - Samples: [1, 0, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 1, 0, 1]
SELECT movie_release_year, director_name FROM movies WHERE movie_release_year IS NOT NULL ORDER BY movie_release_year ASC LIMIT 1
Solve the following sql problem: What is the user ID of the user, who was a subscriber when he created the list, who created a list for 10 consecutive years? If there are multiple users, indicate each of their user IDs. Schema: SCHEMA: - Table: lists - Column: user_id - Samples: [88260493, 45204418, 48905025, 12074910, 67171533] - Column: list_id - Samples: [1, 2, 3, 7, 8] - Column: list_title - Samples: [Films that made your kid sister cry, Headscratchers, Sexy Time Movies, This is America, Best Documentaries] - Column: list_movie_number - Samples: [5, 3, 7, 11, 41] - Column: list_update_timestamp_utc - Samples: [2019-01-24 19:16:18, 2018-12-03 15:12:20, 2019-05-30 03:00:07, 2019-01-24 19:16:18, 2020-04-25 05:55:07] - Column: list_creation_timestamp_utc - Samples: [2009-11-11 00:02:21, 2009-11-11 00:05:11, 2009-11-11 00:20:00, 2009-11-11 00:32:52, 2009-11-11 00:41:10] - Column: list_followers - Samples: [5, 1, 6, 9, 90] - Column: list_url - Samples: [http://mubi.com/lists/films-that-made-your-kid-sister-cry, http://mubi.com/lists/headscratchers, http://mubi.com/lists/sexy-time-movies, http://mubi.com/lists/this-is-america, http://mubi.com/lists/best-documentaries] - Column: list_comments - Samples: [3, 2, 5, 3, 4] - Column: list_description - Samples: [<p>Don’t be such a baby!!</p> <p><strong>bold</strong></p>, <p>Films that need at least two viewings to really make sense.</p> <p>..., <p>Films that get you in the mood…for love. In development.</p> <p>Rem..., <p>Stories of the people, place and things.</p>, <p>See also: <a href="http://www.theauteurs.com/lists/31" rel="nofollo... (truncated)] - Column: list_cover_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w1280.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w1280.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w1280.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w1280.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w1280.jpg?1546480829] - Column: list_first_image_url - Samples: [https://assets.mubicdn.net/images/film/3822/image-w320.jpg?1445914994, https://assets.mubicdn.net/images/film/4343/image-w320.jpg?1583331932, https://assets.mubicdn.net/images/film/3491/image-w320.jpg?1564112978, https://assets.mubicdn.net/images/film/4058/image-w320.jpg?1546815657, https://assets.mubicdn.net/images/film/470/image-w320.jpg?1546480829] - Column: list_second_image_url - Samples: [https://assets.mubicdn.net/images/film/506/image-w320.jpg?1543838422, https://assets.mubicdn.net/images/film/159/image-w320.jpg?1548864573, https://assets.mubicdn.net/images/film/2377/image-w320.jpg?1564675204, https://assets.mubicdn.net/images/film/1033/image-w320.jpg?1553538051, https://assets.mubicdn.net/images/film/2115/image-w320.jpg?1563782406] - Column: list_third_image_url - Samples: [https://assets.mubicdn.net/images/film/485/image-w320.jpg?1575331204, https://assets.mubicdn.net/images/film/142/image-w320.jpg?1544094102, https://assets.mubicdn.net/images/film/2874/image-w320.jpg?1546574412, https://assets.mubicdn.net/images/film/407/image-w320.jpg?1490057681, https://assets.mubicdn.net/images/film/1688/image-w320.jpg?1575033549] - Table: movies - Column: movie_id - Samples: [1, 2, 3, 4, 5] - Column: movie_title - Samples: [La Antena, Elementary Particles, It's Winter, Kirikou and the Wild Beasts, Padre Nuestro] - Column: movie_release_year - Samples: [2007, 2006, 2006, 2005, 2007] - Column: movie_url - Samples: [http://mubi.com/films/la-antena, http://mubi.com/films/elementary-particles, http://mubi.com/films/its-winter, http://mubi.com/films/kirikou-and-the-wild-beasts, http://mubi.com/films/padre-nuestro] - Column: movie_title_language - Samples: [en, en, en, en, en] - Column: movie_popularity - Samples: [105, 23, 21, 46, 7] - Column: movie_image_url - Samples: [https://images.mubicdn.net/images/film/1/cache-7927-1581389497/image-w..., https://images.mubicdn.net/images/film/2/cache-512179-1581389841/image..., https://images.mubicdn.net/images/film/3/cache-7929-1481539519/image-w..., https://images.mubicdn.net/images/film/4/cache-7930-1568880017/image-w..., https://images.mubicdn.net/images/film/5/cache-7931-1581390636/image-w... (truncated)] - Column: director_id - Samples: [131, 73, 82, 89, 90, 92] - Column: director_name - Samples: [Esteban Sapir, Oskar Roehler, Rafi Pitts, Michel Ocelot, Bénédicte Galup, Christopher Zalla] - Column: director_url - Samples: [http://mubi.com/cast/esteban-sapir, http://mubi.com/cast/oskar-roehler, http://mubi.com/cast/rafi-pitts, http://mubi.com/cast/michel-ocelot, http://mubi.com/cast/benedicte-gal..., http://mubi.com/cast/christopher-zalla (truncated)] - Table: ratings_users - Column: user_id - Samples: [41579158, 68654088, 84114365, 29755671, 93302487] - Column: rating_date_utc - Samples: [2017-06-10, 2012-10-02, 2010-12-25, 2010-11-15, 2010-01-05] - Column: user_trialist - Samples: [0, 0, 0, 0, 0] - Column: user_subscriber - Samples: [0, 0, 0, 0, 0] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74283/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/27714/images-w150.jpg?152388..., https://assets.mubicdn.net/images/avatars/1808/images-w150.jpg?1523883..., //mubi.com/assets/placeholders/avatar-c68833eec06a12b110c74dd2fa1709ae..., https://assets.mubicdn.net/images/avatars/12246/images-w150.jpg?152388... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [1, 1, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 0, 0, 0] - Table: lists_users - Column: user_id - Samples: [85981819, 85981819, 85981819, 85981819, 85981819] - Column: list_id - Samples: [1969, 3946, 6683, 8865, 13796] - Column: list_update_date_utc - Samples: [2019-11-26, 2020-05-01, 2020-04-12, 2018-12-14, 2019-11-26] - Column: list_creation_date_utc - Samples: [2009-12-18, 2010-01-30, 2010-03-31, 2010-05-10, 2010-08-25] - Column: user_trialist - Samples: [1, 1, 1, 1, 1] - Column: user_subscriber - Samples: [1, 1, 1, 1, 1] - Column: user_avatar_image_url - Samples: [https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389..., https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?152389... (truncated)] - Column: user_cover_image_url - Samples: [None, None, None, None, None] - Column: user_eligible_for_trial - Samples: [0, 0, 0, 0, 0] - Column: user_has_payment_method - Samples: [1, 1, 1, 1, 1] - Table: ratings - Column: movie_id - Samples: [1066, 1066, 1066, 1066, 1066] - Column: rating_id - Samples: [15610495, 10704606, 10177114, 10130280, 8357049] - Column: rating_url - Samples: [http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1561049..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1070460..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1017711..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/1013028..., http://mubi.com/films/pavee-lackeen-the-traveller-girl/ratings/8357049 (truncated)] - Column: rating_score - Samples: [3, 2, 2, 3, 4] - Column: rating_timestamp_utc - Samples: [2017-06-10 12:38:33, 2014-08-15 23:42:31, 2014-01-30 13:21:57, 2014-01-19 01:04:23, 2012-10-02 18:28:47] - Column: critic - Samples: [None, None, None, I am a bit disappointed by this documentary film I've been wanting to ..., None (truncated)] - Column: critic_likes - Samples: [0, 0, 0, 0, 0] - Column: critic_comments - Samples: [0, 0, 0, 0, 0] - Column: user_id - Samples: [41579158, 85981819, 4208563, 9820140, 68654088] - Column: user_trialist - Samples: [0, 1, 0, 0, 0] - Column: user_subscriber - Samples: [0, 1, 0, 0, 0] - Column: user_eligible_for_trial - Samples: [1, 0, 1, 1, 1] - Column: user_has_payment_method - Samples: [0, 1, 1, 0, 1]
SELECT user_id FROM lists_users WHERE user_subscriber = 1 GROUP BY user_id HAVING MAX(SUBSTR(list_creation_date_utc, 1, 4)) - MIN(SUBSTR(list_creation_date_utc, 1, 4)) >= 10
README.md exists but content is empty.
Downloads last month
22