context_id
stringclasses
64 values
question_id
stringlengths
1
4
question_prompt_info
dict
eval_info
dict
movie_platform
142
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT DISTINCT T2.list_title FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T1.user_eligible_for_trial = 1" }
movie_platform
103
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id ORDER BY T1.critic_comments DESC LIMIT 3" }
movie_platform
136
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT CAST(SUM(CASE WHEN T3.user_subscriber = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id INNER JOIN lists_users AS T3 ON T1.user_id = T3.user_id WHERE T2.movie_title = 'G.I. Jan...
movie_platform
30
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT MAX(T2.movie_popularity), MIN(T1.rating_timestamp_utc) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_release_year BETWEEN 1920 AND 1929 AND T1.rating_score = 1 AND T1.user_has_payment_method = 1" }
movie_platform
98
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT SUM(T2.list_followers) FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T1.user_avatar_image_url = 'https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?1523895214'" }
movie_platform
140
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT CAST(SUM(CASE WHEN user_subscriber = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(list_id) FROM lists_users" }
movie_platform
80
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id INNER JOIN lists AS T3 ON T3.user_id = T1.user_id WHERE T3.list_title = '250 Favourite Films'" }
movie_platform
59
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT T2.user_trialist FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id AND T1.user_id = T2.user_id WHERE T1.list_title = '250 Favourite Films'" }
movie_platform
161
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT CAST(SUM(T4.list_followers) AS REAL) / COUNT(T2.list_id) FROM ratings AS T1 INNER JOIN lists_users AS T2 ON T1.user_id = T2.user_id INNER JOIN movies AS T3 ON T1.movie_id = T3.movie_id INNER JOIN lists AS T4 ON T2.list_id = T4.list_id WHERE T3.mov...
movie_platform
23
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT COUNT(T2.user_id) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_title = 'Pavee Lackeen: The Traveller Girl' AND T2.rating_score = 4" }
movie_platform
141
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT DISTINCT T2.list_id FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T1.user_subscriber = 1" }
movie_platform
148
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT list_title , 365 * (strftime('%Y', 'now') - strftime('%Y', list_creation_timestamp_utc)) + 30 * (strftime('%m', 'now') - strftime('%m', list_creation_timestamp_utc)) + strftime('%d', 'now') - strftime('%d', list_creation_timestamp_utc) FROM lists ...
movie_platform
73
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT COUNT(T1.user_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'When Will I Be Loved' AND T1.user_trialist = 1" }
movie_platform
27
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT AVG(T1.rating_score), T2.director_name FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'When Will I Be Loved'" }
movie_platform
8
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT T1.movie_title FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T2.user_trialist = 1 AND T2.rating_timestamp_utc LIKE '2020-04%'" }
movie_platform
137
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "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 = '...
movie_platform
112
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT movie_release_year FROM movies GROUP BY movie_release_year ORDER BY COUNT(movie_id) DESC LIMIT 1" }
movie_platform
72
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT T1.user_trialist 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" }
movie_platform
49
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT AVG(T1.rating_score), T2.movie_release_year FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'Pavee Lackeen: The Traveller Girl'" }
movie_platform
166
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "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" }
movie_platform
102
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id GROUP BY T2.movie_title ORDER BY SUM(T1.rating_score) / COUNT(T1.rating_id) DESC LIMIT 1" }
movie_platform
143
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT COUNT(T1.list_id) FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_followers >= 1 AND T1.user_subscriber = 1" }
movie_platform
110
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "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'" }
movie_platform
5
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT AVG(T2.rating_score) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_title = 'When Will I Be Loved'" }
movie_platform
35
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT COUNT(T2.user_id) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_release_year = 1924 AND T1.director_name = 'Erich von Stroheim' AND T2.rating_score = 5 AND T2.user_has_payment_method = 1" }
movie_platform
38
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "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" }
movie_platform
165
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.user_id = 57756708 ORDER BY T1.rating_timestamp_utc DESC LIMIT 1" }
movie_platform
7
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT CAST(SUM(CASE WHEN user_subscriber = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM ratings" }
movie_platform
16
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT list_title FROM lists ORDER BY list_followers DESC LIMIT 1" }
movie_platform
18
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT list_id FROM lists_users WHERE user_id = 85981819 ORDER BY list_creation_date_utc ASC LIMIT 1" }
movie_platform
39
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT T2.rating_url FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T2.user_id = 22030372 AND T2.rating_score = 5 AND T1.movie_title = 'Riff-Raff'" }
movie_platform
40
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "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" }
movie_platform
97
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "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'" }
movie_platform
63
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "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" }
movie_platform
82
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT CAST(SUM(CASE WHEN T1.rating_score = 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 WHERE T2.movie_title = 'When Will I Be Loved'" }
movie_platform
139
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT list_title FROM lists WHERE strftime('%Y', list_update_timestamp_utc) = '2016' ORDER BY list_update_timestamp_utc DESC LIMIT 1" }
movie_platform
53
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT COUNT(*) FROM lists WHERE list_followers > 200 AND list_update_timestamp_utc > '2010-01-01'" }
movie_platform
144
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT AVG(list_followers) FROM lists WHERE list_movie_number > 200" }
movie_platform
99
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.rating_score = 5 AND T1.user_id = 94978" }
movie_platform
11
{ "db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not...
{ "db_mode": "train", "db_id": "movie_platform", "gt_sql": "SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE CAST(SUBSTR(T1.rating_timestamp_utc, 1, 4) AS INTEGER) = 2020 AND CAST(SUBSTR(T1.rating_timestamp_utc, 6, 2) AS INTEGER) > 4" }
book_publishing_company
203
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT T2.price FROM sales AS T1 INNER JOIN titles AS T2 ON T1.title_id = T2.title_id ORDER BY T1.qty DESC LIMIT 1" }
book_publishing_company
202
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT T2.city FROM sales AS T1 INNER JOIN stores AS T2 ON T1.stor_id = T2.stor_id GROUP BY T2.city ORDER BY SUM(T1.qty) DESC LIMIT 1" }
book_publishing_company
237
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT T1.title, T2.pub_name, T1.price FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T1.notes = 'Helpful hints on how to use your electronic resources to the best advantage.'" }
book_publishing_company
200
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT T1.fname FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T2.job_desc = 'Managing Editor'" }
book_publishing_company
188
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT DISTINCT T2.pub_name, T1.type FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id ORDER BY T2.pub_name" }
book_publishing_company
214
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT type FROM titles ORDER BY advance DESC LIMIT 1" }
book_publishing_company
178
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT T1.title, T3.pub_name, T2.lorange, T2.hirange, T2.royalty FROM titles AS T1 INNER JOIN roysched AS T2 ON T1.title_id = T2.title_id INNER JOIN publishers AS T3 ON T1.pub_id = T3.pub_id WHERE T1.title_id = 'BU2075'" }
book_publishing_company
219
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "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" }
book_publishing_company
195
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT T3.au_fname, T3.au_lname FROM titles AS T1 INNER JOIN titleauthor AS T2 ON T1.title_id = T2.title_id INNER JOIN authors AS T3 ON T2.au_id = T3.au_id WHERE T1.title = 'Sushi, Anyone?'" }
book_publishing_company
231
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT DISTINCT T1.title, T1.type, T1.price FROM titles AS T1 INNER JOIN roysched AS T2 ON T1.title_id = T2.title_id WHERE T2.royalty > ( SELECT CAST(SUM(royalty) AS REAL) / COUNT(title_id) FROM roysched )" }
book_publishing_company
201
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT T2.max_lvl FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id ORDER BY T1.hire_date LIMIT 1" }
book_publishing_company
238
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT T1.title, T2.pub_name, T1.ytd_sales FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T1.notes = 'Carefully researched study of the effects of strong emotions on the body. Metabolic charts included.'" }
book_publishing_company
229
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT CAST(SUM(CASE WHEN T2.job_desc = 'publisher' THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.job_desc = 'designer' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.job_id) FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id" }
book_publishing_company
213
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT title FROM titles WHERE type = 'business' ORDER BY price LIMIT 1" }
book_publishing_company
224
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "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'" }
book_publishing_company
167
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT ord_date, SUM(qty) FROM sales GROUP BY ord_date ORDER BY SUM(qty) DESC LIMIT 1" }
book_publishing_company
233
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT T1.title, T1.type, T1.price FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T2.pub_name = 'New Moon Books' ORDER BY T1.price" }
book_publishing_company
170
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT T1.title FROM titles AS T1 INNER JOIN roysched AS T2 ON T1.title_id = T2.title_id WHERE T2.lorange = 0 AND T2.royalty >= 10" }
book_publishing_company
225
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT T2.pub_name FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T1.title = 'Silicon Valley Gastronomic Treats'" }
book_publishing_company
179
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT T2.stor_name , CAST(SUM(CASE WHEN payterms = 'Net 30' THEN qty ELSE 0 END) AS REAL) * 100 / SUM(qty) FROM sales AS T1 INNER JOIN stores AS T2 ON T1.stor_id = T2.stor_id WHERE T1.stor_id = '7066' GROUP BY T2.stor_name" }
book_publishing_company
218
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT T1.contract FROM authors AS T1 INNER JOIN titleauthor AS T2 ON T1.au_id = T2.au_id INNER JOIN titles AS T3 ON T2.title_id = T3.title_id WHERE T3.title = 'Sushi, Anyone?'" }
book_publishing_company
186
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "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'" }
book_publishing_company
174
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT MAX(T1.ytd_sales) FROM titles AS T1 INNER JOIN roysched AS T2 ON T1.title_id = T2.title_id WHERE T2.lorange > 20000 AND T2.hirange < 20000" }
book_publishing_company
169
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT T2.title, T2.price, T2.pubdate FROM sales AS T1 INNER JOIN titles AS T2 ON T1.title_id = T2.title_id WHERE T1.payterms = 'ON invoice'" }
book_publishing_company
209
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "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" }
book_publishing_company
211
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT CAST(SUM(T2.qty) AS REAL) / COUNT(T1.title_id) FROM titles AS T1 INNER JOIN sales AS T2 ON T1.title_id = T2.title_id WHERE T1.title = 'Life Without Fear'" }
book_publishing_company
183
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT STRFTIME('%Y', hire_date) FROM employee GROUP BY STRFTIME('%Y', hire_date) ORDER BY COUNT(emp_id) DESC LIMIT 1" }
book_publishing_company
180
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT T2.pub_name, AVG(T1.ytd_sales) FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T1.pub_id = '0877' GROUP BY T2.pub_name" }
book_publishing_company
234
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT T1.title FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id INNER JOIN roysched AS T3 ON T1.title_id = T3.title_id WHERE T2.country = 'USA' ORDER BY T1.royalty DESC" }
book_publishing_company
208
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT COUNT(DISTINCT T1.pub_id) FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T2.country = 'USA' AND T1.price > 15" }
book_publishing_company
216
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT job_lvl FROM employee WHERE lname = 'O''Rourke'" }
book_publishing_company
239
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT T1.title FROM titles AS T1 INNER JOIN sales AS T2 ON T1.title_id = T2.title_id INNER JOIN publishers AS T3 ON T1.pub_id = T3.pub_id WHERE T2.qty > ( SELECT CAST(SUM(qty) AS REAL) / COUNT(title_id) FROM sales ) AND T3.state = 'CA' ORDER BY...
book_publishing_company
221
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT T2.max_lvl - T1.job_lvl FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T1.fname = 'Diego' AND T1.minit = 'W' AND T1.lname = 'Roel'" }
book_publishing_company
189
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT T2.pub_name FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE STRFTIME('%Y', T1.pubdate) = '1991' GROUP BY T1.pub_id, T2.pub_name ORDER BY COUNT(T1.title_id) DESC LIMIT 1" }
book_publishing_company
206
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT T2.country FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T1.title = 'Life Without Fear'" }
book_publishing_company
220
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT T2.job_desc FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T1.fname = 'Pedro' AND T1.minit = 'S' AND T1.lname = 'Afonso'" }
book_publishing_company
215
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT royalty FROM titles ORDER BY ytd_sales DESC LIMIT 1" }
book_publishing_company
191
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "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" }
book_publishing_company
204
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT T2.stor_name 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 T3.title = 'Life Without Fear'" }
book_publishing_company
196
{ "db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT...
{ "db_mode": "train", "db_id": "book_publishing_company", "gt_sql": "SELECT CAST(SUM(CASE WHEN T2.job_desc IN ('Editor', 'Designer') THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.job_id) FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id" }
retail_complains
372
{ "db_schema": "CREATE TABLE state\n(\n\tStateCode TEXT constraint state_pk primary key,\n\tState TEXT, -- Example Values: `('Alabama',)`, `('Arkansas',)`, `('Arizona',)` | Value Statics: Total count 48 - Distinct count 48 - Null count 0 \n\tRegion TEXT, -- Example Values: `South`, `West`, `Northeast`, `Midwest` | ...
{ "db_mode": "train", "db_id": "retail_complains", "gt_sql": "SELECT T1.social, T1.state FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id INNER JOIN state AS T3 ON T2.state_abbrev = T3.StateCode WHERE T1.phone = '100-121-8371'" }
retail_complains
258
{ "db_schema": "CREATE TABLE state\n(\n\tStateCode TEXT constraint state_pk primary key,\n\tState TEXT, -- Example Values: `('Alabama',)`, `('Arkansas',)`, `('Arizona',)` | Value Statics: Total count 48 - Distinct count 48 - Null count 0 \n\tRegion TEXT, -- Example Values: `South`, `West`, `Northeast`, `Midwest` | ...
{ "db_mode": "train", "db_id": "retail_complains", "gt_sql": "SELECT T1.ser_time FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE T2.Client_ID = 'C00007127' AND T1.`Date received` = '2017-02-22'" }
retail_complains
376
{ "db_schema": "CREATE TABLE state\n(\n\tStateCode TEXT constraint state_pk primary key,\n\tState TEXT, -- Example Values: `('Alabama',)`, `('Arkansas',)`, `('Arizona',)` | Value Statics: Total count 48 - Distinct count 48 - Null count 0 \n\tRegion TEXT, -- Example Values: `South`, `West`, `Northeast`, `Midwest` | ...
{ "db_mode": "train", "db_id": "retail_complains", "gt_sql": "SELECT first, last FROM client WHERE city = 'New York City'" }
retail_complains
294
{ "db_schema": "CREATE TABLE state\n(\n\tStateCode TEXT constraint state_pk primary key,\n\tState TEXT, -- Example Values: `('Alabama',)`, `('Arkansas',)`, `('Arizona',)` | Value Statics: Total count 48 - Distinct count 48 - Null count 0 \n\tRegion TEXT, -- Example Values: `South`, `West`, `Northeast`, `Midwest` | ...
{ "db_mode": "train", "db_id": "retail_complains", "gt_sql": "SELECT COUNT(outcome) FROM callcenterlogs WHERE outcome != 'AGENT'" }
retail_complains
393
{ "db_schema": "CREATE TABLE state\n(\n\tStateCode TEXT constraint state_pk primary key,\n\tState TEXT, -- Example Values: `('Alabama',)`, `('Arkansas',)`, `('Arizona',)` | Value Statics: Total count 48 - Distinct count 48 - Null count 0 \n\tRegion TEXT, -- Example Values: `South`, `West`, `Northeast`, `Midwest` | ...
{ "db_mode": "train", "db_id": "retail_complains", "gt_sql": "SELECT COUNT(`Submitted via`) FROM events WHERE strftime('%Y', `Date received`) = '2012' AND `Submitted via` = 'Email'" }
retail_complains
390
{ "db_schema": "CREATE TABLE state\n(\n\tStateCode TEXT constraint state_pk primary key,\n\tState TEXT, -- Example Values: `('Alabama',)`, `('Arkansas',)`, `('Arizona',)` | Value Statics: Total count 48 - Distinct count 48 - Null count 0 \n\tRegion TEXT, -- Example Values: `South`, `West`, `Northeast`, `Midwest` | ...
{ "db_mode": "train", "db_id": "retail_complains", "gt_sql": "SELECT T1.phone, T2.`Complaint ID` FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Company response to consumer` = 'In progress'" }
retail_complains
297
{ "db_schema": "CREATE TABLE state\n(\n\tStateCode TEXT constraint state_pk primary key,\n\tState TEXT, -- Example Values: `('Alabama',)`, `('Arkansas',)`, `('Arizona',)` | Value Statics: Total count 48 - Distinct count 48 - Null count 0 \n\tRegion TEXT, -- Example Values: `South`, `West`, `Northeast`, `Midwest` | ...
{ "db_mode": "train", "db_id": "retail_complains", "gt_sql": "SELECT T1.year FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Sub-product` = '(CD) Certificate of deposit' GROUP BY T1.year ORDER BY COUNT(T1.year) DESC LIMIT 1" }
retail_complains
321
{ "db_schema": "CREATE TABLE state\n(\n\tStateCode TEXT constraint state_pk primary key,\n\tState TEXT, -- Example Values: `('Alabama',)`, `('Arkansas',)`, `('Arizona',)` | Value Statics: Total count 48 - Distinct count 48 - Null count 0 \n\tRegion TEXT, -- Example Values: `South`, `West`, `Northeast`, `Midwest` | ...
{ "db_mode": "train", "db_id": "retail_complains", "gt_sql": "SELECT T3.ser_time FROM events AS T1 INNER JOIN client AS T2 ON T1.Client_ID = T2.client_id INNER JOIN callcenterlogs AS T3 ON T1.`Complaint ID` = T3.`Complaint ID` WHERE T2.first = 'Kendall' AND T2.last = 'Allen' AND T2.sex = 'Female' AND T1.Product =...
retail_complains
291
{ "db_schema": "CREATE TABLE state\n(\n\tStateCode TEXT constraint state_pk primary key,\n\tState TEXT, -- Example Values: `('Alabama',)`, `('Arkansas',)`, `('Arizona',)` | Value Statics: Total count 48 - Distinct count 48 - Null count 0 \n\tRegion TEXT, -- Example Values: `South`, `West`, `Northeast`, `Midwest` | ...
{ "db_mode": "train", "db_id": "retail_complains", "gt_sql": "SELECT Client_ID FROM events WHERE `Consumer consent provided?` = 'N/A' OR 'Consumer consent provided?' IS NULL OR 'Consumer consent provided?' = ''" }
retail_complains
249
{ "db_schema": "CREATE TABLE state\n(\n\tStateCode TEXT constraint state_pk primary key,\n\tState TEXT, -- Example Values: `('Alabama',)`, `('Arkansas',)`, `('Arizona',)` | Value Statics: Total count 48 - Distinct count 48 - Null count 0 \n\tRegion TEXT, -- Example Values: `South`, `West`, `Northeast`, `Midwest` | ...
{ "db_mode": "train", "db_id": "retail_complains", "gt_sql": "SELECT T2.ser_time FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T1.first = 'Rachel' AND T1.last = 'Hicks' AND T2.`Date received` = '2017-03-27'" }
retail_complains
256
{ "db_schema": "CREATE TABLE state\n(\n\tStateCode TEXT constraint state_pk primary key,\n\tState TEXT, -- Example Values: `('Alabama',)`, `('Arkansas',)`, `('Arizona',)` | Value Statics: Total count 48 - Distinct count 48 - Null count 0 \n\tRegion TEXT, -- Example Values: `South`, `West`, `Northeast`, `Midwest` | ...
{ "db_mode": "train", "db_id": "retail_complains", "gt_sql": "SELECT CAST(COUNT(T2.`Complaint ID`) AS REAL) / 3 AS average FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE strftime('%Y', T2.`Date received`) BETWEEN '2015' AND '2017' AND T1.city = 'New York City' AND T2.Product = 'Cre...
retail_complains
318
{ "db_schema": "CREATE TABLE state\n(\n\tStateCode TEXT constraint state_pk primary key,\n\tState TEXT, -- Example Values: `('Alabama',)`, `('Arkansas',)`, `('Arizona',)` | Value Statics: Total count 48 - Distinct count 48 - Null count 0 \n\tRegion TEXT, -- Example Values: `South`, `West`, `Northeast`, `Midwest` | ...
{ "db_mode": "train", "db_id": "retail_complains", "gt_sql": "SELECT T2.division FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.first = 'Noah' AND T1.last = 'Thompson'" }
retail_complains
283
{ "db_schema": "CREATE TABLE state\n(\n\tStateCode TEXT constraint state_pk primary key,\n\tState TEXT, -- Example Values: `('Alabama',)`, `('Arkansas',)`, `('Arizona',)` | Value Statics: Total count 48 - Distinct count 48 - Null count 0 \n\tRegion TEXT, -- Example Values: `South`, `West`, `Northeast`, `Midwest` | ...
{ "db_mode": "train", "db_id": "retail_complains", "gt_sql": "SELECT T3.`Submitted via` FROM callcenterlogs AS T1 INNER JOIN client AS T2 ON T1.`rand client` = T2.client_id INNER JOIN events AS T3 ON T1.`Complaint ID` = T3.`Complaint ID` WHERE T2.state = 'FL' GROUP BY T1.`Complaint ID` ORDER BY COUNT(T1.`Complain...
retail_complains
324
{ "db_schema": "CREATE TABLE state\n(\n\tStateCode TEXT constraint state_pk primary key,\n\tState TEXT, -- Example Values: `('Alabama',)`, `('Arkansas',)`, `('Arizona',)` | Value Statics: Total count 48 - Distinct count 48 - Null count 0 \n\tRegion TEXT, -- Example Values: `South`, `West`, `Northeast`, `Midwest` | ...
{ "db_mode": "train", "db_id": "retail_complains", "gt_sql": "SELECT CAST(SUM(CASE WHEN T1.sex = 'Male' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.sex) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.Product = 'Credit card'" }
retail_complains
399
{ "db_schema": "CREATE TABLE state\n(\n\tStateCode TEXT constraint state_pk primary key,\n\tState TEXT, -- Example Values: `('Alabama',)`, `('Arkansas',)`, `('Arizona',)` | Value Statics: Total count 48 - Distinct count 48 - Null count 0 \n\tRegion TEXT, -- Example Values: `South`, `West`, `Northeast`, `Midwest` | ...
{ "db_mode": "train", "db_id": "retail_complains", "gt_sql": "SELECT COUNT(T2.Stars) FROM district AS T1 INNER JOIN reviews AS T2 ON T1.district_id = T2.district_id WHERE T1.city = 'Nashville' AND T1.state_abbrev = 'TN' AND T2.Product = 'Eagle National Mortgage' AND T2.Stars = 5" }
retail_complains
271
{ "db_schema": "CREATE TABLE state\n(\n\tStateCode TEXT constraint state_pk primary key,\n\tState TEXT, -- Example Values: `('Alabama',)`, `('Arkansas',)`, `('Arizona',)` | Value Statics: Total count 48 - Distinct count 48 - Null count 0 \n\tRegion TEXT, -- Example Values: `South`, `West`, `Northeast`, `Midwest` | ...
{ "db_mode": "train", "db_id": "retail_complains", "gt_sql": "SELECT CAST(SUM(CASE WHEN T2.`Consumer consent provided?` = 'Consent provided' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.`Consumer consent provided?`) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.sex = 'Male' AND...
retail_complains
309
{ "db_schema": "CREATE TABLE state\n(\n\tStateCode TEXT constraint state_pk primary key,\n\tState TEXT, -- Example Values: `('Alabama',)`, `('Arkansas',)`, `('Arizona',)` | Value Statics: Total count 48 - Distinct count 48 - Null count 0 \n\tRegion TEXT, -- Example Values: `South`, `West`, `Northeast`, `Midwest` | ...
{ "db_mode": "train", "db_id": "retail_complains", "gt_sql": "SELECT T1.address_1, T1.address_2 FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Timely response?` = 'Yes' AND T2.`Consumer disputed?` = 'Yes'" }
retail_complains
260
{ "db_schema": "CREATE TABLE state\n(\n\tStateCode TEXT constraint state_pk primary key,\n\tState TEXT, -- Example Values: `('Alabama',)`, `('Arkansas',)`, `('Arizona',)` | Value Statics: Total count 48 - Distinct count 48 - Null count 0 \n\tRegion TEXT, -- Example Values: `South`, `West`, `Northeast`, `Midwest` | ...
{ "db_mode": "train", "db_id": "retail_complains", "gt_sql": "SELECT DISTINCT T2.`Sub-product` FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.first = 'Lennox' AND T1.middle = 'Oliver' AND T1.last = 'Drake' AND T1.sex = 'Male'" }
retail_complains
287
{ "db_schema": "CREATE TABLE state\n(\n\tStateCode TEXT constraint state_pk primary key,\n\tState TEXT, -- Example Values: `('Alabama',)`, `('Arkansas',)`, `('Arizona',)` | Value Statics: Total count 48 - Distinct count 48 - Null count 0 \n\tRegion TEXT, -- Example Values: `South`, `West`, `Northeast`, `Midwest` | ...
{ "db_mode": "train", "db_id": "retail_complains", "gt_sql": "SELECT CAST(SUM(CASE WHEN T1.priority = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.priority) FROM callcenterlogs AS T1 INNER JOIN client AS T2 ON T1.`rand client` = T2.client_id INNER JOIN district AS T3 ON T2.district_id = T3.district_id INNER JOI...
retail_complains
311
{ "db_schema": "CREATE TABLE state\n(\n\tStateCode TEXT constraint state_pk primary key,\n\tState TEXT, -- Example Values: `('Alabama',)`, `('Arkansas',)`, `('Arizona',)` | Value Statics: Total count 48 - Distinct count 48 - Null count 0 \n\tRegion TEXT, -- Example Values: `South`, `West`, `Northeast`, `Midwest` | ...
{ "db_mode": "train", "db_id": "retail_complains", "gt_sql": "SELECT T2.`Consumer complaint narrative` FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.first = 'Brenda' AND T1.last = 'Mayer'" }