BIRD-Synthetic
Collection
Synthetically rephrased version of BIRD dataset • 3 items • Updated
index int64 0 9.42k | prompt stringlengths 1.02k 31.6k | gold stringlengths 48 888 | response stringlengths 48 888 | raw dict | db_schema stringlengths 349 30.9k |
|---|---|---|---|---|---|
0 | [INST]
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction
You are an assistant that is an expert in generating SQLite queries. Below is Database Schema with relevant schema information, Business C... | SELECT m.movie_title
FROM movies AS m
WHERE m.movie_release_year = '1945'
ORDER BY m.movie_popularity DESC
LIMIT 1 <SQL-END> | SELECT m.movie_title
FROM movies AS m
WHERE m.movie_release_year = '1945'
ORDER BY m.movie_popularity DESC
LIMIT 1 <SQL-END> | {
"SQL": "SELECT movie_title FROM movies WHERE movie_release_year = 1945 ORDER BY movie_popularity DESC LIMIT 1",
"db_id": "movie_platform",
"difficulty": "",
"evidence": "released in the year 1945 refers to movie_release_year = 1945;",
"question": "Name movie titles released in year 1945. Sort the listing by... | CREATE TABLE "movies"
(
movie_id INTEGER not null
primary key,
movie_title TEXT,
movie_release_year INTEGER,
movie_url TEXT,
movie_title_language TEXT,
movie_popularity INTEGER,
movie_image_url TEXT,
director_id TEXT,
direct... |
1 | [INST]
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction
You are an assistant that is an expert in generating SQLite queries. Below is Database Schema with relevant schema information, Business C... | SELECT m.movie_title,
m.movie_release_year,
m.director_name
FROM movies AS m
WHERE m.movie_popularity =
(SELECT MAX(movie_popularity)
FROM movies) <SQL-END> | SELECT m.movie_title,
m.movie_release_year,
m.director_name
FROM movies AS m
WHERE m.movie_popularity =
(SELECT MAX(movie_popularity)
FROM movies) <SQL-END> | {
"SQL": "SELECT movie_title, movie_release_year, director_name FROM movies ORDER BY movie_popularity DESC LIMIT 1 ",
"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 ... | CREATE TABLE "movies"
(
movie_id INTEGER not null
primary key,
movie_title TEXT,
movie_release_year INTEGER,
movie_url TEXT,
movie_title_language TEXT,
movie_popularity INTEGER,
movie_image_url TEXT,
director_id TEXT,
direct... |
2 | [INST]
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction
You are an assistant that is an expert in generating SQLite queries. Below is Database Schema with relevant schema information, Business C... | SELECT m.movie_title,
m.movie_release_year
FROM movies m
WHERE LENGTH(m.movie_title) =
(SELECT MAX(LENGTH(movie_title))
FROM movies) <SQL-END> | SELECT m.movie_title,
m.movie_release_year
FROM movies m
WHERE LENGTH(m.movie_title) =
(SELECT MAX(LENGTH(movie_title))
FROM movies) <SQL-END> | {
"SQL": "SELECT movie_title, movie_release_year FROM movies ORDER BY LENGTH(movie_popularity) DESC LIMIT 1",
"db_id": "movie_platform",
"difficulty": "",
"evidence": "longest movie title refers to MAX(LENGTH(movie_title)); when it was released refers to movie_release_year;",
"question": "What is the name of ... | CREATE TABLE "movies"
(
movie_id INTEGER not null
primary key,
movie_title TEXT,
movie_release_year INTEGER,
movie_url TEXT,
movie_title_language TEXT,
movie_popularity INTEGER,
movie_image_url TEXT,
director_id TEXT,
direct... |
3 | [INST]
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction
You are an assistant that is an expert in generating SQLite queries. Below is Database Schema with relevant schema information, Business C... | SELECT m.movie_title
FROM movies AS m
WHERE m.movie_title IN
(SELECT movie_title
FROM movies
GROUP BY movie_title
HAVING COUNT(movie_title) =
(SELECT MAX(COUNT)
FROM
(SELECT COUNT(movie_title) AS COUNT
FROM movies
GROUP BY movie_title)))
LIMIT 1 <SQL-END... | SELECT m.movie_title
FROM movies AS m
WHERE m.movie_title IN
(SELECT movie_title
FROM movies
GROUP BY movie_title
HAVING COUNT(movie_title) =
(SELECT MAX(COUNT)
FROM
(SELECT COUNT(movie_title) AS COUNT
FROM movies
GROUP BY movie_title)))
LIMIT 1 <SQL-END... | {
"SQL": "SELECT movie_title FROM movies GROUP BY movie_title ORDER BY COUNT(movie_title) DESC LIMIT 1",
"db_id": "movie_platform",
"difficulty": "",
"evidence": "movie with the most rating refers to MAX(SUM(rating_score));",
"question": "Name the movie with the most ratings.",
"question_id": 0
} | CREATE TABLE ratings
(
movie_id INTEGER,
rating_id INTEGER,
rating_url TEXT,
rating_score INTEGER,
rating_timestamp_utc TEXT,
critic TEXT,
critic_likes INTEGER,
critic_comments INTEGER,
user_i... |
6 | [INST]
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction
You are an assistant that is an expert in generating SQLite queries. Below is Database Schema with relevant schema information, Business C... | SELECT ru.user_avatar_image_url,
ru.rating_date_utc
FROM ratings_users ru
INNER JOIN ratings r ON r.user_id = ru.user_id
INNER JOIN movies m ON m.movie_id = r.movie_id
WHERE ru.user_id = 41579158
ORDER BY ru.rating_date_utc DESC
LIMIT 1 <SQL-END> | SELECT ru.user_avatar_image_url,
ru.rating_date_utc
FROM ratings_users ru
INNER JOIN ratings r ON r.user_id = ru.user_id
INNER JOIN movies m ON m.movie_id = r.movie_id
WHERE ru.user_id = 41579158
ORDER BY ru.rating_date_utc DESC
LIMIT 1 <SQL-END> | {
"SQL": "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",
"db_id": "movie_platform",
"difficulty": "",
"evi... | CREATE TABLE "ratings_users"
(
user_id INTEGER
references lists_users (user_id),
rating_date_utc TEXT,
user_trialist INTEGER,
user_subscriber INTEGER,
user_avatar_image_url TEXT,
user_cover_image_url TEXT,
user_eligible_for_trial INTEGER... |
8 | [INST]
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction
You are an assistant that is an expert in generating SQLite queries. Below is Database Schema with relevant schema information, Business C... | SELECT movie_title
FROM movies
WHERE movie_id IN
(SELECT movie_id
FROM ratings
WHERE user_trialist = 1
AND strftime('%Y-%m', rating_timestamp_utc) = '2020-04' ) <SQL-END> | SELECT movie_title
FROM movies
WHERE movie_id IN
(SELECT movie_id
FROM ratings
WHERE user_trialist = 1
AND strftime('%Y-%m', rating_timestamp_utc) = '2020-04' ) <SQL-END> | {
"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%'",
"db_id": "movie_platform",
"difficulty": "",
"evidence": "movie title rated in April 2020 refers to rating_timestamp_utc LIKE '%2020-04... | CREATE TABLE "ratings_users"
(
user_id INTEGER
references lists_users (user_id),
rating_date_utc TEXT,
user_trialist INTEGER,
user_subscriber INTEGER,
user_avatar_image_url TEXT,
user_cover_image_url TEXT,
user_eligible_for_trial INTEGER... |
9 | [INST]
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction
You are an assistant that is an expert in generating SQLite queries. Below is Database Schema with relevant schema information, Business C... | SELECT user_id
FROM ratings
WHERE movie_id IN
(SELECT movie_id
FROM movies
WHERE movie_title = 'Love Will Tear Us Apart')
AND rating_score = 1 <SQL-END> | SELECT user_id
FROM ratings
WHERE movie_id IN
(SELECT movie_id
FROM movies
WHERE movie_title = 'Love Will Tear Us Apart')
AND rating_score = 1 <SQL-END> | {
"SQL": "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",
"db_id": "movie_platform",
"difficulty": "",
"evidence": "worst rating refers to rating_score = 1;",
"question": "List ther users who g... | CREATE TABLE ratings
(
movie_id INTEGER,
rating_id INTEGER,
rating_url TEXT,
rating_score INTEGER,
rating_timestamp_utc TEXT,
critic TEXT,
critic_likes INTEGER,
critic_comments INTEGER,
user_i... |
10 | [INST]
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction
You are an assistant that is an expert in generating SQLite queries. Below is Database Schema with relevant schema information, Business C... | SELECT DISTINCT movies.movie_title,
movies.movie_popularity
FROM movies
INNER JOIN ratings ON movies.movie_id = ratings.movie_id
WHERE ratings.rating_score = 5 <SQL-END> | SELECT DISTINCT movies.movie_title,
movies.movie_popularity
FROM movies
INNER JOIN ratings ON movies.movie_id = ratings.movie_id
WHERE ratings.rating_score = 5 <SQL-END> | {
"SQL": "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",
"db_id": "movie_platform",
"difficulty": "",
"evidence": "best rating score refers to rating_score = 5; number of Mubi user who loves the movie refers... | CREATE TABLE ratings
(
movie_id INTEGER,
rating_id INTEGER,
rating_url TEXT,
rating_score INTEGER,
rating_timestamp_utc TEXT,
critic TEXT,
critic_likes INTEGER,
critic_comments INTEGER,
user_i... |
11 | [INST]
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction
You are an assistant that is an expert in generating SQLite queries. Below is Database Schema with relevant schema information, Business C... | SELECT movie_title
FROM movies
WHERE movie_id IN
(SELECT movie_id
FROM ratings
WHERE rating_timestamp_utc LIKE '2020%'
AND CAST(SUBSTRING(rating_timestamp_utc, 6, 2) AS INTEGER) > 4) <SQL-END> | SELECT movie_title
FROM movies
WHERE movie_id IN
(SELECT movie_id
FROM ratings
WHERE rating_timestamp_utc LIKE '2020%'
AND CAST(SUBSTRING(rating_timestamp_utc, 6, 2) AS INTEGER) > 4) <SQL-END> | {
"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",
"db_id": "movie_platform",
"difficulty": "",
"evidence": "ratings in year 2... | CREATE TABLE ratings
(
movie_id INTEGER,
rating_id INTEGER,
rating_url TEXT,
rating_score INTEGER,
rating_timestamp_utc TEXT,
critic TEXT,
critic_likes INTEGER,
critic_comments INTEGER,
user_i... |
12 | [INST]
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction
You are an assistant that is an expert in generating SQLite queries. Below is Database Schema with relevant schema information, Business C... | SELECT m.movie_title,
r.user_id,
r.rating_score,
r.critic
FROM movies AS m
LEFT JOIN ratings AS r ON m.movie_id = r.movie_id
WHERE r.critic IS NOT NULL <SQL-END> | SELECT m.movie_title,
r.user_id,
r.rating_score,
r.critic
FROM movies AS m
LEFT JOIN ratings AS r ON m.movie_id = r.movie_id
WHERE r.critic IS NOT NULL <SQL-END> | {
"SQL": "SELECT T2.movie_title, T1.user_id, T1.rating_score, T1.critic FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.critic IS NOT NULL",
"db_id": "movie_platform",
"difficulty": "",
"evidence": "movies where users left a critic refers to critic IS NOT NULL; critic comments r... | CREATE TABLE ratings
(
movie_id INTEGER,
rating_id INTEGER,
rating_url TEXT,
rating_score INTEGER,
rating_timestamp_utc TEXT,
critic TEXT,
critic_likes INTEGER,
critic_comments INTEGER,
user_i... |
15 | [INST]
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction
You are an assistant that is an expert in generating SQLite queries. Below is Database Schema with relevant schema information, Business C... | SELECT m.director_name
FROM movies AS m
WHERE m.movie_title LIKE 'Sex, Drink and Bloodshed' <SQL-END> | SELECT m.director_name
FROM movies AS m
WHERE m.movie_title LIKE 'Sex, Drink and Bloodshed' <SQL-END> | {
"SQL": "SELECT director_name FROM movies WHERE movie_title = 'Sex, Drink and Bloodshed'",
"db_id": "movie_platform",
"difficulty": "",
"evidence": "Sex, Drink and Bloodshed refers to movie title = 'Sex, Drink and Bloodshed';",
"question": "Who is the director of the movie Sex, Drink and Bloodshed?",
"ques... | CREATE TABLE "movies"
(
movie_id INTEGER not null
primary key,
movie_title TEXT,
movie_release_year INTEGER,
movie_url TEXT,
movie_title_language TEXT,
movie_popularity INTEGER,
movie_image_url TEXT,
director_id TEXT,
direct... |
16 | [INST]
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction
You are an assistant that is an expert in generating SQLite queries. Below is Database Schema with relevant schema information, Business C... | SELECT list_title
FROM
(SELECT list_title,
RANK() OVER (
ORDER BY list_followers DESC) rank
FROM LISTS)
WHERE rank = 1 <SQL-END> | SELECT list_title
FROM
(SELECT list_title,
RANK() OVER (
ORDER BY list_followers DESC) rank
FROM LISTS)
WHERE rank = 1 <SQL-END> | {
"SQL": "SELECT list_title FROM lists ORDER BY list_followers DESC LIMIT 1",
"db_id": "movie_platform",
"difficulty": "",
"evidence": "most followed list refers to MAX(list_followers);",
"question": "What is the name of the most followed list?",
"question_id": 0
} | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... |
17 | [INST]
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction
You are an assistant that is an expert in generating SQLite queries. Below is Database Schema with relevant schema information, Business C... | SELECT list_url
FROM LISTS
WHERE strftime('%Y', list_update_timestamp_utc) = '2012'
AND list_followers >= 1
AND list_followers <= 2
ORDER BY list_update_timestamp_utc DESC
LIMIT 1 <SQL-END> | SELECT list_url
FROM LISTS
WHERE strftime('%Y', list_update_timestamp_utc) = '2012'
AND list_followers >= 1
AND list_followers <= 2
ORDER BY list_update_timestamp_utc DESC
LIMIT 1 <SQL-END> | {
"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",
"db_id": "movie_platform",
"difficulty": "",
"evidence": "URL to the list page on Mubi refers to list_url; list_followers = 1 OR list_followers =... | CREATE TABLE lists_users
(
user_id INTEGER not null ,
list_id INTEGER not null ,
list_update_date_utc TEXT,
list_creation_date_utc TEXT,
user_trialist INTEGER,
user_subscriber INTEGER,
user_avatar_image_url TEXT,
user_cover_image_ur... |
18 | [INST]
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction
You are an assistant that is an expert in generating SQLite queries. Below is Database Schema with relevant schema information, Business C... | SELECT l.list_id
FROM lists_users AS l
WHERE l.user_id = 85981819
GROUP BY l.list_creation_date_utc
HAVING MIN(l.list_creation_date_utc) <SQL-END> | SELECT l.list_id
FROM lists_users AS l
WHERE l.user_id = 85981819
GROUP BY l.list_creation_date_utc
HAVING MIN(l.list_creation_date_utc) <SQL-END> | {
"SQL": "SELECT list_id FROM lists_users WHERE user_id = 85981819 ORDER BY list_creation_date_utc ASC LIMIT 1",
"db_id": "movie_platform",
"difficulty": "",
"evidence": "first created list refers to oldest list_creation_date_utc;",
"question": "What is the list ID that was first created by user 85981819?",
... | CREATE TABLE lists_users
(
user_id INTEGER not null ,
list_id INTEGER not null ,
list_update_date_utc TEXT,
list_creation_date_utc TEXT,
user_trialist INTEGER,
user_subscriber INTEGER,
user_avatar_image_url TEXT,
user_cover_image_ur... |
20 | [INST]
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction
You are an assistant that is an expert in generating SQLite queries. Below is Database Schema with relevant schema information, Business C... | SELECT m.movie_title,
m.movie_popularity
FROM movies AS m
WHERE m.movie_release_year = 2021
AND m.director_name = 'Steven Spielberg' <SQL-END> | SELECT m.movie_title,
m.movie_popularity
FROM movies AS m
WHERE m.movie_release_year = 2021
AND m.director_name = 'Steven Spielberg' <SQL-END> | {
"SQL": "SELECT movie_title, movie_popularity FROM movies WHERE movie_release_year = 2021 AND director_name = 'Steven Spielberg'",
"db_id": "movie_platform",
"difficulty": "",
"evidence": "movie released in 2021 refers to movie_release_year = 2021; popularity refers to movie_popularity;",
"question": "What a... | CREATE TABLE "movies"
(
movie_id INTEGER not null
primary key,
movie_title TEXT,
movie_release_year INTEGER,
movie_url TEXT,
movie_title_language TEXT,
movie_popularity INTEGER,
movie_image_url TEXT,
director_id TEXT,
direct... |
22 | [INST]
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction
You are an assistant that is an expert in generating SQLite queries. Below is Database Schema with relevant schema information, Business C... | SELECT user_id
FROM lists_users
WHERE user_subscriber = 1
GROUP BY user_id
HAVING (MAX(CAST(SUBSTR(list_creation_date_utc, 1, 4) AS INTEGER)) - MIN(CAST(SUBSTR(list_creation_date_utc, 1, 4) AS INTEGER))) >= 10 <SQL-END> | SELECT user_id
FROM lists_users
WHERE user_subscriber = 1
GROUP BY user_id
HAVING (MAX(CAST(SUBSTR(list_creation_date_utc, 1, 4) AS INTEGER)) - MIN(CAST(SUBSTR(list_creation_date_utc, 1, 4) AS INTEGER))) >= 10 <SQL-END> | {
"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",
"db_id": "movie_platform",
"difficulty": "",
"evidence": "user was a subscriber when he created the list refers to user_subscr... | CREATE TABLE lists_users
(
user_id INTEGER not null ,
list_id INTEGER not null ,
list_update_date_utc TEXT,
list_creation_date_utc TEXT,
user_trialist INTEGER,
user_subscriber INTEGER,
user_avatar_image_url TEXT,
user_cover_image_ur... |
24 | [INST]
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction
You are an assistant that is an expert in generating SQLite queries. Below is Database Schema with relevant schema information, Business C... | SELECT lists_users.user_eligible_for_trial,
LISTS.list_followers
FROM LISTS
JOIN lists_users ON lists_users.user_id = LISTS.user_id
AND lists_users.list_id = LISTS.list_id
WHERE LISTS.list_title = 'World War 2 and Kids' <SQL-END> | SELECT lists_users.user_eligible_for_trial,
LISTS.list_followers
FROM LISTS
JOIN lists_users ON lists_users.user_id = LISTS.user_id
AND lists_users.list_id = LISTS.list_id
WHERE LISTS.list_title = 'World War 2 and Kids' <SQL-END> | {
"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'",
"db_id": "movie_platform",
"difficulty": "",
"evidence": "user was eligible for trial when he created... | CREATE TABLE lists_users
(
user_id INTEGER not null ,
list_id INTEGER not null ,
list_update_date_utc TEXT,
list_creation_date_utc TEXT,
user_trialist INTEGER,
user_subscriber INTEGER,
user_avatar_image_url TEXT,
user_cover_image_ur... |
26 | [INST]
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction
You are an assistant that is an expert in generating SQLite queries. Below is Database Schema with relevant schema information, Business C... | SELECT movies.director_url
FROM movies
WHERE movies.movie_id IN
(SELECT ratings.movie_id
FROM ratings
WHERE ratings.user_id = 2452551
AND ratings.critic_likes = 39 ) <SQL-END> | SELECT movies.director_url
FROM movies
WHERE movies.movie_id IN
(SELECT ratings.movie_id
FROM ratings
WHERE ratings.user_id = 2452551
AND ratings.critic_likes = 39 ) <SQL-END> | {
"SQL": "SELECT T2.director_url FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.user_id = 2452551 AND T1.critic_likes = 39",
"db_id": "movie_platform",
"difficulty": "",
"evidence": "URL to the movie director page on Mubi refers to director_url; likes refers to critic_likes; cr... | CREATE TABLE ratings
(
movie_id INTEGER,
rating_id INTEGER,
rating_url TEXT,
rating_score INTEGER,
rating_timestamp_utc TEXT,
critic TEXT,
critic_likes INTEGER,
critic_comments INTEGER,
user_i... |
29 | [INST]
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction
You are an assistant that is an expert in generating SQLite queries. Below is Database Schema with relevant schema information, Business C... | SELECT movie_title
FROM movies
WHERE movie_id =
(SELECT movie_id
FROM ratings
ORDER BY critic_likes DESC
LIMIT 1) <SQL-END> | SELECT movie_title
FROM movies
WHERE movie_id =
(SELECT movie_id
FROM ratings
ORDER BY critic_likes DESC
LIMIT 1) <SQL-END> | {
"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_likes DESC LIMIT 1",
"db_id": "movie_platform",
"difficulty": "",
"evidence": "number of likes received refers to critic likes; received the highest number of likes refers to MAX(critic_lik... | CREATE TABLE ratings
(
movie_id INTEGER,
rating_id INTEGER,
rating_url TEXT,
rating_score INTEGER,
rating_timestamp_utc TEXT,
critic TEXT,
critic_likes INTEGER,
critic_comments INTEGER,
user_i... |
32 | [INST]
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction
You are an assistant that is an expert in generating SQLite queries. Below is Database Schema with relevant schema information, Business C... | SELECT ratings_users.user_avatar_image_url
FROM ratings_users
JOIN ratings ON ratings_users.user_id = ratings.user_id
WHERE ratings.user_id = 1103
AND ratings.rating_score = 5
AND ratings_users.rating_date_utc = '2020-04-19' <SQL-END> | SELECT ratings_users.user_avatar_image_url
FROM ratings_users
JOIN ratings ON ratings_users.user_id = ratings.user_id
WHERE ratings.user_id = 1103
AND ratings.rating_score = 5
AND ratings_users.rating_date_utc = '2020-04-19' <SQL-END> | {
"SQL": "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'",
"db_id": "movie_platform",
"difficulty": "",
"evidence": "URL to the user profile image on Mubi refers to u... | CREATE TABLE "ratings_users"
(
user_id INTEGER
references lists_users (user_id),
rating_date_utc TEXT,
user_trialist INTEGER,
user_subscriber INTEGER,
user_avatar_image_url TEXT,
user_cover_image_url TEXT,
user_eligible_for_trial INTEGER... |
34 | [INST]
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction
You are an assistant that is an expert in generating SQLite queries. Below is Database Schema with relevant schema information, Business C... | SELECT m.movie_release_year,
m.movie_title
FROM movies m
JOIN ratings r ON m.movie_id = r.movie_id
WHERE m.movie_release_year IN
(SELECT movie_release_year
FROM movies
GROUP BY movie_release_year
ORDER BY COUNT(*) ASC
LIMIT 1)
AND r.rating_score = 1 <SQL-END> | SELECT m.movie_release_year,
m.movie_title
FROM movies m
JOIN ratings r ON m.movie_id = r.movie_id
WHERE m.movie_release_year IN
(SELECT movie_release_year
FROM movies
GROUP BY movie_release_year
ORDER BY COUNT(*) ASC
LIMIT 1)
AND r.rating_score = 1 <SQL-END> | {
"SQL": "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",
"db_id": "movie_... | CREATE TABLE ratings
(
movie_id INTEGER,
rating_id INTEGER,
rating_url TEXT,
rating_score INTEGER,
rating_timestamp_utc TEXT,
critic TEXT,
critic_likes INTEGER,
critic_comments INTEGER,
user_i... |
38 | [INST]
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction
You are an assistant that is an expert in generating SQLite queries. Below is Database Schema with relevant schema information, Business C... | SELECT T1.list_followers
FROM LISTS AS T1
JOIN lists_users AS T2 ON T1.user_id = T2.user_id
WHERE T2.list_creation_date_utc >= '2016-02-01'
AND T2.list_creation_date_utc <= '2016-02-29'
AND T2.user_eligible_for_trial = 1
AND T1.list_id = T2.list_id <SQL-END> | SELECT T1.list_followers
FROM LISTS AS T1
JOIN lists_users AS T2 ON T1.user_id = T2.user_id
WHERE T2.list_creation_date_utc >= '2016-02-01'
AND T2.list_creation_date_utc <= '2016-02-29'
AND T2.user_eligible_for_trial = 1
AND T1.list_id = T2.list_id <SQL-END> | {
"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",
"db_id": "movie_platform",
"difficulty": "",
"evidence": "created a l... | CREATE TABLE lists_users
(
user_id INTEGER not null ,
list_id INTEGER not null ,
list_update_date_utc TEXT,
list_creation_date_utc TEXT,
user_trialist INTEGER,
user_subscriber INTEGER,
user_avatar_image_url TEXT,
user_cover_image_ur... |
39 | [INST]
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction
You are an assistant that is an expert in generating SQLite queries. Below is Database Schema with relevant schema information, Business C... | SELECT rating_url
FROM ratings
WHERE user_id = 22030372
AND rating_score = 5
AND movie_id IN
(SELECT movie_id
FROM movies
WHERE movie_title = 'Riff-Raff' ) <SQL-END> | SELECT rating_url
FROM ratings
WHERE user_id = 22030372
AND rating_score = 5
AND movie_id IN
(SELECT movie_id
FROM movies
WHERE movie_title = 'Riff-Raff' ) <SQL-END> | {
"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'",
"db_id": "movie_platform",
"difficulty": "",
"evidence": "URL refer to rating_url; user 22030372 refer to user_id",
"que... | CREATE TABLE ratings
(
movie_id INTEGER,
rating_id INTEGER,
rating_url TEXT,
rating_score INTEGER,
rating_timestamp_utc TEXT,
critic TEXT,
critic_likes INTEGER,
critic_comments INTEGER,
user_i... |
42 | [INST]
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction
You are an assistant that is an expert in generating SQLite queries. Below is Database Schema with relevant schema information, Business C... | SELECT critic_likes
FROM ratings
WHERE movie_id IN
(SELECT movie_id
FROM movies
WHERE movie_title = 'Apocalypse Now' )
AND user_trialist = 0
AND rating_score = 5 <SQL-END> | SELECT critic_likes
FROM ratings
WHERE movie_id IN
(SELECT movie_id
FROM movies
WHERE movie_title = 'Apocalypse Now' )
AND user_trialist = 0
AND rating_score = 5 <SQL-END> | {
"SQL": "SELECT T2.critic_likes FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T2.user_trialist = 0 AND T2.rating_score = 5 AND T1.movie_title = 'Apocalypse Now'",
"db_id": "movie_platform",
"difficulty": "",
"evidence": "Apocalypse Now refer to movie_title; rating score refer to... | CREATE TABLE ratings
(
movie_id INTEGER,
rating_id INTEGER,
rating_url TEXT,
rating_score INTEGER,
rating_timestamp_utc TEXT,
critic TEXT,
critic_likes INTEGER,
critic_comments INTEGER,
user_i... |
46 | [INST]
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction
You are an assistant that is an expert in generating SQLite queries. Below is Database Schema with relevant schema information, Business C... | SELECT rating_url
FROM ratings
WHERE user_id = 45579900
AND critic_likes = 20
AND movie_id IN
(SELECT movie_id
FROM movies
WHERE movie_title = 'The Vertical Ray of the Sun') <SQL-END> | SELECT rating_url
FROM ratings
WHERE user_id = 45579900
AND critic_likes = 20
AND movie_id IN
(SELECT movie_id
FROM movies
WHERE movie_title = 'The Vertical Ray of the Sun') <SQL-END> | {
"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 = 45579900 AND T1.movie_title = 'The Vertical Ray of the Sun' AND T2.critic_likes = 20",
"db_id": "movie_platform",
"difficulty": "",
"evidence": "URL refer to rating_url; 20 likes refer to cr... | CREATE TABLE ratings
(
movie_id INTEGER,
rating_id INTEGER,
rating_url TEXT,
rating_score INTEGER,
rating_timestamp_utc TEXT,
critic TEXT,
critic_likes INTEGER,
critic_comments INTEGER,
user_i... |
48 | [INST]
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction
You are an assistant that is an expert in generating SQLite queries. Below is Database Schema with relevant schema information, Business C... | SELECT m.movie_title
FROM ratings AS r
JOIN movies AS m ON m.movie_id = r.movie_id
JOIN LISTS AS l ON l.user_id = r.user_id
WHERE l.list_title = '100 Greatest Living American Filmmakers'
AND r.rating_timestamp_utc >= '2013-01-01'
AND r.rating_timestamp_utc <= '2013-12-31' <SQL-END> | SELECT m.movie_title
FROM ratings AS r
JOIN movies AS m ON m.movie_id = r.movie_id
JOIN LISTS AS l ON l.user_id = r.user_id
WHERE l.list_title = '100 Greatest Living American Filmmakers'
AND r.rating_timestamp_utc >= '2013-01-01'
AND r.rating_timestamp_utc <= '2013-12-31' <SQL-END> | {
"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 T1.rating_timestamp_utc BETWEEN '2013-01-01' AND '2013-12-31' AND T3.list_title = '100 Greatest Living American Filmmakers'",
"db_id": "movie_platform",
"... | CREATE TABLE ratings
(
movie_id INTEGER,
rating_id INTEGER,
rating_url TEXT,
rating_score INTEGER,
rating_timestamp_utc TEXT,
critic TEXT,
critic_likes INTEGER,
critic_comments INTEGER,
user_i... |
51 | [INST]
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction
You are an assistant that is an expert in generating SQLite queries. Below is Database Schema with relevant schema information, Business C... | SELECT l.list_description
FROM LISTS AS l
WHERE l.list_title = 'Short and pretty damn sweet' <SQL-END> | SELECT l.list_description
FROM LISTS AS l
WHERE l.list_title = 'Short and pretty damn sweet' <SQL-END> | {
"SQL": "SELECT list_description FROM lists WHERE list_title = 'Short and pretty damn sweet'",
"db_id": "movie_platform",
"difficulty": "",
"evidence": "Short and pretty damn sweet is list_title; description refers to list_description;",
"question": "What's the description for the movie list \"Short and pret... | CREATE TABLE "lists"
(
user_id INTEGER
references lists_users (user_id),
list_id INTEGER not null
primary key,
list_title TEXT,
list_movie_number INTEGER,
list_update_timestamp_utc TEXT,
list_creation_timestamp_... |