query
stringlengths 24
325
| positive
stringlengths 1
580
| negative_1
stringlengths 6
580
| negative_2
stringlengths 1
576
| negative_3
stringlengths 1
576
| negative_4
stringlengths 1
580
| negative_5
stringlengths 1
580
| negative_6
stringlengths 1
580
| negative_7
stringlengths 5
576
| negative_8
stringlengths 1
576
| negative_9
stringlengths 1
580
| negative_10
stringlengths 1
580
|
---|---|---|---|---|---|---|---|---|---|---|---|
How many orders did Marcelia Goering place in 2021 that uses the Priority Shipping method?
|
in 2021 refers to substr(order_date, 1, 4) = '2021'; priority shipping method refers to method_name = 'Priority'
|
books over $13 refers to price > 13; percentage = Divide (Sum (order_id where price > 13), Count (order_id)) * 100
|
published at least 30 books refers to Count(book_id) > = 30
|
International Standard Book Number refers to isbn13; 'The Mystery in the Rocky Mountains' is the title of the book
|
via international shipping refers to method_name = 'International'
|
"Girls' Night In" is the title of the book; publisher is the publisher_name
|
full name refers to first_name, last_name; 'The Sorrows of Young Werther' is the title of the book
|
shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100
|
published in 1995 refers to publication_date LIKE '1995%'; ; list of book refers to title
|
"Kensington" is the publisher_name;
|
publisher have the word 'book' refers to publisher_name LIKE '%book%'
|
What is the email of the customers who place their orders with priority method?
|
priority method refers to method_name = 'Priority'
|
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))
|
cancelled refers to status_value = 'Cancelled'; in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'
|
country refers to country_name
|
most common domain for the email refers to Max(Count(SUBSTR(email, CHARINDEX('@', email) + 1, length(email) - charindex('@', email))))
|
"Hitchhiker's Guide To The Galaxy: The Filming of the Douglas Adams classic" is the title of the book; publisher refers to publisher_name
|
books refers to title; the most orders refers to Max(Count(order_id))
|
shipping method preferred the most by customers refers to method_id where Max(Count(method_id)); which shipping method refers to method_name
|
books over $13 refers to price > 13; percentage = Divide (Sum (order_id where price > 13), Count (order_id)) * 100
|
"Spanish" is the language_name; 'Alfaguara' is the publisher_name
|
in Japanese refers to language_name = 'Japanese
|
Among all orders updated in 2022, identify the percentage that has been returned.
|
order updated in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'; has been returned refers to status_value = 'Returned'; percentage = Divide (Count(status_value = 'Returned'), Count(status_value)) * 100
|
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
|
"The Illuminati" is the title of book
|
author named 'George' refers to author_name = 'George%'
|
customer refers to first_name, last_name; the most address refers to Max(count(address_id))
|
complete address refers to street_number, street_name, city, country; "Lazaro Cardenas" is the city
|
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
|
country refers to country_name
|
publisher refers to publisher_name; oldest book refers to Min(publication_date)
|
"Hirohiko Araki" is the author_name; on 6/6/2006 refers to publication_date = '2006-06-06'; which book refers to title
|
address refers to street_name, city; received the most orders refers to Max(count(dest_address_id))
|
What is the current address of customer Kandy?
|
current address refers to address_status = 1; address refers to street_number, street_name, city
|
"Costa Rica" is the country_name
|
"Hirohiko Araki" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100
|
shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100
|
"Priority" and "Express" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))
|
"A.J. Ayer" is the author_name;
|
"Ace Hardcover" is the publisher_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
|
customer refers to first_name, last_name; the most address refers to Max(count(address_id))
|
books over $13 refers to price > 13; percentage = Divide (Sum (order_id where price > 13), Count (order_id)) * 100
|
What is the title of the most expensive book?
|
most expensive book refers to Max(price)
|
oldest book refers to Min(publiation_date)
|
books refers to title; the most orders refers to Max(Count(order_id))
|
shipping cost refers to cost; ordered in 2022 refers to order_date LIKE '2022%'
|
Japanese book refers to language_name = 'Japanese'; earliest published refers to Min(publication_date)
|
placed on 04/10/2022 refers to SUBSTR(order_date, 1, 10) = '2022-04-10'; status of order refers to status_value
|
"Hirohiko Araki" is the author_name; on 6/6/2006 refers to publication_date = '2006-06-06'; which book refers to title
|
International Standard Book Number refers to isbn13; 'The Mystery in the Rocky Mountains' is the title of the book
|
"[email protected]" is the email of customer; ISBN refers to isbn13
|
full name refers to first_name, last_name; last name begin with the letter 'K' refers to last_name LIKE 'K%'
|
"Barry Eisler" is the author_name; publisher refers to publisher_name
|
Among the books published by publisher "Thomas Nelson", how many of them have over 300 pages?
|
"Thomas Nelson" is the publisher_name; books with over 300 pages refers to num_pages > 300
|
"Bite Me If You Can (Argeneau #6)" is the title of the book; most expensive price refers to Max(price)
|
published at least 30 books refers to Count(book_id) > = 30
|
"Priority" and "Express" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))
|
"Thomas Nelson" is the publisher_name
|
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
|
returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'
|
full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city
|
language written in refers to language_name;
|
via international shipping refers to method_name = 'International'
|
"Abrams" is the publisher_name; author's name refers to author_name
|
What is the status of the orders placed on 04/10/2022?
|
placed on 04/10/2022 refers to SUBSTR(order_date, 1, 10) = '2022-04-10'; status of order refers to status_value
|
shipping method preferred the most by customers refers to method_id where Max(Count(method_id)); which shipping method refers to method_name
|
average spend on book orders = AVG (price)
|
current address refers to address_status = 1; address refers to street_number, street_name, city
|
publisher refers to publisher_name; oldest book refers to Min(publication_date)
|
shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100
|
books cost 19 dollars and above refers to price > = 19
|
street refers to street_name; last number of each street refers to Substr (street_number, -1)
|
"The Prophet" is the title of the book: total price refers to Sum(price)
|
"Zilpha Keatley Snyder" is the author_name; average number of book pages refers to AVG(num_pages)
|
full name refers to first_name, last_name; last name begin with the letter 'K' refers to last_name LIKE 'K%'
|
What is the total shipping cost of all the orders made by Page Holsey? Indicate how many of the said orders were ordered in 2022.
|
shipping cost refers to cost; ordered in 2022 refers to order_date LIKE '2022%'
|
"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"
|
"Agatha Christie" is the author_name; name of publisher refers to publisher_name; first book refers to Min(publication_date)
|
book with the most pages refers to Max(num_pages)
|
books with the most number of pages refers to Max(num_pages)
|
International shipping order refers to method_name = 'International'; orders on 2022/11/10 refers to order_date LIKE '2022-11-10%'; percentage = Divide (Sum(order_id where method_name = 'International'), Count(order_id)) * 100
|
"Thomas Nelson" is the publisher_name
|
shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100
|
full name refers to first_name, last_name; last name begin with the letter 'K' refers to last_name LIKE 'K%'
|
total price refers to Sum(price)
|
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
|
How many percent of orders in 2020 used international shipping?
|
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
|
"[email protected]" is the email of customer; full name refers to first_name, last_name
|
International shipping order refers to method_name = 'International'; orders on 2022/11/10 refers to order_date LIKE '2022-11-10%'; percentage = Divide (Sum(order_id where method_name = 'International'), Count(order_id)) * 100
|
English book refers to language_name = 'English'; 'Carole Marsh Mysteries' is the publisher_name; average = Divide (Count(language_name = 'English'), Count(book_id))
|
complete address refers to street_number, street_name, city, country; "Lazaro Cardenas" is the city
|
book with the most pages refers to Max(num_pages)
|
priority method refers to method_name = 'Priority'
|
"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"
|
"Priority" and "Express" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))
|
delivered refers to status_value = 'Delivered'; in 2021 refers to status_date LIKE '2021%'
|
"Danielle Steel" is the author_name; name of books refers to title
|
What is the order price of the book "The Servant Leader" in 2003?
|
"The Servant Leader" is the title of the book; book in 2003 refers to SUBSTR(publication_date, 1, 4) = '2003'
|
"Thomas Nelson" is the publisher_name; books with over 300 pages refers to num_pages > 300
|
full name refers to first_name, last_name; 'Baiyin' is the city
|
"A.R. Braunmuller" is the author_name
|
"AK Press" is the publisher_name
|
have been cancelled refers to status_value = 'cancelled'; id refers to order_id
|
"ADV Manga" is the publisher_name; books refers to title
|
"Hirohiko Araki" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100
|
"Spanish" is the language_name; 'Alfaguara' is the publisher_name
|
English book refers to language_name = 'English'; 'Carole Marsh Mysteries' is the publisher_name; average = Divide (Count(language_name = 'English'), Count(book_id))
|
"Priority" and "Express" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))
|
What is the name of the publisher with publisher ID 22?
|
name of publisher refers to publisher_name
|
"Dallas" is the city; streets refers to street_name
|
"Žirovnica" is the city; country refers to country_name
|
most order refers to Max(Count(order_id)); customer refers to first_name, last_name
|
"76092025986" is the isbn13
|
"Hirohiko Araki" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100
|
"Seaward" is the title of the book; pages refers to num_pages
|
"El plan infinito" is the title of the book; language refers to language_name
|
"Anleitung zum Zickigsein" is the title of the book
|
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
|
"Arabic" is the language_name; book refers to title
|
How many orders have been cancelled in 2022?
|
cancelled refers to status_value = 'Cancelled'; in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'
|
"Danielle Steel" is the author_name; name of books refers to title
|
books cost 19 dollars and above refers to price > = 19
|
"Orson Scott Card" is the author_name; released in 2001 refers to publication_date LIKE '2001%'; books refers to title
|
books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5
|
"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
|
in Japanese refers to language_name = 'Japanese
|
"The Prophet" is the title of the book; highest price refers to Max(price)
|
average spend on book orders = AVG (price)
|
returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'
|
"Spanish" is the language_name; 'Alfaguara' is the publisher_name
|
List the title of the earliest published Japanese book.
|
Japanese book refers to language_name = 'Japanese'; earliest published refers to Min(publication_date)
|
average spend on book orders = AVG (price)
|
"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"
|
books refers to title; the most orders refers to Max(Count(order_id))
|
publisher have the word 'book' refers to publisher_name LIKE '%book%'
|
"Seaward" is the title of the book; pages refers to num_pages
|
"Hirohiko Araki" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100
|
in 2021 refers to substr(order_date, 1, 4) = '2021'; priority shipping method refers to method_name = 'Priority'
|
"[email protected]" is the email of customer; ISBN refers to isbn13
|
shipping cost refers to cost; ordered in 2022 refers to order_date LIKE '2022%'
|
authors refers to author_name; more than 3000 pages refers to num_pages > 3000
|
Give the publisher's name of the books authored by Alan Lee.
|
"Alan Lee" is the author_name; publisher's name refers to publisher_name
|
ordered at 6/29/2020 7:40:07 PM refers to order_date = '2020-06-29 19:40:07'; shipping method refers to method_name
|
published in 1995 refers to publication_date LIKE '1995%'; ; list of book refers to title
|
in 2021 refers to substr(order_date, 1, 4) = '2021'; priority shipping method refers to method_name = 'Priority'
|
country refers to country_name
|
"British English" is the language_name of the book
|
"Thomas Nelson" is the publisher_name; books with over 300 pages refers to num_pages > 300
|
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
|
address refers to street_name, city; received the most orders refers to Max(count(dest_address_id))
|
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
|
under 300 pages refers to num_pages < 300; 'HarperCollins Publishers" is the publisher_name
|
What is the publication date of the book with the most pages?
|
book with the most pages refers to Max(num_pages)
|
returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'
|
number of pages refers to num_pages
|
priority method refers to method_name = 'Priority'
|
"Thomas Nelson" is the publisher_name
|
ISBN refers to isbn13;
|
"Abrams" is the publisher_name; author's name refers to author_name
|
International Standard Book Number refers to isbn13; 'The Mystery in the Rocky Mountains' is the title of the book
|
"23755004321" is the isbn13; language refers to language_name
|
"[email protected]" is the email of customer; ISBN refers to isbn13
|
cancelled refers to status_value = 'Cancelled'; in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'
|
Calculate the percentage of the International shipping orders on 2022/11/10.
|
International shipping order refers to method_name = 'International'; orders on 2022/11/10 refers to order_date LIKE '2022-11-10%'; percentage = Divide (Sum(order_id where method_name = 'International'), Count(order_id)) * 100
|
Japanese book refers to language_name = 'Japanese'; earliest published refers to Min(publication_date)
|
"Thomas Nelson" is the publisher_name; books with over 300 pages refers to num_pages > 300
|
"Brava" is the publisher_name; in 2006 refers to SUBSTR(publication_date, 1, 4) = '2006'
|
"The Prophet" is the title of the book: total price refers to Sum(price)
|
"First Things First" is the title of the book; author refers to author_name
|
name of publisher refers to publisher_name
|
"O Xará" is the title of the book
|
books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5
|
shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100
|
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
|
Who wrote "The Prophet"?
|
"The Prophet" is the title of the book: who wrote refers to author_name
|
priority method refers to method_name = 'Priority'
|
"[email protected]" is the email of customer; full name refers to first_name, last_name
|
"Brava" is the publisher_name; in 2006 refers to SUBSTR(publication_date, 1, 4) = '2006'
|
Japanese book refers to language_name = 'Japanese'; earliest published refers to Min(publication_date)
|
returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'
|
"Hitchhiker's Guide To The Galaxy: The Filming of the Douglas Adams classic" is the title of the book; publisher refers to publisher_name
|
books refers to title; the most orders refers to Max(Count(order_id))
|
under 300 pages refers to num_pages < 300; 'HarperCollins Publishers" is the publisher_name
|
"Anleitung zum Zickigsein" is the title of the book
|
in 2021 refers to substr(order_date, 1, 4) = '2021'; priority shipping method refers to method_name = 'Priority'
|
Sum the total price of the orders for The Prophet book.
|
"The Prophet" is the title of the book: total price refers to Sum(price)
|
"[email protected]" is the email of customer; full name refers to first_name, last_name
|
"Seaward" is the title of the book; pages refers to num_pages
|
"Thomas Nelson" is the publisher_name
|
Iran as their destination refers to country_name = 'Iran'; orders in 2022 refers to order_date LIKE '2022%'
|
books in English refers to language_name = 'English'
|
"Danielle Steel" is the author_name; name of books refers to title
|
"Brava" is the publisher_name; in 2006 refers to SUBSTR(publication_date, 1, 4) = '2006'
|
"Arabic" is the language_name; book refers to title
|
delivered refers to status_value = 'Delivered'; in 2021 refers to status_date LIKE '2021%'
|
"9780763628321" is the isbn13
|
What is the full name of the customer who owns the "[email protected]" e-mail address?
|
"[email protected]" is the email of customer; full name refers to first_name, last_name
|
returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'
|
"A.R. Braunmuller" is the author_name
|
Japanese book refers to language_name = 'Japanese'; earliest published refers to Min(publication_date)
|
shipping cost refers to cost; ordered in 2022 refers to order_date LIKE '2022%'
|
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
|
cancelled refers to status_value = 'Cancelled'; in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'
|
author named 'George' refers to author_name = 'George%'
|
authors refers to author_name; more than 3000 pages refers to num_pages > 3000
|
street refers to street_name; last number of each street refers to Substr (street_number, -1)
|
placed on 04/10/2022 refers to SUBSTR(order_date, 1, 10) = '2022-04-10'; status of order refers to status_value
|
What is the number of pages of the book in the order ID 1167?
|
number of pages refers to num_pages
|
Japanese book refers to language_name = 'Japanese'; earliest published refers to Min(publication_date)
|
most expensive book refers to Max(price)
|
published at least 30 books refers to Count(book_id) > = 30
|
priority method refers to method_name = 'Priority'
|
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
|
"El plan infinito" is the title of the book; language refers to language_name
|
full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city
|
"23755004321" is the isbn13; language refers to language_name
|
"Orson Scott Card" is the author_name; released in 2001 refers to publication_date LIKE '2001%'; books refers to title
|
book with the most pages refers to Max(num_pages)
|
Which language is 'El plan infinito' written in?
|
"El plan infinito" is the title of the book; language refers to language_name
|
"Abrams" is the publisher_name; author's name refers to author_name
|
shipping cost refers to cost; ordered in 2022 refers to order_date LIKE '2022%'
|
cancelled refers to status_value = 'Cancelled'; in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'
|
full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city
|
"A.J. Ayer" is the author_name;
|
total price refers to Sum(price)
|
"The Illuminati" is the title of book
|
in 2021 refers to substr(order_date, 1, 4) = '2021'; priority shipping method refers to method_name = 'Priority'
|
"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
|
via international shipping refers to method_name = 'International'
|
What is the cheapest order price of the book "The Little House"?
|
"The Little House" is the title of book; cheapest order price refers to Min(price)
|
most order refers to Max(Count(order_id)); customer refers to first_name, last_name
|
"El plan infinito" is the title of the book; language refers to language_name
|
"Costa Rica" is the country_name
|
"Bite Me If You Can (Argeneau #6)" is the title of the book; most expensive price refers to Max(price)
|
International Standard Book Number refers to isbn13; 'The Mystery in the Rocky Mountains' is the title of the book
|
"Seaward" is the title of the book; pages refers to num_pages
|
"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"
|
"Barry Eisler" is the author_name; publisher refers to publisher_name
|
"Arabic" is the language_name; book refers to title
|
"AK Press" is the publisher_name
|
What is the most expensive price paid by a customer for the book "Bite Me If You Can (Argeneau #6)"?
|
"Bite Me If You Can (Argeneau #6)" is the title of the book; most expensive price refers to Max(price)
|
"The Prophet" is the title of the book; highest price refers to Max(price)
|
number of pages refers to num_pages; average = Divide (Sum(num_pages), Count(book_id))
|
"AK Press" is the publisher_name
|
"Costa Rica" is the country_name
|
"Agatha Christie" is the author_name; name of publisher refers to publisher_name; first book refers to Min(publication_date)
|
books cost 19 dollars and above refers to price > = 19
|
"First Things First" is the title of the book; author refers to author_name
|
most expensive book refers to Max(price)
|
country refers to country_name
|
"Ace Hardcover" is the publisher_name
|
How many books were published by Kensington?
|
"Kensington" is the publisher_name;
|
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
|
oldest book refers to Min(publiation_date)
|
shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100
|
"Anleitung zum Zickigsein" is the title of the book
|
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
|
address refers to street_name, city; received the most orders refers to Max(count(dest_address_id))
|
name of publisher refers to publisher_name
|
"Birlinn" is the publisher_name; books have pages around 600 to 700 refers to num_pages BETWEEN 600 AND 700; in 2008 refers to SUBSTR(publication_date, 1, 4) = '2008'
|
"Brava" is the publisher_name; in 2006 refers to SUBSTR(publication_date, 1, 4) = '2006'
|
How many orders were returned in the year 2020?
|
returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'
|
books in English refers to language_name = 'English'
|
"[email protected]" is the email of customer; ISBN refers to isbn13
|
"Danielle Steel" is the author_name; name of books refers to title
|
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
|
full name refers to first_name, last_name; 'The Sorrows of Young Werther' is the title of the book
|
most common domain for the email refers to Max(Count(SUBSTR(email, CHARINDEX('@', email) + 1, length(email) - charindex('@', email))))
|
"Priority" and "Express" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))
|
English book refers to language_name = 'English'; 'Carole Marsh Mysteries' is the publisher_name; average = Divide (Count(language_name = 'English'), Count(book_id))
|
"Orson Scott Card" is the author_name; released in 2001 refers to publication_date LIKE '2001%'; 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
|
Indicate the full name of all customers whose last name begins with the letter K.
|
full name refers to first_name, last_name; last name begin with the letter 'K' refers to last_name LIKE 'K%'
|
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
|
shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100
|
"Hirohiko Araki" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100
|
authors named Adam refers to author_name LIKE 'Adam'
|
order updated in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'; has been returned refers to status_value = 'Returned'; percentage = Divide (Count(status_value = 'Returned'), Count(status_value)) * 100
|
Iran as their destination refers to country_name = 'Iran'; orders in 2022 refers to order_date LIKE '2022%'
|
books in English refers to language_name = 'English'
|
"[email protected]" is the email of customer; ISBN refers to isbn13
|
"Abrams" is the publisher_name; author's name refers to author_name
|
country refers to country_name
|
How many books did A.R. Braunmuller write?
|
"A.R. Braunmuller" is the author_name
|
returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'
|
authors refers to author_name; more than 3000 pages refers to num_pages > 3000
|
"Arabic" is the language_name; book refers to title
|
priority method refers to method_name = 'Priority'
|
"The Little House" is the title of book; cheapest order price refers to Min(price)
|
ISBN refers to isbn13;
|
"The Prophet" is the title of the book: who wrote refers to author_name
|
most common domain for the email refers to Max(Count(SUBSTR(email, CHARINDEX('@', email) + 1, length(email) - charindex('@', email))))
|
books with the most number of pages refers to Max(num_pages)
|
average spend on book orders = AVG (price)
|
Identify the cost difference between Priority and Express shipping methods.
|
"Priority" and "Express" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))
|
"Alan Lee" is the author_name; publisher's name refers to publisher_name
|
full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city
|
have been cancelled refers to status_value = 'cancelled'; id refers to order_id
|
author named 'George' refers to author_name = 'George%'
|
"76092025986" is the isbn13
|
"British English" is the language_name of the book
|
authors named Adam refers to author_name LIKE 'Adam'
|
full name refers to first_name, last_name; last name begin with the letter 'K' refers to last_name LIKE 'K%'
|
"Fantasmas" is the title of the book; customer names refers to first_name, last_name
|
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
|
What is the total price of all the books ordered by Lucas Wyldbore?
|
total price refers to Sum(price)
|
"Danielle Steel" is the author_name; name of books refers to title
|
books with the most number of pages refers to Max(num_pages)
|
"O Xará" is the title of the book
|
"Costa Rica" is the country_name
|
"Spanish" is the language_name; 'Alfaguara' is the publisher_name
|
publisher have the word 'book' refers to publisher_name LIKE '%book%'
|
order updated in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'; has been returned refers to status_value = 'Returned'; percentage = Divide (Count(status_value = 'Returned'), Count(status_value)) * 100
|
"[email protected]" is the email of customer; full name refers to first_name, last_name
|
ordered at 6/29/2020 7:40:07 PM refers to order_date = '2020-06-29 19:40:07'; shipping method refers to method_name
|
"Priority" and "Express" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))
|
What is the full name of the customers who live in Baiyin city?
|
full name refers to first_name, last_name; 'Baiyin' is the city
|
"Priority" and "Express" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))
|
books in English refers to language_name = 'English'
|
have been cancelled refers to status_value = 'cancelled'; id refers to order_id
|
"Hirohiko Araki" is the author_name; on 6/6/2006 refers to publication_date = '2006-06-06'; which book refers to title
|
country refers to country_name
|
most expensive book refers to Max(price)
|
book with cheapest price refers to Min(price); who order means name of customer which refers to first_name, last_name
|
shipping cost refers to cost; ordered in 2022 refers to order_date LIKE '2022%'
|
oldest book refers to Min(publiation_date)
|
Japanese book refers to language_name = 'Japanese'; earliest published refers to Min(publication_date)
|
How many books under 300 pages has HarperCollins Publishers published?
|
under 300 pages refers to num_pages < 300; 'HarperCollins Publishers" is the publisher_name
|
average spend on book orders = AVG (price)
|
"Spanish" is the language_name; 'Alfaguara' is the publisher_name
|
publisher have the word 'book' refers to publisher_name LIKE '%book%'
|
in 2021 refers to substr(order_date, 1, 4) = '2021'; priority shipping method refers to method_name = 'Priority'
|
returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'
|
delivered refers to status_value = 'Delivered'; in 2021 refers to status_date LIKE '2021%'
|
most expensive book refers to Max(price)
|
"Girls' Night In" is the title of the book; publisher is the publisher_name
|
"Bite Me If You Can (Argeneau #6)" is the title of the book; most expensive price refers to Max(price)
|
full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city
|
List the title of books published by AK Press.
|
"AK Press" is the publisher_name
|
"Hirohiko Araki" is the author_name; on 6/6/2006 refers to publication_date = '2006-06-06'; which book refers to title
|
International Standard Book Number refers to isbn13; 'The Mystery in the Rocky Mountains' is the title of the book
|
books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5
|
"The Servant Leader" is the title of the book; book in 2003 refers to SUBSTR(publication_date, 1, 4) = '2003'
|
"Dallas" is the city; streets refers to street_name
|
"Abrams" is the publisher_name; author's name refers to author_name
|
"Zilpha Keatley Snyder" is the author_name; average number of book pages refers to AVG(num_pages)
|
"The Little House" is the title of book; cheapest order price refers to Min(price)
|
"[email protected]" is the email of customer; ISBN refers to isbn13
|
"Brava" is the publisher_name; in 2006 refers to SUBSTR(publication_date, 1, 4) = '2006'
|
What percentage of the orders placed by Kaleena were shipped by the international method?
|
shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100
|
"Hirohiko Araki" is the author_name; on 6/6/2006 refers to publication_date = '2006-06-06'; which book refers to title
|
address refers to street_name, city; received the most orders refers to Max(count(dest_address_id))
|
total price refers to Sum(price)
|
number of pages refers to num_pages; average = Divide (Sum(num_pages), Count(book_id))
|
street refers to street_name; last number of each street refers to Substr (street_number, -1)
|
"El plan infinito" is the title of the book; language refers to language_name
|
authors refers to author_name; more than 3000 pages refers to num_pages > 3000
|
in 2021 refers to order_date LIKE '2021%'
|
average spend on book orders = AVG (price)
|
"Zilpha Keatley Snyder" is the author_name; average number of book pages refers to AVG(num_pages)
|
What are the names of all the publishers who have published at least 30 books?
|
published at least 30 books refers to Count(book_id) > = 30
|
shipping method preferred the most by customers refers to method_id where Max(Count(method_id)); which shipping method refers to method_name
|
most order refers to Max(Count(order_id)); customer refers to first_name, last_name
|
in 2021 refers to order_date LIKE '2021%'
|
publisher refers to publisher_name; oldest book refers to Min(publication_date)
|
have been cancelled refers to status_value = 'cancelled'; id refers to order_id
|
books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5
|
"Hirohiko Araki" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100
|
"British English" is the language_name of the book
|
"Akira Watanabe" is the author_name
|
"Brava" is the publisher_name; in 2006 refers to SUBSTR(publication_date, 1, 4) = '2006'
|
How many books are in English?
|
books in English refers to language_name = 'English'
|
order returned refers to status_value = 'Returned'
|
"Anleitung zum Zickigsein" is the title of the book
|
"The Little House" is the title of book; cheapest order price refers to Min(price)
|
order updated in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'; has been returned refers to status_value = 'Returned'; percentage = Divide (Count(status_value = 'Returned'), Count(status_value)) * 100
|
"Bite Me If You Can (Argeneau #6)" is the title of the book; most expensive price refers to Max(price)
|
International Standard Book Number refers to isbn13; 'The Mystery in the Rocky Mountains' is the title of the book
|
book with the most pages refers to Max(num_pages)
|
in 2021 refers to order_date LIKE '2021%'
|
full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city
|
shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100
|
Name the title of the book with the most number of pages that was published from 1990 to 2000 by publisher Free Press.
|
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
|
authors named Adam refers to author_name LIKE 'Adam'
|
in 2021 refers to order_date LIKE '2021%'
|
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
|
"British English" is the language_name of the book
|
returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'
|
"[email protected]" is the email of customer; ISBN refers to isbn13
|
"Birlinn" is the publisher_name; books have pages around 600 to 700 refers to num_pages BETWEEN 600 AND 700; in 2008 refers to SUBSTR(publication_date, 1, 4) = '2008'
|
full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city
|
"Alan Lee" is the author_name; publisher's name refers to publisher_name
|
ordered at 6/29/2020 7:40:07 PM refers to order_date = '2020-06-29 19:40:07'; shipping method refers to method_name
|
Provide the customers' names who ordered the Fantasmas.
|
"Fantasmas" is the title of the book; customer names refers to first_name, last_name
|
language written in refers to language_name;
|
"British English" is the language_name of the book
|
"Seaward" is the title of the book; pages refers to num_pages
|
"AK Press" is the publisher_name
|
"76092025986" is the isbn13
|
"Ace Hardcover" is the publisher_name
|
Japanese book refers to language_name = 'Japanese'; earliest published refers to Min(publication_date)
|
under 300 pages refers to num_pages < 300; 'HarperCollins Publishers" is the publisher_name
|
"Kensington" is the publisher_name;
|
in 2021 refers to substr(order_date, 1, 4) = '2021'; priority shipping method refers to method_name = 'Priority'
|
Which book has the most number of pages?
|
books with the most number of pages refers to Max(num_pages)
|
via international shipping refers to method_name = 'International'
|
"Agatha Christie" is the author_name; name of publisher refers to publisher_name; first book refers to Min(publication_date)
|
books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5
|
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
|
"Anleitung zum Zickigsein" is the title of the book
|
"Hirohiko Araki" is the author_name; on 6/6/2006 refers to publication_date = '2006-06-06'; which book refers to title
|
number of pages refers to num_pages
|
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
|
"Costa Rica" is the country_name
|
most expensive book refers to Max(price)
|
Provide the authors and titles of the books which have more than 3000 pages.
|
authors refers to author_name; more than 3000 pages refers to num_pages > 3000
|
priority method refers to method_name = 'Priority'
|
shipping method preferred the most by customers refers to method_id where Max(Count(method_id)); which shipping method refers to method_name
|
Iran as their destination refers to country_name = 'Iran'; orders in 2022 refers to order_date LIKE '2022%'
|
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
|
cancelled refers to status_value = 'Cancelled'; in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'
|
"The Prophet" is the title of the book: total price refers to Sum(price)
|
shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100
|
street refers to street_name; last number of each street refers to Substr (street_number, -1)
|
shipping cost refers to cost; ordered in 2022 refers to order_date LIKE '2022%'
|
"Priority" and "Express" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))
|
How many authors are named Adam?
|
authors named Adam refers to author_name LIKE 'Adam'
|
country refers to country_name
|
"The Prophet" is the title of the book; highest price refers to Max(price)
|
"The Prophet" is the title of the book: who wrote refers to author_name
|
books over $13 refers to price > 13; percentage = Divide (Sum (order_id where price > 13), Count (order_id)) * 100
|
language written in refers to language_name;
|
"Dallas" is the city; streets refers to street_name
|
"Arabic" is the language_name; book refers to title
|
priority method refers to method_name = 'Priority'
|
complete address refers to street_number, street_name, city, country; "Lazaro Cardenas" is the city
|
"Thomas Nelson" is the publisher_name; books with over 300 pages refers to num_pages > 300
|
Provide the number of orders by Daisey Lamball in 2021.
|
in 2021 refers to order_date LIKE '2021%'
|
"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
|
most common domain for the email refers to Max(Count(SUBSTR(email, CHARINDEX('@', email) + 1, length(email) - charindex('@', email))))
|
"Girls' Night In" is the title of the book; publisher is the publisher_name
|
"A.R. Braunmuller" is the author_name
|
books over $13 refers to price > 13; percentage = Divide (Sum (order_id where price > 13), Count (order_id)) * 100
|
cancelled refers to status_value = 'Cancelled'; in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'
|
International shipping order refers to method_name = 'International'; orders on 2022/11/10 refers to order_date LIKE '2022-11-10%'; percentage = Divide (Sum(order_id where method_name = 'International'), Count(order_id)) * 100
|
"Alan Lee" is the author_name; publisher's name refers to publisher_name
|
"[email protected]" is the email of customer; ISBN refers to isbn13
|
"Akira Watanabe" is the author_name
|
What is the name of the publisher who published Agatha Christie's first book?
|
"Agatha Christie" is the author_name; name of publisher refers to publisher_name; first book refers to Min(publication_date)
|
books in English refers to language_name = 'English'
|
total price refers to Sum(price)
|
"Žirovnica" is the city; country refers to country_name
|
street refers to street_name; last number of each street refers to Substr (street_number, -1)
|
International Standard Book Number refers to isbn13; 'The Mystery in the Rocky Mountains' is the title of the book
|
"British English" is the language_name of the book
|
books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5
|
"Spanish" is the language_name; 'Alfaguara' is the publisher_name
|
publisher refers to publisher_name; oldest book refers to Min(publication_date)
|
oldest book refers to Min(publiation_date)
|
How many books written by Akira Watanabe are available on Gravity?
|
"Akira Watanabe" is the author_name
|
"Brava" is the publisher_name; in 2006 refers to SUBSTR(publication_date, 1, 4) = '2006'
|
language written in refers to language_name;
|
"O Xará" is the title of the book
|
"[email protected]" is the email of customer; full name refers to first_name, last_name
|
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
|
"Seaward" is the title of the book; pages refers to num_pages
|
"British English" is the language_name of the book
|
"Žirovnica" is the city; country refers to country_name
|
cancelled refers to status_value = 'Cancelled'; in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'
|
order updated in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'; has been returned refers to status_value = 'Returned'; percentage = Divide (Count(status_value = 'Returned'), Count(status_value)) * 100
|
Among Daisey Lamball's orders, how many were shipped via International shipping?
|
via international shipping refers to method_name = 'International'
|
"Barry Eisler" is the author_name; publisher refers to publisher_name
|
"Kensington" is the publisher_name;
|
shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100
|
full name refers to first_name, last_name; 'The Sorrows of Young Werther' is the title of the book
|
"Fantasmas" is the title of the book; customer names refers to first_name, last_name
|
"Brava" is the publisher_name; in 2006 refers to SUBSTR(publication_date, 1, 4) = '2006'
|
"Žirovnica" is the city; country refers to country_name
|
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
|
"Birlinn" is the publisher_name; books have pages around 600 to 700 refers to num_pages BETWEEN 600 AND 700; in 2008 refers to SUBSTR(publication_date, 1, 4) = '2008'
|
"First Things First" is the title of the book; author refers to author_name
|
What is the book with the most orders?
|
books refers to title; the most orders refers to Max(Count(order_id))
|
have been cancelled refers to status_value = 'cancelled'; id refers to order_id
|
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
|
average spend on book orders = AVG (price)
|
"A.J. Ayer" is the author_name;
|
"Bite Me If You Can (Argeneau #6)" is the title of the book; most expensive price refers to Max(price)
|
"Danielle Steel" is the author_name; name of books refers to title
|
"The Prophet" is the title of the book: total price refers to Sum(price)
|
books over $13 refers to price > 13; percentage = Divide (Sum (order_id where price > 13), Count (order_id)) * 100
|
"Kensington" is the publisher_name;
|
street refers to street_name; last number of each street refers to Substr (street_number, -1)
|
What is the shipping method ordered by Nicolette Sadler at 6/29/2020 7:40:07 PM?
|
ordered at 6/29/2020 7:40:07 PM refers to order_date = '2020-06-29 19:40:07'; shipping method refers to method_name
|
street refers to street_name; last number of each street refers to Substr (street_number, -1)
|
in Japanese refers to language_name = 'Japanese
|
"Hirohiko Araki" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100
|
shipping method preferred the most by customers refers to method_id where Max(Count(method_id)); which shipping method refers to method_name
|
publisher have the word 'book' refers to publisher_name LIKE '%book%'
|
"[email protected]" is the email of customer; full name refers to first_name, last_name
|
order updated in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'; has been returned refers to status_value = 'Returned'; percentage = Divide (Count(status_value = 'Returned'), Count(status_value)) * 100
|
"Hirohiko Araki" is the author_name; on 6/6/2006 refers to publication_date = '2006-06-06'; which book refers to title
|
"A.R. Braunmuller" is the author_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))
|
Provide the full name of the customers who have ordered the book The Sorrows of Young Werther.
|
full name refers to first_name, last_name; 'The Sorrows of Young Werther' is the title of the book
|
full name refers to first_name, last_name; 'Baiyin' is the city
|
"Barry Eisler" is the author_name; publisher refers to publisher_name
|
ISBN refers to isbn13;
|
"76092025986" is the isbn13
|
"The Servant Leader" is the title of the book; book in 2003 refers to SUBSTR(publication_date, 1, 4) = '2003'
|
shipping cost refers to cost; ordered in 2022 refers to order_date LIKE '2022%'
|
"O Xará" is the title of the book
|
"Anleitung zum Zickigsein" is the title of the book
|
books refers to title; the most orders refers to Max(Count(order_id))
|
"9780763628321" is the isbn13
|
How many orders did Antonia Poltun return?
|
order returned refers to status_value = 'Returned'
|
"AK Press" 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
|
books cost 19 dollars and above refers to price > = 19
|
"Alan Lee" is the author_name; publisher's name refers to publisher_name
|
"Zilpha Keatley Snyder" is the author_name; average number of book pages refers to AVG(num_pages)
|
under 300 pages refers to num_pages < 300; 'HarperCollins Publishers" is the publisher_name
|
cancelled refers to status_value = 'Cancelled'; in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'
|
"The Prophet" is the title of the book: total price refers to Sum(price)
|
number of pages refers to num_pages
|
"Priority" and "Express" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))
|
Among the books published by Birlinn in 2008, how many books have pages around 600 to 700?
|
"Birlinn" is the publisher_name; books have pages around 600 to 700 refers to num_pages BETWEEN 600 AND 700; in 2008 refers to SUBSTR(publication_date, 1, 4) = '2008'
|
"Zilpha Keatley Snyder" is the author_name; average number of book pages refers to AVG(num_pages)
|
"The Little House" is the title of book; cheapest order price refers to Min(price)
|
"British English" is the language_name of the book
|
"Fantasmas" is the title of the book; customer names refers to first_name, last_name
|
"Akira Watanabe" is the author_name
|
International shipping order refers to method_name = 'International'; orders on 2022/11/10 refers to order_date LIKE '2022-11-10%'; percentage = Divide (Sum(order_id where method_name = 'International'), Count(order_id)) * 100
|
"The Illuminati" is the title of book
|
placed on 04/10/2022 refers to SUBSTR(order_date, 1, 10) = '2022-04-10'; status of order refers to status_value
|
published at least 30 books refers to Count(book_id) > = 30
|
"Thomas Nelson" is the publisher_name
|
What is the average number of book pages written by Zilpha Keatley Snyder?
|
"Zilpha Keatley Snyder" is the author_name; average number of book pages refers to AVG(num_pages)
|
"Orson Scott Card" is the author_name; released in 2001 refers to publication_date LIKE '2001%'; books refers to title
|
country refers to country_name
|
books cost 19 dollars and above refers to price > = 19
|
book with the most pages refers to Max(num_pages)
|
most common domain for the email refers to Max(Count(SUBSTR(email, CHARINDEX('@', email) + 1, length(email) - charindex('@', email))))
|
in Japanese refers to language_name = 'Japanese
|
"Fantasmas" is the title of the book; customer names refers to first_name, last_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))
|
authors named Adam refers to author_name LIKE 'Adam'
|
"Alan Lee" is the author_name; publisher's name refers to publisher_name
|
List all the authors named "George".
|
author named 'George' refers to author_name = 'George%'
|
via international shipping refers to method_name = 'International'
|
"Anleitung zum Zickigsein" is the title of the book
|
current address refers to address_status = 1; address refers to street_number, street_name, city
|
ISBN13 refers to isbn13; less than 140 pages and more than 135 refers to num_pages > 135 AND num_pages < 140;
|
"Agatha Christie" is the author_name; name of publisher refers to publisher_name; first book refers to Min(publication_date)
|
"The Prophet" is the title of the book: total price refers to Sum(price)
|
books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5
|
"British English" is the language_name of the book
|
"Barry Eisler" is the author_name; publisher refers to publisher_name
|
"Žirovnica" is the city; country refers to country_name
|
How many orders in 2022 have Iran as their destinations?
|
Iran as their destination refers to country_name = 'Iran'; orders in 2022 refers to order_date LIKE '2022%'
|
book with cheapest price refers to Min(price); who order means name of customer which refers to first_name, last_name
|
order returned refers to status_value = 'Returned'
|
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))
|
"The Prophet" is the title of the book: who wrote refers to author_name
|
"British English" is the language_name of the book
|
"The Servant Leader" is the title of the book; book in 2003 refers to SUBSTR(publication_date, 1, 4) = '2003'
|
customer refers to first_name, last_name; the most address refers to Max(count(address_id))
|
publisher have the word 'book' refers to publisher_name LIKE '%book%'
|
shipping cost refers to cost; ordered in 2022 refers to order_date LIKE '2022%'
|
shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100
|
Which book by Hirohiko Araki was published on 6/6/2006?
|
"Hirohiko Araki" is the author_name; on 6/6/2006 refers to publication_date = '2006-06-06'; which book 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
|
"O Xará" is the title of the book
|
"Birlinn" is the publisher_name; books have pages around 600 to 700 refers to num_pages BETWEEN 600 AND 700; in 2008 refers to SUBSTR(publication_date, 1, 4) = '2008'
|
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))
|
English book refers to language_name = 'English'; 'Carole Marsh Mysteries' is the publisher_name; average = Divide (Count(language_name = 'English'), Count(book_id))
|
in Japanese refers to language_name = 'Japanese
|
"9780763628321" is the isbn13
|
country refers to country_name
|
books in English refers to language_name = 'English'
|
"Akira Watanabe" is the author_name
|
Name the title of books written by author A.J.Ayer.
|
"A.J. Ayer" is the author_name;
|
published in 1995 refers to publication_date LIKE '1995%'; ; list of book refers to title
|
"Costa Rica" is the country_name
|
address refers to street_name, city; received the most orders refers to Max(count(dest_address_id))
|
"O Xará" is the title of the book
|
have been cancelled refers to status_value = 'cancelled'; id refers to order_id
|
"Barry Eisler" is the author_name; publisher refers to publisher_name
|
"British English" is the language_name of the book
|
"Hirohiko Araki" is the author_name; on 6/6/2006 refers to publication_date = '2006-06-06'; which book refers to title
|
"Birlinn" is the publisher_name; books have pages around 600 to 700 refers to num_pages BETWEEN 600 AND 700; in 2008 refers to SUBSTR(publication_date, 1, 4) = '2008'
|
shipping method preferred the most by customers refers to method_id where Max(Count(method_id)); which shipping method refers to method_name
|
What percentage of books written by Hirohiko make up the number of books published by Viz Media?
|
"Hirohiko Araki" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100
|
full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city
|
number of pages refers to num_pages; average = Divide (Sum(num_pages), Count(book_id))
|
"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
|
returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'
|
English book refers to language_name = 'English'; 'Carole Marsh Mysteries' is the publisher_name; average = Divide (Count(language_name = 'English'), Count(book_id))
|
books in English refers to language_name = 'English'
|
books with the most number of pages refers to Max(num_pages)
|
"Akira Watanabe" is the author_name
|
books over $13 refers to price > 13; percentage = Divide (Sum (order_id where price > 13), Count (order_id)) * 100
|
"Kensington" is the publisher_name;
|
Which country does Žirovnica city belong to?
|
"Žirovnica" is the city; country refers to country_name
|
most common domain for the email refers to Max(Count(SUBSTR(email, CHARINDEX('@', email) + 1, length(email) - charindex('@', email))))
|
"The Illuminati" is the title of book
|
shipping method preferred the most by customers refers to method_id where Max(Count(method_id)); which shipping method refers to method_name
|
shipping cost refers to cost; ordered in 2022 refers to order_date LIKE '2022%'
|
ISBN13 refers to isbn13; less than 140 pages and more than 135 refers to num_pages > 135 AND num_pages < 140;
|
full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city
|
"[email protected]" is the email of customer; ISBN refers to isbn13
|
published in 1995 refers to publication_date LIKE '1995%'; ; list of book refers to title
|
"Barry Eisler" is the author_name; publisher refers to publisher_name
|
shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100
|
How much money on average does Lucas Wyldbore spend on book orders?
|
average spend on book orders = AVG (price)
|
full name refers to first_name, last_name; 'Baiyin' is the city
|
full name refers to first_name, last_name; 'The Sorrows of Young Werther' is the title of the book
|
oldest book refers to Min(publiation_date)
|
"The Illuminati" is the title of book
|
"Thomas Nelson" is the publisher_name; books with over 300 pages refers to num_pages > 300
|
ordered at 6/29/2020 7:40:07 PM refers to order_date = '2020-06-29 19:40:07'; shipping method refers to method_name
|
books cost 19 dollars and above refers to price > = 19
|
"Anleitung zum Zickigsein" is the title of the book
|
"Hirohiko Araki" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100
|
in 2021 refers to substr(order_date, 1, 4) = '2021'; priority shipping method refers to method_name = 'Priority'
|
What is the price of the book with ISBN 9780763628321?
|
"9780763628321" is the isbn13
|
"O Xará" is the title 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
|
name of publisher refers to publisher_name
|
"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"
|
"[email protected]" is the email of customer; ISBN refers to isbn13
|
placed on 04/10/2022 refers to SUBSTR(order_date, 1, 10) = '2022-04-10'; status of order refers to status_value
|
publisher refers to publisher_name; oldest book refers to Min(publication_date)
|
"Ace Hardcover" is the publisher_name
|
"Barry Eisler" is the author_name; publisher refers to publisher_name
|
"Seaward" is the title of the book; pages refers to num_pages
|
What is the most common domain for the email address among all the customers?
|
most common domain for the email refers to Max(Count(SUBSTR(email, CHARINDEX('@', email) + 1, length(email) - charindex('@', email))))
|
number of pages refers to num_pages
|
via international shipping refers to method_name = 'International'
|
authors named Adam refers to author_name LIKE 'Adam'
|
current address refers to address_status = 1; address refers to street_number, street_name, city
|
"Bite Me If You Can (Argeneau #6)" is the title of the book; most expensive price refers to Max(price)
|
number of pages refers to num_pages; average = Divide (Sum(num_pages), Count(book_id))
|
"Thomas Nelson" is the publisher_name
|
"Anleitung zum Zickigsein" is the title of the book
|
books with the most number of pages refers to Max(num_pages)
|
ISBN refers to isbn13;
|
Which shipping method is preferred by customers the most?
|
shipping method preferred the most by customers refers to method_id where Max(Count(method_id)); which shipping method refers to method_name
|
publisher refers to publisher_name; oldest book refers to Min(publication_date)
|
book with cheapest price refers to Min(price); who order means name of customer which refers to first_name, last_name
|
delivered refers to status_value = 'Delivered'; in 2021 refers to status_date LIKE '2021%'
|
address refers to street_name, city; received the most orders refers to Max(count(dest_address_id))
|
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
|
"The Illuminati" is the title of book
|
"The Prophet" is the title of the book: who wrote refers to author_name
|
"Agatha Christie" is the author_name; name of publisher refers to publisher_name; first book refers to Min(publication_date)
|
order returned refers to status_value = 'Returned'
|
via international shipping refers to method_name = 'International'
|
How many books have been published in Japanese?
|
in Japanese refers to language_name = 'Japanese
|
"ADV Manga" is the publisher_name; books refers to title
|
"Priority" and "Express" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))
|
"A.J. Ayer" is the author_name;
|
published in 1995 refers to publication_date LIKE '1995%'; ; list of book refers to title
|
"Thomas Nelson" is the publisher_name; books with over 300 pages refers to num_pages > 300
|
ISBN13 refers to isbn13; less than 140 pages and more than 135 refers to num_pages > 135 AND num_pages < 140;
|
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
|
"Arabic" is the language_name; book refers to title
|
"Bite Me If You Can (Argeneau #6)" is the title of the book; most expensive price refers to Max(price)
|
"Zilpha Keatley Snyder" is the author_name; average number of book pages refers to AVG(num_pages)
|
Among the books purchased by less than 1 dollar, what is the difference between the number of books with less than 500 pages and books with greater than 500 pages?
|
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))
|
"The Illuminati" is the title of book
|
"O Xará" is the title 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
|
Japanese book refers to language_name = 'Japanese'; earliest published refers to Min(publication_date)
|
customer refers to first_name, last_name; the most address refers to Max(count(address_id))
|
books refers to title; the most orders refers to Max(Count(order_id))
|
"The Servant Leader" is the title of the book; book in 2003 refers to SUBSTR(publication_date, 1, 4) = '2003'
|
"Costa Rica" is the country_name
|
books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5
|
books in English refers to language_name = 'English'
|
How many customers ordered the book titled "Anleitung zum Zickigsein"
|
"Anleitung zum Zickigsein" is the title of the book
|
"Birlinn" is the publisher_name; books have pages around 600 to 700 refers to num_pages BETWEEN 600 AND 700; in 2008 refers to SUBSTR(publication_date, 1, 4) = '2008'
|
authors named Adam refers to author_name LIKE 'Adam'
|
country refers to country_name
|
cancelled refers to status_value = 'Cancelled'; in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'
|
street refers to street_name; last number of each street refers to Substr (street_number, -1)
|
"Kensington" is the publisher_name;
|
publisher refers to publisher_name; oldest book refers to Min(publication_date)
|
"British English" is the language_name of the book
|
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
|
Provide the publisher name of the book with ISBN 76092025986.
|
"76092025986" is the isbn13
|
order updated in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'; has been returned refers to status_value = 'Returned'; percentage = Divide (Count(status_value = 'Returned'), Count(status_value)) * 100
|
average spend on book orders = AVG (price)
|
"[email protected]" is the email of customer; ISBN refers to isbn13
|
English book refers to language_name = 'English'; 'Carole Marsh Mysteries' is the publisher_name; average = Divide (Count(language_name = 'English'), Count(book_id))
|
"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"
|
"Fantasmas" is the title of the book; customer names refers to first_name, last_name
|
"Dallas" is the city; streets refers to street_name
|
"First Things First" is the title of the book; author refers to author_name
|
ISBN refers to isbn13;
|
in Japanese refers to language_name = 'Japanese
|
What is the highest price at which a customer bought the book 'The Prophet'?
|
"The Prophet" is the title of the book; highest price refers to Max(price)
|
Iran as their destination refers to country_name = 'Iran'; orders in 2022 refers to order_date LIKE '2022%'
|
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
|
books with the most number of pages refers to Max(num_pages)
|
total price refers to Sum(price)
|
International shipping order refers to method_name = 'International'; orders on 2022/11/10 refers to order_date LIKE '2022-11-10%'; percentage = Divide (Sum(order_id where method_name = 'International'), Count(order_id)) * 100
|
via international shipping refers to method_name = 'International'
|
"[email protected]" is the email of customer; ISBN refers to isbn13
|
most order refers to Max(Count(order_id)); customer refers to first_name, last_name
|
"The Prophet" is the title of the book: who wrote refers to author_name
|
"Agatha Christie" is the author_name; name of publisher refers to publisher_name; first book refers to Min(publication_date)
|
What is the average of English books among all books published by Carole Marsh Mysteries?
|
English book refers to language_name = 'English'; 'Carole Marsh Mysteries' is the publisher_name; average = Divide (Count(language_name = 'English'), Count(book_id))
|
total price refers to Sum(price)
|
have been cancelled refers to status_value = 'cancelled'; id refers to order_id
|
"Hirohiko Araki" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100
|
"23755004321" is the isbn13; language refers to language_name
|
"9780763628321" is the isbn13
|
"Bite Me If You Can (Argeneau #6)" is the title of the book; most expensive price refers to Max(price)
|
"The Prophet" is the title of the book; highest price refers to Max(price)
|
authors named Adam refers to author_name LIKE 'Adam'
|
"British English" is the language_name of the book
|
"The Illuminati" is the title of book
|
Identify the publisher of the book Girls' Night In.
|
"Girls' Night In" is the title of the book; publisher is the publisher_name
|
"A.R. Braunmuller" is the author_name
|
books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5
|
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 with cheapest price refers to Min(price); who order means name of customer which refers to first_name, last_name
|
shipping method preferred the most by customers refers to method_id where Max(Count(method_id)); which shipping method refers to method_name
|
books over $13 refers to price > 13; percentage = Divide (Sum (order_id where price > 13), Count (order_id)) * 100
|
full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city
|
"The Prophet" is the title of the book: total price refers to Sum(price)
|
"9780763628321" is the isbn13
|
shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100
|
Name the publisher of the oldest book.
|
publisher refers to publisher_name; oldest book refers to Min(publication_date)
|
most common domain for the email refers to Max(Count(SUBSTR(email, CHARINDEX('@', email) + 1, length(email) - charindex('@', email))))
|
returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'
|
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))
|
number of pages refers to num_pages
|
full name refers to first_name, last_name; 'The Sorrows of Young Werther' is the title of the book
|
"76092025986" is the isbn13
|
"British English" is the language_name of the book
|
"Brava" is the publisher_name; in 2006 refers to SUBSTR(publication_date, 1, 4) = '2006'
|
"A.R. Braunmuller" is the author_name
|
"Agatha Christie" is the author_name; name of publisher refers to publisher_name; first book refers to Min(publication_date)
|
List down the ISBN of the books purchased by the customer with an email of [email protected].
|
"[email protected]" is the email of customer; ISBN refers to isbn13
|
"Thomas Nelson" is the publisher_name; books with over 300 pages refers to num_pages > 300
|
"British English" is the language_name of the book
|
"Priority" and "Express" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))
|
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
|
"The Illuminati" is the title of book
|
"Žirovnica" is the city; country refers to country_name
|
"ADV Manga" is the publisher_name; books refers to title
|
have been cancelled refers to status_value = 'cancelled'; id refers to order_id
|
authors named Adam refers to author_name LIKE 'Adam'
|
"Akira Watanabe" is the author_name
|
How many publishers have the word "book" in their name?
|
publisher have the word 'book' refers to publisher_name LIKE '%book%'
|
"ADV Manga" is the publisher_name; books refers to title
|
International shipping order refers to method_name = 'International'; orders on 2022/11/10 refers to order_date LIKE '2022-11-10%'; percentage = Divide (Sum(order_id where method_name = 'International'), Count(order_id)) * 100
|
books over $13 refers to price > 13; percentage = Divide (Sum (order_id where price > 13), Count (order_id)) * 100
|
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
|
author named 'George' refers to author_name = 'George%'
|
shipping method preferred the most by customers refers to method_id where Max(Count(method_id)); which shipping method refers to method_name
|
Japanese book refers to language_name = 'Japanese'; earliest published refers to Min(publication_date)
|
customer refers to first_name, last_name; the most address refers to Max(count(address_id))
|
cancelled refers to status_value = 'Cancelled'; in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'
|
number of pages refers to num_pages
|
Who ordered the book with the cheapest price?
|
book with cheapest price refers to Min(price); who order means name of customer which refers to first_name, last_name
|
via international shipping refers to method_name = 'International'
|
publisher have the word 'book' refers to publisher_name LIKE '%book%'
|
average spend on book orders = AVG (price)
|
priority method refers to method_name = 'Priority'
|
"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))
|
"Thomas Nelson" is the publisher_name
|
books refers to title; the most orders refers to Max(Count(order_id))
|
"Žirovnica" is the city; country refers to country_name
|
"Danielle Steel" is the author_name; name of books refers to title
|
How many customers ordered the oldest book?
|
oldest book refers to Min(publiation_date)
|
"O Xará" is the title of the book
|
full name refers to first_name, last_name; 'Baiyin' is the city
|
author named 'George' refers to author_name = 'George%'
|
"Danielle Steel" is the author_name; name of books refers to title
|
name of publisher refers to publisher_name
|
returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'
|
"Agatha Christie" is the author_name; name of publisher refers to publisher_name; first book refers to Min(publication_date)
|
"Akira Watanabe" is the author_name
|
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
|
via international shipping refers to method_name = 'International'
|
Which language was book id 1405 written in?
|
language written in refers to language_name;
|
"Zilpha Keatley Snyder" is the author_name; average number of book pages refers to AVG(num_pages)
|
"First Things First" is the title of the book; author refers to author_name
|
"AK Press" is the publisher_name
|
full name refers to first_name, last_name; 'Baiyin' is the city
|
delivered refers to status_value = 'Delivered'; in 2021 refers to status_date LIKE '2021%'
|
"The Prophet" is the title of the book: total price refers to Sum(price)
|
books refers to title; the most orders refers to Max(Count(order_id))
|
current address refers to address_status = 1; address refers to street_number, street_name, city
|
"Costa Rica" is the country_name
|
total price refers to Sum(price)
|
Provide the International Standard Book Number of the book The Mystery in the Rocky Mountains.
|
International Standard Book Number refers to isbn13; 'The Mystery in the Rocky Mountains' is the title of the book
|
shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100
|
language written in refers to language_name;
|
returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'
|
"Brava" is the publisher_name; in 2006 refers to SUBSTR(publication_date, 1, 4) = '2006'
|
number of pages refers to num_pages
|
current address refers to address_status = 1; address refers to street_number, street_name, city
|
"Orson Scott Card" is the author_name; released in 2001 refers to publication_date LIKE '2001%'; books refers to title
|
"9780763628321" is the isbn13
|
ordered at 6/29/2020 7:40:07 PM refers to order_date = '2020-06-29 19:40:07'; shipping method refers to method_name
|
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
|
Of all the classic cars, with a product scale of 1:18, which product is the most ordered product by customers?
|
classic car is a product line; most ordered product refers to MAX(quantityOrdered);
|
DIVIDE(SUM(amount) where customerName = 'Atelier graphique'), (SUM(amount)) as percentage where year(paymentDate) = 2004;
|
1939 'Chevrolet Deluxe Coupe' refers to productName; the highest price refers to MAX(priceEach)
|
Australia is a country; creditLimit < 20000;
|
paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;
|
Pay in total refers to SUM(amount);
|
reportsTO' is the leader of the 'employeeNumber';
|
Sales representative refers to jobTitle = 'Sales Rep'; country = 'USA';
|
Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;
|
Still processing refers to status = 'In Process';
|
country = 'USA'
|
Please calculate the total payment amount of customers who come from the USA.
|
USA is a country; total amount payment refers to SUM(amount);
|
DIVIDE(SUBTRACT(MSRP, priceEach)), MSRP); product No. S18_3482 refers to productCode = 'S18_3482'
|
Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;
|
Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered).
|
last name of contact person starts with M refers to lastName LIKE 'M%'; Germany is a country; not from Germany refers to country<>'Germany';
|
Motorcycles refer to productLine = 'motorcycles'; ordered in 2004 refers to year(orderDate) = 2004;
|
staff of refers to reportsTO; San Francisco is a city;
|
Employee 1370 refers to employeeNumber = '1370';
|
full address = addressLine1+addressLine2; shippedDate = '2005-04-04';
|
orderDate between '2005-01-01' and '2005-12-31'; full address = addressLine1+addressLine2;
|
average amount of payments = DIVIDE(SUM(amount), COUNT(customerNumber); first half of 2014 refers to paymentDate > = '2004-01-01' AND paymentDate < '2004-07-01;
|
How many Sales Manager who are working in Sydney? List out their email.
|
Sales Manager is a job title; Sydney is a city;
|
President refers to the jobTitle;
|
Most profitable order can be computed as MAX(MULTIPLY(quantityOrdered, SUBTRACT(priceEach, buyPrice)).
|
Credit card does not have a limit refers to creditLimit = 45300;
|
full address = addressLine1 + addressLine2; NYC is a shortname of New York City.
|
Australia is a country; creditLimit < 20000;
|
The greatest expected profit refers to MAX(SUBTRACT(MSRP, buyPrice);
|
reportsTO' is the leader of the 'employeeNumber';
|
Address comprises addressLine1 and addressLine2;
|
Employee 1370 refers to employeeNumber = '1370';
|
Steve Patterson is an employee;
|
What are the total payments of customers with no credit limit in 2003?
|
total payment refers to SUM(amount); no credit limit refers to creditLimit = 0; year(paymentDate) = '2003';
|
average total price = DIVIDE(SUM(MULTIPLY(quantityOrdered, priceEach))), COUNT(orderNumber)); year(orderDate) = '2005';
|
Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;
|
VP Sales refers to jobTitle
|
average total price = DIVIDE(MULTIPLY(quantityOrdered, priceEach)), COUNT(orderNumber)); German is a nationality of country = 'Germany'; shipped orders refers to status = 'Shipped';
|
Most profitable order can be computed as MAX(MULTIPLY(quantityOrdered, SUBTRACT(priceEach, buyPrice)).
|
Gerakd Hermandez is an employee; French customer refers to customer from France where country = 'France'
|
German is a nationality of country = 'Germany'; CREDITLIMIT = 0
|
Sales representative refers to jobTitle = 'Sales Rep'; country = 'USA';
|
Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;
|
2005-04-08 and two days later refer to orderDate = '2005-04-08' and orderDate = '2005-04-10'; order with a higher value refers to MAX(Total price) = MULTIPLY(quantityOrdered, priceEach);
|
How many customers have an employee who reports to William Patterson as their sales representitive?
|
reportsTO' is the leader of the 'employeeNumber';
|
Gerakd Hermandez is an employee; French customer refers to customer from France where country = 'France'
|
orderDate between '2005-01-01' and '2005-12-31'; full address = addressLine1+addressLine2;
|
Australia is a country; creditLimit < 20000;
|
E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';
|
full address = addressLine1+addressLine2; shippedDate = '2005-04-04';
|
paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;
|
code of employee refers to employeeNumber; United States of America refers to country = 'USA';
|
Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered).
|
plane is a product line; total price = MULTIPLY(quantityOrdered, priceEach); how much the total price exceeds the average = SUBTRACT(MAX(MULTIPLY(quantityOrdered, priceEach))), AVG(priceEach));
|
The largest order in terms of total price refers to MAX(SUM(MULTIPLY(quantityOrdered, priceEach)).
|
List all customer names with orders that are disputed.
|
Orders that are disputed refer to status = 'Disputed'; the sales representative means employees; names refers to firstName, lastName.
|
Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered).
|
Sales representative refers to jobTitle = 'Sales Rep'; country = 'USA';
|
Employee 1370 refers to employeeNumber = '1370';
|
shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;
|
last name of contact person starts with M refers to lastName LIKE 'M%'; Germany is a country; not from Germany refers to country<>'Germany';
|
full address = addressLine1+addressLine2; Sales Manager is a job title;
|
average actual profit = AVG(SUBTRACT(priceEach, buyPrice)); 1937 Lincoln Berline is a product name;
|
The lowest amount of orders refers to MIN(quantityOrdered);
|
reportsTO' is the leader of the 'employeeNumber';
|
SUM(MULTIPLY(quantityOrdered, priceEach)) where productLine = 'Classic Cars'; status = 'Shipped'; customername = 'Land of Toys Inc';
|
What is the full address of the office where the employee who is a sales representative for the customer whose business is located in the city of New York works?
|
full address = addressLine1 + addressLine2; NYC is a shortname of New York City.
|
average total price = DIVIDE(SUM(MULTIPLY(quantityOrdered, priceEach))), COUNT(orderNumber)); year(orderDate) = '2005';
|
inform refers to reportsTo; 'reportsTO' is the leader of the 'employeeNumber'; France is a country; country = 'France';
|
1969 Harley Davidson Ultimate Chopper refers to the name of the product; sale rep refers to employee; 2003 refers to year(orderDate) = 2003; quantity sold refers to quantityOrdered; their names refer to the name of customers;
|
Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered).
|
Planes is a product line;
|
The lowest amount of orders refers to MIN(quantityOrdered);
|
code of employee refers to employeeNumber; United States of America refers to country = 'USA';
|
President refers to the jobTitle;
|
Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;
|
Euro+ Shopping Channel is a customer name; year(paymentDate) = '2004';
|
How many Planes orders were there?
|
Planes is a product line;
|
country = 'USA'
|
Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;
|
DIVIDE(SUM(amount) where customerName = 'Atelier graphique'), (SUM(amount)) as percentage where year(paymentDate) = 2004;
|
paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;
|
inform refers to reportsTo; 'reportsTO' is the leader of the 'employeeNumber'; France is a country; country = 'France';
|
payment refers to amount; full name = firstName+lastName; supervisor refers to reportsTO; 'reportsTO' is the leader of the 'employeeNumber';
|
Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered).
|
average total price = DIVIDE(SUM(MULTIPLY(quantityOrdered, priceEach))), COUNT(orderNumber)); year(orderDate) = '2005';
|
staff of refers to reportsTO; San Francisco is a city;
|
Credit card does not have a limit refers to creditLimit = 45300;
|
What is the percentage of the payment amount in 2004 was made by Atelier graphique?
|
DIVIDE(SUM(amount) where customerName = 'Atelier graphique'), (SUM(amount)) as percentage where year(paymentDate) = 2004;
|
The lowest amount of orders refers to MIN(quantityOrdered);
|
Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;
|
Best selling products refer to products with MAX(quantityOrdered); 2003 refers to year(orderDate) = 2003;
|
Most profitable order can be computed as MAX(MULTIPLY(quantityOrdered, SUBTRACT(priceEach, buyPrice)).
|
Sales Rep is a job title; Tokyo is a city; full name = firstName+lastName;
|
German is a nationality of country = 'Germany'; CREDITLIMIT = 0
|
Steve Patterson is an employee;
|
Address comprises addressLine1 and addressLine2;
|
full address = addressLine1+addressLine2; Sales Manager is a job title;
|
DIVIDE(COUNT(employeeNumber) when city = 'Paris'), (COUNT(employeeNumber)) as percentage;
|
How do I contact the President of the company?
|
President refers to the jobTitle;
|
Motorcycles refer to productLine = 'motorcycles'; ordered in 2004 refers to year(orderDate) = 2004;
|
1939 'Chevrolet Deluxe Coupe' refers to productName; the highest price refers to MAX(priceEach)
|
full address = addressLine1+addressLine2; Sales Manager is a job title;
|
average amount payment = AVG(amount);
|
Pay in total refers to SUM(amount);
|
full name = firstName+LastName; Paris is a city;
|
country = 'USA'
|
Gerakd Hermandez is an employee; French customer refers to customer from France where country = 'France'
|
Steve Patterson is an employee;
|
SUM(MULTIPLY(quantityOrdered, priceEach)
|
What is the full address of the office where 4 people work and one of them is Sales Representation?
|
full address = addressLine1+addressLine2; Sales Manager is a job title;
|
Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;
|
Transactions payment lower than 10000 refer to COUNT(amount) < 1000; by year refers to YEAR(paymentDate)
|
paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;
|
Muscle Machine Inc is name of customer; superior refers to 'reportsTO', who is the leader of the 'employeeNumber'
|
Planes is a product line;
|
average actual profit = AVG(SUBTRACT(priceEach, buyPrice)); 1937 Lincoln Berline is a product name;
|
Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;
|
amount of payment refers to amount;
|
Best selling products refer to products with MAX(quantityOrdered); 2003 refers to year(orderDate) = 2003;
|
last name of contact person starts with M refers to lastName LIKE 'M%'; Germany is a country; not from Germany refers to country<>'Germany';
|
What's the postal code of the office the VP Sales is at?
|
VP Sales refers to jobTitle
|
President refers to the jobTitle;
|
shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;
|
Pay in total refers to SUM(amount);
|
Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered).
|
The lowest amount of orders refers to MIN(quantityOrdered);
|
paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;
|
The largest order in terms of total price refers to MAX(SUM(MULTIPLY(quantityOrdered, priceEach)).
|
Euro+ Shopping Channel is a customer name; year(paymentDate) = '2004';
|
Orders that are disputed refer to status = 'Disputed'; the sales representative means employees; names refers to firstName, lastName.
|
cancelled shipment refers to status = 'cancelled'; creditLimit > 115000;
|
From which branch does the sales representative employee who made the most sales in 2005? Please indicates its full address and phone number.
|
orderDate between '2005-01-01' and '2005-12-31'; full address = addressLine1+addressLine2;
|
cancelled shipment refers to status = 'cancelled'; creditLimit > 115000;
|
E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';
|
Orders that are disputed refer to status = 'Disputed'; the sales representative means employees; names refers to firstName, lastName.
|
The highest unit price refers to MAX(priceEach)
|
Credit card does not have a limit refers to creditLimit = 45300;
|
full address = addressLine1+addressLine2; shippedDate = '2005-04-04';
|
average amount of payments = DIVIDE(SUM(amount), COUNT(customerNumber); first half of 2014 refers to paymentDate > = '2004-01-01' AND paymentDate < '2004-07-01;
|
full name = contactFirstName, contactLastName; Boston is a city;
|
VP Sales refers to jobTitle
|
Motorcycles refer to productLine = 'motorcycles'; ordered in 2004 refers to year(orderDate) = 2004;
|
List out sale rep that has sold 1969 Harley Davidson Ultimate Chopper. List out their names and quantity sold throughout the year.
|
1969 Harley Davidson Ultimate Chopper refers to the name of the product; sale rep refers to employee; 2003 refers to year(orderDate) = 2003; quantity sold refers to quantityOrdered; their names refer to the name of customers;
|
payment refers to amount; full name = firstName+lastName; supervisor refers to reportsTO; 'reportsTO' is the leader of the 'employeeNumber';
|
E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';
|
DIVIDE(SUM(amount) where customerName = 'Atelier graphique'), (SUM(amount)) as percentage where year(paymentDate) = 2004;
|
Products refer to productCode; Expected profits = SUBTRACT(MSRP, buyPrice);
|
1939 'Chevrolet Deluxe Coupe' refers to productName; the highest price refers to MAX(priceEach)
|
full address = addressLine1+addressLine2; shippedDate = '2005-04-04';
|
Address comprises addressLine1 and addressLine2;
|
average amount payment = AVG(amount);
|
Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;
|
Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered).
|
How many French customers does Gerard Hernandez take care of?
|
Gerakd Hermandez is an employee; French customer refers to customer from France where country = 'France'
|
SUM(MULTIPLY(quantityOrdered, priceEach)) where productLine = 'Classic Cars'; status = 'Shipped'; customername = 'Land of Toys Inc';
|
full address = addressLine1+addressLine2; Sales Manager is a job title;
|
DIVIDE(SUM(amount) where customerName = 'Atelier graphique'), (SUM(amount)) as percentage where year(paymentDate) = 2004;
|
1969 Harley Davidson Ultimate Chopper refers to the name of the product; sale rep refers to employee; 2003 refers to year(orderDate) = 2003; quantity sold refers to quantityOrdered; their names refer to the name of customers;
|
full name = firstName+LastName; Paris is a city;
|
Sales Manager is a job title; Sydney is a city;
|
DIVIDE(COUNT(employeeNumber) when city = 'Paris'), (COUNT(employeeNumber)) as percentage;
|
full address = addressLine1 + addressLine2; NYC is a shortname of New York City.
|
2005-04-08 and two days later refer to orderDate = '2005-04-08' and orderDate = '2005-04-10'; order with a higher value refers to MAX(Total price) = MULTIPLY(quantityOrdered, priceEach);
|
average amount of payments = DIVIDE(SUM(amount), COUNT(customerNumber); first half of 2014 refers to paymentDate > = '2004-01-01' AND paymentDate < '2004-07-01;
|
State 10 emails of UK Sales Rep who have the lowest credit limit.
|
UK is a country; Sales Rep is a job title;
|
country = 'USA'
|
E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';
|
amount of payment refers to amount;
|
full address = addressLine1 + addressLine2; NYC is a shortname of New York City.
|
last name of contact person starts with M refers to lastName LIKE 'M%'; Germany is a country; not from Germany refers to country<>'Germany';
|
paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);
|
Products refer to productCode; Expected profits = SUBTRACT(MSRP, buyPrice);
|
Muscle Machine Inc is name of customer; superior refers to 'reportsTO', who is the leader of the 'employeeNumber'
|
DIVIDE(SUM(amount) where customerName = 'Atelier graphique'), (SUM(amount)) as percentage where year(paymentDate) = 2004;
|
Australia is a country; creditLimit < 20000;
|
When were the products ordered by Cruz & Sons Co. on 2003-03-03 shipped?
|
Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;
|
Steve Patterson is an employee;
|
plane is a product line; total price = MULTIPLY(quantityOrdered, priceEach); how much the total price exceeds the average = SUBTRACT(MAX(MULTIPLY(quantityOrdered, priceEach))), AVG(priceEach));
|
full address = addressLine1+addressLine2; shippedDate = '2005-04-04';
|
The most ordered quantity product refers to productName where Max(quantityOrdered); SUBTRACT(MSRP, buyPrice);
|
Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;
|
Still processing refers to status = 'In Process';
|
UK is a country; Sales Rep is a job title;
|
Products refer to productCode; Expected profits = SUBTRACT(MSRP, buyPrice);
|
Best selling products refer to products with MAX(quantityOrdered); 2003 refers to year(orderDate) = 2003;
|
1939 'Chevrolet Deluxe Coupe' refers to productName; the highest price refers to MAX(priceEach)
|
For the order has the most product ordered, name the customer who placed the order.
|
The largest order in terms of total price refers to MAX(SUM(MULTIPLY(quantityOrdered, priceEach)).
|
paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;
|
amount of payment refers to amount;
|
full address = addressLine1 + addressLine2; NYC is a shortname of New York City.
|
payment refers to amount; full name = firstName+lastName; supervisor refers to reportsTO; 'reportsTO' is the leader of the 'employeeNumber';
|
VP Sales refers to jobTitle
|
Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;
|
code of employee refers to employeeNumber; United States of America refers to country = 'USA';
|
average total price = DIVIDE(MULTIPLY(quantityOrdered, priceEach)), COUNT(orderNumber)); German is a nationality of country = 'Germany'; shipped orders refers to status = 'Shipped';
|
Sales representative refers to jobTitle = 'Sales Rep'; country = 'USA';
|
reportsTO' is the leader of the 'employeeNumber';
|
From 2003 to 2004, how many customers have paid more than three times?
|
paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);
|
Muscle Machine Inc is name of customer; superior refers to 'reportsTO', who is the leader of the 'employeeNumber'
|
USA is a country; total amount payment refers to SUM(amount);
|
Still processing refers to status = 'In Process';
|
E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';
|
Steve Patterson is an employee;
|
payment refers to amount; full name = firstName+lastName; supervisor refers to reportsTO; 'reportsTO' is the leader of the 'employeeNumber';
|
Address comprises addressLine1 and addressLine2;
|
Best selling products refer to products with MAX(quantityOrdered); 2003 refers to year(orderDate) = 2003;
|
Most profitable order can be computed as MAX(MULTIPLY(quantityOrdered, SUBTRACT(priceEach, buyPrice)).
|
1969 Harley Davidson Ultimate Chopper refers to the name of the product; sale rep refers to employee; 2003 refers to year(orderDate) = 2003; quantity sold refers to quantityOrdered; their names refer to the name of customers;
|
Please list the order number of the customer whose credit card has a limit of 45300.
|
Credit card does not have a limit refers to creditLimit = 45300;
|
The highest unit price refers to MAX(priceEach); when shipped refers to shippedDate;
|
E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';
|
The greatest expected profit refers to MAX(SUBTRACT(MSRP, buyPrice);
|
average total price = DIVIDE(MULTIPLY(quantityOrdered, priceEach)), COUNT(orderNumber)); German is a nationality of country = 'Germany'; shipped orders refers to status = 'Shipped';
|
The highest unit price refers to MAX(priceEach)
|
Products refer to productCode; Expected profits = SUBTRACT(MSRP, buyPrice);
|
Sales representative refers to jobTitle = 'Sales Rep'; country = 'USA';
|
The most ordered quantity product refers to productName where Max(quantityOrdered); SUBTRACT(MSRP, buyPrice);
|
Employee 1370 refers to employeeNumber = '1370';
|
UK is a country; Sales Rep is a job title;
|
Which sales representatives in New York city whose leader is Anthony Bow with the employee number is 1143? Indicate their employee numbers.
|
reportsTO' is the leader of the 'employeeNumber';
|
Orders that are disputed refer to status = 'Disputed'; the sales representative means employees; names refers to firstName, lastName.
|
UK is a country; Sales Rep is a job title;
|
full address = addressLine1+addressLine2; Sales Manager is a job title;
|
full address = addressLine1+addressLine2; shippedDate = '2005-04-04';
|
shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;
|
staff of refers to reportsTO; San Francisco is a city;
|
Steve Patterson is an employee;
|
reportsTO' is the leader of the 'employeeNumber';
|
Sales representative refers to jobTitle = 'Sales Rep'; country = 'USA';
|
E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';
|
Which is the most ordered quantity product? What is its expected profit margin per piece?
|
The most ordered quantity product refers to productName where Max(quantityOrdered); SUBTRACT(MSRP, buyPrice);
|
shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;
|
Transactions payment lower than 10000 refer to COUNT(amount) < 1000; by year refers to YEAR(paymentDate)
|
average amount payment = AVG(amount);
|
Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;
|
average actual profit = AVG(SUBTRACT(priceEach, buyPrice)); 1937 Lincoln Berline is a product name;
|
paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;
|
The highest unit price refers to MAX(priceEach); when shipped refers to shippedDate;
|
UK is a country; Sales Rep is a job title;
|
paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);
|
Australia is a country; creditLimit < 20000;
|
List out full name of employees who are working in Boston?
|
full name = contactFirstName, contactLastName; Boston is a city;
|
German is a nationality of country = 'Germany'; CREDITLIMIT = 0
|
reportsTO' is the leader of the 'employeeNumber';
|
last name of contact person starts with M refers to lastName LIKE 'M%'; Germany is a country; not from Germany refers to country<>'Germany';
|
The lowest amount of orders refers to MIN(quantityOrdered);
|
orderDate between '2005-01-01' and '2005-12-31'; full address = addressLine1+addressLine2;
|
paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;
|
Still processing refers to status = 'In Process';
|
Gerakd Hermandez is an employee; French customer refers to customer from France where country = 'France'
|
average total price = DIVIDE(MULTIPLY(quantityOrdered, priceEach)), COUNT(orderNumber)); German is a nationality of country = 'Germany'; shipped orders refers to status = 'Shipped';
|
2005-04-08 and two days later refer to orderDate = '2005-04-08' and orderDate = '2005-04-10'; order with a higher value refers to MAX(Total price) = MULTIPLY(quantityOrdered, priceEach);
|
Who is the sales agent of the customer who has made the highest payment? Include the full names of employee and his/her supervisor.
|
payment refers to amount; full name = firstName+lastName; supervisor refers to reportsTO; 'reportsTO' is the leader of the 'employeeNumber';
|
German is a nationality of country = 'Germany'; CREDITLIMIT = 0
|
Australia is a country; creditLimit < 20000;
|
The highest unit price refers to MAX(priceEach)
|
USA is a country; total amount payment refers to SUM(amount);
|
paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);
|
Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered).
|
reportsTO' is the leader of the 'employeeNumber';
|
shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;
|
Sales Manager is a job title; Sydney is a city;
|
E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';
|
What is the average actual profit by 1937 Lincoln Berline?
|
average actual profit = AVG(SUBTRACT(priceEach, buyPrice)); 1937 Lincoln Berline is a product name;
|
Transactions payment lower than 10000 refer to COUNT(amount) < 1000; by year refers to YEAR(paymentDate)
|
Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;
|
average total price = DIVIDE(MULTIPLY(quantityOrdered, priceEach)), COUNT(orderNumber)); German is a nationality of country = 'Germany'; shipped orders refers to status = 'Shipped';
|
Products refer to productCode; Expected profits = SUBTRACT(MSRP, buyPrice);
|
E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';
|
Best selling products refer to products with MAX(quantityOrdered); 2003 refers to year(orderDate) = 2003;
|
Employee 1370 refers to employeeNumber = '1370';
|
Motorcycles refer to productLine = 'motorcycles'; ordered in 2004 refers to year(orderDate) = 2004;
|
reportsTO' is the leader of the 'employeeNumber';
|
full address = addressLine1 + addressLine2; NYC is a shortname of New York City.
|
Which customer ordered 1939 'Chevrolet Deluxe Coupe' at the highest price?
|
1939 'Chevrolet Deluxe Coupe' refers to productName; the highest price refers to MAX(priceEach)
|
The greatest expected profit refers to MAX(SUBTRACT(MSRP, buyPrice);
|
reportsTO' is the leader of the 'employeeNumber';
|
staff of refers to reportsTO; San Francisco is a city;
|
shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;
|
Address comprises addressLine1 and addressLine2;
|
VP Sales refers to jobTitle
|
UK is a country; Sales Rep is a job title;
|
1969 Harley Davidson Ultimate Chopper refers to the name of the product; sale rep refers to employee; 2003 refers to year(orderDate) = 2003; quantity sold refers to quantityOrdered; their names refer to the name of customers;
|
total payment refers to SUM(amount); no credit limit refers to creditLimit = 0; year(paymentDate) = '2003';
|
E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.