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 boxes of 'Pavlova' did Northwind sell? | 'Pavlova' is a ProductName | no longer sold refers to Discontinued = 1; products refers to ProductName | ProductName = 'Thringer Rostbratwurst'; | from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount))) | 'Andrew Fuller' is the full name of an employee; full name refers to FistName, LastName; Austria refers to ShipCountry; calculation = DIVIDE(SUM(ShipCountry = 'Austria'), COUNT(OrderID)) * 100 | full name refers to FirstName LastName; highest salary refers to max(Salary) | full name refers to FirstName LastName; contact number refers to HomePhone; descending order of age refers to order by BirthDate desc limit 1 | phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName; | "USA" is the Country; PhD title of courtesy refers to TitleOfCourtesy = 'Dr.' | doctorate refers to TitleOfCourtesy = 'Dr.; | supplied by refers to CompanyName |
Find the percentage of discontinued products in Northwind's portfolio of products. | discontinued products refers to Discontinued = 1; calculation = DIVIDE(SUM(Discontinued = 1), COUNT(ProductID)) * 100 | "Uncle Bob's Organic Dried Pears" is the ProductName; total order quantity refers to Sum(Quantity) | percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100% | company in Spain refers to Country = 'Spain'; product supplied refers to ProductName | territories refer to TerritoryDescription; Title = 'Inside Sales Coordinator'; | more than thirty dollars per unit refers to UnitPrice > 30 | High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG'; | total payment is greater than 15000 refers to MULTIPLY((Quantity * UnitPrice * (1 - Discount))) > 15000
| grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10; | no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA'; | "Formaggi Fortini s.r.l." is the CompanyName; average unit price = AVG(UnitPrice) |
Describe the ordered products which were the most overdue from required date. | the most overdue from required date refers to MIN(SUBTRACT(ShippedDate, RequiredDate) < 0) | highest salary refers to MAX(Salary); full name = FirstName, LastName; | discontinued refers to Discontinued = 1 | "Formaggi Fortini s.r.l." is the CompanyName; average unit price = AVG(UnitPrice) | highest number of territories refers to max(TerritoryID); difference in salary = subtract(employeeA.Salary, employeeB.Salary) | "Gai pturage" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100 | companies refers to CompanyName; | product refers to ProductName; | the largest quantity of "Manjimup Dried Apples" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples'; | discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1) | Federal Shipping refers to CompanyName = 'Federal Shipping' |
What is the total sales amount of all discontinued products? | discontinued products refers to Discontinued = 1; total sales amount refers to SUM(MULTIPLY(UnitPrice, Quantity)) | territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName | Plutzer Lebensmittelgromrkte AG refers to CompanyName; is currently out of stock and on order refers to UnitsInStock = 0 and UnitsOnOrder > 0 | shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage | via United Package refers to CompanyName = 'United Package' | percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100% | product refers to ProductName; | 'Laughing Bacchus Wine Cellars' refers to CompanyName; calculation = DIVIDE(SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)), COUNT(OrderID)) | region refers to RegionDescription | most common product refers to max(count(ProductID)); customer from Germany refers to Country = 'Germany' | 'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName; |
Who is the newest hired employee? Give the full name. | newest hired refers to latest HireDate; full name = FirstName, LastName; | territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName | from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount))) | descriptions refers to TerritoryDescription; region refers to RegionDescription | sales representative refers to Title = 'Sales Representative'; sales values refers to MULTIPLY(Quantity, UnitPrice); the highest sales refers to max(MULTIPLY(Quantity, UnitPrice)) | highest salary refers to MAX(Salary); full name = FirstName, LastName; | most amount of orders refers to max(count(OrderID)); in 1996 refers to OrderDate > = '1996-01-01 00:00:00' AND OrderDate < '1997-01-01 00:00:00'; full name refers to FirstName, LastName | total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120 | shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996 refers to year(OrderDate) = 1996 and month(OrderDate) = 12; | full name refers to FirstName LastName; highest amount of orders refers to max(count(OrderID)) | "Pavlova, Ltd" is the CompanyName; products refers to ProductName |
Which of the American customers have experienced a delay in the shipment and how long was the longest? | "American" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID | Highest reorder level refers to Max(ReorderLevel) | "USA" is the Country; PhD title of courtesy refers to TitleOfCourtesy = 'Dr.' | beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel) | the largest quantity of "Manjimup Dried Apples" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples'; | "Gai pturage" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100 | territories refers to TerritoryDescription; Eastern Region refers to RegionDescription = 'Eastern'; | name of the shipper company refers to ShipName; order No. refers to OrderID; | most amount of orders refers to max(count(OrderID)); in 1996 refers to OrderDate > = '1996-01-01 00:00:00' AND OrderDate < '1997-01-01 00:00:00'; full name refers to FirstName, LastName | Bigfoot Breweries is the name of the company; products refer to ProductName; | freight of over 800 refers to Freight > 800 |
Among the seafoods, how many of them have an order quantity of more than 50? | "Seafood" is the CategoryName; order quantity of more than 50 refers to Quantity > 50 | Drachenblut Delikatessen is the company name; | Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName; | from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount))) | 'Blondesddsl pre et fils' is a CompanyName | full name refers to FirstName LastName; highest salary refers to max(Salary) | shipped to Brazil refers to ShipCountry = 'Brazil'; by Speedy Express Company refers to CompanyName = 'Speedy Express'; total products value refers to sum(MULTIPLY(UnitPrice, Quantity)) | order number 10933 refers to OrderID = 10933; | no longer sold refers to Discontinued = 1; products refers to ProductName | Eastern Region refers to RegionDescription = 'Eastern'; | DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage; |
Write down the notes of employee with the highest salary. | highest salary refers to Max(Salary) | Gula Malacca is the name of the product; company refers to CompanyName; | full name refers to FirstName LastName; contact number refers to HomePhone; descending order of age refers to order by BirthDate desc limit 1 | "Pavlova, Ltd" is the CompanyName; products refers to ProductName | Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20 | Tokyo Traders refers to CompanyName = 'Tokyo Traders' | "American" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID | 9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate; | DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage; | year 1997 refers to year(OrderDate) = 1997; total amount of sales refers to (UnitPrice * Quantity) | doctorate refers to TitleOfCourtesy = 'Dr.; |
Name all products supplied by Zaanse Snoepfabriek. | products refers to ProductName; 'Zaanse Snoepfabriek' is a CompanyName | from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1; | name of the shipper company refers to ShipName; order No. refers to OrderID; | biggest purchase refers to max(ProductID.Order_Details); ship to refers to ShipCountry | phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName; | report to represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; Vice President of Sales refers to Title = 'Vice President, Sales'; | "Uncle Bob's Organic Dried Pears" is the ProductName; total order quantity refers to Sum(Quantity) | highest freight refers to max(Freight) | total production of the product = SUM(units in stock, units on order); order no. refers to OrderID; | "Vice Present of Sales" refers to Title = 'Vice President, Sales'; full name refers to FirstName, LastName; url of photo refers to PhotoPath | ordered by ID 10979 refers to OrderID = '10979'; total payment refers to SUM(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount))) |
Which customer is a regular customer in this shop and what are the products category that he mostly buy? | regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID)) | order number 10558 refers to OrderID = 10558; | "Speedy Express" is the name of the shipping company; orders refer to OrderID; | name of all territories refers to TerritoryDescription; Northern region refers to RegionDescription = 'Northern' | shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage | female employees refers to TitleOfCourtesy = 'Mrs.' or TitleOfCourtesy = 'Ms.'; in charge of 3 or more territories refers to TerritoryID > = 3; | 'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100 | report to represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; Vice President of Sales refers to Title = 'Vice President, Sales'; | shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996 refers to year(OrderDate) = 1996 and month(OrderDate) = 12; | in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName | year 1997 refers to year(OrderDate) = 1997; total amount of sales refers to (UnitPrice * Quantity) |
How many orders were shipped by "Speedy Express"? | "Speedy Express" is the name of the shipping company; orders refer to OrderID; | grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10; | discontinued refers to Discontinued = 1 | year 1997 refers to year(OrderDate) = 1997; total amount of sales refers to (UnitPrice * Quantity) | supplied by refers to CompanyName | shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage | company in Spain refers to Country = 'Spain'; product supplied refers to ProductName | IDs of the orders refers to OrderID; production is not continuous refers to Discontinued = 1; | suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel) | regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID)) | August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID)) |
How many female employees are in charge of 3 or more territories? | female employees refers to TitleOfCourtesy = 'Mrs.' or TitleOfCourtesy = 'Ms.'; in charge of 3 or more territories refers to TerritoryID > = 3; | 'Mascarpone Fabioli' is a ProductName; calculation = SUM(UnitsInStock, UnitsOnOrder) | paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID)) | suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel) | region refers to RegionID; "Columbia" refers to TerritoryDescription = 'Columbia' | in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName | highest salary refers to max(salary); position refers to Title | located in Germany refers to Country = 'Germany'; | HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25'; | ordered by ID 10979 refers to OrderID = '10979'; total payment refers to SUM(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount))) | discontinued refers to Discontinued = 1 |
What proportion of orders are taken by the Sales Representative? | DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage; | product refers to ProductName; | 'USA' is a country; supplier refers to CompanyName | category refers to CategoryName; tofu refers to ProductName = 'Tofu'; | "Pavlova, Ltd" is the CompanyName; products refers to ProductName | Federal Shipping refers to CompanyName = 'Federal Shipping'; | 'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName; | most common product refers to max(count(ProductID)); customer from Germany refers to Country = 'Germany' | phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName; | shipped to Brazil refers to ShipCountry = 'Brazil'; by Speedy Express Company refers to CompanyName = 'Speedy Express'; total products value refers to sum(MULTIPLY(UnitPrice, Quantity)) | supplied by refers to CompanyName |
How many more territories are there in than Eastern Region than in the Southern Region? | how many more = SUBTRACT(SUM(RegionDescription = 'Eastern'), SUM(RegionDescription = 'Southern')); Eastern Region refers to RegionDescription = 'Eastern'; Southern Region refers to RegionDescription = 'Southern'; | "Tokyo Traders" is the CompanyName; average unit price = AVG(UnitPrice) | "10 boxes x 12 pieces" is the QuantityPerUnit | cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName | High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG'; | highest number of products refers to MAX(COUNT(ProductID)) | value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value) | shipped the most times refer to MAX(COUNT(ShipVia)); city of Aachen refers to ShipCity = 'Aache'; companies refers to CompanyName; | newest hired refers to latest HireDate; full name = FirstName, LastName; | in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID) | beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel) |
What are the names of Robert King's territories? | Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription; | product refers to ProductName; | the highest total price paid for an order can be calculated as MAX(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1-Discount))); | "10 boxes x 12 pieces" is the QuantityPerUnit | name of the supplier refers to SupplierID; the most product refers to max(count(ProductID)) | "Teatime Chocolate Biscuits" is the ProductName | Japan Supplier refers to Country = 'Japan'; total product refers to Count (ProductName) | total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120 | "American" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID | Pavlova, Ltd. refers to CompanyName = 'Pavlova, Ltd.' | full name refers to FirstName, LastName |
List all the products that were shipped to Starenweg 5. | products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5'; | DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage; | Federal Shipping refers to CompanyName = 'Federal Shipping'; DIVIDE(SUM(Quantity), COUNT(ProductID)) where CompanyName = 'Federal Shipping' and ShippedDate > = '1996-11-01 00:00:00' AND ShippedDate < '1996-12-01 00:00:00'; | no longer sold refers to Discontinued = 1; products refers to ProductName | Santa Monica refers to TerritoryDescription = 'Santa Monica'; full name = FirstName, MiddleName, LastName; | "Seafood" is the CategoryName; order quantity of more than 50 refers to Quantity > 50 | doctorate refers to TitleOfCourtesy = 'Dr.; | located in Germany refers to Country = 'Germany'; | highest salary refers to max(salary); position refers to Title | descriptions refers to TerritoryDescription; region refers to RegionDescription | Margaret Peacock is the full name of an employee; full name refers to FirstName, LastName; phone number refers to HomePhone |
What are the highest salary earn by the the employee and what is his/her position in the company? | highest salary refers to max(salary); position refers to Title | discontinued products refers to Discontinued = 1; calculation = DIVIDE(SUM(Discontinued = 1), COUNT(ProductID)) * 100 | "Vice Present of Sales" refers to Title = 'Vice President, Sales'; full name refers to FirstName, LastName; url of photo refers to PhotoPath | highest number of territories refers to max(TerritoryID); difference in salary = subtract(employeeA.Salary, employeeB.Salary) | full name refers to FirstName, LastName | shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996 refers to year(OrderDate) = 1996 and month(OrderDate) = 12; | "Laura Callahan" refers to FirstName = 'Laura AND LastName = 'Callahan | "Eastern Region" refers to RegionDescription = 'Eastern'; "Southern Region" refers to RegionDescription = 'Southern'; times = divide(count(TerritoryDescription where RegionDescription = 'Eastern') , count(TerritoryDescription where RegionDescription = 'Southern')) | Eastern Region refers to RegionDescription = 'Eastern'; | freighted products for a value greater than 2,000,000 refer to Freight > 2000000; name of companies refers to CompanyName; | "Teatime Chocolate Biscuits" is the ProductName |
Among the products, how many of them were discontinued in production? | discontinued refers to Discontinued = 1 | in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID) | shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996 refers to year(OrderDate) = 1996 and month(OrderDate) = 12; | suppliers refers to CompanyName; 'cheeses' is a Description | from Japan refers to Country = 'Japan'; total production refers to ADD(UnitsInstock, UnitsOnOrder) | names of all territories refers to TerritoryDescription; | 'Pavlova' is a ProductName | order number 10933 refers to OrderID = 10933; | full address includes Address, City, Region, PostalCode and Country; ContactName = 'Andr Fonseca'; | Morristown refers to TerritoryDescription = 'Morristown' | discontinued products refers to Discontinued = 1; calculation = DIVIDE(SUM(Discontinued = 1), COUNT(ProductID)) * 100 |
How many products supplied by Plutzer Lebensmittelgromrkte AG that is currently out of stock and on order? | Plutzer Lebensmittelgromrkte AG refers to CompanyName; is currently out of stock and on order refers to UnitsInStock = 0 and UnitsOnOrder > 0 | freight of over 800 refers to Freight > 800 | names of all territories refers to TerritoryDescription; | shipping company refers to Shippers; phone number refers to Phone | 'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle | "Gai pturage" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100 | more than thirty dollars per unit refers to UnitPrice > 30 | companies refers to ShipperID | average salary = AVG(Salary) | Eastern Region refers to RegionDescription = 'Eastern'; | "Northern" region refers to RegionDescription = 'Northern' |
What were the products supplied by the company in Spain? | company in Spain refers to Country = 'Spain'; product supplied refers to ProductName | from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1; | "10 boxes x 12 pieces" is the QuantityPerUnit | "Formaggi Fortini s.r.l." is the CompanyName; average unit price = AVG(UnitPrice) | from USA refers to Country = 'USA' | "Eastern" is the RegionDescription | "Pavlova, Ltd" is the CompanyName; products refers to ProductName | in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName | beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel) | Vice President of Sales refers to Title = 'Vice President, Sales'; | Bigfoot Breweries is the name of the company; products refer to ProductName; |
Indicate the fax of the company Blondesddsl pre et fils in Strasbourg city. | 'Blondesddsl pre et fils' is a CompanyName | paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID)) | Vegie-spread product refers to ProductName = 'Vegie-spread';total payment = MULTIPLY(UnitPrice, Quantity, (1-Discount)) | HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25'; | average = AVG(Quantity); Ikura refers to ProductName = 'Ikura'; | "Northern" region refers to RegionDescription = 'Northern' | most amount of orders refers to max(count(OrderID)); in 1996 refers to OrderDate > = '1996-01-01 00:00:00' AND OrderDate < '1997-01-01 00:00:00'; full name refers to FirstName, LastName | "American" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID | no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA'; | most customers refers to max(count(Relationship)) | required on 3/26/1998 refers to RequiredDate = '1998-03-26 00:00:00'; products ordered refers to ProductName |
Who are the suppliers of the discontinued products? | discontinued product refers to Discontinued = 1; supplier refers to CompanyName | shipped to Mexico refers to ShipCountry = 'Mexico'; in 1996 refers to year(ShippedDate) = 1996; charge of inside sales coordinator refers to Title = 'Inside Sales Coordinator' | in the Eastern region refers to RegionDescription = 'Eastern' | products refers to ProductName; 'Zaanse Snoepfabriek' is a CompanyName | territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName | in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID) | Chef Anton's Cajun Seasoning' AND 'Chef Anton''s Gumbo Mix' are ProductName; 'New Orleans Cajun Delights' is a CompanyName; calculation = SUBTRACT(UnitPrice where ProductName = 'Chef Anton's Cajun Seasoning', UnitPrice where ProductName = 'Chef Anton''s Gumbo Mix') | freighted products for a value greater than 2,000,000 refer to Freight > 2000000; name of companies refers to CompanyName; | name of product refers to ProductName; ID refers to ProductID | "Gai pturage" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100 | full name refers to FirstName, LastName; brith day refers to BirthDate |
How many sales values have been created by sales representative and which sales representative have the highest sales? | sales representative refers to Title = 'Sales Representative'; sales values refers to MULTIPLY(Quantity, UnitPrice); the highest sales refers to max(MULTIPLY(Quantity, UnitPrice)) | shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996 refers to year(OrderDate) = 1996 and month(OrderDate) = 12; | most widely used refers to max(count(ShipVia)); shipping company refers to CompanyName; in the United States of America refers to ShipCountry = 'USA' | Federal Shipping refers to CompanyName = 'Federal Shipping'; DIVIDE(SUM(Quantity), COUNT(ProductID)) where CompanyName = 'Federal Shipping' and ShippedDate > = '1996-11-01 00:00:00' AND ShippedDate < '1996-12-01 00:00:00'; | phone refers to HomePhone; Portsmouth territory refers to TerritoryDescription = 'Portsmouth'; | DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage; | discontinued refers to Discontinued = 1 | three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry'; | name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup'; | percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100% | Plutzer Lebensmittelgromrkte AG refers to CompanyName; is currently out of stock and on order refers to UnitsInStock = 0 and UnitsOnOrder > 0 |
Please list the full names and titles of all employees. | full name refers to LastName, FirstName | Tokyo Traders refers to CompanyName = 'Tokyo Traders' | majority of the suppliers located refers to MAX(COUNT(SupplierID)) | most amount of orders refers to max(count(OrderID)); in 1996 refers to OrderDate > = '1996-01-01 00:00:00' AND OrderDate < '1997-01-01 00:00:00'; full name refers to FirstName, LastName | ordered by ID 10979 refers to OrderID = '10979'; total payment refers to SUM(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount))) | Eastern Region refers to RegionDescription = 'Eastern'; | Name the shipper refers to CompanyName; most shipments refers to max(count(OrderID)); first quarter of 1998 refers to ShippedDate = 1998/1 and ShippedDate = 1998/2 and ShippedDate = 1998/3 and ShippedDate = 1998/4 | territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName | shipped to France refers to ShipCountry = 'France'; | highest freight refers to max(Freight) | three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry'; |
Please name any two products that have the highest satisfaction levels among users of Heli Swaren GmbH & Co. KG. | High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG'; | paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID)) | full name refers to FirstName LastName; contact number refers to HomePhone; descending order of age refers to order by BirthDate desc limit 1 | in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName | Margaret Peacock is the full name of an employee; full name refers to FirstName, LastName; phone number refers to HomePhone | IDs of the orders refers to OrderID; production is not continuous refers to Discontinued = 1; | "American" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID | Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription; | name of all territories refers to TerritoryDescription; Northern region refers to RegionDescription = 'Northern' | Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20 | condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID |
What are the companies that have the same phone area code as 171? | phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName; | full name refers to FirstName LastName; highest salary refers to max(Salary) | "New Orleans Cajun Delights" is the CompanyName; discontinued refers to Discontinued = 1 | doctorate refers to TitleOfCourtesy = 'Dr.; | the least shipped product refers ProductName where MIN(Quantity); | product refers to ProductName; | "Eastern Region" refers to RegionDescription = 'Eastern'; "Southern Region" refers to RegionDescription = 'Southern'; times = divide(count(TerritoryDescription where RegionDescription = 'Eastern') , count(TerritoryDescription where RegionDescription = 'Southern')) | suppliers refers to CompanyName; 'cheeses' is a Description | from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1; | 9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate; | descriptions refers to TerritoryDescription; region refers to RegionDescription |
How many employees is a UK citizen and are they all covering the same region? | is a UK citizen refers to Country = 'UK' | High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG'; | Drachenblut Delikatessen is the company name; | territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName | "Brazil" is the ShipCountry; from 3/31/97 to 12/10/97 refers to 1997-03-31 < ShippedDate < 1997-10-12 | highest number of products refers to MAX(COUNT(ProductID)) | Vegie-spread product refers to ProductName = 'Vegie-spread';total payment = MULTIPLY(UnitPrice, Quantity, (1-Discount)) | "Gai pturage" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100 | "Vice Present of Sales" refers to Title = 'Vice President, Sales'; full name refers to FirstName, LastName; url of photo refers to PhotoPath | newest hired refers to latest HireDate; full name = FirstName, LastName; | 'Andrew Fuller' is the full name of an employee; full name refers to FistName, LastName; Austria refers to ShipCountry; calculation = DIVIDE(SUM(ShipCountry = 'Austria'), COUNT(OrderID)) * 100 |
Which product is the most expensive? | most expensive product refers to ProductName where MAX(UnitPrice); | total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120 | Pavlova, Ltd. refers to CompanyName = 'Pavlova, Ltd.' | full name refers to FirstName, LastName; shipped to USA refers to ShipCountry = 'USA' | "Eastern" is the RegionDescription | most ordered refers to max(COUNT(OrderID)) | 'Laughing Bacchus Wine Cellars' refers to CompanyName; calculation = DIVIDE(SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)), COUNT(OrderID)) | suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel) | in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName | region refers to RegionDescription | most widely used refers to max(count(ShipVia)); shipping company refers to CompanyName; in the United States of America refers to ShipCountry = 'USA' |
Indicate the name of the categories to which the products of order number 10933 belong. | order number 10933 refers to OrderID = 10933; | "American" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID | "Eastern" is the RegionDescription | full name refers to FirstName, LastName; brith day refers to BirthDate | shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage | name of the supplier refers to SupplierID; the most product refers to max(count(ProductID)) | most customers refers to max(count(Relationship)) | 'Andrew Fuller' is the full name of an employee; full name refers to FistName, LastName; Austria refers to ShipCountry; calculation = DIVIDE(SUM(ShipCountry = 'Austria'), COUNT(OrderID)) * 100 | shipped to France refers to ShipCountry = 'France'; | highest number refers to max(count(CustomerID)) | shipped the most times refer to MAX(COUNT(ShipVia)); city of Aachen refers to ShipCity = 'Aache'; companies refers to CompanyName; |
How many territories are there in the Eastern Region? | Eastern Region refers to RegionDescription = 'Eastern'; | HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25'; | biggest purchase refers to max(ProductID.Order_Details); ship to refers to ShipCountry | Plutzer Lebensmittelgromrkte AG refers to CompanyName; is currently out of stock and on order refers to UnitsInStock = 0 and UnitsOnOrder > 0 | "Brazil" is the ShipCountry; from 3/31/97 to 12/10/97 refers to 1997-03-31 < ShippedDate < 1997-10-12 | phone refers to HomePhone; Portsmouth territory refers to TerritoryDescription = 'Portsmouth'; | ordered by ID 10979 refers to OrderID = '10979'; total payment refers to SUM(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount))) | Chef Anton's Cajun Seasoning' AND 'Chef Anton''s Gumbo Mix' are ProductName; 'New Orleans Cajun Delights' is a CompanyName; calculation = SUBTRACT(UnitPrice where ProductName = 'Chef Anton's Cajun Seasoning', UnitPrice where ProductName = 'Chef Anton''s Gumbo Mix') | "Laura Callahan" refers to FirstName = 'Laura AND LastName = 'Callahan | shipped to Mexico refers to ShipCountry = 'Mexico'; in 1996 refers to year(ShippedDate) = 1996; charge of inside sales coordinator refers to Title = 'Inside Sales Coordinator' | sales representative refers to Title = 'Sales Representative'; sales values refers to MULTIPLY(Quantity, UnitPrice); the highest sales refers to max(MULTIPLY(Quantity, UnitPrice)) |
What is the phone number for the employee in charge of the Portsmouth territory? | phone refers to HomePhone; Portsmouth territory refers to TerritoryDescription = 'Portsmouth'; | how many more = SUBTRACT(SUM(RegionDescription = 'Eastern'), SUM(RegionDescription = 'Southern')); Eastern Region refers to RegionDescription = 'Eastern'; Southern Region refers to RegionDescription = 'Southern'; | ProductName = 'Thringer Rostbratwurst'; | shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage | "Gai pturage" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100 | most customers refers to max(count(Relationship)) | total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120 | most widely used refers to max(count(ShipVia)); shipping company refers to CompanyName; in the United States of America refers to ShipCountry = 'USA' | London refers to city = 'London'; | beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel) | name of the shipper company refers to ShipName; order No. refers to OrderID; |
What is the quantity of Ikura ordered in order no. 10273? | Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID; | beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel) | suppliers refers to CompanyName; 'cheeses' is a Description | grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10; | discontinued products refers to Discontinued = 1; total sales amount refers to SUM(MULTIPLY(UnitPrice, Quantity)) | under confections category refers to CategoryName = 'Confections'; | is a UK citizen refers to Country = 'UK' | regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID)) | most costly refers to max(add(unit price , Freight)); in 1998 refers to OrderDate > = '1998-01-01 00:00:00' AND OrderDate < '1999-01-01 00:00:00' | full name refers to FirstName, LastName; Denver is a TerritoryDescription | London refers to city = 'London'; |
List down the company names which supplied products for the order on 14th August, 1996. | products refers to Order_Details.ProductID; on 14th August, 1996 refers to OrderDate = '8/14/1996' | three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry'; | name of the shipper company refers to ShipName; order No. refers to OrderID; | grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10; | highest number of territories refers to max(TerritoryID) | London refers to city = 'London'; | products belong to beverage category refer to ProductName where CategoryName = 'beverage'; | region refers to RegionDescription | 'USA' is a country; supplier refers to CompanyName | "Uncle Bob's Organic Dried Pears" is the ProductName; total order quantity refers to Sum(Quantity) | Vice President of Sales refers to Title = 'Vice President, Sales'; |
Calculate the total production for each product which were supplied from Japan | from Japan refers to Country = 'Japan'; total production refers to ADD(UnitsInstock, UnitsOnOrder) | cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName | "10 boxes x 12 pieces" is the QuantityPerUnit | Santa Monica refers to TerritoryDescription = 'Santa Monica'; full name = FirstName, MiddleName, LastName; | grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10; | more than thirty dollars per unit refers to UnitPrice > 30 | discontinued product refers to Discontinued = 1; supplier refers to CompanyName | phone refers to HomePhone; Portsmouth territory refers to TerritoryDescription = 'Portsmouth'; | products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5'; | in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID) | in the Eastern region refers to RegionDescription = 'Eastern' |
How many employees have territories in the Eastern region? | "Eastern" is the RegionDescription | highest salary refers to max(salary); position refers to Title | products refers to Order_Details.ProductID; on 14th August, 1996 refers to OrderDate = '8/14/1996' | average salary = AVG(Salary) | year 1997 refers to year(OrderDate) = 1997; total amount of sales refers to (UnitPrice * Quantity) | Plutzer Lebensmittelgromrkte AG refers to CompanyName; is currently out of stock and on order refers to UnitsInStock = 0 and UnitsOnOrder > 0 | Highest reorder level refers to Max(ReorderLevel) | Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20 | "Eastern Region" refers to RegionDescription = 'Eastern'; "Southern Region" refers to RegionDescription = 'Southern'; times = divide(count(TerritoryDescription where RegionDescription = 'Eastern') , count(TerritoryDescription where RegionDescription = 'Southern')) | Drachenblut Delikatessen is the company name; | companies refers to ShipperID |
State the name of all territories in Northern region. | name of all territories refers to TerritoryDescription; Northern region refers to RegionDescription = 'Northern' | cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName | required on 3/26/1998 refers to RequiredDate = '1998-03-26 00:00:00'; products ordered refers to ProductName | 'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle | total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120 | most expensive product refers to ProductName where MAX(UnitPrice); | GREAL refers to CustomerID = 'GREAL'; via United Package refers to CompanyName = 'United Package' | descriptions refers to TerritoryDescription; region refers to RegionDescription | Vice President of Sales refers to Title = 'Vice President, Sales'; | value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value) | 'Laughing Bacchus Wine Cellars' refers to CompanyName; calculation = DIVIDE(SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)), COUNT(OrderID)) |
Identify the name of the most popular dairy product in terms of reorder quantity. | 'dairy product' refers to CategoryName; most popular reorder quantity refers to MAX(ReorderLevel) | most total sales refers to Max(SaleAmount); companies refers to CompanyName | Eastern Region refers to RegionDescription = 'Eastern'; | from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount))) | total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID; | total production of the product = SUM(units in stock, units on order); order no. refers to OrderID; | 'Exotic Liquids' is a CompanyName; units in stock over 100 refers to UnitsInStock > 100 | shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996 refers to year(OrderDate) = 1996 and month(OrderDate) = 12; | home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah'; | most common product refers to max(count(ProductID)); customer from Germany refers to Country = 'Germany' | order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock)); |
Give the full name of the youngest employee. | full name = FirstName, LastName; youngest refers to latest BirthDate; | 'Confections' is a CompanyName; | Eastern Region refers to RegionDescription = 'Eastern'; | in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName | shipped to the city of Paris refers to ShipCity = 'Paris'; | shipping company refers to Shippers; phone number refers to Phone | discontinued product refers to Discontinued = 1; supplier refers to CompanyName | less than 4 territories refers to EmployeeID where Count(TerritoryID) < 4 | 'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title | "Uncle Bob's Organic Dried Pears" is the ProductName; total order quantity refers to Sum(Quantity) | full name refers to FirstName, LastName; brith day refers to BirthDate |
What are the total products value shipped to Brazil by Speedy Express Company? | shipped to Brazil refers to ShipCountry = 'Brazil'; by Speedy Express Company refers to CompanyName = 'Speedy Express'; total products value refers to sum(MULTIPLY(UnitPrice, Quantity)) | phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName; | region refers to RegionID; "Columbia" refers to TerritoryDescription = 'Columbia' | report to represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; Vice President of Sales refers to Title = 'Vice President, Sales'; | shipping company refers to Shippers; phone number refers to Phone | Federal Shipping refers to CompanyName = 'Federal Shipping'; | from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1; | name of the shipper company refers to ShipName; order No. refers to OrderID; | located in Germany refers to Country = 'Germany'; | reported to employee id 5 refers to ReportsTo = 5 | doctorate refers to TitleOfCourtesy = 'Dr.; |
From which country is the company "Drachenblut Delikatessen" from? | Drachenblut Delikatessen is the company name; | names of all territories refers to TerritoryDescription; | least order refers to Min(OrderID) | 'Andrew Fuller' is the full name of an employee; full name refers to FistName, LastName; Austria refers to ShipCountry; calculation = DIVIDE(SUM(ShipCountry = 'Austria'), COUNT(OrderID)) * 100 | 'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100 | 'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title | product refers to ProductName; highest user satisfaction refers to max(ReorderLevel) | 'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID | average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK' | suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel) | "New Orleans Cajun Delights" is the CompanyName; discontinued refers to Discontinued = 1 |
Who is the Sales Agent for the company 'Eastern Connection'? | 'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle | average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK' | highest salary refers to MAX(Salary); full name = FirstName, LastName; | from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount))) | products refers to Order_Details.ProductID; on 14th August, 1996 refers to OrderDate = '8/14/1996' | Chef Anton's Cajun Seasoning' AND 'Chef Anton''s Gumbo Mix' are ProductName; 'New Orleans Cajun Delights' is a CompanyName; calculation = SUBTRACT(UnitPrice where ProductName = 'Chef Anton's Cajun Seasoning', UnitPrice where ProductName = 'Chef Anton''s Gumbo Mix') | via United Package refers to CompanyName = 'United Package' | DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage; | from UK refers to Country = 'UK' | Tokyo Traders refers to CompanyName = 'Tokyo Traders' | Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID; |
The sales of how many territories in total do the employees in London take charge of? | London refers to city = 'London'; | "Gai pturage" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100 | in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID) | average sales = AVG(ProductSales) | via United Package refers to CompanyName = 'United Package' | report to represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; Vice President of Sales refers to Title = 'Vice President, Sales'; | paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID)) | full name refers to FirstName LastName; highest amount of orders refers to max(count(OrderID)) | discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1) | name of all territories refers to TerritoryDescription; Northern region refers to RegionDescription = 'Northern' | name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup'; |
Which of Cooperativa de Quesos 'Las Cabras' products have a unit price greater than 20? | Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20 | Federal Shipping refers to CompanyName = 'Federal Shipping'; DIVIDE(SUM(Quantity), COUNT(ProductID)) where CompanyName = 'Federal Shipping' and ShippedDate > = '1996-11-01 00:00:00' AND ShippedDate < '1996-12-01 00:00:00'; | name of product refers to ProductName; ID refers to ProductID | condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID | Hollis refers to TerritoryDescription = 'Hollis'; full name = FirstName, LastName; | region refers to RegionID; "Columbia" refers to TerritoryDescription = 'Columbia' | Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate)) | full name refers to LastName, FirstName | phone refers to HomePhone; Portsmouth territory refers to TerritoryDescription = 'Portsmouth'; | how many more = SUBTRACT(SUM(RegionDescription = 'Eastern'), SUM(RegionDescription = 'Southern')); Eastern Region refers to RegionDescription = 'Eastern'; Southern Region refers to RegionDescription = 'Southern'; | Gula Malacca is the name of the product; company refers to CompanyName; |
Which employee is in charge of the sales in Hollis? Please give the employee's full name. | Hollis refers to TerritoryDescription = 'Hollis'; full name = FirstName, LastName; | "Uncle Bob's Organic Dried Pears" is the ProductName; total order quantity refers to Sum(Quantity) | London refers to city = 'London'; | via United Package refers to CompanyName = 'United Package'; in 1997 refers to OrderDate > = '1997-01-01 00:00:00' AND OrderDate < '1998-01-01 00:00:00'; average unit price = divide(sum(UnitPrice), count(ShipperID)) | 'Mascarpone Fabioli' is a ProductName; calculation = SUM(UnitsInStock, UnitsOnOrder) | the least shipped product refers ProductName where MIN(Quantity); | territories refer to TerritoryDescription; Title = 'Inside Sales Coordinator'; | Plutzer Lebensmittelgromrkte AG refers to CompanyName; is currently out of stock and on order refers to UnitsInStock = 0 and UnitsOnOrder > 0 | cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName | most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ; total sales refers to sum(MULTIPLY(Quantity, UnitPrice)) | through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100% |
Give the name of the territory where Mr. Robert King works. | name of territory refers to TerritoryDescription; Mr. refers to TitleOfCourtesy = 'Mr'; | category refers to CategoryName; tofu refers to ProductName = 'Tofu'; | via United Package refers to CompanyName = 'United Package' | 'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName; | highest salary refers to max(salary); position refers to Title | August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID)) | Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate)) | High reorder level generally means high user satisfaction of the product and vice versa; the least satisfaction refers to MIN(ReorderLevel); the highest unit price refers to MAX(UnitPrice); | percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100% | the most overdue from required date refers to MIN(SUBTRACT(ShippedDate, RequiredDate) < 0) | shipping company refers to Shippers; phone number refers to Phone |
How many of the orders are shipped to France? | shipped to France refers to ShipCountry = 'France'; | "Laura Callahan" refers to FirstName = 'Laura AND LastName = 'Callahan | majority of the suppliers located refers to MAX(COUNT(SupplierID)) | name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup'; | three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry'; | "Gai pturage" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100 | 'dairy product' refers to CategoryName; most popular reorder quantity refers to MAX(ReorderLevel) | in the Eastern region refers to RegionDescription = 'Eastern' | discontinued product refers to Discontinued = 1; supplier refers to CompanyName | supplied by refers to CompanyName | average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK' |
How many territories are there in the region with the highest number of territories? | highest number of territories refers to max(TerritoryID) | London refers to city = 'London'; | Federal Shipping refers to CompanyName = 'Federal Shipping'; | "Formaggi Fortini s.r.l." is the CompanyName; average unit price = AVG(UnitPrice) | most expensive product refers to ProductName where MAX(UnitPrice); | Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription; | Morristown refers to TerritoryDescription = 'Morristown' | "10 boxes x 12 pieces" is the QuantityPerUnit | 'Andrew Fuller' is the full name of an employee; full name refers to FistName, LastName; Austria refers to ShipCountry; calculation = DIVIDE(SUM(ShipCountry = 'Austria'), COUNT(OrderID)) * 100 | in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName | "Gai pturage" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100 |
What product is the least shipped to the postal code 28023? | the least shipped product refers ProductName where MIN(Quantity); | regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID)) | shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996 refers to year(OrderDate) = 1996 and month(OrderDate) = 12; | highest salary refers to max(salary); position refers to Title | shipped to France refers to ShipCountry = 'France'; | IDs of the orders refers to OrderID; production is not continuous refers to Discontinued = 1; | highest freight refers to max(Freight) | Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription; | name of the supplier refers to SupplierID; the most product refers to max(count(ProductID)) | name of product refers to ProductName; ID refers to ProductID | High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG'; |
Among the USA employess, how many of them has PhD title of courtesy? | "USA" is the Country; PhD title of courtesy refers to TitleOfCourtesy = 'Dr.' | Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName; | name of territory refers to TerritoryDescription; Mr. refers to TitleOfCourtesy = 'Mr'; | products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5'; | in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID) | total production of the product = SUM(units in stock, units on order); order no. refers to OrderID; | companies refers to ShipperID | product refers to ProductName; | located in Germany refers to Country = 'Germany'; | shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996 refers to year(OrderDate) = 1996 and month(OrderDate) = 12; | discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1) |
What is the position of Robert King? | 'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title | discontinued refers to Discontinued = 1 | highest number refers to max(count(CustomerID)) | discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1) | shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage | Sales Manager refers to Title = 'Sales Manager'; full name refers to FirstName, LastName | 'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID | total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120 | "Eastern" is the RegionDescription | located in Germany refers to Country = 'Germany'; | 'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle |
List all product names under Confections. | 'Confections' is a CompanyName; | grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10; | percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100% | companies refers to CompanyName; | highest number of territories refers to max(TerritoryID) | "Eastern" is the RegionDescription | "Pavlova, Ltd" is the CompanyName; products refers to ProductName | phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName; | product refers to ProductName; highest user satisfaction refers to max(ReorderLevel) | shipped to the city of Paris refers to ShipCity = 'Paris'; | in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName |
What is the name of product with the ID of 77? | name of product refers to ProductName; ID refers to ProductID | average = AVG(Quantity); Ikura refers to ProductName = 'Ikura'; | companies refers to ShipperID | 'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title | "Seafood" is the CategoryName; order quantity of more than 50 refers to Quantity > 50 | "10 boxes x 12 pieces" is the QuantityPerUnit | supplied by refers to CompanyName | via United Package refers to CompanyName = 'United Package'; in 1997 refers to OrderDate > = '1997-01-01 00:00:00' AND OrderDate < '1998-01-01 00:00:00'; average unit price = divide(sum(UnitPrice), count(ShipperID)) | beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel) | more than thirty dollars per unit refers to UnitPrice > 30 | Margaret Peacock is the full name of an employee; full name refers to FirstName, LastName; phone number refers to HomePhone |
Calculate the average payment per product under confections category. | under confections category refers to CategoryName = 'Confections'; | most common product refers to max(count(ProductID)); customer from Germany refers to Country = 'Germany' | full name refers to FirstName LastName; highest amount of orders refers to max(count(OrderID)) | full address includes Address, City, Region, PostalCode and Country; ContactName = 'Andr Fonseca'; | 'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title | Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName; | how many more = SUBTRACT(SUM(RegionDescription = 'Eastern'), SUM(RegionDescription = 'Southern')); Eastern Region refers to RegionDescription = 'Eastern'; Southern Region refers to RegionDescription = 'Southern'; | newest hired refers to latest HireDate; full name = FirstName, LastName; | the most overdue from required date refers to MIN(SUBTRACT(ShippedDate, RequiredDate) < 0) | Ms. refers to TitleOfCourtesy = 'Ms'; ReportsTo’ represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; name of the territory refers to TerritoryDescription; | highest number of territories refers to max(TerritoryID); difference in salary = subtract(employeeA.Salary, employeeB.Salary) |
What is the most widely used shipping company in the United States of America? | most widely used refers to max(count(ShipVia)); shipping company refers to CompanyName; in the United States of America refers to ShipCountry = 'USA' | most amount of orders refers to max(count(OrderID)); in 1996 refers to OrderDate > = '1996-01-01 00:00:00' AND OrderDate < '1997-01-01 00:00:00'; full name refers to FirstName, LastName | 'USA' is a country; supplier refers to CompanyName | "Vice Present of Sales" refers to Title = 'Vice President, Sales'; full name refers to FirstName, LastName; url of photo refers to PhotoPath | ID 1 to 9 refers to EmployeeID BETWEEN 1 AND 9; Average salary = AVG(Salary) | Japan Supplier refers to Country = 'Japan'; total product refers to Count (ProductName) | Hollis refers to TerritoryDescription = 'Hollis'; full name = FirstName, LastName; | highest salary refers to max(salary); position refers to Title | Sales Manager refers to Title = 'Sales Manager'; full name refers to FirstName, LastName | "Seafood" is the CategoryName; order quantity of more than 50 refers to Quantity > 50 | Tokyo Traders refers to CompanyName = 'Tokyo Traders' |
Mention the oldest empoyee's full name, title, salary and number of orders which were shipped to USA by him. | full name refers to FirstName, LastName; shipped to USA refers to ShipCountry = 'USA' | from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1; | territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName | UK refers to Country = 'UK'; employees with over 4 territories refers to EmployeeID WHERE TerritoryID > 4; | highest salary refers to max(salary); position refers to Title | sales representative refers to Title = 'Sales Representative'; sales values refers to MULTIPLY(Quantity, UnitPrice); the highest sales refers to max(MULTIPLY(Quantity, UnitPrice)) | percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100% | no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA'; | "Laura Callahan" refers to FirstName = 'Laura AND LastName = 'Callahan | Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription; | via United Package refers to CompanyName = 'United Package' |
How many territories are there in the Eastern region? | "Eastern" is the RegionDescription | shipping company refers to Shippers; phone number refers to Phone | Eastern Region refers to RegionDescription = 'Eastern'; | products belong to beverage category refer to ProductName where CategoryName = 'beverage'; | ID 1 to 9 refers to EmployeeID BETWEEN 1 AND 9; Average salary = AVG(Salary) | value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value) | no longer sold refers to Discontinued = 1; products refers to ProductName | High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG'; | three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry'; | the most overdue from required date refers to MIN(SUBTRACT(ShippedDate, RequiredDate) < 0) | total production of the product = SUM(units in stock, units on order); order no. refers to OrderID; |
In total, how many orders were shipped via United Package? | via United Package refers to CompanyName = 'United Package' | HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25'; | DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage; | under confections category refers to CategoryName = 'Confections'; | order number 10933 refers to OrderID = 10933; | freighted products for a value greater than 2,000,000 refer to Freight > 2000000; name of companies refers to CompanyName; | the highest total price paid for an order can be calculated as MAX(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1-Discount))); | region refers to RegionDescription | Eastern Region refers to RegionDescription = 'Eastern'; | "Northern" region refers to RegionDescription = 'Northern' | Vegie-spread product refers to ProductName = 'Vegie-spread';total payment = MULTIPLY(UnitPrice, Quantity, (1-Discount)) |
Please calculate the number of orders from customers by country in 1996. | in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID) | full name = FirstName, LastName; youngest refers to latest BirthDate; | 'Blondesddsl pre et fils' is a CompanyName | supplied by refers to CompanyName | through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100% | total payment is greater than 15000 refers to MULTIPLY((Quantity * UnitPrice * (1 - Discount))) > 15000
| average = AVG(Quantity); Ikura refers to ProductName = 'Ikura'; | descriptions refers to TerritoryDescription; region refers to RegionDescription | value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value) | 'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title | is a UK citizen refers to Country = 'UK' |
Among the products under grains/cereals category, provide the contact person and title of the supplier with one digit ID. | grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10; | Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID; | Plutzer Lebensmittelgromrkte AG refers to CompanyName; is currently out of stock and on order refers to UnitsInStock = 0 and UnitsOnOrder > 0 | "Eastern Region" refers to RegionDescription = 'Eastern'; "Southern Region" refers to RegionDescription = 'Southern'; times = divide(count(TerritoryDescription where RegionDescription = 'Eastern') , count(TerritoryDescription where RegionDescription = 'Southern')) | discontinued products refers to Discontinued = 1; total sales amount refers to SUM(MULTIPLY(UnitPrice, Quantity)) | High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG'; | 'Pavlova' is a ProductName | average salary = AVG(Salary) | product refers to ProductName; | company in Spain refers to Country = 'Spain'; product supplied refers to ProductName | category refers to CategoryName; tofu refers to ProductName = 'Tofu'; |
How many products have been discountinued by New Orleans Cajun Delights? | "New Orleans Cajun Delights" is the CompanyName; discontinued refers to Discontinued = 1 | full name refers to FirstName LastName; highest amount of orders refers to max(count(OrderID)) | condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID | DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage; | name of the shipper company refers to ShipName; order No. refers to OrderID; | "Teatime Chocolate Biscuits" is the ProductName | shipped through refers to ShipVia; United Package refers to CompanyName = 'United Package' | ordered by ID 10979 refers to OrderID = '10979'; total payment refers to SUM(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount))) | discontinued product refers to Discontinued = 1; supplier refers to CompanyName | "Formaggi Fortini s.r.l." is the CompanyName; average unit price = AVG(UnitPrice) | 9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate; |
Calculate the percentage salary of employees who handled orders shipped in 1996. | shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage | 'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID | discontinued product refers to Discontinued = 1; supplier refers to CompanyName | how much lower in percentage = MULTIPLY(DIVIDE(SUBTRACT(Products.UnitPrice, Order Details.UnitPrice), Products.UnitPrice), 100); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID; | average salary = AVG(Salary) | names of all territories refers to TerritoryDescription; | product refers to ProductName; highest user satisfaction refers to max(ReorderLevel) | "Northern" region refers to RegionDescription = 'Northern' | "Uncle Bob's Organic Dried Pears" is the ProductName; total order quantity refers to Sum(Quantity) | 9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate; | in the Eastern region refers to RegionDescription = 'Eastern' |
What is the difference in number of unit price from Chef Anton's Cajun Seasoning product and Chef Anton's Gumbo Mix product of New Orleans Cajun Delights company. | Chef Anton's Cajun Seasoning' AND 'Chef Anton''s Gumbo Mix' are ProductName; 'New Orleans Cajun Delights' is a CompanyName; calculation = SUBTRACT(UnitPrice where ProductName = 'Chef Anton's Cajun Seasoning', UnitPrice where ProductName = 'Chef Anton''s Gumbo Mix') | in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName | Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName; | total payment is greater than 15000 refers to MULTIPLY((Quantity * UnitPrice * (1 - Discount))) > 15000
| the least shipped product refers ProductName where MIN(Quantity); | full name refers to FirstName, LastName; shipped to USA refers to ShipCountry = 'USA' | total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID; | home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah'; | discontinued products refers to Discontinued = 1; calculation = DIVIDE(SUM(Discontinued = 1), COUNT(ProductID)) * 100 | three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry'; | Drachenblut Delikatessen is the company name; |
How many products were supplied by Pavlova, Ltd.? | Pavlova, Ltd. refers to CompanyName = 'Pavlova, Ltd.' | total production amount refers to ADD(UnitsInstock, UnitsOnOrder) | products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5'; | company in Spain refers to Country = 'Spain'; product supplied refers to ProductName | three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry'; | required on 3/26/1998 refers to RequiredDate = '1998-03-26 00:00:00'; products ordered refers to ProductName | Eastern Region refers to RegionDescription = 'Eastern'; | "10 boxes x 12 pieces" is the QuantityPerUnit | "Eastern" is the RegionDescription | the most overdue from required date refers to MIN(SUBTRACT(ShippedDate, RequiredDate) < 0) | most widely used refers to max(count(ShipVia)); shipping company refers to CompanyName; in the United States of America refers to ShipCountry = 'USA' |
Name the shipper which had the most shipments in first quarter of 1998. | Name the shipper refers to CompanyName; most shipments refers to max(count(OrderID)); first quarter of 1998 refers to ShippedDate = 1998/1 and ShippedDate = 1998/2 and ShippedDate = 1998/3 and ShippedDate = 1998/4 | average = AVG(Quantity); Ikura refers to ProductName = 'Ikura'; | 'Mascarpone Fabioli' is a ProductName; calculation = SUM(UnitsInStock, UnitsOnOrder) | the highest unit price refers to MAX(UnitPrice); | discontinued products refers to Discontinued = 1; calculation = DIVIDE(SUM(Discontinued = 1), COUNT(ProductID)) * 100 | "Formaggi Fortini s.r.l." is the CompanyName; average unit price = AVG(UnitPrice) | shipped to the city of Paris refers to ShipCity = 'Paris'; | 'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle | shipped to Mexico refers to ShipCountry = 'Mexico'; in 1996 refers to year(ShippedDate) = 1996; charge of inside sales coordinator refers to Title = 'Inside Sales Coordinator' | less than 4 territories refers to EmployeeID where Count(TerritoryID) < 4 | discontinued refers to Discontinued = 1 |
Which company had the most orders in 1998? | in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName | shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996 refers to year(OrderDate) = 1996 and month(OrderDate) = 12; | "Tokyo Traders" is the CompanyName; average unit price = AVG(UnitPrice) | GREAL refers to CustomerID = 'GREAL'; via United Package refers to CompanyName = 'United Package' | most common product refers to max(count(ProductID)); customer from Germany refers to Country = 'Germany' | Gula Malacca is the name of the product; company refers to CompanyName; | product refers to ProductName; highest user satisfaction refers to max(ReorderLevel) | from UK refers to Country = 'UK' | 'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID | total production amount refers to ADD(UnitsInstock, UnitsOnOrder) | Eastern Region refers to RegionDescription = 'Eastern'; |
Among the beverages, which product has the highest customer satisfaction? | beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel) | paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID)) | from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount))) | discontinued product refers to Discontinued = 1; supplier refers to CompanyName | the largest quantity of "Manjimup Dried Apples" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples'; | newest hired refers to latest HireDate; full name = FirstName, LastName; | 'Blondesddsl pre et fils' is a CompanyName | name of product refers to ProductName; ID refers to ProductID | High reorder level generally means high user satisfaction of the product and vice versa; the least satisfaction refers to MIN(ReorderLevel); the highest unit price refers to MAX(UnitPrice); | Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID; | 'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName; |
Tell the name of the shipper company for the order No.10585. | name of the shipper company refers to ShipName; order No. refers to OrderID; | full name refers to FirstName, LastName; Denver is a TerritoryDescription | 'Exotic Liquids' is a CompanyName; units in stock over 100 refers to UnitsInStock > 100 | Chef Anton's Cajun Seasoning' AND 'Chef Anton''s Gumbo Mix' are ProductName; 'New Orleans Cajun Delights' is a CompanyName; calculation = SUBTRACT(UnitPrice where ProductName = 'Chef Anton's Cajun Seasoning', UnitPrice where ProductName = 'Chef Anton''s Gumbo Mix') | Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate)) | ID 1 to 9 refers to EmployeeID BETWEEN 1 AND 9; Average salary = AVG(Salary) | DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage; | from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount))) | from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1; | 'Laughing Bacchus Wine Cellars' refers to CompanyName; calculation = DIVIDE(SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)), COUNT(OrderID)) | home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah'; |
Calculate the production volume of the dairy product 'Mascarpone Fabioli'. | 'Mascarpone Fabioli' is a ProductName; calculation = SUM(UnitsInStock, UnitsOnOrder) | order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock)); | how much lower in percentage = MULTIPLY(DIVIDE(SUBTRACT(Products.UnitPrice, Order Details.UnitPrice), Products.UnitPrice), 100); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID; | home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah'; | phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName; | "Eastern" is the RegionDescription | majority of the suppliers located refers to MAX(COUNT(SupplierID)) | three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry'; | reported to employee id 5 refers to ReportsTo = 5 | "USA" is the Country; PhD title of courtesy refers to TitleOfCourtesy = 'Dr.' | full name refers to FirstName, LastName; brith day refers to BirthDate |
What is the name of the supplier that supplies the most products to the company? | name of the supplier refers to SupplierID; the most product refers to max(count(ProductID)) | Federal Shipping refers to CompanyName = 'Federal Shipping' | order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock)); | via United Package refers to CompanyName = 'United Package'; in 1997 refers to OrderDate > = '1997-01-01 00:00:00' AND OrderDate < '1998-01-01 00:00:00'; average unit price = divide(sum(UnitPrice), count(ShipperID)) | order number 10933 refers to OrderID = 10933; | least order refers to Min(OrderID) | freight of over 800 refers to Freight > 800 | total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120 | 'Exotic Liquids' is a CompanyName; units in stock over 100 refers to UnitsInStock > 100 | regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID)) | highest freight refers to max(Freight) |
Which category does "tofu" belong to? | category refers to CategoryName; tofu refers to ProductName = 'Tofu'; | most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ; total sales refers to sum(MULTIPLY(Quantity, UnitPrice)) | from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount))) | no longer sold refers to Discontinued = 1; products refers to ProductName | territories refers to TerritoryDescription; Eastern Region refers to RegionDescription = 'Eastern'; | shipping company refers to Shippers; phone number refers to Phone | full name = FirstName, LastName; youngest refers to latest BirthDate; | companies refers to ShipperID | full name refers to FirstName LastName; highest amount of orders refers to max(count(OrderID)) | Sales Manager refers to Title = 'Sales Manager'; full name refers to FirstName, LastName | 'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100 |
Which region does territory id 2116 belong to? | region refers to RegionDescription | order number 10933 refers to OrderID = 10933; | in the Eastern region refers to RegionDescription = 'Eastern' | "Northern" region refers to RegionDescription = 'Northern' | Santa Monica refers to TerritoryDescription = 'Santa Monica'; full name = FirstName, MiddleName, LastName; | in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID) | in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName | most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ; total sales refers to sum(MULTIPLY(Quantity, UnitPrice)) | shipped through refers to ShipVia; United Package refers to CompanyName = 'United Package' | the largest quantity of "Manjimup Dried Apples" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples'; | "Teatime Chocolate Biscuits" is the ProductName |
On what date did the Du monde entier company request that 9 units of Filo Mix be sent to it? | 9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate; | discontinued products refers to Discontinued = 1; total sales amount refers to SUM(MULTIPLY(UnitPrice, Quantity)) | 'Exotic Liquids' is a CompanyName; units in stock over 100 refers to UnitsInStock > 100 | 'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title | 'USA' is a country; supplier refers to CompanyName | most expensive product refers to ProductName where MAX(UnitPrice); | Margaret Peacock is the full name of an employee; full name refers to FirstName, LastName; phone number refers to HomePhone | how much lower in percentage = MULTIPLY(DIVIDE(SUBTRACT(Products.UnitPrice, Order Details.UnitPrice), Products.UnitPrice), 100); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID; | the most overdue from required date refers to MIN(SUBTRACT(ShippedDate, RequiredDate) < 0) | shipped to the city of Paris refers to ShipCity = 'Paris'; | product refers to ProductName; highest user satisfaction refers to max(ReorderLevel) |
Who is the customer who purchased the highest number of products in a single order? | highest number of products refers to MAX(COUNT(ProductID)) | "Vice Present of Sales" refers to Title = 'Vice President, Sales'; full name refers to FirstName, LastName; url of photo refers to PhotoPath | "Eastern" is the RegionDescription | beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel) | supplied by refers to CompanyName | region refers to RegionDescription | name of territory refers to TerritoryDescription; Mr. refers to TitleOfCourtesy = 'Mr'; | descriptions refers to TerritoryDescription; region refers to RegionDescription | the least shipped product refers ProductName where MIN(Quantity); | highest number refers to max(count(CustomerID)) | highest number of territories refers to max(TerritoryID); difference in salary = subtract(employeeA.Salary, employeeB.Salary) |
In August of 1996, how many orders were placed by the customer with the highest amount of orders? | August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID)) | how much lower in percentage = MULTIPLY(DIVIDE(SUBTRACT(Products.UnitPrice, Order Details.UnitPrice), Products.UnitPrice), 100); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID; | female employees refers to TitleOfCourtesy = 'Mrs.' or TitleOfCourtesy = 'Ms.'; in charge of 3 or more territories refers to TerritoryID > = 3; | order number 10558 refers to OrderID = 10558; | average sales = AVG(ProductSales) | product refers to ProductName; | descriptions refers to TerritoryDescription; region refers to RegionDescription | under confections category refers to CategoryName = 'Confections'; | discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1) | regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID)) | orders to Brazil refers to ShipCountry = 'Brazil'; highest salary refers to max(salary); average salary = AVG(Salary) |
How many companies are there in the city of London? | companies refers to CompanyName; | "Gai pturage" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100 | Ms. refers to TitleOfCourtesy = 'Ms'; ReportsTo’ represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; name of the territory refers to TerritoryDescription; | total payment is greater than 15000 refers to MULTIPLY((Quantity * UnitPrice * (1 - Discount))) > 15000
| United States of America refers to Country = 'USA' | freight of over 800 refers to Freight > 800 | High reorder level generally means high user satisfaction of the product and vice versa; the least satisfaction refers to MIN(ReorderLevel); the highest unit price refers to MAX(UnitPrice); | August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID)) | shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage | located in Germany refers to Country = 'Germany'; | Name the shipper refers to CompanyName; most shipments refers to max(count(OrderID)); first quarter of 1998 refers to ShippedDate = 1998/1 and ShippedDate = 1998/2 and ShippedDate = 1998/3 and ShippedDate = 1998/4 |
Among the supplied products from Australia, describe the discontinued products and the category. | from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1; | reported to employee id 5 refers to ReportsTo = 5 | "Teatime Chocolate Biscuits" is the ProductName | full name refers to FirstName LastName; highest amount of orders refers to max(count(OrderID)) | Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate)) | High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG'; | discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1) | 'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID | newest hired refers to latest HireDate; full name = FirstName, LastName; | value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value) | most amount of orders refers to max(count(OrderID)); in 1996 refers to OrderDate > = '1996-01-01 00:00:00' AND OrderDate < '1997-01-01 00:00:00'; full name refers to FirstName, LastName |
How many employees in the UK takes charge of the sales in over 4 territories? | UK refers to Country = 'UK'; employees with over 4 territories refers to EmployeeID WHERE TerritoryID > 4; | percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100% | the most overdue from required date refers to MIN(SUBTRACT(ShippedDate, RequiredDate) < 0) | Eastern Region refers to RegionDescription = 'Eastern'; | total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID; | regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID)) | name of the supplier refers to SupplierID; the most product refers to max(count(ProductID)) | Chef Anton's Cajun Seasoning' AND 'Chef Anton''s Gumbo Mix' are ProductName; 'New Orleans Cajun Delights' is a CompanyName; calculation = SUBTRACT(UnitPrice where ProductName = 'Chef Anton's Cajun Seasoning', UnitPrice where ProductName = 'Chef Anton''s Gumbo Mix') | shipped the most times refer to MAX(COUNT(ShipVia)); city of Aachen refers to ShipCity = 'Aache'; companies refers to CompanyName; | paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID)) | descriptions refers to TerritoryDescription; region refers to RegionDescription |
Which region is "Columbia" in? | region refers to RegionID; "Columbia" refers to TerritoryDescription = 'Columbia' | Name the shipper refers to CompanyName; most shipments refers to max(count(OrderID)); first quarter of 1998 refers to ShippedDate = 1998/1 and ShippedDate = 1998/2 and ShippedDate = 1998/3 and ShippedDate = 1998/4 | highest number of products refers to MAX(COUNT(ProductID)) | products refers to Order_Details.ProductID; on 14th August, 1996 refers to OrderDate = '8/14/1996' | orders to Brazil refers to ShipCountry = 'Brazil'; highest salary refers to max(salary); average salary = AVG(Salary) | full name refers to FirstName, LastName; shipped to USA refers to ShipCountry = 'USA' | shipped to France refers to ShipCountry = 'France'; | discontinued products refers to Discontinued = 1; total sales amount refers to SUM(MULTIPLY(UnitPrice, Quantity)) | Pavlova, Ltd. refers to CompanyName = 'Pavlova, Ltd.' | August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID)) | home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah'; |
Write down the full name of Vie President of Sales and his age when he was hired. | Vice President of Sales refers to Title = 'Vice President, Sales'; | discontinued products refers to Discontinued = 1; calculation = DIVIDE(SUM(Discontinued = 1), COUNT(ProductID)) * 100 | is a UK citizen refers to Country = 'UK' | "Pavlova, Ltd" is the CompanyName; products refers to ProductName | phone refers to HomePhone; Portsmouth territory refers to TerritoryDescription = 'Portsmouth'; | phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName; | highest salary refers to Max(Salary) | "Northern" region refers to RegionDescription = 'Northern' | total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID; | Eastern Region refers to RegionDescription = 'Eastern'; | 'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle |
Among the customers, list customers' company names and addresses who paid more than average in freight. | paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID)) | Eastern Region refers to RegionDescription = 'Eastern'; | Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription; | ID 1 to 9 refers to EmployeeID BETWEEN 1 AND 9; Average salary = AVG(Salary) | Name the shipper refers to CompanyName; most shipments refers to max(count(OrderID)); first quarter of 1998 refers to ShippedDate = 1998/1 and ShippedDate = 1998/2 and ShippedDate = 1998/3 and ShippedDate = 1998/4 | freighted products for a value greater than 2,000,000 refer to Freight > 2000000; name of companies refers to CompanyName; | order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock)); | product refers to ProductName; highest user satisfaction refers to max(ReorderLevel) | shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996 refers to year(OrderDate) = 1996 and month(OrderDate) = 12; | IDs of the orders refers to OrderID; production is not continuous refers to Discontinued = 1; | through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100% |
What are the product names of Exotic Liquids? | "Exotic Liquids" is the CompanyName | "Vice Present of Sales" refers to Title = 'Vice President, Sales'; full name refers to FirstName, LastName; url of photo refers to PhotoPath | 'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle | company in Spain refers to Country = 'Spain'; product supplied refers to ProductName | most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ; total sales refers to sum(MULTIPLY(Quantity, UnitPrice)) | ID 1 to 9 refers to EmployeeID BETWEEN 1 AND 9; Average salary = AVG(Salary) | name of the supplier refers to SupplierID; the most product refers to max(count(ProductID)) | descriptions refers to TerritoryDescription; region refers to RegionDescription | newest hired refers to latest HireDate; full name = FirstName, LastName; | Federal Shipping refers to CompanyName = 'Federal Shipping'; DIVIDE(SUM(Quantity), COUNT(ProductID)) where CompanyName = 'Federal Shipping' and ShippedDate > = '1996-11-01 00:00:00' AND ShippedDate < '1996-12-01 00:00:00'; | products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5'; |
How many employees in total are in charge of the sales in the Eastern Region? | Eastern Region refers to RegionDescription = 'Eastern'; | Federal Shipping refers to CompanyName = 'Federal Shipping'; DIVIDE(SUM(Quantity), COUNT(ProductID)) where CompanyName = 'Federal Shipping' and ShippedDate > = '1996-11-01 00:00:00' AND ShippedDate < '1996-12-01 00:00:00'; | reported to employee id 5 refers to ReportsTo = 5 | phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName; | region refers to RegionDescription | "Vice Present of Sales" refers to Title = 'Vice President, Sales'; full name refers to FirstName, LastName; url of photo refers to PhotoPath | highest salary refers to MAX(Salary); full name = FirstName, LastName; | 'Blondesddsl pre et fils' is a CompanyName | freighted products for a value greater than 2,000,000 refer to Freight > 2000000; name of companies refers to CompanyName; | supplied by refers to CompanyName | London refers to city = 'London'; |
List out the phone number of the shipping company of order id 10296. | shipping company refers to Shippers; phone number refers to Phone | order number 10558 refers to OrderID = 10558; | most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ; total sales refers to sum(MULTIPLY(Quantity, UnitPrice)) | name of the supplier refers to SupplierID; the most product refers to max(count(ProductID)) | suppliers refers to CompanyName; 'cheeses' is a Description | supplied by refers to CompanyName | shipped to France refers to ShipCountry = 'France'; | "Exotic Liquids" is the CompanyName | "Madrid" is the City; in 1996 refers to YEAR (OrderDate) = 1996; percentage = Divide (Count (CustomerID where City = 'Madrid'), Count (CustomerID)) * 100 | home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah'; | "Speedy Express" is the name of the shipping company; orders refer to OrderID; |
Which territory does Ms. Laura Callahan's direct supervisor work in? Give the name of the territory. | Ms. refers to TitleOfCourtesy = 'Ms'; ReportsTo’ represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; name of the territory refers to TerritoryDescription; | 9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate; | "Speedy Express" is the name of the shipping company; orders refer to OrderID; | percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100% | Eastern Region refers to RegionDescription = 'Eastern'; | Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName; | most total sales refers to Max(SaleAmount); companies refers to CompanyName | the least shipped product refers ProductName where MIN(Quantity); | shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996 refers to year(OrderDate) = 1996 and month(OrderDate) = 12; | home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah'; | through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100% |
How many times is the number of territories in "Eastern Region" than "Southern Region"? | "Eastern Region" refers to RegionDescription = 'Eastern'; "Southern Region" refers to RegionDescription = 'Southern'; times = divide(count(TerritoryDescription where RegionDescription = 'Eastern') , count(TerritoryDescription where RegionDescription = 'Southern')) | paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID)) | highest number of products refers to MAX(COUNT(ProductID)) | ID 1 to 9 refers to EmployeeID BETWEEN 1 AND 9; Average salary = AVG(Salary) | average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK' | Santa Monica refers to TerritoryDescription = 'Santa Monica'; full name = FirstName, MiddleName, LastName; | "Madrid" is the City; in 1996 refers to YEAR (OrderDate) = 1996; percentage = Divide (Count (CustomerID where City = 'Madrid'), Count (CustomerID)) * 100 | companies refers to CompanyName; | shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage | "Laura Callahan" refers to FirstName = 'Laura AND LastName = 'Callahan | from UK refers to Country = 'UK' |
What is the most common product ordered by a customer from Germany? | most common product refers to max(count(ProductID)); customer from Germany refers to Country = 'Germany' | total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120 | via United Package refers to CompanyName = 'United Package'; in 1997 refers to OrderDate > = '1997-01-01 00:00:00' AND OrderDate < '1998-01-01 00:00:00'; average unit price = divide(sum(UnitPrice), count(ShipperID)) | "New Orleans Cajun Delights" is the CompanyName; discontinued refers to Discontinued = 1 | beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel) | discontinued product refers to Discontinued = 1; supplier refers to CompanyName | highest number of products refers to MAX(COUNT(ProductID)) | "American" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID | "Teatime Chocolate Biscuits" is the ProductName | product refers to ProductName; | report to represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; Vice President of Sales refers to Title = 'Vice President, Sales'; |
Among the product lists in order ID 10337, write down the product names and suppliers which had the highest in reorder level. | suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel) | "Eastern" is the RegionDescription | shipped to France refers to ShipCountry = 'France'; | name of product refers to ProductName; ID refers to ProductID | High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG'; | products refers to ProductName; 'Zaanse Snoepfabriek' is a CompanyName | regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID)) | full name refers to FirstName LastName; contact number refers to HomePhone; descending order of age refers to order by BirthDate desc limit 1 | three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry'; | order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock)); | "Exotic Liquids" is the CompanyName |
Compute the total order quantity for Uncle Bob's Organic Dried Pears so far. | "Uncle Bob's Organic Dried Pears" is the ProductName; total order quantity refers to Sum(Quantity) | Morristown refers to TerritoryDescription = 'Morristown' | average sales = AVG(ProductSales) | 'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100 | orders to Brazil refers to ShipCountry = 'Brazil'; highest salary refers to max(salary); average salary = AVG(Salary) | full name = FirstName, LastName; youngest refers to latest BirthDate; | "Gai pturage" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100 | product refers to ProductName; highest user satisfaction refers to max(ReorderLevel) | full name refers to FirstName, LastName; brith day refers to BirthDate | "Teatime Chocolate Biscuits" is the ProductName | names of all territories refers to TerritoryDescription; |
What percentage of orders were placed by customers in Madrid city in 1996? | "Madrid" is the City; in 1996 refers to YEAR (OrderDate) = 1996; percentage = Divide (Count (CustomerID where City = 'Madrid'), Count (CustomerID)) * 100 | full name refers to FirstName, LastName; brith day refers to BirthDate | percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100% | Hollis refers to TerritoryDescription = 'Hollis'; full name = FirstName, LastName; | no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA'; | paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID)) | 'dairy product' refers to CategoryName; most popular reorder quantity refers to MAX(ReorderLevel) | Margaret Peacock is the full name of an employee; full name refers to FirstName, LastName; phone number refers to HomePhone | the largest quantity of "Manjimup Dried Apples" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples'; | total production of the product = SUM(units in stock, units on order); order no. refers to OrderID; | product refers to ProductName; |
List by order number the 3 items with the lowest price after applying the discount. | order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount)); | DIVIDE(COUNT(n_name where r_name = 'EUROPE'), COUNT(n_name)) as percentage; | names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000; | items with the most quantity available refer to p_name where MAX(ps_availqty); | clerk who have served the customer refers to o_clerk
| customer name refers to c_name; the highest discount refers to max(l_discount) | SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON'; | name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1; | orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment; | account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey)) | name of the country refers to n_name; the highest debt refers to min(s_acctbal) |
List the 5 orders with the highest total price, indicating the delivery date. | order refers to o_orderkey; the highest total price refers to max(o_totalprice); delivery date refers to l_shipdate | clerk who have served the customer refers to o_clerk
| orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; | nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008' | part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate'; order no.1 refers to l_orderkey = 1; discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)) | nation refers to n_name; Europe refers to r_name = 'EUROPE' | close to being out of stock refers to ps_availqty < 10 | the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100% | SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE'; | orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES'; | customer refers to c_name; with debt refers to c_acctbal < 0 |
What is the name of the country of the supplier with the highest debt? | name of the country refers to n_name; the highest debt refers to min(s_acctbal) | order key refers to l_orderkey; not applied for the discount refers to l_discount = 0 | name of customer refers to c_name; account in debt refers to c_acctbal < 0 | orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the highest total price refers to MAX(o_totalprice); | the highest amount of extended price refers to MAX(l_extendedprice); | items Customer#000021159 order refer to l_linenumber where c_name = 'Customer#000021159'; SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where c_name = 'Customer#000021159'; | DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice); | customer name refers to c_name; India refers to n_name = 'INDIA'; account balance over $5000 refers to c_acctbal > 5000 | discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name | the biggest discount refers to max(l_discount); part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate' | customer name refers to c_name; a total price over $300000 refers to o_totalprice > 300000 |
List all the nations in Europe. | nation refers to n_name; Europe refers to r_name = 'EUROPE' | phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT' | name of the product refers to p_name; the highest retail price refers to p_retailprice | countries in the region of Asia refer to n_name where r_name = 'ASIA'; | discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); line item number 1 refers to l_linenumber = 1 | line item number refers to l_linenumber; 10% off refers to l_discount = 0.1 | supplier name refers to s_name; part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light' | DIVIDE(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5'; | cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER' | DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage; | MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax)) WHERE o_clerk = 'Clerk#000000936', o_orderstatus = '4-NOT SPECIFIED', o_orderdate = '1995-03-13' AND l_shipmode = 'TRUCK'; |
Which market segment does the customer with the highest amount of debt belongs to? | market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal) | name of the country refers to n_name; the highest debt refers to min(s_acctbal) | part "hot spring dodger dim light" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE' | phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice); | "Customer#000000055" is the name of the customer which refers to c_name; nationality is the state of belonging to a particular country, therefore nationality refers to n_name; | 1994 refers to year(l_shipdate) = 1994; via truck refers to l_shipmode = 'TRUCK'; returned refers to l_returnflag = 'R' | SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON'; | total quantity refers to sum(l_quantity); customer 101660 refers to o_custkey = 101660; on 10/5/1995 refers to o_orderdate = '1995-10-05' | the highest total price refers to MAX(o_totalprice); | total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13' | items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04'; |
What is the discounted price of the part "burnished seashell gainsboro navajo chocolate" in order no.1? | part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate'; order no.1 refers to l_orderkey = 1; discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)) | quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR' | customer name refers to c_name; India refers to n_name = 'INDIA'; account balance over $5000 refers to c_acctbal > 5000 | DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage; | customers refer to c_custkey; Morocco is the name of the nation which refers to n_name = 'MOROCCO'; in debt refers to c_acctbal < 0; | SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE'; | supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55' | orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment; | the biggest discount refers to max(l_discount); part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate' | account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage; | country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey)); |
How many kinds of items are returned in order no.5? | returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber; | orders shipped in 1994 refer to l_orderkey where year(l_shipdate) = 1994; | order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount)); | items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22'; | account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey)) | customers are in debt refer to c_custkey where c_acctbal < 0; | urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997 | customers refer to c_custkey; Morocco is the name of the nation which refers to n_name = 'MOROCCO'; in debt refers to c_acctbal < 0; | parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM'; | items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04'; | supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin' |
Among the products that have a retail price greater than 1,000, how many products were shipped via ship? | products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP'; | urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997 | order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount)); | total quantity refers to sum(l_quantity); customer 101660 refers to o_custkey = 101660; on 10/5/1995 refers to o_orderdate = '1995-10-05' | name of the part refers to p_name; without discount refers to l_discount = 0.0000 | machinery segment refers to c_mktsegment = 'MACHINERY'; in debt refers to c_acctbal < 0 | r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey; | part "hot spring dodger dim light" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE' | DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice); | customers are in debt refer to c_custkey where c_acctbal < 0; | segment refers to c_mktsegment; customer made the most orders in April 1994 refers to c_custkey where o_orderdate LIKE '1994-04-%' and MAX(COUNT(o_orderkey)); |
Provide the phone number of the customer with the highest total price in an order. | phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice); | account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO'; | orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000; | full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7 | Germany is the name of the nation which refers to n_name = 'GERMANY'; account balance of over 1000 refers to c_acctbal > 1000; | addresses refers to s_address; the biggest part refers to max(p_size) | orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the order is urgent if o_orderpriority = '1-URGENT' ; | DIVIDE(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5'; | DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage; | part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034' | the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment; |
How many suppliers from Germany have left a comment with 'carefully regular packages'? | Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%' | shipped by rail refers to l_shipmode = 'RAIL'; quantity less than 30 refers to l_quantity < 30; | r_comment = 'furiously express accounts wake sly'; | urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997 | phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD'; | name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1; | the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment; | total price = sum(o_totalprice); phone number "627-220-3983" refers to c_phone = '627-220-3983' | name of the country refers to n_name; the highest debt refers to min(s_acctbal) | MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397; | part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'; percentage = divide(subtract(max(ps_supplycost), min(ps_supplycost)), min(ps_supplycost)) * 100% |
Which part has a bigger size, "pink powder drab lawn cyan" or "cornflower sky burlywood green beige"? | size refers to p_size; "pink powder drab lawn cyan" or "cornflower sky burlywood green beige" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige') | name of the country refers to n_name; the highest debt refers to min(s_acctbal) | supplier No.34 refers to s_suppkey = 34; country refers to n_name; | supplier name refers to s_name; part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light' | order refers to o_orderkey; the highest total price refers to max(o_totalprice); delivery date refers to l_shipdate | phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice); | AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30'; | account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage; | part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity))) | profit can be calculated as SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))); part which is most profitable refers to p_name where MAX(profit); | name of the customer refers to c_name; o_clerk = 'Clerk#000000803'; order on 1997/12/10 refers to o_orderdate = '1997-12-10'; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.