SAVI-SQL
Collection
4 items • Updated
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 l(...TRUNCATED) | "SELECT T1.movie_title FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE(...TRUNCATED) | 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(...TRUNCATED) | "{'movies': ['movie_title', 'movie_id'], 'ratings': ['rating_timestamp_utc', 'user_trialist', 'movie(...TRUNCATED) | "[['The Great Sacrifice'], ['The Exterminating Angel'], ['The Exterminating Angel'], ['Simon of the (...TRUNCATED) | 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.(...TRUNCATED) | 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.(...TRUNCATED) | {'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(...TRUNCATED) | "best rating score refers to rating_score = 5; number of Mubi user who loves the movie refers to mov(...TRUNCATED) | "SELECT DISTINCT T2.movie_title, T2.movie_popularity FROM ratings AS T1 INNER JOIN movies AS T2 ON T(...TRUNCATED) | local_bird_11 | null | "List all movies with the best rating score. State the movie title and number of Mubi user who loves(...TRUNCATED) | bird | "SELECT DISTINCT T2.movie_title, T2.movie_popularity FROM ratings AS T1 INNER JOIN movies AS T2 ON T(...TRUNCATED) | "{'movies': ['movie_popularity', 'movie_title', 'movie_id'], 'ratings': ['rating_score', 'movie_id'](...TRUNCATED) | "[['Pavee Lackeen: The Traveller Girl', 1], ['A Way of Life', 3], ['When Will I Be Loved', 11], ['Pa(...TRUNCATED) | 2.727014 |
movie_platform | "For all ratings which are rated in year 2020, name the movies which has the rating scored 4 and abo(...TRUNCATED) | 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(...TRUNCATED) | local_bird_12 | null | "For all ratings which are rated in year 2020, name the movies which has the rating scored 4 and abo(...TRUNCATED) | bird | "SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE(...TRUNCATED) | {'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 hig(...TRUNCATED) | "rated with highest score refers to rating_score = 5; percentage = MULTIPLY(DIVIDE(SUM(rating_score (...TRUNCATED) | "SELECT CAST(SUM(CASE WHEN T2.rating_score = 5 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM mov(...TRUNCATED) | local_bird_14 | null | "For movie titled 'Welcome to the Dollhouse', how many percentage of the ratings were rated with hig(...TRUNCATED) | bird | "SELECT CAST(SUM(CASE WHEN T2.rating_score = 5 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM mov(...TRUNCATED) | {'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 up(...TRUNCATED) | "URL to the list page on Mubi refers to list_url; list_followers = 1 OR list_followers = 2; last upd(...TRUNCATED) | "SELECT list_url FROM lists WHERE list_update_timestamp_utc LIKE '2012%' AND list_followers BETWEEN (...TRUNCATED) | 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 up(...TRUNCATED) | bird | "SELECT list_url FROM lists WHERE list_update_timestamp_utc LIKE '2012%' AND list_followers BETWEEN (...TRUNCATED) | {'lists': ['list_followers', 'list_update_timestamp_utc', 'list_url']} | [['http://mubi.com/lists/2012-viewing-list-ranked']] | 0.213445 |
No dataset card yet