prompt listlengths 1 1 | data_source stringclasses 1
value | reward_model dict | extra_info dict | schema stringlengths 329 25.8k |
|---|---|---|---|---|
[
{
"content": "Task Overview:\nYou are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.\n\nDatabase Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE lists_users (\n ... | bird | {
"ground_truth": {
"db_id": "movie_platform",
"sql": "SELECT movie_title FROM movies WHERE movie_release_year = 1945 ORDER BY movie_popularity DESC LIMIT 1"
},
"style": "rule"
} | {
"db_id": "movie_platform",
"difficulty": "",
"evidence": "released in the year 1945 refers to movie_release_year = 1945;",
"index": 0,
"question": "Name movie titles released in year 1945. Sort the listing by the descending order of movie popularity.",
"question_id": "0",
"split": "train"
} | CREATE TABLE lists_users (
user_id integer, -- example: [2385, 15264]
list_id integer, -- example: [192287, 192313]
PRIMARY KEY (user_id, list_id),
CONSTRAINT fk_lists_users_user_id FOREIGN KEY (user_id) REFERENCES lists (user_id),
CONSTRAINT fk_lists_users_list_id FOREIGN KEY (list_id) REFERENCES l... |
[
{
"content": "Task Overview:\nYou are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.\n\nDatabase Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE lists (\n use... | bird | {
"ground_truth": {
"db_id": "movie_platform",
"sql": "SELECT movie_title, movie_release_year, director_name FROM movies ORDER BY movie_popularity DESC LIMIT 1"
},
"style": "rule"
} | {
"db_id": "movie_platform",
"difficulty": "",
"evidence": "most popular movie refers to MAX(movie_popularity); when it was released refers to movie_release_year; director for the movie refers to director_name;",
"index": 1,
"question": "State the most popular movie? When was it released and who is the direct... | CREATE TABLE lists (
user_id integer, -- example: [88260493, 45204418]
list_id integer, -- example: [1, 2]
list_title text, -- example: ['director', 'the most', 'The most', 'Popular', 'Max', 'Directors']
list_movie_number integer, -- example: [5, 3]
list_update_timestamp_utc text, -- example: ['2019... |
[
{
"content": "Task Overview:\nYou are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.\n\nDatabase Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE ratings_users (\... | bird | {
"ground_truth": {
"db_id": "movie_platform",
"sql": "SELECT movie_title, movie_release_year FROM movies ORDER BY LENGTH(movie_popularity) DESC LIMIT 1"
},
"style": "rule"
} | {
"db_id": "movie_platform",
"difficulty": "",
"evidence": "longest movie title refers to MAX(LENGTH(movie_title)); when it was released refers to movie_release_year;",
"index": 2,
"question": "What is the name of the longest movie title? When was it released?",
"question_id": "2",
"split": "train"
} | CREATE TABLE ratings_users (
user_id integer, -- example: [41579158, 68654088]
user_avatar_image_url text, -- example: ['https://assets.mubicdn.net/images/avatar']
user_cover_image_url text, -- example: ['https://assets.mubicdn.net/images/cover_']
user_eligible_for_trial integer, -- example: [1, 0]
... |
[
{
"content": "Task Overview:\nYou are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.\n\nDatabase Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE movies (\n mo... | bird | {
"ground_truth": {
"db_id": "movie_platform",
"sql": "SELECT movie_title FROM movies GROUP BY movie_title ORDER BY COUNT(movie_title) DESC LIMIT 1"
},
"style": "rule"
} | {
"db_id": "movie_platform",
"difficulty": "",
"evidence": "movie with the most rating refers to MAX(SUM(rating_score));",
"index": 3,
"question": "Name the movie with the most ratings.",
"question_id": "3",
"split": "train"
} | CREATE TABLE movies (
movie_id integer, -- example: [1, 2]
movie_title text, -- example: ['Most', 'Max', 'La Antena', 'Elementary Particles']
movie_release_year integer, -- example: [2007, 2006]
movie_url text, -- example: ['http://mubi.com/films/la-antena', 'http://mubi.com/films/elementary-particl']
... |
[
{
"content": "Task Overview:\nYou are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.\n\nDatabase Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE lists_users (\n ... | bird | {
"ground_truth": {
"db_id": "movie_platform",
"sql": "SELECT AVG(movie_popularity) FROM movies WHERE director_name = 'Stanley Kubrick'"
},
"style": "rule"
} | {
"db_id": "movie_platform",
"difficulty": "",
"evidence": "average = AVG(movie_popularity); number of Mubi users who loves the movie refers to movie_popularity;",
"index": 4,
"question": "What is the average number of Mubi users who love movies directed by Stanley Kubrick?",
"question_id": "4",
"split": ... | CREATE TABLE lists_users (
user_id integer, -- example: [2385, 15264]
list_id integer, -- example: [192287, 192313]
list_creation_date_utc text, -- example: ['2009-12-18', '2010-01-30']
PRIMARY KEY (user_id, list_id),
CONSTRAINT fk_lists_users_user_id FOREIGN KEY (user_id) REFERENCES lists (user_id)... |
[
{
"content": "Task Overview:\nYou are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.\n\nDatabase Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE lists_users (\n ... | bird | {
"ground_truth": {
"db_id": "movie_platform",
"sql": "SELECT director_name FROM movies WHERE movie_title = 'Sex, Drink and Bloodshed'"
},
"style": "rule"
} | {
"db_id": "movie_platform",
"difficulty": "",
"evidence": "Sex, Drink and Bloodshed refers to movie title = 'Sex, Drink and Bloodshed';",
"index": 15,
"question": "Who is the director of the movie Sex, Drink and Bloodshed?",
"question_id": "15",
"split": "train"
} | CREATE TABLE lists_users (
user_id integer, -- example: [2385, 15264]
list_id integer, -- example: [192287, 192313]
list_update_date_utc text, -- example: ['2019-11-26', '2020-05-01']
list_creation_date_utc text, -- example: ['2009-12-18', '2010-01-30']
user_trialist integer, -- example: [1, 0]
... |
[
{
"content": "Task Overview:\nYou are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.\n\nDatabase Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE ratings_users (\... | bird | {
"ground_truth": {
"db_id": "movie_platform",
"sql": "SELECT list_title FROM lists ORDER BY list_followers DESC LIMIT 1"
},
"style": "rule"
} | {
"db_id": "movie_platform",
"difficulty": "",
"evidence": "most followed list refers to MAX(list_followers);",
"index": 16,
"question": "What is the name of the most followed list?",
"question_id": "16",
"split": "train"
} | CREATE TABLE ratings_users (
user_id integer, -- example: [41579158, 68654088]
rating_date_utc text, -- example: ['2017-06-10', '2012-10-02']
user_trialist integer, -- example: [0, 1]
user_subscriber integer, -- example: [0, 1]
CONSTRAINT fk_ratings_users_user_id FOREIGN KEY (user_id) REFERENCES lis... |
[
{
"content": "Task Overview:\nYou are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.\n\nDatabase Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE ratings (\n m... | bird | {
"ground_truth": {
"db_id": "movie_platform",
"sql": "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"
},
"style": "rule"
} | {
"db_id": "movie_platform",
"difficulty": "",
"evidence": "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';",
"index": 17,
"question": "What are the URL to the ... | CREATE TABLE ratings (
movie_id integer, -- example: [1066, 1067]
rating_id integer, -- example: [15610495, 10704606]
rating_url text, -- example: ['http://mubi.com/films/pavee-lackeen-the-']
rating_score integer, -- example: [3, 2]
rating_timestamp_utc text, -- example: ['2017-06-10 12:38:33', '201... |
[
{
"content": "Task Overview:\nYou are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.\n\nDatabase Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE ratings_users (\... | bird | {
"ground_truth": {
"db_id": "movie_platform",
"sql": "SELECT list_id FROM lists_users WHERE user_id = 85981819 ORDER BY list_creation_date_utc ASC LIMIT 1"
},
"style": "rule"
} | {
"db_id": "movie_platform",
"difficulty": "",
"evidence": "first created list refers to oldest list_creation_date_utc;",
"index": 18,
"question": "What is the list ID that was first created by user 85981819?",
"question_id": "18",
"split": "train"
} | CREATE TABLE ratings_users (
user_id integer, -- example: [41579158, 68654088]
rating_date_utc text, -- example: ['2017-06-10', '2012-10-02']
user_avatar_image_url text, -- example: ['https://assets.mubicdn.net/images/avatar']
user_eligible_for_trial integer, -- example: [1, 0]
CONSTRAINT fk_ratings... |
[
{
"content": "Task Overview:\nYou are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.\n\nDatabase Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE ratings (\n m... | bird | {
"ground_truth": {
"db_id": "movie_platform",
"sql": "SELECT movie_title, movie_popularity FROM movies WHERE movie_release_year = 2021 AND director_name = 'Steven Spielberg'"
},
"style": "rule"
} | {
"db_id": "movie_platform",
"difficulty": "",
"evidence": "movie released in 2021 refers to movie_release_year = 2021; popularity refers to movie_popularity;",
"index": 20,
"question": "What are the movie popularity of the movies released in 2021 that were directed by Steven Spielberg? List the names of the ... | CREATE TABLE ratings (
movie_id integer, -- example: [1066, 1067]
user_id integer, -- example: [41579158, 85981819]
CONSTRAINT fk_ratings_movie_id FOREIGN KEY (movie_id) REFERENCES movies (movie_id),
CONSTRAINT fk_ratings_user_id FOREIGN KEY (user_id) REFERENCES ratings_users (user_id),
CONSTRAINT f... |
[
{
"content": "Task Overview:\nYou are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.\n\nDatabase Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE lists_users (\n ... | bird | {
"ground_truth": {
"db_id": "movie_platform",
"sql": "SELECT movie_release_year, director_name FROM movies WHERE movie_release_year IS NOT NULL ORDER BY movie_release_year ASC LIMIT 1"
},
"style": "rule"
} | {
"db_id": "movie_platform",
"difficulty": "",
"evidence": "first movie refers to oldest movie_release_year;",
"index": 21,
"question": "When was the first movie released and who directed it?",
"question_id": "21",
"split": "train"
} | CREATE TABLE lists_users (
user_id integer, -- example: [2385, 15264]
list_id integer, -- example: [192287, 192313]
PRIMARY KEY (user_id, list_id),
CONSTRAINT fk_lists_users_user_id FOREIGN KEY (user_id) REFERENCES lists (user_id),
CONSTRAINT fk_lists_users_list_id FOREIGN KEY (list_id) REFERENCES l... |
[
{
"content": "Task Overview:\nYou are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.\n\nDatabase Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE ratings_users (\... | bird | {
"ground_truth": {
"db_id": "movie_platform",
"sql": "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"
},
"style": "rule"
} | {
"db_id": "movie_platform",
"difficulty": "",
"evidence": "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;",
"index": 22,
"question": "What is the user ID of t... | CREATE TABLE ratings_users (
user_id integer, -- example: [41579158, 68654088]
user_subscriber integer, -- example: [0, 1]
user_avatar_image_url text, -- example: ['https://assets.mubicdn.net/images/avatar']
CONSTRAINT fk_ratings_users_user_id FOREIGN KEY (user_id) REFERENCES lists_users (user_id)
);
C... |
[
{
"content": "Task Overview:\nYou are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.\n\nDatabase Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE ratings_users (\... | bird | {
"ground_truth": {
"db_id": "movie_platform",
"sql": "SELECT T2.user_eligible_for_trial, T1.list_followers FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.user_id = T1.user_id AND T1.list_id = T2.list_id WHERE T1.list_title = 'World War 2 and Kids'"
},
"style": "rule"
} | {
"db_id": "movie_platform",
"difficulty": "",
"evidence": "user was eligible for trial when he created the list refers to user_eligible_for_trial = 1; number of followers a list have refers to list_followers;",
"index": 24,
"question": "Was the user who created the \"World War 2 and Kids\" list eligible for ... | CREATE TABLE ratings_users (
user_id integer, -- example: [41579158, 68654088]
rating_date_utc text, -- example: ['2017-06-10', '2012-10-02']
user_trialist integer, -- example: [0, 1]
user_subscriber integer, -- example: [0, 1]
user_avatar_image_url text, -- example: ['https://assets.mubicdn.net/ima... |
[
{
"content": "Task Overview:\nYou are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.\n\nDatabase Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE movies (\n mo... | bird | {
"ground_truth": {
"db_id": "movie_platform",
"sql": "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"
},
"style": "rule"
} | {
"db_id": "movie_platform",
"difficulty": "",
"evidence": "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 ... | CREATE TABLE movies (
movie_id integer, -- example: [1, 2]
movie_title text, -- example: ['When', 'Most', 'Max', 'A Number', 'Numbers', 'La Antena']
movie_release_year integer, -- example: [2007, 2006]
movie_url text, -- example: ['http://mubi.com/films/la-antena', 'http://mubi.com/films/elementary-part... |
[
{
"content": "Task Overview:\nYou are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.\n\nDatabase Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE ratings (\n m... | bird | {
"ground_truth": {
"db_id": "movie_platform",
"sql": "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"
},
"style": "rule"
} | {
"db_id": "movie_platform",
"difficulty": "",
"evidence": "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 ... | CREATE TABLE ratings (
movie_id integer, -- example: [1066, 1067]
rating_id integer, -- example: [15610495, 10704606]
rating_url text, -- example: ['http://mubi.com/films/pavee-lackeen-the-']
rating_score integer, -- example: [3, 2]
critic text, -- example: ['Mean', 'how', 'I am a bit disappointed b... |
[
{
"content": "Task Overview:\nYou are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.\n\nDatabase Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE ratings (\n m... | bird | {
"ground_truth": {
"db_id": "movie_platform",
"sql": "SELECT AVG(T1.list_movie_number), T2.user_avatar_image_url 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 T2.user_id = 8516503"
},
"style": "rule"
} | {
"db_id": "movie_platform",
"difficulty": "",
"evidence": "user profile image URL refers to user_avatar_image_url; user 8516503 refers to user_id; Average refers to AVG(list_movie_number where user_id = 8516503)\n\n",
"index": 36,
"question": "What is the average number of movies added to the lists of user 8... | CREATE TABLE ratings (
movie_id integer, -- example: [1066, 1067]
rating_url text, -- example: ['http://mubi.com/films/pavee-lackeen-the-']
rating_timestamp_utc text, -- example: ['2017-06-10 12:38:33', '2014-08-15 23:42:31']
user_id integer, -- example: [41579158, 85981819]
user_subscriber integer,... |
[
{
"content": "Task Overview:\nYou are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.\n\nDatabase Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE lists_users (\n ... | bird | {
"ground_truth": {
"db_id": "movie_platform",
"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"
},
"style": "rule"
... | {
"db_id": "movie_platform",
"difficulty": "",
"evidence": "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;\n",
"index": 38,
"question": "How many users who created a list in the February of 2016 w... | CREATE TABLE lists_users (
user_id integer, -- example: [2385, 15264]
list_id integer, -- example: [192287, 192313]
list_update_date_utc text, -- example: ['2019-11-26', '2020-05-01']
list_creation_date_utc text, -- example: ['2009-12-18', '2010-01-30']
user_subscriber integer, -- example: [1, 0]
... |
[
{
"content": "Task Overview:\nYou are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.\n\nDatabase Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE lists (\n use... | bird | {
"ground_truth": {
"db_id": "movie_platform",
"sql": "SELECT COUNT(*) FROM lists WHERE SUBSTR(list_update_timestamp_utc, 1, 4) - SUBSTR(list_creation_timestamp_utc, 1, 4) > 10"
},
"style": "rule"
} | {
"db_id": "movie_platform",
"difficulty": "",
"evidence": "updated 10 years after it was created refers to list_update_timestamp_utc > (list_creation_timestamp_utc+10);",
"index": 50,
"question": "How many movie lists were still updated 10 years after it was created?",
"question_id": "50",
"split": "trai... | CREATE TABLE lists (
user_id integer, -- example: [88260493, 45204418]
list_id integer, -- example: [1, 2]
list_movie_number integer, -- example: [5, 3]
list_update_timestamp_utc text, -- example: ['2019-01-24 19:16:18', '2018-12-03 15:12:20']
list_creation_timestamp_utc text, -- example: ['2009-11-... |
[
{
"content": "Task Overview:\nYou are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.\n\nDatabase Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE ratings (\n m... | bird | {
"ground_truth": {
"db_id": "movie_platform",
"sql": "SELECT list_description FROM lists WHERE list_title = 'Short and pretty damn sweet'"
},
"style": "rule"
} | {
"db_id": "movie_platform",
"difficulty": "",
"evidence": "Short and pretty damn sweet is list_title; description refers to list_description;",
"index": 51,
"question": "What's the description for the movie list \"Short and pretty damn sweet\"?",
"question_id": "51",
"split": "train"
} | CREATE TABLE ratings (
movie_id integer, -- example: [1066, 1067]
rating_id integer, -- example: [15610495, 10704606]
rating_score integer, -- example: [3, 2]
rating_timestamp_utc text, -- example: ['2017-06-10 12:38:33', '2014-08-15 23:42:31']
critic text, -- example: ['I am a bit disappointed by t... |
[
{
"content": "Task Overview:\nYou are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.\n\nDatabase Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE lists_users (\n ... | bird | {
"ground_truth": {
"db_id": "movie_platform",
"sql": "SELECT list_url FROM lists WHERE list_title = 'Short and pretty damn sweet'"
},
"style": "rule"
} | {
"db_id": "movie_platform",
"difficulty": "",
"evidence": "Short and pretty damn sweet is list_title; location of the movie refers to list_url;",
"index": 52,
"question": "Where can I find the movie list \"Short and pretty damn sweet\"?",
"question_id": "52",
"split": "train"
} | CREATE TABLE lists_users (
user_id integer, -- example: [2385, 15264]
list_id integer, -- example: [192287, 192313]
list_creation_date_utc text, -- example: ['2009-12-18', '2010-01-30']
user_subscriber integer, -- example: [1, 0]
user_avatar_image_url text, -- example: ['https://assets.mubicdn.net/i... |
[
{
"content": "Task Overview:\nYou are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.\n\nDatabase Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE ratings_users (\... | bird | {
"ground_truth": {
"db_id": "movie_platform",
"sql": "SELECT COUNT(*) FROM lists WHERE list_followers > 200 AND list_update_timestamp_utc > '2010-01-01'"
},
"style": "rule"
} | {
"db_id": "movie_platform",
"difficulty": "",
"evidence": "created after 2010/1/1 refers to list_update_timestamp_utc>'2010/1/1'; over 200 followers refers to list_followers>200;",
"index": 53,
"question": "Among the movie lists created after 2010/1/1, how many of them have over 200 followers?",
"question_... | CREATE TABLE ratings_users (
user_id integer, -- example: [41579158, 68654088]
rating_date_utc text, -- example: ['2017-06-10', '2012-10-02']
user_trialist integer, -- example: [0, 1]
user_subscriber integer, -- example: [0, 1]
user_avatar_image_url text, -- example: ['https://assets.mubicdn.net/ima... |
[
{
"content": "Task Overview:\nYou are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.\n\nDatabase Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE movies (\n mo... | bird | {
"ground_truth": {
"db_id": "movie_platform",
"sql": "SELECT COUNT(*) FROM lists_users WHERE user_id = 83373278 AND user_subscriber = 1"
},
"style": "rule"
} | {
"db_id": "movie_platform",
"difficulty": "",
"evidence": "the user was a subscriber when he created the list refers to user_subscriber = 1; user 83373278 refers to user_id = 83373278;",
"index": 54,
"question": "How many movie lists were created by user 83373278 when he or she was a subscriber?",
"questio... | CREATE TABLE movies (
movie_id integer, -- example: [1, 2]
movie_title_language text, -- example: ['en']
PRIMARY KEY (movie_id)
);
CREATE TABLE lists (
user_id integer, -- example: [88260493, 45204418]
list_id integer, -- example: [1, 2]
list_title text, -- example: ['movie list', 'Movie List',... |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 16