query
stringlengths 24
325
| positive
stringlengths 1
580
| negative
stringlengths 1
580
|
---|---|---|
List all the names of the books written by Danielle Steel.
|
"Danielle Steel" is the author_name; name of books refers to title
|
in 2021 refers to order_date LIKE '2021%'
|
List all the names of the books written by Danielle Steel.
|
"Danielle Steel" is the author_name; name of books refers to title
|
country refers to country_name
|
List all the names of the books written by Danielle Steel.
|
"Danielle Steel" is the author_name; name of books refers to title
|
English book refers to language_name = 'English'; 'Carole Marsh Mysteries' is the publisher_name; average = Divide (Count(language_name = 'English'), Count(book_id))
|
List all the names of the books written by Danielle Steel.
|
"Danielle Steel" is the author_name; name of books refers to title
|
number of pages refers to num_pages; average = Divide (Sum(num_pages), Count(book_id))
|
List all the names of the books written by Danielle Steel.
|
"Danielle Steel" is the author_name; name of books refers to title
|
priority method refers to method_name = 'Priority'
|
List all the names of the books written by Danielle Steel.
|
"Danielle Steel" is the author_name; name of books refers to title
|
"British English" is the language_name of the book
|
List all the names of the books written by Danielle Steel.
|
"Danielle Steel" is the author_name; name of books refers to title
|
full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city
|
List all the names of the books written by Danielle Steel.
|
"Danielle Steel" is the author_name; name of books refers to title
|
cancelled refers to status_value = 'Cancelled'; in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'
|
List all the names of the books written by Danielle Steel.
|
"Danielle Steel" is the author_name; name of books refers to title
|
via international shipping refers to method_name = 'International'
|
List all the names of the books written by Danielle Steel.
|
"Danielle Steel" is the author_name; name of books refers to title
|
international shipping refers to method_name = 'International'; orders in 2020 refers to order_date = '2020%'; percentage = Divide (Sum(method_name = 'International'), Count(order_id)) * 100
|
In which cities are the customers of Costa Rica located?
|
"Costa Rica" is the country_name
|
books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5
|
In which cities are the customers of Costa Rica located?
|
"Costa Rica" is the country_name
|
International Standard Book Number refers to isbn13; 'The Mystery in the Rocky Mountains' is the title of the book
|
In which cities are the customers of Costa Rica located?
|
"Costa Rica" is the country_name
|
ISBN refers to isbn13;
|
In which cities are the customers of Costa Rica located?
|
"Costa Rica" is the country_name
|
"Seaward" is the title of the book; pages refers to num_pages
|
In which cities are the customers of Costa Rica located?
|
"Costa Rica" is the country_name
|
published at least 30 books refers to Count(book_id) > = 30
|
In which cities are the customers of Costa Rica located?
|
"Costa Rica" is the country_name
|
"Hirohiko Araki" is the author_name; on 6/6/2006 refers to publication_date = '2006-06-06'; which book refers to title
|
In which cities are the customers of Costa Rica located?
|
"Costa Rica" is the country_name
|
books with the most number of pages refers to Max(num_pages); published from 1990 to 2000 refers to SUBSTR(publication_date, 1, 4) BETWEEN '1990' AND '2000'; 'Free Press' is the publisher_name
|
In which cities are the customers of Costa Rica located?
|
"Costa Rica" is the country_name
|
customer refers to first_name, last_name; the most address refers to Max(count(address_id))
|
In which cities are the customers of Costa Rica located?
|
"Costa Rica" is the country_name
|
"A.R. Braunmuller" is the author_name
|
In which cities are the customers of Costa Rica located?
|
"Costa Rica" is the country_name
|
"Dallas" is the city; streets refers to street_name
|
Please list the titles of all the books in British English.
|
"British English" is the language_name of the book
|
"Abrams" is the publisher_name; author's name refers to author_name
|
Please list the titles of all the books in British English.
|
"British English" is the language_name of the book
|
customer refers to first_name, last_name; the most address refers to Max(count(address_id))
|
Please list the titles of all the books in British English.
|
"British English" is the language_name of the book
|
authors named Adam refers to author_name LIKE 'Adam'
|
Please list the titles of all the books in British English.
|
"British English" is the language_name of the book
|
"Hitchhiker's Guide To The Galaxy: The Filming of the Douglas Adams classic" is the title of the book; publisher refers to publisher_name
|
Please list the titles of all the books in British English.
|
"British English" is the language_name of the book
|
full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city
|
Please list the titles of all the books in British English.
|
"British English" is the language_name of the book
|
most order refers to Max(Count(order_id)); customer refers to first_name, last_name
|
Please list the titles of all the books in British English.
|
"British English" is the language_name of the book
|
street refers to street_name; last number of each street refers to Substr (street_number, -1)
|
Please list the titles of all the books in British English.
|
"British English" is the language_name of the book
|
books over $13 refers to price > 13; percentage = Divide (Sum (order_id where price > 13), Count (order_id)) * 100
|
Please list the titles of all the books in British English.
|
"British English" is the language_name of the book
|
"Danielle Steel" is the author_name; name of books refers to title
|
Please list the titles of all the books in British English.
|
"British English" is the language_name of the book
|
"Bite Me If You Can (Argeneau #6)" is the title of the book; most expensive price refers to Max(price)
|
Among the books published in 2004, list the name of the publisher of books with number of pages greater than 70% of the average number of pages of all books.
|
published in 2004 refers to publication_date LIKE '2004%'; books with number of pages greater than 70% of the average number of pages refers to num_pages > Multiply(Avg(num_pages), 0.7); name of publisher refers to publisher_name
|
name of publisher refers to publisher_name
|
Among the books published in 2004, list the name of the publisher of books with number of pages greater than 70% of the average number of pages of all books.
|
published in 2004 refers to publication_date LIKE '2004%'; books with number of pages greater than 70% of the average number of pages refers to num_pages > Multiply(Avg(num_pages), 0.7); name of publisher refers to publisher_name
|
full name refers to first_name, last_name; 'The Sorrows of Young Werther' is the title of the book
|
Among the books published in 2004, list the name of the publisher of books with number of pages greater than 70% of the average number of pages of all books.
|
published in 2004 refers to publication_date LIKE '2004%'; books with number of pages greater than 70% of the average number of pages refers to num_pages > Multiply(Avg(num_pages), 0.7); name of publisher refers to publisher_name
|
"Costa Rica" is the country_name
|
Among the books published in 2004, list the name of the publisher of books with number of pages greater than 70% of the average number of pages of all books.
|
published in 2004 refers to publication_date LIKE '2004%'; books with number of pages greater than 70% of the average number of pages refers to num_pages > Multiply(Avg(num_pages), 0.7); name of publisher refers to publisher_name
|
Japanese book refers to language_name = 'Japanese'; earliest published refers to Min(publication_date)
|
Among the books published in 2004, list the name of the publisher of books with number of pages greater than 70% of the average number of pages of all books.
|
published in 2004 refers to publication_date LIKE '2004%'; books with number of pages greater than 70% of the average number of pages refers to num_pages > Multiply(Avg(num_pages), 0.7); name of publisher refers to publisher_name
|
"O Xará" is the title of the book
|
Among the books published in 2004, list the name of the publisher of books with number of pages greater than 70% of the average number of pages of all books.
|
published in 2004 refers to publication_date LIKE '2004%'; books with number of pages greater than 70% of the average number of pages refers to num_pages > Multiply(Avg(num_pages), 0.7); name of publisher refers to publisher_name
|
"The Illuminati" is the title of book
|
Among the books published in 2004, list the name of the publisher of books with number of pages greater than 70% of the average number of pages of all books.
|
published in 2004 refers to publication_date LIKE '2004%'; books with number of pages greater than 70% of the average number of pages refers to num_pages > Multiply(Avg(num_pages), 0.7); name of publisher refers to publisher_name
|
complete address refers to street_number, street_name, city, country; "Lazaro Cardenas" is the city
|
Among the books published in 2004, list the name of the publisher of books with number of pages greater than 70% of the average number of pages of all books.
|
published in 2004 refers to publication_date LIKE '2004%'; books with number of pages greater than 70% of the average number of pages refers to num_pages > Multiply(Avg(num_pages), 0.7); name of publisher refers to publisher_name
|
"The Prophet" is the title of the book: who wrote refers to author_name
|
Among the books published in 2004, list the name of the publisher of books with number of pages greater than 70% of the average number of pages of all books.
|
published in 2004 refers to publication_date LIKE '2004%'; books with number of pages greater than 70% of the average number of pages refers to num_pages > Multiply(Avg(num_pages), 0.7); name of publisher refers to publisher_name
|
publisher have the word 'book' refers to publisher_name LIKE '%book%'
|
Among the books published in 2004, list the name of the publisher of books with number of pages greater than 70% of the average number of pages of all books.
|
published in 2004 refers to publication_date LIKE '2004%'; books with number of pages greater than 70% of the average number of pages refers to num_pages > Multiply(Avg(num_pages), 0.7); name of publisher refers to publisher_name
|
book purchased by less than 1 dollar refers to price < 1; books with less than 500 pages refers to num_pages < 500; greater than 500 pages refers to num_pages > 500; Difference = Subtract (Count(book_id where num_pages < 500), Count(book_id where num_pages > 500))
|
List all books published by ADV Manga.
|
"ADV Manga" is the publisher_name; books refers to title
|
number of pages refers to num_pages
|
List all books published by ADV Manga.
|
"ADV Manga" is the publisher_name; books refers to title
|
"9780763628321" is the isbn13
|
List all books published by ADV Manga.
|
"ADV Manga" is the publisher_name; books refers to title
|
full name refers to first_name, last_name; 'The Sorrows of Young Werther' is the title of the book
|
List all books published by ADV Manga.
|
"ADV Manga" is the publisher_name; books refers to title
|
"A.J. Ayer" is the author_name;
|
List all books published by ADV Manga.
|
"ADV Manga" is the publisher_name; books refers to title
|
cancelled refers to status_value = 'Cancelled'; in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'
|
List all books published by ADV Manga.
|
"ADV Manga" is the publisher_name; books refers to title
|
published in 2004 refers to publication_date LIKE '2004%'; books with number of pages greater than 70% of the average number of pages refers to num_pages > Multiply(Avg(num_pages), 0.7); name of publisher refers to publisher_name
|
List all books published by ADV Manga.
|
"ADV Manga" is the publisher_name; books refers to title
|
full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city
|
List all books published by ADV Manga.
|
"ADV Manga" is the publisher_name; books refers to title
|
"Orson Scott Card" is the author_name; released in 2001 refers to publication_date LIKE '2001%'; books refers to title
|
List all books published by ADV Manga.
|
"ADV Manga" is the publisher_name; books refers to title
|
"Anleitung zum Zickigsein" is the title of the book
|
List all books published by ADV Manga.
|
"ADV Manga" is the publisher_name; books refers to title
|
full name refers to first_name, last_name; 'Baiyin' is the city
|
How many books were published by publisher "Thomas Nelson"?
|
"Thomas Nelson" is the publisher_name
|
full name refers to first_name, last_name; 'The Sorrows of Young Werther' is the title of the book
|
How many books were published by publisher "Thomas Nelson"?
|
"Thomas Nelson" is the publisher_name
|
street refers to street_name; last number of each street refers to Substr (street_number, -1)
|
How many books were published by publisher "Thomas Nelson"?
|
"Thomas Nelson" is the publisher_name
|
oldest book refers to Min(publiation_date)
|
How many books were published by publisher "Thomas Nelson"?
|
"Thomas Nelson" is the publisher_name
|
books over $13 refers to price > 13; percentage = Divide (Sum (order_id where price > 13), Count (order_id)) * 100
|
How many books were published by publisher "Thomas Nelson"?
|
"Thomas Nelson" is the publisher_name
|
order returned refers to status_value = 'Returned'
|
How many books were published by publisher "Thomas Nelson"?
|
"Thomas Nelson" is the publisher_name
|
"Orson Scott Card" is the author_name; released in 2001 refers to publication_date LIKE '2001%'; books refers to title
|
How many books were published by publisher "Thomas Nelson"?
|
"Thomas Nelson" is the publisher_name
|
"Girls' Night In" is the title of the book; publisher is the publisher_name
|
How many books were published by publisher "Thomas Nelson"?
|
"Thomas Nelson" is the publisher_name
|
cancelled refers to status_value = 'Cancelled'; in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'
|
How many books were published by publisher "Thomas Nelson"?
|
"Thomas Nelson" is the publisher_name
|
"Ace Book" is the publisher_name; English book refers to language_name = 'English'; percentage = Divide (Count(book_id where language_name = 'English'), Count(book_id)) * 100
|
How many books were published by publisher "Thomas Nelson"?
|
"Thomas Nelson" is the publisher_name
|
complete address refers to street_number, street_name, city, country; "Lazaro Cardenas" is the city
|
Provide the email of the customers that purchased books with a price range of 3 to 5 dollars.
|
books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5
|
average spend on book orders = AVG (price)
|
Provide the email of the customers that purchased books with a price range of 3 to 5 dollars.
|
books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5
|
international shipping refers to method_name = 'International'; orders in 2020 refers to order_date = '2020%'; percentage = Divide (Sum(method_name = 'International'), Count(order_id)) * 100
|
Provide the email of the customers that purchased books with a price range of 3 to 5 dollars.
|
books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5
|
have been cancelled refers to status_value = 'cancelled'; id refers to order_id
|
Provide the email of the customers that purchased books with a price range of 3 to 5 dollars.
|
books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5
|
"O Xará" is the title of the book
|
Provide the email of the customers that purchased books with a price range of 3 to 5 dollars.
|
books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5
|
full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city
|
Provide the email of the customers that purchased books with a price range of 3 to 5 dollars.
|
books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5
|
Iran as their destination refers to country_name = 'Iran'; orders in 2022 refers to order_date LIKE '2022%'
|
Provide the email of the customers that purchased books with a price range of 3 to 5 dollars.
|
books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5
|
International Standard Book Number refers to isbn13; 'The Mystery in the Rocky Mountains' is the title of the book
|
Provide the email of the customers that purchased books with a price range of 3 to 5 dollars.
|
books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5
|
number of pages refers to num_pages
|
Provide the email of the customers that purchased books with a price range of 3 to 5 dollars.
|
books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5
|
complete address refers to street_number, street_name, city, country; "Lazaro Cardenas" is the city
|
Provide the email of the customers that purchased books with a price range of 3 to 5 dollars.
|
books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5
|
cost greater than $10 refers to price > 10; percentage = Divide (Count(book_id where price >10), Count(book_id)) * 100; full name refers to the composition of first name, lastname
|
Which customer has made the most orders? Show his/her full name.
|
most order refers to Max(Count(order_id)); customer refers to first_name, last_name
|
"Bite Me If You Can (Argeneau #6)" is the title of the book; most expensive price refers to Max(price)
|
Which customer has made the most orders? Show his/her full name.
|
most order refers to Max(Count(order_id)); customer refers to first_name, last_name
|
"Akira Watanabe" is the author_name
|
Which customer has made the most orders? Show his/her full name.
|
most order refers to Max(Count(order_id)); customer refers to first_name, last_name
|
"9780763628321" is the isbn13
|
Which customer has made the most orders? Show his/her full name.
|
most order refers to Max(Count(order_id)); customer refers to first_name, last_name
|
delivered refers to status_value = 'Delivered'; in 2021 refers to status_date LIKE '2021%'
|
Which customer has made the most orders? Show his/her full name.
|
most order refers to Max(Count(order_id)); customer refers to first_name, last_name
|
"Dallas" is the city; streets refers to street_name
|
Which customer has made the most orders? Show his/her full name.
|
most order refers to Max(Count(order_id)); customer refers to first_name, last_name
|
"Orson Scott Card" is the author_name; released in 2001 refers to publication_date LIKE '2001%'; books refers to title
|
Which customer has made the most orders? Show his/her full name.
|
most order refers to Max(Count(order_id)); customer refers to first_name, last_name
|
"Žirovnica" is the city; country refers to country_name
|
Which customer has made the most orders? Show his/her full name.
|
most order refers to Max(Count(order_id)); customer refers to first_name, last_name
|
"Hirohiko Araki" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100
|
Which customer has made the most orders? Show his/her full name.
|
most order refers to Max(Count(order_id)); customer refers to first_name, last_name
|
total price refers to Sum(price)
|
Which customer has made the most orders? Show his/her full name.
|
most order refers to Max(Count(order_id)); customer refers to first_name, last_name
|
in 2021 refers to substr(order_date, 1, 4) = '2021'; priority shipping method refers to method_name = 'Priority'
|
How much time does it take to update the status of order "2398"?
|
"2398" is the order_id; time = Subtract(strftime('%Y', status_date), strftime('%Y', order_date)) AS "year" , Subtract(strftime('%m', status_date), strftime('%m', order_date)) AS "month", Subtract (strftime('%d', status_date), strftime('%d', order_date)) AS "day"
|
"Seaward" is the title of the book; pages refers to num_pages
|
How much time does it take to update the status of order "2398"?
|
"2398" is the order_id; time = Subtract(strftime('%Y', status_date), strftime('%Y', order_date)) AS "year" , Subtract(strftime('%m', status_date), strftime('%m', order_date)) AS "month", Subtract (strftime('%d', status_date), strftime('%d', order_date)) AS "day"
|
"Hirohiko Araki" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100
|
How much time does it take to update the status of order "2398"?
|
"2398" is the order_id; time = Subtract(strftime('%Y', status_date), strftime('%Y', order_date)) AS "year" , Subtract(strftime('%m', status_date), strftime('%m', order_date)) AS "month", Subtract (strftime('%d', status_date), strftime('%d', order_date)) AS "day"
|
"Hitchhiker's Guide To The Galaxy: The Filming of the Douglas Adams classic" is the title of the book; publisher refers to publisher_name
|
How much time does it take to update the status of order "2398"?
|
"2398" is the order_id; time = Subtract(strftime('%Y', status_date), strftime('%Y', order_date)) AS "year" , Subtract(strftime('%m', status_date), strftime('%m', order_date)) AS "month", Subtract (strftime('%d', status_date), strftime('%d', order_date)) AS "day"
|
"A.J. Ayer" is the author_name;
|
How much time does it take to update the status of order "2398"?
|
"2398" is the order_id; time = Subtract(strftime('%Y', status_date), strftime('%Y', order_date)) AS "year" , Subtract(strftime('%m', status_date), strftime('%m', order_date)) AS "month", Subtract (strftime('%d', status_date), strftime('%d', order_date)) AS "day"
|
total price refers to Sum(price)
|
How much time does it take to update the status of order "2398"?
|
"2398" is the order_id; time = Subtract(strftime('%Y', status_date), strftime('%Y', order_date)) AS "year" , Subtract(strftime('%m', status_date), strftime('%m', order_date)) AS "month", Subtract (strftime('%d', status_date), strftime('%d', order_date)) AS "day"
|
"9780763628321" is the isbn13
|
How much time does it take to update the status of order "2398"?
|
"2398" is the order_id; time = Subtract(strftime('%Y', status_date), strftime('%Y', order_date)) AS "year" , Subtract(strftime('%m', status_date), strftime('%m', order_date)) AS "month", Subtract (strftime('%d', status_date), strftime('%d', order_date)) AS "day"
|
shipping cost refers to cost; ordered in 2022 refers to order_date LIKE '2022%'
|
How much time does it take to update the status of order "2398"?
|
"2398" is the order_id; time = Subtract(strftime('%Y', status_date), strftime('%Y', order_date)) AS "year" , Subtract(strftime('%m', status_date), strftime('%m', order_date)) AS "month", Subtract (strftime('%d', status_date), strftime('%d', order_date)) AS "day"
|
most order refers to Max(Count(order_id)); customer refers to first_name, last_name
|
How much time does it take to update the status of order "2398"?
|
"2398" is the order_id; time = Subtract(strftime('%Y', status_date), strftime('%Y', order_date)) AS "year" , Subtract(strftime('%m', status_date), strftime('%m', order_date)) AS "month", Subtract (strftime('%d', status_date), strftime('%d', order_date)) AS "day"
|
"Orson Scott Card" is the author_name; released in 2001 refers to publication_date LIKE '2001%'; books refers to title
|
How much time does it take to update the status of order "2398"?
|
"2398" is the order_id; time = Subtract(strftime('%Y', status_date), strftime('%Y', order_date)) AS "year" , Subtract(strftime('%m', status_date), strftime('%m', order_date)) AS "month", Subtract (strftime('%d', status_date), strftime('%d', order_date)) AS "day"
|
street refers to street_name; last number of each street refers to Substr (street_number, -1)
|
Provide the ISBN and price of the book with book ID 7160.
|
ISBN refers to isbn13;
|
"The Prophet" is the title of the book: who wrote refers to author_name
|
Provide the ISBN and price of the book with book ID 7160.
|
ISBN refers to isbn13;
|
"Zilpha Keatley Snyder" is the author_name; average number of book pages refers to AVG(num_pages)
|
Provide the ISBN and price of the book with book ID 7160.
|
ISBN refers to isbn13;
|
publisher have the word 'book' refers to publisher_name LIKE '%book%'
|
Provide the ISBN and price of the book with book ID 7160.
|
ISBN refers to isbn13;
|
book with cheapest price refers to Min(price); who order means name of customer which refers to first_name, last_name
|
Provide the ISBN and price of the book with book ID 7160.
|
ISBN refers to isbn13;
|
International Standard Book Number refers to isbn13; 'The Mystery in the Rocky Mountains' is the title of the book
|
Provide the ISBN and price of the book with book ID 7160.
|
ISBN refers to isbn13;
|
"Akira Watanabe" is the author_name
|
Provide the ISBN and price of the book with book ID 7160.
|
ISBN refers to isbn13;
|
under 300 pages refers to num_pages < 300; 'HarperCollins Publishers" is the publisher_name
|
Provide the ISBN and price of the book with book ID 7160.
|
ISBN refers to isbn13;
|
full name refers to first_name, last_name; 'Baiyin' is the city
|
Provide the ISBN and price of the book with book ID 7160.
|
ISBN refers to isbn13;
|
"El plan infinito" is the title of the book; language refers to language_name
|
Provide the ISBN and price of the book with book ID 7160.
|
ISBN refers to isbn13;
|
Japanese book refers to language_name = 'Japanese'; earliest published refers to Min(publication_date)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.