db_id stringclasses 199
values | question stringlengths 24 325 | evidence stringlengths 0 580 | SQL stringlengths 30 804 ⌀ | instance_id stringlengths 12 17 | external_knowledge null | instruction stringlengths 24 325 | dataset stringclasses 2
values | query stringlengths 25 804 | gt_schema_dict stringlengths 17 283 | gt_execute stringlengths 2 36.4M | gt_execute_time_seconds float64 0.18 99.8 |
|---|---|---|---|---|---|---|---|---|---|---|---|
movie_platform | Name movie titles released in year 1945. Sort the listing by the descending order of movie popularity. | released in the year 1945 refers to movie_release_year = 1945; | SELECT movie_title FROM movies WHERE movie_release_year = 1945 ORDER BY movie_popularity DESC LIMIT 1 | local_bird_1 | null | Name movie titles released in year 1945. Sort the listing by the descending order of movie popularity. | bird | SELECT movie_title FROM movies WHERE movie_release_year = 1945 ORDER BY movie_popularity DESC LIMIT 1 | {'movies': ['movie_popularity', 'movie_title', 'movie_release_year']} | [['Brief Encounter']] | 0.234263 |
movie_platform | What is the name of the longest movie title? When was it released? | longest movie title refers to MAX(LENGTH(movie_title)); when it was released refers to movie_release_year; | SELECT movie_title, movie_release_year FROM movies ORDER BY LENGTH(movie_popularity) DESC LIMIT 1 | local_bird_3 | null | What is the name of the longest movie title? When was it released? | bird | SELECT movie_title, movie_release_year FROM movies ORDER BY LENGTH(movie_popularity) DESC LIMIT 1 | {'movies': ['movie_popularity', 'movie_title', 'movie_release_year']} | [['A Clockwork Orange', 1971]] | 0.239204 |
movie_platform | Name the movie with the most ratings. | movie with the most rating refers to MAX(SUM(rating_score)); | SELECT movie_title FROM movies GROUP BY movie_title ORDER BY COUNT(movie_title) DESC LIMIT 1 | local_bird_4 | null | Name the movie with the most ratings. | bird | SELECT movie_title FROM movies GROUP BY movie_title ORDER BY COUNT(movie_title) DESC LIMIT 1 | {'movies': ['movie_title']} | [['Home']] | 0.384059 |
movie_platform | What is the user avatar url for user 41579158? What is the latest movie rated by him / her? | user avatar url refers to user_avatar_image_url; latest movie rated refers to latest rating_date; | SELECT T3.user_avatar_image_url, T3.rating_date_utc FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id INNER JOIN ratings_users AS T3 ON T3.user_id = T2.user_id WHERE T3.user_id = 41579158 ORDER BY T3.rating_date_utc DESC LIMIT 1 | local_bird_7 | null | What is the user avatar url for user 41579158? What is the latest movie rated by him / her? | bird | SELECT T3.user_avatar_image_url, T3.rating_date_utc FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id INNER JOIN ratings_users AS T3 ON T3.user_id = T2.user_id WHERE T3.user_id = 41579158 ORDER BY T3.rating_date_utc DESC LIMIT 1 | {'ratings_users': ['rating_date_utc', 'user_id', 'user_avatar_image_url'], 'movies': ['movie_id'], 'ratings': ['user_id', 'movie_id']} | [['https://assets.mubicdn.net/images/avatars/74283/images-w150.jpg?1523895155', '2020-04-25']] | 1.825258 |
movie_platform | List all movie title rated in April 2020 from user who was a trialist. | movie title rated in April 2020 refers to rating_timestamp_utc LIKE '%2020-04-%'; user is a trial list refers to user_trialist = 1; | SELECT T1.movie_title FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T2.user_trialist = 1 AND T2.rating_timestamp_utc LIKE '2020-04%' | local_bird_9 | null | List all movie title rated in April 2020 from user who was a trialist. | bird | SELECT T1.movie_title FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T2.user_trialist = 1 AND T2.rating_timestamp_utc LIKE '2020-04%' | {'movies': ['movie_title', 'movie_id'], 'ratings': ['rating_timestamp_utc', 'user_trialist', 'movie_id']} | [['The Great Sacrifice'], ['The Exterminating Angel'], ['The Exterminating Angel'], ['Simon of the Desert'], ['The Circle'], ['In the City of Sylvia'], ['The Last Metro'], ['The Last Metro'], ['The Last Metro'], ['The Last Metro'], ['Japanese Girls at the Harbor'], ['Mr. Thank You'], ['Close-Up'], ['Close-Up'], ['Close... | 1.455982 |
movie_platform | List ther users who gave the worst rating for movie 'Love Will Tear Us Apart'. | worst rating refers to rating_score = 1; | SELECT T1.user_id FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'Love Will Tear Us Apart' AND T1.rating_score = 1 | local_bird_10 | null | List ther users who gave the worst rating for movie 'Love Will Tear Us Apart'. | bird | SELECT T1.user_id FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'Love Will Tear Us Apart' AND T1.rating_score = 1 | {'ratings': ['user_id', 'rating_score', 'movie_id'], 'movies': ['movie_title', 'movie_id']} | [[70279036], [77143681], [6527921], [74330139], [60419489], [44712376]] | 1.30839 |
movie_platform | List all movies with the best rating score. State the movie title and number of Mubi user who loves the movie. | best rating score refers to rating_score = 5; number of Mubi user who loves the movie refers to movie_popularity; | SELECT DISTINCT T2.movie_title, T2.movie_popularity FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.rating_score = 5 | local_bird_11 | null | List all movies with the best rating score. State the movie title and number of Mubi user who loves the movie. | bird | SELECT DISTINCT T2.movie_title, T2.movie_popularity FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.rating_score = 5 | {'movies': ['movie_popularity', 'movie_title', 'movie_id'], 'ratings': ['rating_score', 'movie_id']} | [['Pavee Lackeen: The Traveller Girl', 1], ['A Way of Life', 3], ['When Will I Be Loved', 11], ['Patti Smith: Dream of Life', 77], ['Mischief Night', 3], ['The Fall of Berlin', 3], ['The Great Sacrifice', 12], ['Innocence Unprotected', 35], ['The Exterminating Angel', 1936], ['Simon of the Desert', 516], ["Hobson's Cho... | 2.727014 |
movie_platform | For all ratings which are rated in year 2020, name the movies which has the rating scored 4 and above. | ratings in year 2020 refers to rating_timestamp_utc like '%2020%'; rating_score > = 4; | SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE CAST(SUBSTR(T1.rating_timestamp_utc, 1, 4) AS INTEGER) = 2020 AND CAST(SUBSTR(T1.rating_timestamp_utc, 6, 2) AS INTEGER) > 4 | local_bird_12 | null | For all ratings which are rated in year 2020, name the movies which has the rating scored 4 and above. | bird | SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE CAST(SUBSTR(T1.rating_timestamp_utc, 1, 4) AS INTEGER) = 2020 AND CAST(SUBSTR(T1.rating_timestamp_utc, 6, 2) AS INTEGER) > 4 | {'movies': ['movie_title', 'movie_id'], 'ratings': ['rating_timestamp_utc', 'movie_id']} | [] | 2.173966 |
movie_platform | For movie titled 'Welcome to the Dollhouse', how many percentage of the ratings were rated with highest score. | rated with highest score refers to rating_score = 5; percentage = MULTIPLY(DIVIDE(SUM(rating_score = 5), COUNT(rating_score)), 100) | SELECT CAST(SUM(CASE WHEN T2.rating_score = 5 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_title = 'Welcome to the Dollhouse' | local_bird_14 | null | For movie titled 'Welcome to the Dollhouse', how many percentage of the ratings were rated with highest score. | bird | SELECT CAST(SUM(CASE WHEN T2.rating_score = 5 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_title = 'Welcome to the Dollhouse' | {'ratings': ['rating_score', 'movie_id'], 'movies': ['movie_title', 'movie_id']} | [[19.837550765385817]] | 1.781709 |
movie_platform | What are the URL to the list page on Mubi of the lists with followers between 1-2 and whose last update timestamp was on 2012? | URL to the list page on Mubi refers to list_url; list_followers = 1 OR list_followers = 2; last update timestamp was on 2012 refers to list_update_timestamp_utc BETWEEN '2012-1-1' AND '2012-12-31'; | SELECT list_url FROM lists WHERE list_update_timestamp_utc LIKE '2012%' AND list_followers BETWEEN 1 AND 2 ORDER BY list_update_timestamp_utc DESC LIMIT 1 | local_bird_18 | null | What are the URL to the list page on Mubi of the lists with followers between 1-2 and whose last update timestamp was on 2012? | bird | SELECT list_url FROM lists WHERE list_update_timestamp_utc LIKE '2012%' AND list_followers BETWEEN 1 AND 2 ORDER BY list_update_timestamp_utc DESC LIMIT 1 | {'lists': ['list_followers', 'list_update_timestamp_utc', 'list_url']} | [['http://mubi.com/lists/2012-viewing-list-ranked']] | 0.213445 |
movie_platform | When was the first movie released and who directed it? | first movie refers to oldest movie_release_year; | SELECT movie_release_year, director_name FROM movies WHERE movie_release_year IS NOT NULL ORDER BY movie_release_year ASC LIMIT 1 | local_bird_22 | null | When was the first movie released and who directed it? | bird | SELECT movie_release_year, director_name FROM movies WHERE movie_release_year IS NOT NULL ORDER BY movie_release_year ASC LIMIT 1 | {'movies': ['director_name', 'movie_release_year'], '': ['movie_release_year']} | [[1878, 'Eadweard Muybridge']] | 0.222239 |
movie_platform | What is the user ID of the user, who was a subscriber when he created the list, who created a list for 10 consecutive years? If there are multiple users, indicate each of their user IDs. | user was a subscriber when he created the list refers to user_subscriber = 1; user who created a list for 10 consecutive years refers to user_id with list_creation_date_utc for 10 succeeding years; | SELECT user_id FROM lists_users WHERE user_subscriber = 1 GROUP BY user_id HAVING MAX(SUBSTR(list_creation_date_utc, 1, 4)) - MIN(SUBSTR(list_creation_date_utc, 1, 4)) >= 10 | local_bird_23 | null | What is the user ID of the user, who was a subscriber when he created the list, who created a list for 10 consecutive years? If there are multiple users, indicate each of their user IDs. | bird | SELECT user_id FROM lists_users WHERE user_subscriber = 1 GROUP BY user_id HAVING MAX(SUBSTR(list_creation_date_utc, 1, 4)) - MIN(SUBSTR(list_creation_date_utc, 1, 4)) >= 10 | {'lists_users': ['user_id', 'list_creation_date_utc', 'user_subscriber']} | [[243873], [761725], [2780539], [3926631], [4134835], [5174995], [6104540], [7392903], [11649882], [11754234], [12084796], [12409849], [16712679], [19221797], [20972212], [21777414], [22629384], [25605230], [34343917], [37089786], [38919580], [43266750], [49133924], [50647555], [52298383], [53530409], [61484180], [6398... | 0.217278 |
movie_platform | Which year was the third movie directed by Quentin Tarantino released? Indicate the user ids of the user who gave it a rating score of 4. | third movie refers to third movie that has oldest movie_release_year; | SELECT T2.movie_release_year, T1.user_id FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_id = ( SELECT movie_id FROM movies WHERE director_name = 'Quentin Tarantino' ORDER BY movie_release_year ASC LIMIT 2, 1 ) AND T1.rating_score = 4 | local_bird_26 | null | Which year was the third movie directed by Quentin Tarantino released? Indicate the user ids of the user who gave it a rating score of 4. | bird | SELECT T2.movie_release_year, T1.user_id FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_id = ( SELECT movie_id FROM movies WHERE director_name = 'Quentin Tarantino' ORDER BY movie_release_year ASC LIMIT 2, 1 ) AND T1.rating_score = 4 | {'movies': ['director_name', 'movie_id', 'movie_release_year'], 'ratings': ['user_id', 'rating_score', 'movie_id']} | [[1994, 64647366], [1994, 60071055], [1994, 36074454], [1994, 19319507], [1994, 56872069], [1994, 95631737], [1994, 25121956], [1994, 36037481], [1994, 54384308], [1994, 7802662], [1994, 72826626], [1994, 76772787], [1994, 67497153], [1994, 6436782], [1994, 28264270], [1994, 96292431], [1994, 56207099], [1994, 69073372... | 1.347184 |
movie_platform | How many movies were added to the list with the most number of movies? Indicate whether the user was a paying subscriber or not when he created the list. | list with the most number of movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list; user_has_payment_method = 0 means the user was not a paying subscriber when he created the list; | SELECT T1.list_movie_number, T2.user_has_payment_method FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id ORDER BY T1.list_movie_number DESC LIMIT 1 | local_bird_29 | null | How many movies were added to the list with the most number of movies? Indicate whether the user was a paying subscriber or not when he created the list. | bird | SELECT T1.list_movie_number, T2.user_has_payment_method FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id ORDER BY T1.list_movie_number DESC LIMIT 1 | {'lists': ['list_movie_number', 'list_id'], 'lists_users': ['user_has_payment_method', 'list_id']} | [[10915, '0']] | 0.255991 |
movie_platform | What is the name of the movie whose critic received the highest number of likes related to the critic made by the user rating the movie? | number of likes received refers to critic likes; received the highest number of likes refers to MAX(critic_likes); | SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id ORDER BY T1.critic_likes DESC LIMIT 1 | local_bird_30 | null | What is the name of the movie whose critic received the highest number of likes related to the critic made by the user rating the movie? | bird | SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id ORDER BY T1.critic_likes DESC LIMIT 1 | {'movies': ['movie_title', 'movie_id'], 'ratings': ['critic_likes', 'movie_id']} | [['Call Me by Your Name']] | 1.871857 |
movie_platform | How much is the popularity of the movie that has the highest popularity between 1920 to 1929 and when did the movie received its first rating score of 1 from the users who were a paying subscriber when they rated the movie ? | movie with highest popularity refers to MAX(movie_popularity); movie_release_year BETWEEN 1920 AND 1929; when the movie received its first rating score of 1 refers to oldest date in rating_timestamp_utc where rating score = 1; user was a paying subscriber when they rated the movie refers to user_has_payment_method = 1; | SELECT MAX(T2.movie_popularity), MIN(T1.rating_timestamp_utc) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_release_year BETWEEN 1920 AND 1929 AND T1.rating_score = 1 AND T1.user_has_payment_method = 1 | local_bird_31 | null | How much is the popularity of the movie that has the highest popularity between 1920 to 1929 and when did the movie received its first rating score of 1 from the users who were a paying subscriber when they rated the movie ? | bird | SELECT MAX(T2.movie_popularity), MIN(T1.rating_timestamp_utc) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_release_year BETWEEN 1920 AND 1929 AND T1.rating_score = 1 AND T1.user_has_payment_method = 1 | {'movies': ['movie_popularity', 'movie_id', 'movie_release_year'], 'ratings': ['rating_timestamp_utc', 'user_has_payment_method', 'rating_score', 'movie_id']} | [[4212, '2009-07-02 17:14:33']] | 1.316049 |
movie_platform | How many movies directed by Francis Ford Coppola have a popularity of more than 1,000? Indicate what is the highest amount of likes that each critic per movie has received, if there's any. | Francis Ford Coppola refers to director_name; popularity of more than 1,000 refers to movie_popularity >1000;highest amount of likes that each critic per movie has received refers to MAX(critic_likes) | SELECT COUNT(T2.movie_title), T1.critic FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.director_name = 'Francis Ford Coppola' AND T2.movie_popularity > 1000 | local_bird_32 | null | How many movies directed by Francis Ford Coppola have a popularity of more than 1,000? Indicate what is the highest amount of likes that each critic per movie has received, if there's any. | bird | SELECT COUNT(T2.movie_title), T1.critic FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.director_name = 'Francis Ford Coppola' AND T2.movie_popularity > 1000 | {'movies': ['movie_popularity', 'director_name', 'movie_title', 'movie_id'], 'ratings': ['critic', 'movie_id']} | [[59709, None]] | 1.924003 |
movie_platform | What is the URL to the user profile image on Mubi of the user who gave the movie id of 1103 a 5 ratinng score on 4/19/2020? | URL to the user profile image on Mubi refers to user_avatar_image_url; 4/19/2020 refers to rating_date_utc | SELECT T2.user_avatar_image_url FROM ratings AS T1 INNER JOIN ratings_users AS T2 ON T1.user_id = T2.user_id WHERE T2.user_id = 1103 AND rating_score = 5 AND T2.rating_date_utc = '2020-04-19' | local_bird_33 | null | What is the URL to the user profile image on Mubi of the user who gave the movie id of 1103 a 5 ratinng score on 4/19/2020? | bird | SELECT T2.user_avatar_image_url FROM ratings AS T1 INNER JOIN ratings_users AS T2 ON T1.user_id = T2.user_id WHERE T2.user_id = 1103 AND rating_score = 5 AND T2.rating_date_utc = '2020-04-19' | {'ratings_users': ['rating_date_utc', 'user_id', 'user_avatar_image_url'], 'ratings': ['user_id'], '': ['rating_score']} | [] | 1.401456 |
movie_platform | Among the lists created by user 4208563, which one has the highest number of followers? Indicate how many followers it has and whether the user was a subscriber or not when he created the list. | User 4208563 refers to user_id;highest number of followers refers to MAX(list_followers); user_subscriber = 1 means that the user was a subscriber when he created the list; user_subscriber = 0 means the user was not a subscriber when he created the list (to replace) | SELECT T1.list_followers, T2.user_subscriber = 1 FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.user_id = T2.user_id AND T2.list_id = T2.list_id WHERE T2.user_id = 4208563 ORDER BY T1.list_followers DESC LIMIT 1 | local_bird_34 | null | Among the lists created by user 4208563, which one has the highest number of followers? Indicate how many followers it has and whether the user was a subscriber or not when he created the list. | bird | SELECT T1.list_followers, T2.user_subscriber = 1 FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.user_id = T2.user_id AND T2.list_id = T2.list_id WHERE T2.user_id = 4208563 ORDER BY T1.list_followers DESC LIMIT 1 | {'lists': ['list_followers', 'user_id'], 'lists_users': ['user_id', 'user_subscriber', 'list_id']} | [[8, 0]] | 0.206739 |
movie_platform | Which year has the least number of movies that was released and what is the title of the movie in that year that has the highest number of rating score of 1? | least number of movies refers to MIN(movie_release_year); highest rating score refers to MAX(SUM(movie_id) where rating_score = '1')
| SELECT DISTINCT T1.movie_release_year, T1.movie_title FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_release_year = ( SELECT movie_release_year FROM movies GROUP BY movie_release_year ORDER BY COUNT(movie_id) DESC LIMIT 1 ) AND T2.rating_score = 1 | local_bird_35 | null | Which year has the least number of movies that was released and what is the title of the movie in that year that has the highest number of rating score of 1? | bird | SELECT DISTINCT T1.movie_release_year, T1.movie_title FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_release_year = ( SELECT movie_release_year FROM movies GROUP BY movie_release_year ORDER BY COUNT(movie_id) DESC LIMIT 1 ) AND T2.rating_score = 1 | {'movies': ['movie_title', 'movie_id', 'movie_release_year'], 'ratings': ['rating_score', 'movie_id']} | [[2018, "Nice Girls Don't Stay for Breakfast"], [2018, 'The Other Side of the Wind'], [2018, 'The Death and Life of John F. Donovan'], [2018, "My Brother's Name is Robert and He is an Idiot"], [2018, 'London Fields'], [2018, 'Patient Zero'], [2018, 'Lords of Chaos'], [2018, 'Midnight Sun'], [2018, 'The Titan'], [2018, ... | 1.408118 |
movie_platform | How many users rated the movie "The Magnificent Ambersons" gave a rating score of no more than 2? List all the URL to the rating on Mubi. | The Magnificent Ambersons refers to movie_title; rating score of no more than 2 refers to rating_score<2; URL to rating refers to rating_url | SELECT COUNT(T2.user_id), T2.rating_url FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_title = 'The Magnificent Ambersons' AND T2.rating_score <= 2 | local_bird_38 | null | How many users rated the movie "The Magnificent Ambersons" gave a rating score of no more than 2? List all the URL to the rating on Mubi. | bird | SELECT COUNT(T2.user_id), T2.rating_url FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_title = 'The Magnificent Ambersons' AND T2.rating_score <= 2 | {'ratings': ['movie_id', 'user_id', 'rating_score', 'rating_url'], 'movies': ['movie_title', 'movie_id']} | [[71, 'http://mubi.com/films/the-magnificent-ambersons/ratings/19863904']] | 1.418674 |
movie_platform | How many users who created a list in the February of 2016 were eligible for trial when they created the list? Indicate the user id of the user who has the most number of followers in his list in February of 2016. | created a list in the February of 2016 refer to list_creation_date_utc BETWEEN 2/1/2016 and 2/29/2016; eligible for trial refers to user_eligible_for_trial = 1;
| SELECT T1.list_followers FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.user_id = T2.user_id AND T1.list_id = T2.list_id WHERE T2.list_creation_date_utc BETWEEN '2016-02-01' AND '2016-02-29' AND T2.user_eligible_for_trial = 1 | local_bird_39 | null | How many users who created a list in the February of 2016 were eligible for trial when they created the list? Indicate the user id of the user who has the most number of followers in his list in February of 2016. | bird | SELECT T1.list_followers FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.user_id = T2.user_id AND T1.list_id = T2.list_id WHERE T2.list_creation_date_utc BETWEEN '2016-02-01' AND '2016-02-29' AND T2.user_eligible_for_trial = 1 | {'lists': ['list_followers', 'user_id', 'list_id'], 'lists_users': ['user_eligible_for_trial', 'user_id', 'list_creation_date_utc', 'list_id']} | [[1], [0], [1], [0], [0], [1], [0], [70], [0], [0], [0], [0], [1], [2], [0], [0], [0], [5], [1], [0], [0], [4], [0], [2], [0], [0], [1], [0], [1], [1], [1], [0], [0], [0], [0], [3], [0], [0], [0], [0], [0], [1], [0], [1], [0], [5], [11], [1], [4], [0], [0], [0], [0], [0], [0], [1], [1], [1], [7], [15], [1], [0], [0], [... | 0.201832 |
movie_platform | How many directors have directed atleast 10 movies between 1960 to 1985? Indicate the name of the movie in those years of each director that received the highest amount of 5 rating score. | directed at least 10 movies refers to count(direct_name)>10; 1960 to 1985 refer to movie_release_year
| SELECT T2.director_name FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_release_year BETWEEN 1960 AND 1985 GROUP BY T2.director_name HAVING COUNT(T2.movie_id) > 10 | local_bird_41 | null | How many directors have directed atleast 10 movies between 1960 to 1985? Indicate the name of the movie in those years of each director that received the highest amount of 5 rating score. | bird | SELECT T2.director_name FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_release_year BETWEEN 1960 AND 1985 GROUP BY T2.director_name HAVING COUNT(T2.movie_id) > 10 | {'movies': ['director_name', 'movie_id', 'movie_release_year'], 'ratings': ['movie_id']} | [['(Unknown)'], ['Aaron Lipstadt'], ['Ababacar Samb-Makharam'], ['Abbas Kiarostami'], ['Abdollah Ghiabi'], ['Abe Levitow'], ['Abel Ferrara'], ['Abel Gance'], ['Abigail Child'], ['Abner Biberman'], ['Abraham Polonsky'], ['Abraham Zapruder'], ['Abrar Alvi'], ['Adam Beckett'], ['Adam Curtis'], ['Adam Small, Peter Stuart']... | 2.845522 |
movie_platform | When was the first movie of the director who directed the highest number of movies released and what is the user id of the user who received the highest number of comments related to the critic made by the user rating the movie? | comments refer to critic_comments | SELECT MIN(movie_release_year) FROM movies WHERE director_name = ( SELECT T2.director_name FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_release_year BETWEEN 1960 AND 1985 GROUP BY T2.director_name ORDER BY COUNT(T2.director_name) DESC LIMIT 1 ) | local_bird_45 | null | When was the first movie of the director who directed the highest number of movies released and what is the user id of the user who received the highest number of comments related to the critic made by the user rating the movie? | bird | SELECT MIN(movie_release_year) FROM movies WHERE director_name = ( SELECT T2.director_name FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_release_year BETWEEN 1960 AND 1985 GROUP BY T2.director_name ORDER BY COUNT(T2.director_name) DESC LIMIT 1 ) | {'movies': ['director_name', 'movie_id', 'movie_release_year'], 'ratings': ['movie_id']} | [[1951]] | 2.802243 |
movie_platform | How many movies have a popularity of more than 400 but less than 500? Indicate the name of the movies and the highest rating score each movie has received. | popularity of more than 400 but less than 500 refers to movie_popularity BETWEEN 400 AND 500; highest rating score refer to MAX(rating_score)
| SELECT T1.movie_title, MAX(T2.rating_score) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_popularity BETWEEN 400 AND 500 GROUP BY T1.movie_title | local_bird_46 | null | How many movies have a popularity of more than 400 but less than 500? Indicate the name of the movies and the highest rating score each movie has received. | bird | SELECT T1.movie_title, MAX(T2.rating_score) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_popularity BETWEEN 400 AND 500 GROUP BY T1.movie_title | {'movies': ['movie_popularity', 'movie_title', 'movie_id'], 'ratings': ['rating_score', 'movie_id']} | [['35 Shots of Rum', 5], ['71 Fragments of a Chronology of Chance', 5], ['A Beautiful Mind', 5], ['A Blonde in Love', 5], ['Accattone', 5], ['Aladdin', 5], ['Anchorman: The Legend of Ron Burgundy', 5], ['Aparajito', 5], ['Arizona Dream', 5], ['Ashes and Diamonds', 5], ['At Land', 5], ['Bacurau', 5], ['Band of Brothers'... | 1.870349 |
movie_platform | What is the average popularity of each movie that was directed by Christopher Nolan? Indicate which movie directed by him has received the highest number of 5 rating scores. | 5 rating scores refer to rating_score; Christopher Nolan refer to director_name; average popularity of each movie refer to AVG(movie_popularity where director_name = 'Christopher Nolan') | SELECT AVG(T2.movie_popularity) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.director_name = 'Christopher Nolan' | local_bird_48 | null | What is the average popularity of each movie that was directed by Christopher Nolan? Indicate which movie directed by him has received the highest number of 5 rating scores. | bird | SELECT AVG(T2.movie_popularity) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.director_name = 'Christopher Nolan' | {'movies': ['director_name', 'movie_popularity', 'movie_id'], 'ratings': ['movie_id']} | [[4217.36659274388]] | 1.969253 |
movie_platform | What are the names of the movie that was rated by the user between 1/1/2013 to 12/31/2013 by the user who created the list "100 Greatest Living American Filmmakers"? Calculate for the average rating score of those movies in 2013. | Between 1/1/2013 to 12/31/2013 refer to rating_timestamp_utc; 100 Greatest Living American Filmmakers refer to list_title; average rating score refer to DIVIDE( ADD(rating_score where rating_timestamp_utc = '1/1/2013-12/31/2013'), COUNT(rating_timestamp_utc = '1/1/2013-12/31/2013')) | SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id INNER JOIN lists AS T3 ON T3.user_id = T1.user_id WHERE T1.rating_timestamp_utc BETWEEN '2013-01-01' AND '2013-12-31' AND T3.list_title = '100 Greatest Living American Filmmakers' | local_bird_49 | null | What are the names of the movie that was rated by the user between 1/1/2013 to 12/31/2013 by the user who created the list "100 Greatest Living American Filmmakers"? Calculate for the average rating score of those movies in 2013. | bird | SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id INNER JOIN lists AS T3 ON T3.user_id = T1.user_id WHERE T1.rating_timestamp_utc BETWEEN '2013-01-01' AND '2013-12-31' AND T3.list_title = '100 Greatest Living American Filmmakers' | {'movies': ['movie_title', 'movie_id'], 'ratings': ['rating_timestamp_utc', 'user_id', 'movie_id'], 'lists': ['list_title', 'user_id']} | [['The Exterminating Angel'], ['Simon of the Desert'], ["Hobson's Choice"], ['The Circle'], ['Close-Up'], ['My Dinner with André'], ['The Bride Wore Black'], ['Get Carter'], ['The Trial'], ['The Gold Rush'], ['Imitation of Life'], ['The Gospel According to St. Matthew'], ['The Bad and the Beautiful'], ['Chopper'], ['La... | 1.742921 |
movie_platform | How many movie lists were still updated 10 years after it was created? | updated 10 years after it was created refers to list_update_timestamp_utc > (list_creation_timestamp_utc+10); | SELECT COUNT(*) FROM lists WHERE SUBSTR(list_update_timestamp_utc, 1, 4) - SUBSTR(list_creation_timestamp_utc, 1, 4) > 10 | local_bird_51 | null | How many movie lists were still updated 10 years after it was created? | bird | SELECT COUNT(*) FROM lists WHERE SUBSTR(list_update_timestamp_utc, 1, 4) - SUBSTR(list_creation_timestamp_utc, 1, 4) > 10 | {'lists': ['list_update_timestamp_utc', 'list_creation_timestamp_utc']} | [[312]] | 0.224627 |
movie_platform | Please list the titles of the movie lists user 32172230 created when he or she was eligible for trial. | the user was eligible for trail when he created the list refers to user_eligile_for_trail = 1; user 32172230 refers to user_id = 32172230; | SELECT T1.list_title FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id AND T1.user_id = T2.user_id WHERE T1.user_id = 32172230 AND T2.user_eligible_for_trial = 1 | local_bird_61 | null | Please list the titles of the movie lists user 32172230 created when he or she was eligible for trial. | bird | SELECT T1.list_title FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id AND T1.user_id = T2.user_id WHERE T1.user_id = 32172230 AND T2.user_eligible_for_trial = 1 | {'lists': ['list_title', 'user_id', 'list_id'], 'lists_users': ['list_id', 'user_id', 'user_eligible_for_trial']} | [['Microbudget Film School'], ['Underrated and Underseen'], ["Ladies Kickin' Ass"], ['Horror Worth A Look'], ['Top 50']] | 0.189301 |
movie_platform | When did the creator of the list "250 Favourite Films" last updated a movie list? | 250 Favourite Films refers to list_title; last update refers to list_update_date_utc; | SELECT T2.list_update_date_utc FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id AND T1.user_id = T2.user_id WHERE T1.list_title = '250 Favourite Films' ORDER BY T2.list_update_date_utc DESC LIMIT 1 | local_bird_64 | null | When did the creator of the list "250 Favourite Films" last updated a movie list? | bird | SELECT T2.list_update_date_utc FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id AND T1.user_id = T2.user_id WHERE T1.list_title = '250 Favourite Films' ORDER BY T2.list_update_date_utc DESC LIMIT 1 | {'lists_users': ['list_update_date_utc', 'user_id', 'list_id'], 'lists': ['list_title', 'list_id', 'user_id']} | [['2019-11-26']] | 0.232086 |
movie_platform | How many more movie lists were created by the user who created the movie list "250 Favourite Films"? | 250 Favourite Films refers to list_title; | SELECT COUNT(list_id) FROM lists_users WHERE user_id = ( SELECT user_id FROM lists WHERE list_title = '250 Favourite Films' ) | local_bird_66 | null | How many more movie lists were created by the user who created the movie list "250 Favourite Films"? | bird | SELECT COUNT(list_id) FROM lists_users WHERE user_id = ( SELECT user_id FROM lists WHERE list_title = '250 Favourite Films' ) | {'lists': ['list_title', 'user_id'], 'lists_users': ['list_id', 'user_id']} | [[13]] | 0.187436 |
movie_platform | Please list all the critics made by the user rating the movie "A Way of Life". | A Way of Life refers to movie_title; | SELECT T1.critic FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'A Way of Life' | local_bird_68 | null | Please list all the critics made by the user rating the movie "A Way of Life". | bird | SELECT T1.critic FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'A Way of Life' | {'ratings': ['critic', 'movie_id'], 'movies': ['movie_title', 'movie_id']} | [[None], [None], ['Splendid debut. Whatever happened to Amma Asante?'], ['One of the more harrowing viewing experiences I have been through, a touching, frightening look at poverty in South Wales. How has Amma Asante not carried on from this success? '], [None], [None], [None], [None], [None], [None], [None], [None], [... | 1.781309 |
movie_platform | Which user made a critic for the film "When Will I Be Loved" and got 2 comments for the critic? | When Will I Be Loved refers to movie_title; 2 comments for the critic refers to critic_comments = 2; | SELECT T1.user_id FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'When Will I Be Loved' AND T1.critic_comments = 2 | local_bird_70 | null | Which user made a critic for the film "When Will I Be Loved" and got 2 comments for the critic? | bird | SELECT T1.user_id FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'When Will I Be Loved' AND T1.critic_comments = 2 | {'ratings': ['critic_comments', 'user_id', 'movie_id'], 'movies': ['movie_title', 'movie_id']} | [[58149469]] | 1.289543 |
movie_platform | What's the url of user 39115684's rating on the movie 'When Will I Be Loved'? | A Way of Life refers to movie_title; user 39115684 refers to userid = 39115684; url refers to rating_url; | SELECT T1.rating_url FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'A Way of Life' AND T1.user_id = 39115684 | local_bird_72 | null | What's the url of user 39115684's rating on the movie 'When Will I Be Loved'? | bird | SELECT T1.rating_url FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'A Way of Life' AND T1.user_id = 39115684 | {'ratings': ['movie_id', 'user_id', 'rating_url'], 'movies': ['movie_title', 'movie_id']} | [['http://mubi.com/films/a-way-of-life/ratings/6233230']] | 1.327 |
movie_platform | Please list the movies rated by the user who created the movie list "250 Favourite Films". | 250 Favourite Films' is list_title; movies refers to movie_title; | SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id INNER JOIN lists AS T3 ON T3.user_id = T1.user_id WHERE T3.list_title = '250 Favourite Films' | local_bird_81 | null | Please list the movies rated by the user who created the movie list "250 Favourite Films". | bird | SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id INNER JOIN lists AS T3 ON T3.user_id = T1.user_id WHERE T3.list_title = '250 Favourite Films' | {'movies': ['movie_title', 'movie_id'], 'ratings': ['user_id', 'movie_id'], 'lists': ['list_title', 'user_id']} | [['Pavee Lackeen: The Traveller Girl'], ['Innocence Unprotected'], ['The Exterminating Angel'], ['Simon of the Desert'], ["Hobson's Choice"], ['The Circle'], ["Dodes'ka-den"], ['Japanese Girls at the Harbor'], ['Mr. Thank You'], ['The Masseurs and a Woman'], ['Ornamental Hairpin'], ['Close-Up'], ['Young Aphrodites'], [... | 2.037446 |
movie_platform | How much higher is the average rating score of the movie "Innocence Unprotected" than the movie "When Will I Be Loved"? | Innocence Unprotected' and 'When Will I Be Loved' are movie_title; Average rating score = Divide(Sum(rating_score), Count(rating_id)); | SELECT SUM(CASE WHEN T2.movie_title = 'Innocence Unprotected' THEN T1.rating_score ELSE 0 END) / SUM(CASE WHEN T2.movie_title = 'Innocence Unprotected' THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.movie_title = 'When Will I Be Loved' THEN T1.rating_score ELSE 0 END) / SUM(CASE WHEN T2.movie_title = 'When Will I Be Loved' THEN... | local_bird_84 | null | How much higher is the average rating score of the movie "Innocence Unprotected" than the movie "When Will I Be Loved"? | bird | SELECT SUM(CASE WHEN T2.movie_title = 'Innocence Unprotected' THEN T1.rating_score ELSE 0 END) / SUM(CASE WHEN T2.movie_title = 'Innocence Unprotected' THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.movie_title = 'When Will I Be Loved' THEN T1.rating_score ELSE 0 END) / SUM(CASE WHEN T2.movie_title = 'When Will I Be Loved' THEN... | {'movies': ['movie_title', 'movie_id'], 'ratings': ['rating_score', 'movie_id']} | [[1]] | 4.190181 |
movie_platform | Which of the films released in 2006 was the most popular among Mubi users? | released in 2006 refers to movie_release_year = 2006; most popular refers to Max(movie_popularity); film refers to movie; | SELECT movie_title FROM movies WHERE movie_release_year = 2006 ORDER BY movie_popularity DESC LIMIT 1 | local_bird_87 | null | Which of the films released in 2006 was the most popular among Mubi users? | bird | SELECT movie_title FROM movies WHERE movie_release_year = 2006 ORDER BY movie_popularity DESC LIMIT 1 | {'movies': ['movie_popularity', 'movie_title', 'movie_release_year']} | [["Pan's Labyrinth"]] | 0.219329 |
movie_platform | Please provide the ID of the user with the most followers on the list. | most followers refers to Max(list_followers); | SELECT user_id FROM lists ORDER BY list_followers DESC LIMIT 1 | local_bird_92 | null | Please provide the ID of the user with the most followers on the list. | bird | SELECT user_id FROM lists ORDER BY list_followers DESC LIMIT 1 | {'lists': ['list_followers', 'user_id']} | [[61596227]] | 0.205313 |
movie_platform | Which of the film released in 2008 scored the highest? | film released in 2008 refers to movie_release_year = 2008; scored the highest refers to Max(rating_score); film refers to movie; | SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_release_year = 2008 ORDER BY T1.rating_score DESC LIMIT 1 | local_bird_94 | null | Which of the film released in 2008 scored the highest? | bird | SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_release_year = 2008 ORDER BY T1.rating_score DESC LIMIT 1 | {'movies': ['movie_title', 'movie_id', 'movie_release_year'], 'ratings': ['rating_score', 'movie_id']} | [['Patti Smith: Dream of Life']] | 1.757096 |
movie_platform | How many users have more than 100 followers in the list created by users in 2009? | more than 100 followers refers to list_followers >100; list created by the user in 2009 refers to list_creation_date_utc = '2009'; | SELECT COUNT(T1.user_id) FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_followers > 100 AND T1.list_creation_date_utc LIKE '2009%' | local_bird_96 | null | How many users have more than 100 followers in the list created by users in 2009? | bird | SELECT COUNT(T1.user_id) FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_followers > 100 AND T1.list_creation_date_utc LIKE '2009%' | {'lists_users': ['user_id', 'list_creation_date_utc', 'list_id'], 'lists': ['list_followers', 'list_id']} | [[73]] | 0.202344 |
movie_platform | What's the cover image of the user who created the movie list 'Georgia related films'? | Play it cool' is list_title; cover image of user refers to user_cover_image_url; | SELECT T1.user_cover_image_url FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_title LIKE 'Georgia related films' | local_bird_98 | null | What's the cover image of the user who created the movie list 'Georgia related films'? | bird | SELECT T1.user_cover_image_url FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_title LIKE 'Georgia related films' | {'lists_users': ['list_id', 'user_cover_image_url'], 'lists': ['list_title', 'list_id']} | [['https://assets.mubicdn.net/images/cover_images/19106/images-small.jpg?1416869586']] | 0.256664 |
movie_platform | How many followers does the list created by the user whose user_avatar_image_url is https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?1523895214 have? | followers refers to list_followers; | SELECT SUM(T2.list_followers) FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T1.user_avatar_image_url = 'https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?1523895214' | local_bird_99 | null | How many followers does the list created by the user whose user_avatar_image_url is https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?1523895214 have? | bird | SELECT SUM(T2.list_followers) FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T1.user_avatar_image_url = 'https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?1523895214' | {'lists': ['list_followers', 'list_id'], 'lists_users': ['list_id', 'user_avatar_image_url']} | [[422]] | 0.1952 |
movie_platform | Please list the names of the films released in 2003 among the films scored by user 2941 . | released in 2003 refers to movie_release_year = 2003; user 2941 refers to user_id = 2941; film refers to movie; | SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_release_year = 2003 AND T1.user_id = 2941 | local_bird_101 | null | Please list the names of the films released in 2003 among the films scored by user 2941 . | bird | 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 | {'movies': ['movie_title', 'movie_id', 'movie_release_year'], 'ratings': ['user_id', 'movie_id']} | [['The Best of Youth (Part 1)'], ['Anything Else'], ['The Best of Youth (Part 2)'], ['Kill Bill: Vol. 1'], ['21 Grams'], ['Big Fish'], ['Cold Mountain'], ['Intolerable Cruelty'], ['The Lord of the Rings: The Return of the King'], ['Love Me If You Dare'], ['Mystic River'], ['Finding Nemo'], ['Fear X'], ['American Weddin... | 1.307249 |
movie_platform | Which movie has the highest average score in Mubi? | Highest average score refers to Max(Avg(rating_score)); | 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 | local_bird_103 | null | Which movie has the highest average score in Mubi? | bird | 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 | {'movies': ['movie_title', 'movie_id'], 'ratings': ['rating_id', 'rating_score', 'movie_id']} | [['“Shia LaBeouf” Live']] | 7.229511 |
movie_platform | Please list the names of the top three movies in the number comments related to the critic made by the user rating the movie. | number of comments related to the critic made by the user rating the movie refers to critic_comments; top movie refers to Max(critic_comments); | 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 | local_bird_104 | null | Please list the names of the top three movies in the number comments related to the critic made by the user rating the movie. | bird | 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 | {'movies': ['movie_title', 'movie_id'], 'ratings': ['critic_comments', 'movie_id']} | [['The Love of Zero'], ['White Wedding'], ['Velvet Goldmine']] | 1.863677 |
movie_platform | Please list the names of the movies that have been rated the most times in 2020. | in 2020 refers to rating_timestamp_utc = '2020%'; rated the most times refers to Max(Count(movie_title)); | 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 | local_bird_106 | null | Please list the names of the movies that have been rated the most times in 2020. | bird | 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 | {'movies': ['movie_title', 'movie_id'], 'ratings': ['rating_timestamp_utc', 'movie_id']} | [['Portrait of a Lady on Fire']] | 1.793427 |
movie_platform | Please list the names of the movies that received more than 20 likes? | received more than 20 likes refers to critic_likes>20; | 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 | local_bird_109 | null | Please list the names of the movies that received more than 20 likes? | bird | 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 | {'movies': ['movie_title', 'movie_id'], 'ratings': ['critic_likes', 'movie_id']} | [['In the City of Sylvia'], ['Imitation of Life'], ['Love Streams'], ['The Bridge of Arts'], ['Red Desert'], ['The Beaches of Agnès'], ['In a Year with 13 Moons'], ['The Gleaners and I'], ['The Gleaners and I'], ['Mauvais Sang'], ['Collateral'], ['Jesus Camp'], ['Black Girl'], ['Wild at Heart'], ['(500) Days of Summer'... | 1.224771 |
movie_platform | What is the average score of the movie "The Fall of Berlin" in 2019? | The Fall of Berlin' is movie_title; in 2019 refers to rating_timestamp_utc = 2019; Average score refers to Avg(rating_score); | 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' | local_bird_110 | null | What is the average score of the movie "The Fall of Berlin" in 2019? | bird | 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' | {'ratings': ['movie_id', 'rating_timestamp_utc', 'rating_score', 'rating_id'], 'movies': ['movie_title', 'movie_id']} | [[2]] | 1.685519 |
movie_platform | What percentage of users rated the movie "Patti Smith: Dream of Life" by more than 3? | Patti Smith: Dream of Life' is movie_title; more than 3 refers to rating_score >3; percentage = Divide(Count(rating_score where rating_score >3), Count(rating_score))*100 | 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' | local_bird_111 | null | What percentage of users rated the movie "Patti Smith: Dream of Life" by more than 3? | bird | 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' | {'ratings': ['rating_score', 'movie_id'], 'movies': ['movie_title', 'movie_id']} | [[65.15151515151516]] | 1.849423 |
movie_platform | Which of the film directed by director Abbas Kiarostami has the highest average score? | Abbas Kiarostami' is director_name; the highest Average score refers to Max(Avg(rating_score)); | 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 | local_bird_112 | null | Which of the film directed by director Abbas Kiarostami has the highest average score? | bird | 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 | {'movies': ['director_name', 'movie_title', 'movie_id'], 'ratings': ['rating_id', 'rating_score', 'movie_id']} | [["Where Is the Friend's Home?"]] | 1.904829 |
movie_platform | What's the number of the paying subscribers when rating a movie after the year 2014? | paying subscribers refers to user_has_payment_method = 1; rating a movie after the year 2014 refers to rating_date_utc>'2014%' | SELECT COUNT(user_subscriber) FROM ratings_users WHERE user_has_payment_method = 1 AND rating_date_utc > '2014%' | local_bird_116 | null | What's the number of the paying subscribers when rating a movie after the year 2014? | bird | SELECT COUNT(user_subscriber) FROM ratings_users WHERE user_has_payment_method = 1 AND rating_date_utc > '2014%' | {'ratings_users': ['rating_date_utc', 'user_has_payment_method', 'user_subscriber']} | [[1668581]] | 0.680878 |
movie_platform | Who was the earliest user created a list but didn't get any followers? Give the user ID. | earliest user created a list refers to MIN(list_creation_date_utc); didn't get any followers refers to user_subscriber = 0 | SELECT user_id FROM lists_users WHERE user_subscriber = 0 ORDER BY list_creation_date_utc LIMIT 1 | local_bird_117 | null | Who was the earliest user created a list but didn't get any followers? Give the user ID. | bird | SELECT user_id FROM lists_users WHERE user_subscriber = 0 ORDER BY list_creation_date_utc LIMIT 1 | {'lists_users': ['user_id', 'list_creation_date_utc', 'user_subscriber']} | [[60453090]] | 0.20781 |
movie_platform | Give the number of followers for the user who posted the most lists. | number of followers refers to user_subscriber; posted the most lists refers to MAX(COUNT(list_id)) | 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 | local_bird_118 | null | Give the number of followers for the user who posted the most lists. | bird | 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 | {'lists': ['list_followers', 'list_id', 'user_id'], 'lists_users': ['list_id']} | [[643]] | 0.271708 |
movie_platform | What's the number of users gave the movie "Downfall" a rating of "4"? | movie "Downfall" refers to movie_title = 'Downfall'; rating of "4" refers to rating_score = 4 | 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 | local_bird_120 | null | What's the number of users gave the movie "Downfall" a rating of "4"? | bird | 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 | {'ratings': ['user_id', 'rating_score', 'movie_id'], 'movies': ['movie_title', 'movie_id']} | [[1823]] | 1.572055 |
movie_platform | Which movie got the most critic comments? Give the name of the movie. | name of the movie refers to movie_title; most critic comments refers to MAX(critic_comments) | 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 | local_bird_122 | null | Which movie got the most critic comments? Give the name of the movie. | bird | 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 | {'movies': ['movie_title', 'movie_id'], 'ratings': ['critic_comments', 'movie_id']} | [['Pulp Fiction']] | 6.678376 |
movie_platform | Show the avatar of the user who gave the rating at 2019/10/17 1:36:36. | at 2019/10/17 1:36:36 refers to rating_timestamp_utc = '2019/10/17 1:36:36'; avatar of the user refers to user_avatar_image_url
| 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' | local_bird_123 | null | Show the avatar of the user who gave the rating at 2019/10/17 1:36:36. | bird | 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' | {'lists_users': ['user_id', 'user_avatar_image_url'], 'ratings': ['rating_timestamp_utc', 'user_id']} | [] | 1.573995 |
movie_platform | 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? | the list that contained the most number of the movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list ;
user_has_payment_method = 0 means the user was not a paying subscriber when he created the list
| SELECT T1.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 ) | local_bird_125 | null | 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? | bird | 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 ) | {'lists': ['list_movie_number', 'list_id'], 'lists_users': ['user_has_payment_method', 'list_id']} | [['0']] | 0.262319 |
movie_platform | How many critics were given to the movie that got the most movie popularity number. | most movie popularity number refers to MAX(movie_popularity) | 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 ) | local_bird_127 | null | How many critics were given to the movie that got the most movie popularity number. | bird | 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 ) | {'movies': ['movie_popularity', 'movie_id'], 'ratings': ['critic', 'movie_id']} | [[545]] | 1.903924 |
movie_platform | Give the url of movie which was rated 5 on 2013/5/3 5:11:17. | rated 5 refers to rating_score = 5; on 2013/5/3 5:11:17 refers to rating_timestamp_utc = '2013-05-03 05:11:17' | 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' | local_bird_129 | null | Give the url of movie which was rated 5 on 2013/5/3 5:11:17. | bird | 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' | {'movies': ['movie_url', 'movie_id'], 'ratings': ['movie_id'], '': ['rating_timestamp_utc', 'rating_score']} | [['http://mubi.com/films/freaks']] | 1.374251 |
movie_platform | For the 1998 movie which got the highest popularity, how many "4" rating did the movie get? | 1998 movie refers to movie_release_year = '1998'; the highest popularity refers to MAX(movie_popularity) ; "4" rating refers to rating_score = 4 | 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 | local_bird_130 | null | For the 1998 movie which got the highest popularity, how many "4" rating did the movie get? | bird | 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 | {'movies': ['movie_popularity', 'movie_title', 'movie_id', 'movie_release_year'], 'ratings': ['rating_score', 'movie_id']} | [[95362]] | 1.481885 |
movie_platform | How many paying subscribers gave a rating to the movie "One Flew Over the Cuckoo's Nest"? | paying subscribers refer to user_has_payment_method = 1; movie "One Flew Over the Cuckoo's Nest" refers to movie_id = 'One Flew Over the Cuckoo''s Nest' | 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 | local_bird_132 | null | How many paying subscribers gave a rating to the movie "One Flew Over the Cuckoo's Nest"? | bird | 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 | {'ratings': ['user_id', 'movie_id'], 'movies': ['movie_title', 'movie_id'], 'ratings_users': ['user_has_payment_method', 'user_id']} | [[649437]] | 8.231824 |
movie_platform | Which 1988 movie got the most ratings? | 1988 movie refers to movie_release_year = '1998'; most ratings refers to MAX(rating_score) | 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 | local_bird_134 | null | Which 1988 movie got the most ratings? | bird | 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 | {'movies': ['movie_title', 'movie_id', 'movie_release_year'], 'ratings': ['rating_score', 'movie_id']} | [["Let's Get Lost"]] | 1.694791 |
movie_platform | For all the movies that were released in 1995, how many lower than 3 ratings did the most popularity movie had? | released in 1995 refers to movie_release_year = '1995'; lower than 3 ratings refers to rating_score <3; most popularity movie refers to MAX(movie_popularity) | 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 ) | local_bird_135 | null | For all the movies that were released in 1995, how many lower than 3 ratings did the most popularity movie had? | bird | 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 ) | {'movies': ['movie_popularity', 'movie_id', 'movie_release_year'], 'ratings': ['rating_score', 'movie_id']} | [[1325]] | 1.396917 |
movie_platform | Give the percentage of subscribers who rated who rated the movie "G.I. Jane". | movie "G.I. Jane" refers to movie_title = 'G.I. Jane'; subscribers refers to user_subscriber = 1; percentage refers to DIVIDE(COUNT(user_subscriber = 1),COUNT(user_subscriber))*100 | 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' | local_bird_137 | null | Give the percentage of subscribers who rated who rated the movie "G.I. Jane". | bird | 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' | {'lists_users': ['user_id', 'user_subscriber'], 'ratings': ['user_id', 'movie_id'], 'movies': ['movie_title', 'movie_id']} | [[16.094649328501387]] | 1.784885 |
movie_platform | For all the users who gave "A Shot in the Dark" a rating, how many percent of them is a paying subscriber? | "A Shot in the Dark" refers to movie_title = 'A Shot in the Dark'; paying subscriber refers to user_has_payment_method = 1; percentage refers to DIVIDE(COUNT(user_has_payment_method = 1),COUNT(user_has_payment_method))*100 | 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' | local_bird_138 | null | For all the users who gave "A Shot in the Dark" a rating, how many percent of them is a paying subscriber? | bird | 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' | {'ratings': ['user_has_payment_method', 'user_id', 'movie_id'], 'movies': ['movie_title', 'movie_id'], 'lists_users': ['user_id']} | [[28.34685598377282]] | 1.840201 |
movie_platform | Among the lists created in 2016, which is the list that was updated most recently. | created in 2016 refers to list_creation_timestamp_utc like '2016%'; updated most recently refers to MAX(list_update_timestamp_utc) | SELECT list_title FROM lists WHERE strftime('%Y', list_update_timestamp_utc) = '2016' ORDER BY list_update_timestamp_utc DESC LIMIT 1 | local_bird_140 | null | Among the lists created in 2016, which is the list that was updated most recently. | bird | SELECT list_title FROM lists WHERE strftime('%Y', list_update_timestamp_utc) = '2016' ORDER BY list_update_timestamp_utc DESC LIMIT 1 | {'lists': ['list_update_timestamp_utc', 'list_title']} | [['las mejores peliculas que vi en el 2016']] | 0.232176 |
movie_platform | What is the percentage of list created by user who was a subscriber when he created the list? | was a subscriber refers to user_subscriber = 1; percentage refers to DIVIDE(COUNT(user_subscriber = 1),COUNT(list_id)) | SELECT CAST(SUM(CASE WHEN user_subscriber = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(list_id) FROM lists_users | local_bird_141 | null | What is the percentage of list created by user who was a subscriber when he created the list? | bird | SELECT CAST(SUM(CASE WHEN user_subscriber = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(list_id) FROM lists_users | {'lists_users': ['list_id', 'user_subscriber']} | [[27.087198515769945]] | 0.20145 |
movie_platform | Name all lists created by a user who was a subcriber when created the list. | was a subscriber refers to user_subscriber = 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 | local_bird_142 | null | Name all lists created by a user who was a subcriber when created the list. | bird | 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 | {'lists': ['list_id'], 'lists_users': ['list_id', 'user_subscriber']} | [[1969], [3946], [6683], [8865], [13796], [136620], [136622], [136628], [136630], [136631], [136632], [136633], [144197], [15486], [15963], [15964], [15965], [29724], [30598], [34307], [41522], [48538], [65244], [105272], [105683], [108069], [108115], [109814], [113441], [113857], [114167], [115841], [117632], [138701]... | 0.239081 |
movie_platform | Provide list titles created by user who are eligible for trial when he created the list. | eligible for trial refers to user_eligible_for_trial = 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 | local_bird_143 | null | Provide list titles created by user who are eligible for trial when he created the list. | bird | 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 | {'lists': ['list_title', 'list_id'], 'lists_users': ['list_id', 'user_eligible_for_trial']} | [['FiLM - D'], ['Film Collection - DVD'], ['Want to Own'], ['TV - D'], ['A - RADIO TIMES GUIDE TO FILMS 2004 EDITION - 4*& 5* RATINGS'], ['B - RADIO TIMES GUIDE TO FILMS 2004 EDITION - 4*& 5* RATINGS'], ['C - RADIO TIMES GUIDE TO FILMS 2004 EDITION - 4*& 5* RATINGS'], ['D - RADIO TIMES GUIDE TO FILMS 2004 EDITION - 4*&... | 0.308542 |
movie_platform | For all list titles with at least 200 movies in the list, what is their average number of followers? | at least 200 movies in the list refers to list_movie_number > 200; average number of followers refers to avg(list_followers) | SELECT AVG(list_followers) FROM lists WHERE list_movie_number > 200 | local_bird_145 | null | For all list titles with at least 200 movies in the list, what is their average number of followers? | bird | SELECT AVG(list_followers) FROM lists WHERE list_movie_number > 200 | {'lists': ['list_followers', 'list_movie_number']} | [[53.37967479674797]] | 0.211434 |
movie_platform | 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. | have less than 50 movies in the list refers to list_movie_number <50; was a subscriber refers to user_subscriber = 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 | local_bird_146 | null | 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. | bird | 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 | {'lists': ['list_title', 'list_movie_number', 'list_id'], 'lists_users': ['list_id', 'user_subscriber']} | [['KIM KI-DUK, ranked'], ['RAINER WERNER FASSBINDER, ranked'], ['MICHAEL POWELL, ranked'], ['AKIRA KUROSAWA, ranked'], ['2010'], ['10 80s'], ['2009'], ['2000-9'], ['2011 SFF'], ['2011 Local'], ['2011 Combined'], ['Anno Domini MMXII'], ['2012 SFF'], ['2013'], ['2014 local'], ['2014 SFF'], ['2014 PROPER'], ['Top Ten of t... | 0.241818 |
movie_platform | Which title list has not been updated for the longest period of time? State how long it has not been updated? | not been updated for the longest period of time refers to MIN(list_update_timestamp_utc); how long it has not been updated refers to SUBTRACT(CURRENT_TIMESTAMP, list_update_timestamp_utc) | SELECT list_title , datetime(CURRENT_TIMESTAMP, 'localtime') - datetime(list_update_timestamp_utc) FROM lists ORDER BY list_update_timestamp_utc LIMIT 1 | local_bird_147 | null | Which title list has not been updated for the longest period of time? State how long it has not been updated? | bird | SELECT list_title , datetime(CURRENT_TIMESTAMP, 'localtime') - datetime(list_update_timestamp_utc) FROM lists ORDER BY list_update_timestamp_utc LIMIT 1 | {'lists': ['list_update_timestamp_utc', 'list_title']} | [['Best Movies of 2008', 17]] | 0.212841 |
movie_platform | For the list with more than 200 followers, state the title and how long the list has been created? | more than 200 followers refers to list_followers >200; how long the list has been created refers to SUBTRACT(CURRENT_TIMESTAMP,list_creation_timestamp_utc) | 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 | local_bird_149 | null | For the list with more than 200 followers, state the title and how long the list has been created? | bird | 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 | {'lists': ['list_followers', 'list_title', 'list_creation_timestamp_utc']} | [['CHINESE CINEMA', 6177], ['Short Films - Courts métrages', 6177], ['ESSENTIAL DOCUMENTARIES', 6177], ['The Great British Canon', 6177], ['ESSENTIAL FRENCH FILMS', 6177], ['ESSENTIAL FILMS BY WOMEN', 6177], ['ESSENTIAL AFRICAN FILMS', 6177], ['ESSENTIAL ANIMATION', 6177], ['RECOMMENDED FILMS ABOUT CHILDREN', 6177], ['... | 0.207217 |
movie_platform | Among all movies in the list, calculate the percentage of movies that were never been rated? | percentage of movies that were never been rated refers to DIVIDE(COUNT(main_movies.movie_id ! = main_ratings.movie_id),COUNT(movie_id)) | 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 | local_bird_150 | null | Among all movies in the list, calculate the percentage of movies that were never been rated? | bird | 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 | {'movies': ['movie_id'], 'ratings': ['movie_id']} | [[0.0]] | 2.237232 |
movie_platform | What is the name of the list that was updated most recently? | updated most recently refers to MAX(list_update_date_utc) | 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 ) | local_bird_155 | null | What is the name of the list that was updated most recently? | bird | 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 ) | {'lists': ['list_update_timestamp_utc', 'list_title'], '': ['list_update_timestamp_utc']} | [['India']] | 0.222783 |
movie_platform | What is Jeannot Szwarc's most popular movie and what is its average rating score? | Jeannot Szwarc's refers to director_name = 'Jeannot Szwarc'; most popular movie refers to MAX(movie_popularity); average rating score refers to avg(rating_score) | 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 | local_bird_157 | null | What is Jeannot Szwarc's most popular movie and what is its average rating score? | bird | 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 | {'movies': ['movie_popularity', 'director_name', 'movie_title', 'movie_id'], 'ratings': ['rating_score', 'movie_id']} | [['Somewhere in Time', 2.4306784660766962]] | 1.885529 |
movie_platform | 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. | highest number of movies COUNT(T1.movie_id); in the 70s refers to movie_release_year between 1970 and 1979 | 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 | local_bird_158 | null | 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. | bird | 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 | {'movies': ['director_id', 'director_name', 'movie_id', 'movie_release_year'], 'ratings': ['rating_score', 'movie_id']} | [['Francis Ford Coppola', 5]] | 2.137358 |
movie_platform | What is the name of the movie whose critic received the highest amount of likes? Indicate the URL to the rating on Mubi. | critic received the highest amount of likes refers to MAX(critic_likes); | 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 | local_bird_160 | null | What is the name of the movie whose critic received the highest amount of likes? Indicate the URL to the rating on Mubi. | bird | 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 | {'movies': ['movie_title', 'movie_id'], 'ratings': ['movie_id', 'critic_likes', 'rating_url']} | [['Call Me by Your Name', 'http://mubi.com/films/call-me-by-your-name/ratings/16494560']] | 1.81432 |
movie_platform | What are the top 5 most popular movies of the 21st century? Indicate how many users gave it a rating score of 5. | most popular movies refers to MAX(movie_popularity); rating score of 5 refers to rating_score = 5; movies of the 21st century refers to movie_release_year> = 2000 | 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 | local_bird_161 | null | What are the top 5 most popular movies of the 21st century? Indicate how many users gave it a rating score of 5. | bird | 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 | {'movies': ['movie_popularity', 'movie_id'], 'ratings': ['rating_score', 'movie_id']} | [[1066, 3512397]] | 2.02414 |
movie_platform | 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? | Between 1/1/2017 to 12/31/2017 refers to rating_timestamp_utc between '2017-01-01 00:00:00' and '2017-12-31 00:00:00'; eligible for trial refers to user_eligible_for_trial = 1; movie "Patti Smith: Dream of Life" refers to movie_title = 'Patti Smith: Dream of Life' | 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' | local_bird_163 | null | 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? | bird | 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' | {'ratings': ['rating_timestamp_utc', 'user_id', 'movie_id'], 'movies': ['movie_id', 'movie_image_url']} | [[1045796, 'https://images.mubicdn.net/images/film/1066/cache-8564-1481540828/image-w1280.jpg']] | 3.059454 |
movie_platform | 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. | average number of number of movies refers to AVG(list_movie_number); user 8516503 refers to user_id = 8516503; rating score of 5 refers to rating_score = 5 | 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 | local_bird_164 | null | 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. | bird | 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 | {'lists': ['list_movie_number', 'user_id'], 'ratings': ['user_id', 'rating_score'], 'lists_users': ['user_id']} | [[30.6, 60300]] | 1.344294 |
movie_platform | 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. | most popular movie of all time refers to MAX(movie_popularity); a trialist refers to user_trialist = 1; average rating score = AVG(rating_score) | 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 | local_bird_165 | null | 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. | bird | 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 | {'movies': ['movie_popularity', 'director_name', 'movie_id', 'movie_release_year'], 'ratings': ['user_trialist', 'user_id', 'rating_score', 'movie_id']} | [['Perry Ogden', 2005, 3]] | 1.396536 |
movie_platform | What is the name of the movie that was rated recently by user 57756708? | user 57756708 refers to user_id = 57756708; rated recently refers to MAX(rating_timestamp_utc) | 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 | local_bird_166 | null | What is the name of the movie that was rated recently by user 57756708? | bird | 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 | {'movies': ['movie_title', 'movie_id'], 'ratings': ['rating_timestamp_utc', 'user_id', 'movie_id']} | [['Brothers']] | 1.3234 |
movie_platform | 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. | the average rating score refers to AVG(T2.rating_score); oldest movies refers to MIN(rating_timestamp_utc) | 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 | local_bird_167 | null | 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. | bird | 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 | {'movies': ['director_name', 'movie_id', 'movie_release_year'], 'ratings': ['rating_timestamp_utc', 'rating_score', 'movie_id']} | [[1066, 3.58632274524732, 'Perry Ogden', 2005]] | 1.829244 |
book_publishing_company | Which date has the most ordered quantity? What is the total order quantity on that day? | total quantity refers to qty; most ordered quantity refers to order with the highest quantity where MAX(sum(qty)) | SELECT ord_date, SUM(qty) FROM sales GROUP BY ord_date ORDER BY SUM(qty) DESC LIMIT 1 | local_bird_168 | null | Which date has the most ordered quantity? What is the total order quantity on that day? | bird | SELECT ord_date, SUM(qty) FROM sales GROUP BY ord_date ORDER BY SUM(qty) DESC LIMIT 1 | {'sales': ['ord_date', 'qty'], '': ['_col_1']} | [['1994-09-14 00:00:00.0', 85]] | 0.18546 |
book_publishing_company | State the title and royalty percentage for title ID BU2075 between 10000 to 50000 range. | lorange mean low range; hirange mean high range; range refers to between the low and high range; lorange>10000; hirange<12000 | 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' | local_bird_172 | null | State the title and royalty percentage for title ID BU2075 between 10000 to 50000 range. | bird | 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' | {'titles': ['title_id', 'title'], 'roysched': ['royalty', 'title_id', 'lorange', 'hirange']} | [['You Can Combat Computer Stress!', 20], ['You Can Combat Computer Stress!', 22]] | 0.184734 |
book_publishing_company | List all titles with sales of quantity more than 20 and store located in the CA state. | qty is abbreviation for quantity; sales of quantity more than 20 refers to qty>20; store refers to stor_name | 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' | local_bird_177 | null | List all titles with sales of quantity more than 20 and store located in the CA state. | bird | 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' | {'titles': ['title_id', 'title'], 'sales': ['title_id', 'qty', 'stor_id'], 'stores': ['state', 'stor_id']} | [['Secrets of Silicon Valley', 50], ['Is Anger the Enemy?', 75], ['Onions, Leeks, and Garlic: Cooking Secrets of the Mediterranean', 40], ['You Can Combat Computer Stress!', 35]] | 0.18566 |
book_publishing_company | Name the store with the highest quantity in sales? What is the least quantity title from the store's sale? | qty is abbreviation for quantity; highest quantity refers to MAX(qty); least quantity refers to MIN(qty) | 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 | local_bird_178 | null | Name the store with the highest quantity in sales? What is the least quantity title from the store's sale? | bird | 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 | {'sales': ['title_id', 'qty', 'stor_id'], 'stores': ['stor_id'], 'titles': ['title_id', 'title']} | [['7131', 'Prolonged Data Deprivation: Four Case Studies']] | 0.187742 |
book_publishing_company | Name all employees who were hired before year 1990. | hired before year 1990 refers to YEAR(hire_date)<1990 | SELECT fname, lname FROM employee WHERE STRFTIME('%Y', hire_date) < '1990' | local_bird_182 | null | Name all employees who were hired before year 1990. | bird | SELECT fname, lname FROM employee WHERE STRFTIME('%Y', hire_date) < '1990' | {'employee': ['fname', 'lname', 'hire_date']} | [['Carlos', 'Hernadez'], ['Gary', 'Thomas'], ['Helen', 'Bennett'], ['Howard', 'Snyder'], ['Manuel', 'Pereira'], ['Margaret', 'Smith'], ['Maria', 'Pontes'], ['Patricia', 'McKenna'], ['Philip', 'Cramer'], ['Timothy', "O'Rourke"], ['Yoshi', 'Latimer']] | 0.186219 |
book_publishing_company | List all employees who are at the maximum level in their job designation. | maximum level in their job designation refers to job_lvl = MAX(max_lvl) | 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 | local_bird_185 | null | List all employees who are at the maximum level in their job designation. | bird | 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 | {'employee': ['job_id', 'job_lvl', 'fname', 'lname'], 'jobs': ['max_lvl', 'job_id']} | [['Howard', 'Snyder'], ['Karin', 'Josephs'], ['Martin', 'Sommer'], ['Mary', 'Saveley'], ['Patricia', 'McKenna'], ['Roland', 'Mendel'], ['Timothy', "O'Rourke"]] | 0.188184 |
book_publishing_company | Name the Chief Executive Officer and when he/she was hired. | Chief Financial Offer is a job description which refers to job_desc | 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' | local_bird_186 | null | Name the Chief Executive Officer and when he/she was hired. | bird | 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' | {'employee': ['job_id', 'fname', 'lname', 'hire_date'], 'jobs': ['job_desc', 'job_id']} | [['Francisco', 'Chang', '1990-11-03 00:00:00.0']] | 0.18599 |
book_publishing_company | Who are the employees working for publisher not located in USA? State the employee's name and publisher name. | not located at USA refers to country! = 'USA' | 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' | local_bird_187 | null | Who are the employees working for publisher not located in USA? State the employee's name and publisher name. | bird | 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' | {'employee': ['fname', 'pub_id', 'lname'], 'publishers': ['pub_id', 'pub_name', 'country']} | [['Annette', 'Roulet', 'Lucerne Publishing'], ['Carlos', 'Hernadez', 'Lucerne Publishing'], ['Helvetius', 'Nagy', 'Lucerne Publishing'], ['Janine', 'Labrune', 'GGG&G'], ['Karla', 'Jablonski', 'Lucerne Publishing'], ['Manuel', 'Pereira', 'Lucerne Publishing'], ['Patricia', 'McKenna', 'Lucerne Publishing'], ['Pirkko', 'K... | 0.184629 |
book_publishing_company | Among all employees, who have job level greater than 200. State the employee name and job description. | job level greater than 200 refers to job_lvl>200; job description refers to job_desc | 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 | local_bird_192 | null | Among all employees, who have job level greater than 200. State the employee name and job description. | bird | 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 | {'employee': ['job_id', 'job_lvl', 'fname', 'lname'], 'jobs': ['job_desc', 'job_id']} | [['Carlos', 'Hernadez', 'Publisher'], ['Francisco', 'Chang', 'Chief Financial Officier'], ['Matti', 'Karttunen', 'Managing Editor'], ['Maria', 'Pontes', 'Publisher'], ['Philip', 'Cramer', 'Chief Executive Officer']] | 0.184179 |
book_publishing_company | List all the titles and year to date sales by author who are not on contract. | year to date sales refers to ytd_sales; not on contract refers to contract = 0 | 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 | local_bird_194 | null | List all the titles and year to date sales by author who are not on contract. | bird | 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 | {'titles': ['ytd_sales', 'title_id'], 'titleauthor': ['title_id', 'au_id'], 'authors': ['au_id', 'contract']} | [['PS3333', 4072], ['BU1032', 4095], ['BU2075', 18722], ['PC1035', 8780], ['BU1111', 3876], ['TC7777', 4095], ['BU7832', 4095], ['BU1032', 4095], ['PC8888', 4095], ['TC7777', 4095], ['PC9999', None], ['PS7777', 3336], ['TC4203', 15096], ['TC7777', 4095], ['MC2222', 2032], ['MC3021', 22246], ['BU1111', 3876], ['PS1372',... | 0.184139 |
book_publishing_company | List all titles which have year to date sales higher than the average order by pubisher name. | year to date sales refers to ytd_sales; average order = AVG(ytd_sales) | 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 ) | local_bird_198 | null | List all titles which have year to date sales higher than the average order by pubisher name. | bird | 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 ) | {'titles': ['ytd_sales', 'title', 'pub_id'], 'publishers': ['pub_id']} | [['You Can Combat Computer Stress!'], ['The Gourmet Microwave'], ['But Is It User Friendly?'], ['Fifty Years in Buckingham Palace Kitchens']] | 0.184172 |
book_publishing_company | Please give more detailed information about the first three books that sell the best. | qty is abbreviation for quantity; sells the best mean with the most sales quantity; MAX(qty) | SELECT T1.notes FROM titles AS T1 INNER JOIN sales AS T2 ON T1.title_id = T2.title_id ORDER BY T2.qty DESC LIMIT 3 | local_bird_210 | null | Please give more detailed information about the first three books that sell the best. | bird | SELECT T1.notes FROM titles AS T1 INNER JOIN sales AS T2 ON T1.title_id = T2.title_id ORDER BY T2.qty DESC LIMIT 3 | {'titles': ['notes', 'title_id'], 'sales': ['title_id', 'qty']} | [['Carefully researched study of the effects of strong emotions on the body. Metabolic charts included.'], ["Muckraking reporting on the world's largest computer hardware and software manufacturers."], ['Profusely illustrated in color, this makes a wonderful gift book for a cuisine-oriented friend.']] | 0.191443 |
book_publishing_company | How many books on business have the bookstores in Massachusetts ordered? | Massachusetts is a state; business books refers to type = 'business' | SELECT SUM(T1.qty) FROM sales AS T1 INNER JOIN stores AS T2 ON T1.stor_id = T2.stor_id INNER JOIN titles AS T3 ON T1.title_id = T3.title_id WHERE T2.state = 'Massachusetts' AND T3.type = 'business' | local_bird_211 | null | How many books on business have the bookstores in Massachusetts ordered? | bird | SELECT SUM(T1.qty) FROM sales AS T1 INNER JOIN stores AS T2 ON T1.stor_id = T2.stor_id INNER JOIN titles AS T3 ON T1.title_id = T3.title_id WHERE T2.state = 'Massachusetts' AND T3.type = 'business' | {'sales': ['title_id', 'qty', 'stor_id'], 'stores': ['state', 'stor_id'], 'titles': ['title_id', 'type']} | [[None]] | 0.188762 |
book_publishing_company | What's the royalty for the bestseller book? | qty is abbreviation for quantity; bestseller means with the most sales quantity; MAX(qty) | SELECT royalty FROM titles ORDER BY ytd_sales DESC LIMIT 1 | local_bird_216 | null | What's the royalty for the bestseller book? | bird | SELECT royalty FROM titles ORDER BY ytd_sales DESC LIMIT 1 | {'titles': ['royalty', 'ytd_sales']} | [[24]] | 0.185987 |
book_publishing_company | Which publisher had the highest job level? Give his/her full name. | highest job level refers to MAX(job_lvl) | SELECT T1.fname, T1.minit, T1.lname FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id ORDER BY T1.job_lvl DESC LIMIT 1 | local_bird_220 | null | Which publisher had the highest job level? Give his/her full name. | bird | SELECT T1.fname, T1.minit, T1.lname FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id ORDER BY T1.job_lvl DESC LIMIT 1 | {'employee': ['job_id', 'fname', 'minit', 'job_lvl', 'lname'], 'jobs': ['job_id']} | [['Maria', 'J', 'Pontes']] | 0.198018 |
book_publishing_company | Tell me about the information of the French publisher. | French publisher means publisher in France where country = 'France' | SELECT T1.pr_info FROM pub_info AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T2.country = 'France' | local_bird_225 | null | Tell me about the information of the French publisher. | bird | SELECT T1.pr_info FROM pub_info AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T2.country = 'France' | {'pub_info': ['pr_info', 'pub_id'], 'publishers': ['pub_id', 'country']} | [['This is sample text data for Lucerne Publishing, publisher 9999 in the pubs database. Lucerne publishing is located in Paris, France.\n\nThis is sample text data for Lucerne Publishing, publisher 9999 in the pubs database. Lucerne publishing is located in Paris, France.\n\nThis is sample text data for Lucerne Publis... | 0.190974 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.