instruction
stringlengths 646
49.5k
| input
stringclasses 1
value | output
stringlengths 23
804
|
---|---|---|
Solve the following sql problem:
Please list the names of the films released in 2003 among the films scored by user 2941 .
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 T2.movie_release_year = 2003 AND T1.user_id = 2941 |
|
Solve the following sql problem:
How many users were not trialists when they rated the movie "Patti Smith: Dream of Life"?
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(T1.user_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'Patti Smith: Dream of Life' AND T1.user_trialist = 0 |
|
Solve the following sql problem:
Which movie has the highest average score in Mubi?
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 GROUP BY T2.movie_title ORDER BY SUM(T1.rating_score) / COUNT(T1.rating_id) DESC LIMIT 1 |
|
Solve the following sql problem:
Please list the names of the top three movies in the number comments related to the critic made by the user rating 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 T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id ORDER BY T1.critic_comments DESC LIMIT 3 |
|
Solve the following sql problem:
What was the title of the first list created by a user 85981819? And please provide the user_avatar_image_url.
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.list_title, T1.user_avatar_image_url FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T1.user_id = 85981819 ORDER BY T2.list_creation_timestamp_utc LIMIT 1 |
|
Solve the following sql problem:
Please list the names of the movies that have been rated the most times in 2020.
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 T1.rating_timestamp_utc LIKE '2020%' GROUP BY T2.movie_title ORDER BY COUNT(T2.movie_title) DESC LIMIT 1 |
|
Solve the following sql problem:
What is the average score for the movie Versailles Rive-Gauche?
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(T1.rating_score) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title LIKE 'Versailles Rive-Gauche' |
|
Solve the following sql problem:
Which film rated by user 59988436 that received 21 comments?
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 T1.user_id = 59988436 AND T1.critic_comments = 21 |
|
Solve the following sql problem:
Please list the names of the movies that received more than 20 likes?
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 T1.critic_likes > 20 |
|
Solve the following sql problem:
What is the average score of the movie "The Fall of Berlin" in 2019?
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 SUM(T1.rating_score) / COUNT(T1.rating_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.rating_timestamp_utc LIKE '2019%' AND T2.movie_title LIKE 'The Fall of Berlin' |
|
Solve the following sql problem:
What percentage of users rated the movie "Patti Smith: Dream of Life" by more than 3?
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.rating_score > 3 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.rating_score) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title LIKE 'Patti Smith: Dream of Life' |
|
Solve the following sql problem:
Which of the film directed by director Abbas Kiarostami has the highest average 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 T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.director_name = 'Abbas Kiarostami' GROUP BY T2.movie_title ORDER BY SUM(T1.rating_score) / COUNT(T1.rating_id) DESC LIMIT 1 |
|
Solve the following sql problem:
Which year had the most released films?
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 FROM movies GROUP BY movie_release_year ORDER BY COUNT(movie_id) DESC LIMIT 1 |
|
Solve the following sql problem:
Who is the director that made the most movies? Give the director's id.
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_id FROM movies GROUP BY director_id ORDER BY COUNT(movie_id) DESC LIMIT 1 |
|
Solve the following sql problem:
How many movies did the director of the highest movie popularity make?
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(movie_id) FROM movies WHERE director_id = ( SELECT director_id FROM movies ORDER BY movie_popularity DESC LIMIT 1 ) |
|
Solve the following sql problem:
What's the number of the paying subscribers when rating a movie after the year 2014?
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(user_subscriber) FROM ratings_users WHERE user_has_payment_method = 1 AND rating_date_utc > '2014%' |
|
Solve the following sql problem:
Who was the earliest user created a list but didn't get any followers? Give the user ID.
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 = 0 ORDER BY list_creation_date_utc LIMIT 1 |
|
Solve the following sql problem:
Give the number of followers for the user who posted the most lists.
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 SUM(T1.list_followers) FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id GROUP BY T1.user_id ORDER BY COUNT(T1.list_id) DESC LIMIT 1 |
|
Solve the following sql problem:
How many followers did the user who posted the list "Non-American Films about World War II" have?
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 SUM(T2.list_followers) FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_title LIKE 'Non-American Films about World War II' |
|
Solve the following sql problem:
What's the number of users gave the movie "Downfall" a rating of "4"?
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(T1.user_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'Downfall' AND T1.rating_score = 4 |
|
Solve the following sql problem:
Give the name of the movie that got the most "5" 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 T2.movie_title 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:
Which movie got the most critic comments? Give the name of 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 T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id GROUP BY T2.movie_title ORDER BY COUNT(T1.critic_comments) DESC LIMIT 1 |
|
Solve the following sql problem:
Show the avatar of the user who gave the rating at 2019/10/17 1:36:36.
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.user_avatar_image_url FROM ratings AS T1 INNER JOIN lists_users AS T2 ON T1.user_id = T2.user_id WHERE T1.rating_timestamp_utc LIKE '2019-10-17 01:36:36' |
|
Solve the following sql problem:
Show the portrait picture of the user who created the list "Vladimir Vladimirovich Nabokov".
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_avatar_image_url FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_title LIKE 'Vladimir Vladimirovich Nabokov' |
|
Solve the following sql problem:
For the user who post the list that contained the most number of the movies, is he/she a paying subscriber when creating that 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 T1.user_has_payment_method FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_movie_number = ( SELECT MAX(list_movie_number) FROM lists ) |
|
Solve the following sql problem:
Show the head portrait of the user who gave the most "5" 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 T2.user_avatar_image_url FROM ratings AS T1 INNER JOIN lists_users AS T2 ON T1.user_id = T2.user_id WHERE T1.rating_score = 5 |
|
Solve the following sql problem:
How many critics were given to the movie that got the most movie popularity number.
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(T1.critic) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_popularity = ( SELECT MAX(movie_popularity) FROM movies ) |
|
Solve the following sql problem:
Who gave a "4" rating to the movie "Freaks" at 2013/5/4 6:33:32? Give his/her user id.
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 rating_score = 4 AND rating_timestamp_utc LIKE '2013-05-04 06:33:32' AND T2.movie_title LIKE 'Freaks' |
|
Solve the following sql problem:
Give the url of movie which was rated 5 on 2013/5/3 5:11:17.
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_url FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE rating_score = 5 AND rating_timestamp_utc LIKE '2013-05-03 05:11:17' |
|
Solve the following sql problem:
For the 1998 movie which got the highest popularity, how many "4" rating did the movie get?
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(T2.movie_title) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.rating_score = 4 AND T2.movie_release_year = 1998 ORDER BY T2.movie_popularity DESC LIMIT 1 |
|
Solve the following sql problem:
From all the movies that got more than 13000 popularity number, which one had the least 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 T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_popularity > 13000 ORDER BY T1.rating_score LIMIT 1 |
|
Solve the following sql problem:
How many paying subscribers gave a rating to the movie "One Flew Over the Cuckoo's Nest"?
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(T1.user_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id INNER JOIN ratings_users AS T3 ON T1.user_id = T3.user_id WHERE T2.movie_title = 'One Flew Over the Cuckoo''s Nest' AND T3.user_has_payment_method = 1 |
|
Solve the following sql problem:
For the lists that got more than 3000 followers, how many did the users who created those lists are paying subscribers?
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(T1.user_id) FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_followers > 3000 AND T1.user_has_payment_method = 1 |
|
Solve the following sql problem:
Which 1988 movie got 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 T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_release_year = 1988 ORDER BY T1.rating_score DESC LIMIT 1 |
|
Solve the following sql problem:
For all the movies that were released in 1995, how many lower than 3 ratings did the most popularity movie had?
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(T1.rating_score) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.rating_score < 3 AND T2.movie_release_year = 1995 AND T2.movie_popularity = ( SELECT MAX(movie_popularity) FROM movies WHERE movie_release_year = 1995 ) |
|
Solve the following sql problem:
What is the percentage of users gave "5" to the movie "Go Go Tales"?
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.rating_score = 5 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.user_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'Go Go Tales' |
|
Solve the following sql problem:
Give the percentage of subscribers who rated who rated the movie "G.I. Jane".
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 T3.user_subscriber = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id INNER JOIN lists_users AS T3 ON T1.user_id = T3.user_id WHERE T2.movie_title = 'G.I. Jane' |
|
Solve the following sql problem:
For all the users who gave "A Shot in the Dark" a rating, how many percent of them is a paying subscriber?
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.user_has_payment_method = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id INNER JOIN lists_users AS T3 ON T1.user_id = T3.user_id WHERE T2.movie_title = 'A Shot in the Dark' |
|
Solve the following sql problem:
Name all the list titles created by user 4208563.
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 WHERE user_id LIKE 4208563 |
|
Solve the following sql problem:
Among the lists created in 2016, which is the list that was updated most recently.
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 WHERE strftime('%Y', list_update_timestamp_utc) = '2016' ORDER BY list_update_timestamp_utc DESC LIMIT 1 |
|
Solve the following sql problem:
What is the percentage of list created by user who was a subscriber when he created the 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 CAST(SUM(CASE WHEN user_subscriber = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(list_id) FROM lists_users |
|
Solve the following sql problem:
Name all lists created by a user who was a subcriber when created the 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 DISTINCT T2.list_id FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T1.user_subscriber = 1 |
|
Solve the following sql problem:
Provide list titles created by user who are eligible for trial when he created the 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 DISTINCT T2.list_title FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T1.user_eligible_for_trial = 1 |
|
Solve the following sql problem:
Among the lists with at least one follower, how many were created by user who was subscriber when created the 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 COUNT(T1.list_id) FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_followers >= 1 AND T1.user_subscriber = 1 |
|
Solve the following sql problem:
For all list titles with at least 200 movies in the list, what is their average number of followers?
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(list_followers) FROM lists WHERE list_movie_number > 200 |
|
Solve the following sql problem:
List all the titles created by user who was a subsriber when he created the list and have less than 50 movies in the 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 DISTINCT T2.list_title FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_movie_number < 50 AND T1.user_subscriber = 1 |
|
Solve the following sql problem:
Which title list has not been updated for the longest period of time? State how long it has not been updated?
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 , datetime(CURRENT_TIMESTAMP, 'localtime') - datetime(list_update_timestamp_utc) FROM lists ORDER BY list_update_timestamp_utc LIMIT 1 |
|
Solve the following sql problem:
Who is the user who created the list titled 'Sound and Vision'? Was he a subcriber when he created the 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 T1.user_id, T1.user_subscriber FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_title LIKE 'Sound and Vision' |
|
Solve the following sql problem:
For the list with more than 200 followers, state the title and how long the list has been created?
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 , 365 * (strftime('%Y', 'now') - strftime('%Y', list_creation_timestamp_utc)) + 30 * (strftime('%m', 'now') - strftime('%m', list_creation_timestamp_utc)) + strftime('%d', 'now') - strftime('%d', list_creation_timestamp_utc) FROM lists WHERE list_followers > 200 |
|
Solve the following sql problem:
Among all movies in the list, calculate the percentage of movies that were never been rated?
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.movie_id IS NULL THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.movie_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id |
|
Solve the following sql problem:
List all movies rated by user 39115684. State the title, rating date and rating 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 T2.movie_title, T1.rating_timestamp_utc, T1.rating_score FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.user_id = 39115684 |
|
Solve the following sql problem:
Between 1970 to 1980, how many movies with a popularity of more than 11,000 were 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 COUNT(movie_id) FROM movies WHERE movie_release_year BETWEEN '1970' AND '1980' AND movie_popularity > 11000 |
|
Solve the following sql problem:
How many movies directed by Felipe Cazals was realeased on 1976?
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(movie_id) FROM movies WHERE movie_release_year = 1976 AND director_name LIKE 'Felipe Cazals' |
|
Solve the following sql problem:
What is the URL to the movie director page on Mubi of the movie titled "Red Blooded American Girl"
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_url FROM movies WHERE movie_title LIKE 'Red Blooded American Girl' |
|
Solve the following sql problem:
What is the name of the list that was updated most recently?
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 WHERE list_update_timestamp_utc = ( SELECT list_update_timestamp_utc FROM lists ORDER BY list_update_timestamp_utc DESC LIMIT 1 ) |
|
Solve the following sql problem:
Who created the list that has 142 comments? Indicate the user id of the user, if there are multiple lists with 142 comments, list the user id of the person who created the 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 user_id FROM lists WHERE list_comments = 142 |
|
Solve the following sql problem:
What is Jeannot Szwarc's most popular movie and what is its average rating 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 T2.movie_title, AVG(T1.rating_score) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.director_name = 'Jeannot Szwarc' ORDER BY T2.movie_popularity DESC LIMIT 1 |
|
Solve the following sql problem:
Who is the director that directed the highest number of movies in the 70s? If there are multiple directors with the same amount of movies, list all of their names and indicate the highest rating score that those movies got from the users.
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.director_name, T1.rating_score FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_release_year BETWEEN 1970 AND 1979 GROUP BY T2.director_id ORDER BY COUNT(T2.movie_id) DESC LIMIT 1 |
|
Solve the following sql problem:
Between 1/1/2010 to 12/31/2020, how many users, who were a trialist when they created the list, gave the movie "The Secret Life of Words" a rating score of 3?
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(T1.user_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'The Secret Life of Words' AND T1.rating_score = 3 AND T1.user_trialist = 0 AND T1.rating_timestamp_utc BETWEEN '2010%' AND '2020%' |
|
Solve the following sql problem:
What is the name of the movie whose critic received the highest amount of likes? Indicate the URL to the rating on Mubi.
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.rating_url FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id ORDER BY T1.critic_likes DESC LIMIT 1 |
|
Solve the following sql problem:
What are the top 5 most popular movies of the 21st century? Indicate how many users gave it a rating score of 5.
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_id, SUM(T1.rating_score = 5) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id ORDER BY T2.movie_popularity DESC LIMIT 5 |
|
Solve the following sql problem:
What is the average number of followers of the lists created by the user who rated the movie "Pavee Lackeen: The Traveller Girl" on 3/27/2011 at 2:06:34 AM?
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(T4.list_followers) AS REAL) / COUNT(T2.list_id) FROM ratings AS T1 INNER JOIN lists_users AS T2 ON T1.user_id = T2.user_id INNER JOIN movies AS T3 ON T1.movie_id = T3.movie_id INNER JOIN lists AS T4 ON T2.list_id = T4.list_id WHERE T3.movie_title LIKE 'Pavee Lackeen: The Traveller Girl' AND T1.rating_timestamp_utc LIKE '2011-03-27 02:06:34' |
|
Solve the following sql problem:
Between 1/1/2017 to 12/31/2017, how many users who were eligible for trial when they rated the movie "Patti Smith: Dream of Life"and what is the image URL to the movie on Mubi?
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(T1.user_id), T2.movie_image_url FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE datetime(T1.rating_timestamp_utc) BETWEEN '2017-01-01 00:00:00' AND '2017-12-31 00:00:00' |
|
Solve the following sql problem:
What is the average number of number of movies added to the lists of user 8516503? Indicate how many movies did he/she give a rating score of 5.
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(T3.list_movie_number) , SUM(CASE WHEN T1.rating_score = 5 THEN 1 ELSE 0 END) FROM ratings AS T1 INNER JOIN lists_users AS T2 ON T1.user_id = T2.user_id INNER JOIN lists AS T3 ON T2.user_id = T3.user_id WHERE T1.user_id = 8516503 |
|
Solve the following sql problem:
Who is the director of the most popular movie of all time and when was it released? Indicate the average rating score of the users who were on a trialist when they rated 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 T1.director_name, T1.movie_release_year , SUM(T2.rating_score) / COUNT(T2.user_id) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T2.user_trialist = 1 ORDER BY T1.movie_popularity DESC LIMIT 1 |
|
Solve the following sql problem:
What is the name of the movie that was rated recently by user 57756708?
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 T1.user_id = 57756708 ORDER BY T1.rating_timestamp_utc DESC LIMIT 1 |
|
Solve the following sql problem:
What are the top 10 oldest movies and what are the average rating score for each movie? Indicate the name of the director and when the movies were 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 T2.movie_id, AVG(T1.rating_score), T2.director_name, T2.movie_release_year FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id ORDER BY T1.rating_timestamp_utc ASC LIMIT 10 |
|
Solve the following sql problem:
Which date has the most ordered quantity? What is the total order quantity on that day?
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT ord_date, SUM(qty) FROM sales GROUP BY ord_date ORDER BY SUM(qty) DESC LIMIT 1 |
|
Solve the following sql problem:
What is the title with the most ordered quantity in year 1992?
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT T2.title FROM sales AS T1 INNER JOIN titles AS T2 ON T1.title_id = T2.title_id WHERE STRFTIME('%Y', T1.ord_date) = '1992' ORDER BY T1.qty DESC LIMIT 1 |
|
Solve the following sql problem:
List the title, price and publication date for all sales with 'ON invoice' payment terms.
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT T2.title, T2.price, T2.pubdate FROM sales AS T1 INNER JOIN titles AS T2 ON T1.title_id = T2.title_id WHERE T1.payterms = 'ON invoice' |
|
Solve the following sql problem:
What is the title that have at least 10% royalty without minimum range amount.
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT T1.title FROM titles AS T1 INNER JOIN roysched AS T2 ON T1.title_id = T2.title_id WHERE T2.lorange = 0 AND T2.royalty >= 10 |
|
Solve the following sql problem:
State the title and royalty percentage for title ID BU2075 between 10000 to 50000 range.
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT T1.title, T2.royalty FROM titles AS T1 INNER JOIN roysched AS T2 ON T1.title_id = T2.title_id WHERE T2.lorange > 10000 AND T2.hirange < 50000 AND T1.title_ID = 'BU2075' |
|
Solve the following sql problem:
Among the titles with royalty percentage, which title has the greatest royalty percentage. State it's minimum range to enjoy this royalty percentage.
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT T1.title, T2.lorange FROM titles AS T1 INNER JOIN roysched AS T2 ON T1.title_id = T2.title_id ORDER BY T2.royalty DESC LIMIT 1 |
|
Solve the following sql problem:
Provide a list of titles together with its publisher name for all publishers located in the USA.
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT T1.title, T2.pub_name FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T2.country = 'USA' |
|
Solve the following sql problem:
State the royalty percentage for the most year to date sale title within the 20000 range.
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT MAX(T1.ytd_sales) FROM titles AS T1 INNER JOIN roysched AS T2 ON T1.title_id = T2.title_id WHERE T2.lorange > 20000 AND T2.hirange < 20000 |
|
Solve the following sql problem:
List all titles published in year 1991. Also provide notes details of the title and the publisher's name.
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT T1.title, T1.notes, T2.pub_name FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE STRFTIME('%Y', T1.pubdate) = '1991' |
|
Solve the following sql problem:
List all titles with sales of quantity more than 20 and store located in the CA state.
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT T1.title, T2.qty FROM titles AS T1 INNER JOIN sales AS T2 ON T1.title_id = T2.title_id INNER JOIN stores AS T3 ON T2.stor_id = T3.stor_id WHERE T2.qty > 20 AND T3.state = 'CA' |
|
Solve the following sql problem:
Name the store with the highest quantity in sales? What is the least quantity title from the store's sale?
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT T3.stor_id, T2.title FROM sales AS T1 INNER JOIN titles AS T2 ON T1.title_id = T2.title_id INNER JOIN stores AS T3 ON T3.stor_id = T1.stor_id WHERE T3.stor_id = ( SELECT stor_id FROM sales GROUP BY stor_id ORDER BY SUM(qty) DESC LIMIT 1 ) GROUP BY T3.stor_id, T2.title ORDER BY SUM(T1.qty) ASC LIMIT 1 |
|
Solve the following sql problem:
Name the title and publisher for title ID BU 2075. Provide all the royalty percentage for all ranges.
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT T1.title, T3.pub_name, T2.lorange, T2.hirange, T2.royalty FROM titles AS T1 INNER JOIN roysched AS T2 ON T1.title_id = T2.title_id INNER JOIN publishers AS T3 ON T1.pub_id = T3.pub_id WHERE T1.title_id = 'BU2075' |
|
Solve the following sql problem:
Name the store with ID 7066 and calculate the percentage of the the quantity ordered that were on 'Net 30' payment terms.
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT T2.stor_name , CAST(SUM(CASE WHEN payterms = 'Net 30' THEN qty ELSE 0 END) AS REAL) * 100 / SUM(qty) FROM sales AS T1 INNER JOIN stores AS T2 ON T1.stor_id = T2.stor_id WHERE T1.stor_id = '7066' GROUP BY T2.stor_name |
|
Solve the following sql problem:
State the publisher name for publisher ID 877? Calculate its average year to date sales.
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT T2.pub_name, AVG(T1.ytd_sales) FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T1.pub_id = '0877' GROUP BY T2.pub_name |
|
Solve the following sql problem:
Name all employees who were hired before year 1990.
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT fname, lname FROM employee WHERE STRFTIME('%Y', hire_date) < '1990' |
|
Solve the following sql problem:
Which employee has the lowest job level. State the first name, last name and when he /she was hired.
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT fname, lname, hire_date FROM employee ORDER BY job_lvl LIMIT 1 |
|
Solve the following sql problem:
In which year has the most hired employees?
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT STRFTIME('%Y', hire_date) FROM employee GROUP BY STRFTIME('%Y', hire_date) ORDER BY COUNT(emp_id) DESC LIMIT 1 |
|
Solve the following sql problem:
List all employees who are at the maximum level in their job designation.
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT T1.fname, T1.lname FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T1.job_lvl = T2.max_lvl |
|
Solve the following sql problem:
Name the Chief Executive Officer and when he/she was hired.
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT T1.fname, T1.lname, T1.hire_date FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T2.job_desc = 'Chief Financial Officier' |
|
Solve the following sql problem:
Who are the employees working for publisher not located in USA? State the employee's name and publisher name.
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT T1.fname, T1.lname, T2.pub_name FROM employee AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T2.country != 'USA' |
|
Solve the following sql problem:
List all employees working for publisher 'GGG&G'. State their name and job description.
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT T1.fname, T1.lname, T3.job_desc FROM employee AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id INNER JOIN jobs AS T3 ON T1.job_id = T3.job_id WHERE T2.pub_name = 'GGG&G' |
|
Solve the following sql problem:
For each publisher, state the type of titles they published order by the publisher name.
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT DISTINCT T2.pub_name, T1.type FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id ORDER BY T2.pub_name |
|
Solve the following sql problem:
Name the publisher which has the most titles published in 1991.
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT T2.pub_name FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE STRFTIME('%Y', T1.pubdate) = '1991' GROUP BY T1.pub_id, T2.pub_name ORDER BY COUNT(T1.title_id) DESC LIMIT 1 |
|
Solve the following sql problem:
Name the title with the highest price published by 'Binnet & Hardley'.
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT T1.title FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T2.pub_name = 'Binnet & Hardley' ORDER BY T1.price DESC LIMIT 1 |
|
Solve the following sql problem:
Among all employees, who have job level greater than 200. State the employee name and job description.
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT T1.fname, T1.lname, T2.job_desc FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T1.job_lvl > 200 |
|
Solve the following sql problem:
Name all the authors for all business titles.
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT T3.au_fname, T3.au_lname FROM titles AS T1 INNER JOIN titleauthor AS T2 ON T1.title_id = T2.title_id INNER JOIN authors AS T3 ON T2.au_id = T3.au_id WHERE T1.type = 'business' |
|
Solve the following sql problem:
List all the titles and year to date sales by author who are not on contract.
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT T1.title_id, T1.ytd_sales FROM titles AS T1 INNER JOIN titleauthor AS T2 ON T1.title_id = T2.title_id INNER JOIN authors AS T3 ON T2.au_id = T3.au_id WHERE T3.contract = 0 |
|
Solve the following sql problem:
For all authors from CA who are not on contract, which title of his/hers has the most year to date sales.
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT T1.title FROM titles AS T1 INNER JOIN titleauthor AS T2 ON T1.title_id = T2.title_id INNER JOIN authors AS T3 ON T2.au_id = T3.au_id WHERE T3.contract = 0 AND T3.state = 'CA' ORDER BY T1.ytd_sales DESC LIMIT 1 |
|
Solve the following sql problem:
Name all the authors for 'Sushi, Anyone?'.
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT T3.au_fname, T3.au_lname FROM titles AS T1 INNER JOIN titleauthor AS T2 ON T1.title_id = T2.title_id INNER JOIN authors AS T3 ON T2.au_id = T3.au_id WHERE T1.title = 'Sushi, Anyone?' |
|
Solve the following sql problem:
Calculate the percentage of the employees who are Editor or Designer?
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT CAST(SUM(CASE WHEN T2.job_desc IN ('Editor', 'Designer') THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.job_id) FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id |
|
Solve the following sql problem:
List all titles which have year to date sales higher than the average order by pubisher name.
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT T1.title FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T1.ytd_sales > ( SELECT AVG(ytd_sales) FROM titles ) |
|
Solve the following sql problem:
How many publishers are in the USA?
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT COUNT(pub_id) FROM publishers WHERE country = 'USA' |
|
Solve the following sql problem:
What is the publisher's information of New Moon Books?
Schema:
SCHEMA:
- Table: authors
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 238-95-7766, 267-41-2394, 274-80-9391]
- Column: au_lname
- Samples: [White, Green, Carson, O'Leary, Straight]
- Column: au_fname
- Samples: [Johnson, Marjorie, Cheryl, Michael, Dean]
- Column: phone
- Samples: [408 496-7223, 415 986-7020, 415 548-7723, 408 286-2428, 415 834-2919]
- Column: address
- Samples: [10932 Bigge Rd., 309 63rd St. #411, 589 Darwin Ln., 22 Cleveland Av. #14, 5420 College Av.]
- Column: city
- Samples: [Menlo Park, Oakland, Berkeley, San Jose, Oakland]
- Column: state
- Samples: [CA, CA, CA, CA, CA]
- Column: zip
- Samples: [94025, 94618, 94705, 95128, 94609]
- Column: contract
- Samples: [0, 0, 0, 0, 0]
- Table: jobs
- Column: job_id
- Samples: [1, 2, 3, 4, 5]
- Column: job_desc
- Samples: [New Hire - Job not specified, Chief Executive Officer, Business Operations Manager, Chief Financial Officier, Publisher]
- Column: min_lvl
- Samples: [10, 200, 175, 175, 150]
- Column: max_lvl
- Samples: [10, 250, 225, 250, 250]
- Table: publishers
- Column: pub_id
- Samples: [0736, 0877, 1389, 1622, 1756]
- Column: pub_name
- Samples: [New Moon Books, Binnet & Hardley, Algodata Infosystems, Five Lakes Publishing, Ramona Publishers]
- Column: city
- Samples: [Boston, Washington, Berkeley, Chicago, Dallas]
- Column: state
- Samples: [MA, DC, CA, IL, TX]
- Column: country
- Samples: [USA, USA, USA, USA, USA]
- Table: employee
- Column: emp_id
- Samples: [A-C71970F, A-R89858F, AMD15433F, ARD36773F, CFH28514M]
- Column: fname
- Samples: [Aria, Annette, Ann, Anabela, Carlos]
- Column: minit
- Samples: [, , M, R, F]
- Column: lname
- Samples: [Cruz, Roulet, Devon, Domingues, Hernadez]
- Column: job_id
- Samples: [10, 6, 3, 8, 5]
- Column: job_lvl
- Samples: [87, 152, 200, 100, 211]
- Column: pub_id
- Samples: [1389, 9999, 9952, 0877, 9999]
- Column: hire_date
- Samples: [1991-10-26 00:00:00.0, 1990-02-21 00:00:00.0, 1991-07-16 00:00:00.0, 1993-01-27 00:00:00.0, 1989-04-21 00:00:00.0]
- Table: pub_info
- Column: pub_id
- Samples: [0877, 1389, 1622, 1756, 9901]
- Column: logo
- Samples: [0x4749463839618B002F00B30F00000000800000008000808000000080800080008080..., 0x474946383961C2001D00B30F00000000800000008000808000000080800080008080..., 0x474946383961F5003400B30F00000000800000008000808000000080800080008080..., 0x474946383961E3002500B30F00000000800000008000808000000080800080008080..., 0x4749463839615D002200B30F00000000800000008000808000000080800080008080... (truncated)]
- Column: pr_info
- Samples: [This is sample text data for Binnet & Hardley, publisher 0877 in the p..., This is sample text data for Algodata Infosystems, publisher 1389 in t..., This is sample text data for Five Lakes Publishing, publisher 1622 in ..., This is sample text data for Ramona Publishers, publisher 1756 in the ..., This is sample text data for GGG&G, publisher 9901 in the pubs databas... (truncated)]
- Table: stores
- Column: stor_id
- Samples: [6380, 7066, 7067, 7131, 7896]
- Column: stor_name
- Samples: [Eric the Read Books, Barnum's, News & Brews, Doc-U-Mat: Quality Laundry and Books, Fricative Bookshop]
- Column: stor_address
- Samples: [788 Catamaugus Ave., 567 Pasadena Ave., 577 First St., 24-A Avogadro Way, 89 Madison St.]
- Column: city
- Samples: [Seattle, Tustin, Los Gatos, Remulade, Fremont]
- Column: state
- Samples: [WA, CA, CA, WA, CA]
- Column: zip
- Samples: [98056, 92789, 96745, 98014, 90019]
- Table: discounts
- Column: discounttype
- Samples: [Initial Customer, Volume Discount, Customer Discount]
- Column: stor_id
- Samples: [None, None, 8042]
- Column: lowqty
- Samples: [None, 100, None]
- Column: highqty
- Samples: [None, 1000, None]
- Column: discount
- Samples: [10.5, 6.7, 5.0]
- Table: titles
- Column: title_id
- Samples: [BU1032, BU1111, BU2075, BU7832, MC2222]
- Column: title
- Samples: [The Busy Executive's Database Guide, Cooking with Computers: Surreptitious Balance Sheets, You Can Combat Computer Stress!, Straight Talk About Computers, Silicon Valley Gastronomic Treats]
- Column: type
- Samples: [business, business, business, business, mod_cook]
- Column: pub_id
- Samples: [1389, 1389, 0736, 1389, 0877]
- Column: price
- Samples: [19.99, 11.95, 2.99, 19.99, 19.99]
- Column: advance
- Samples: [5000.0, 5000.0, 10125.0, 5000.0, 0.0]
- Column: royalty
- Samples: [10, 10, 24, 10, 12]
- Column: ytd_sales
- Samples: [4095, 3876, 18722, 4095, 2032]
- Column: notes
- Samples: [An overview of available database systems with emphasis on common busi..., Helpful hints on how to use your electronic resources to the best adva..., The latest medical and psychological techniques for living with the el..., Annotated analysis of what computers can do for you: a no-hype guide f..., Favorite recipes for quick, easy, and elegant meals. (truncated)]
- Column: pubdate
- Samples: [1991-06-12 00:00:00.0, 1991-06-09 00:00:00.0, 1991-06-30 00:00:00.0, 1991-06-22 00:00:00.0, 1991-06-09 00:00:00.0]
- Table: roysched
- Column: title_id
- Samples: [BU1032, BU1032, PC1035, PC1035, PC1035]
- Column: lorange
- Samples: [0, 5001, 0, 2001, 3001]
- Column: hirange
- Samples: [5000, 50000, 2000, 3000, 4000]
- Column: royalty
- Samples: [10, 12, 10, 12, 14]
- Table: sales
- Column: stor_id
- Samples: [6380, 6380, 7066, 7066, 7067]
- Column: ord_num
- Samples: [6871, 722a, A2976, QA7442.3, D4482]
- Column: ord_date
- Samples: [1994-09-14 00:00:00.0, 1994-09-13 00:00:00.0, 1993-05-24 00:00:00.0, 1994-09-13 00:00:00.0, 1994-09-14 00:00:00.0]
- Column: qty
- Samples: [5, 3, 50, 75, 10]
- Column: payterms
- Samples: [Net 60, Net 60, Net 30, ON invoice, Net 60]
- Column: title_id
- Samples: [BU1032, PS2091, PC8888, PS2091, PS2091]
- Table: titleauthor
- Column: au_id
- Samples: [172-32-1176, 213-46-8915, 213-46-8915, 238-95-7766, 267-41-2394]
- Column: title_id
- Samples: [PS3333, BU1032, BU2075, PC1035, BU1111]
- Column: au_ord
- Samples: [1, 2, 1, 1, 2]
- Column: royaltyper
- Samples: [100, 40, 100, 100, 40]
| SELECT T1.pr_info FROM pub_info AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T2.pub_name = 'New Moon Books' |