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
|
---|---|---|---|---|---|---|---|---|---|---|---|
What are the products that are supplied by Aux joyeux ecclsiastiques? | Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName; | products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5'; | from UK refers to Country = 'UK' | products belong to beverage category refer to ProductName where CategoryName = 'beverage'; | most total sales refers to Max(SaleAmount); companies refers to CompanyName | name of territory refers to TerritoryDescription; Mr. refers to TitleOfCourtesy = 'Mr'; | is a UK citizen refers to Country = 'UK' | August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID)) | regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID)) | full name = FirstName, LastName; youngest refers to latest BirthDate; | orders to Brazil refers to ShipCountry = 'Brazil'; highest salary refers to max(salary); average salary = AVG(Salary) |
Which company supplies Gula Malacca? | Gula Malacca is the name of the product; company refers to CompanyName; | "10 boxes x 12 pieces" is the QuantityPerUnit | year 1997 refers to year(OrderDate) = 1997; total amount of sales refers to (UnitPrice * Quantity) | order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock)); | Plutzer Lebensmittelgromrkte AG refers to CompanyName; is currently out of stock and on order refers to UnitsInStock = 0 and UnitsOnOrder > 0 | through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100% | 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; | regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID)) | shipped to the city of Paris refers to ShipCity = 'Paris'; | the most overdue from required date refers to MIN(SUBTRACT(ShippedDate, RequiredDate) < 0) | descriptions refers to TerritoryDescription; region refers to RegionDescription |
Tell the country name of the supplier for "Scottish Longbreads". | "Scottish Longbreads" refers to ProductName = 'Scottish Longbreads' | through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100% | 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 | Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription; | biggest purchase refers to max(ProductID.Order_Details); ship to refers to ShipCountry | total payment is greater than 15000 refers to MULTIPLY((Quantity * UnitPrice * (1 - Discount))) > 15000
| most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ; total sales refers to sum(MULTIPLY(Quantity, UnitPrice)) | UK refers to Country = 'UK'; employees with over 4 territories refers to EmployeeID WHERE TerritoryID > 4; | "Eastern" is the RegionDescription | full address includes Address, City, Region, PostalCode and Country; ContactName = 'Andr Fonseca'; |
Name the products where the suppliers come from Finland. | 'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID | biggest purchase refers to max(ProductID.Order_Details); ship to refers to ShipCountry | 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'; | "Teatime Chocolate Biscuits" is the ProductName | in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID) | 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)) | Eastern Region refers to RegionDescription = 'Eastern'; | three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry'; | "Tokyo Traders" is the CompanyName; average unit price = AVG(UnitPrice) | from Japan refers to Country = 'Japan'; total production refers to ADD(UnitsInstock, UnitsOnOrder) | orders to Brazil refers to ShipCountry = 'Brazil'; highest salary refers to max(salary); average salary = AVG(Salary) |
Please list the IDs of the orders with a product whose production is not continuous. | IDs of the orders refers to OrderID; production is not continuous refers to Discontinued = 1; | 'Pavlova' is a ProductName | total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID; | ProductName = 'Thringer Rostbratwurst'; | discontinued refers to Discontinued = 1 | required on 3/26/1998 refers to RequiredDate = '1998-03-26 00:00:00'; products ordered refers to ProductName | freight of over 800 refers to Freight > 800 | full name refers to LastName, FirstName | territories refer to TerritoryDescription; Title = 'Inside Sales Coordinator'; | "Eastern" is the RegionDescription | "Eastern" is the RegionDescription |
Describe the supplier companies, cities and products which total production amount is more than 120. | total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120 | region refers to RegionDescription | from USA refers to Country = 'USA' | names of all territories refers to TerritoryDescription; | name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup'; | Vegie-spread product refers to ProductName = 'Vegie-spread';total payment = MULTIPLY(UnitPrice, Quantity, (1-Discount)) | companies refers to ShipperID | in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName | shipped to France refers to ShipCountry = 'France'; | discontinued products refers to Discontinued = 1; calculation = DIVIDE(SUM(Discontinued = 1), COUNT(ProductID)) * 100 | Eastern Region refers to RegionDescription = 'Eastern'; |
What is the largest quantity of "Manjimup Dried Apples" for an order? | the largest quantity of "Manjimup Dried Apples" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples'; | three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry'; | total production amount refers to ADD(UnitsInstock, UnitsOnOrder) | "Scottish Longbreads" refers to ProductName = 'Scottish Longbreads' | full address includes Address, City, Region, PostalCode and Country; ContactName = 'Andr Fonseca'; | most expensive product refers to ProductName where MAX(UnitPrice); | reported to employee id 5 refers to ReportsTo = 5 | 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); difference in salary = subtract(employeeA.Salary, employeeB.Salary) | name of territory refers to TerritoryDescription; Mr. refers to TitleOfCourtesy = 'Mr'; | via United Package refers to CompanyName = 'United Package' |
What is the average salary of the employees who takes charge of the sales of over 4 territories? | average salary = DIVIDE(SUM(Salary), COUNT(EmployeeID)); employees who takes charge of over 4 territories refers to EmployeeID WHERE COUNT(TerritoryID) > 4; | companies refers to CompanyName; | region refers to RegionDescription | phone refers to HomePhone; Portsmouth territory refers to TerritoryDescription = 'Portsmouth'; | shipped to the city of Paris refers to ShipCity = 'Paris'; | 'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100 | full name refers to FirstName, LastName; shipped to USA refers to ShipCountry = 'USA' | Federal Shipping refers to CompanyName = 'Federal Shipping' | 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))) | the largest quantity of "Manjimup Dried Apples" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples'; |
What is the average quantity of product that have been shipped by Federal Shipping in November 1996? | 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'; | "Vice Present of Sales" refers to Title = 'Vice President, Sales'; full name refers to FirstName, LastName; url of photo refers to PhotoPath | average = AVG(Quantity); Ikura refers to ProductName = 'Ikura'; | 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'; | the highest total price paid for an order can be calculated as MAX(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1-Discount))); | Federal Shipping refers to CompanyName = 'Federal Shipping'; | HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25'; | shipped to France refers to ShipCountry = 'France'; | 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') | "Eastern" is the RegionDescription | Pavlova, Ltd. refers to CompanyName = 'Pavlova, Ltd.' |
What is the category of the product that has the highest number of discontinued products? | discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1) | Gula Malacca is the name of the product; company refers to CompanyName; | most expensive product refers to ProductName where MAX(UnitPrice); | Federal Shipping refers to CompanyName = 'Federal Shipping' | full name refers to FirstName LastName; contact number refers to HomePhone; descending order of age refers to order by BirthDate desc limit 1 | territories refer to TerritoryDescription; Title = 'Inside Sales Coordinator'; | Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName; | 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; | "Formaggi Fortini s.r.l." is the CompanyName; average unit price = AVG(UnitPrice) | phone refers to HomePhone; Portsmouth territory refers to TerritoryDescription = 'Portsmouth'; | highest number of territories refers to max(TerritoryID) |
How much lower in percentage is the unit price of Ikura in order no. 10273 than its standard unit price? | 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; | territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName | products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5'; | Vice President of Sales refers to Title = 'Vice President, Sales'; | supplied by refers to CompanyName | full address includes Address, City, Region, PostalCode and Country; ContactName = 'Andr Fonseca'; | value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value) | Hollis refers to TerritoryDescription = 'Hollis'; full name = FirstName, LastName; | "USA" is the Country; PhD title of courtesy refers to TitleOfCourtesy = 'Dr.' | most ordered refers to max(COUNT(OrderID)) | Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate)) |
Identify the total number of orders processed by Northwind employee named Andrew Fuller. What percent of those orders was shipped to Austria? | '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 the Eastern region refers to RegionDescription = 'Eastern' | value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value) | Gula Malacca is the name of the product; company refers to CompanyName; | 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 | name of the shipper company refers to ShipName; order No. refers to OrderID; | the largest quantity of "Manjimup Dried Apples" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples'; | products refers to Order_Details.ProductID; on 14th August, 1996 refers to OrderDate = '8/14/1996' | shipped to France refers to ShipCountry = 'France'; | 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'; | average salary = AVG(Salary) |
Provide the list of products ordered by ID 10979 and calculate its total payment. | ordered by ID 10979 refers to OrderID = '10979'; total payment refers to SUM(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount))) | from USA refers to Country = 'USA' | highest freight refers to max(Freight) | no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA'; | UnitsInStock < UnitsOnOrder; | 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'; | the largest quantity of "Manjimup Dried Apples" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples'; | 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'; | London refers to city = 'London'; | "10 boxes x 12 pieces" is the QuantityPerUnit | shipped the most times refer to MAX(COUNT(ShipVia)); city of Aachen refers to ShipCity = 'Aache'; companies refers to CompanyName; |
What is the contact name for product Teatime Chocolate Biscuits? | "Teatime Chocolate Biscuits" is the ProductName | from Japan refers to Country = 'Japan'; total production refers to ADD(UnitsInstock, UnitsOnOrder) | "10 boxes x 12 pieces" is the QuantityPerUnit | highest number of territories refers to max(TerritoryID) | "Madrid" is the City; in 1996 refers to YEAR (OrderDate) = 1996; percentage = Divide (Count (CustomerID where City = 'Madrid'), Count (CustomerID)) * 100 | products belong to beverage category refer to ProductName where CategoryName = 'beverage'; | percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100% | paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID)) | from UK refers to Country = 'UK' | "Eastern" is the RegionDescription | "Formaggi Fortini s.r.l." is the CompanyName; average unit price = AVG(UnitPrice) |
List out the full name of employee who has birth day on "3/4/1955 12:00:00 AM". | full name refers to FirstName, LastName; brith day refers to BirthDate | Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName; | 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)) | through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100% | more than thirty dollars per unit refers to UnitPrice > 30 | HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25'; | UK refers to Country = 'UK'; employees with over 4 territories refers to EmployeeID WHERE TerritoryID > 4; | least order refers to Min(OrderID) | 'Blondesddsl pre et fils' is a CompanyName | shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage | UnitsInStock < UnitsOnOrder; |
Please list all the territories in the Eastern Region. | territories refers to TerritoryDescription; Eastern Region refers to RegionDescription = 'Eastern'; | "Eastern Region" refers to RegionDescription = 'Eastern'; "Southern Region" refers to RegionDescription = 'Southern'; times = divide(count(TerritoryDescription where RegionDescription = 'Eastern') , count(TerritoryDescription where RegionDescription = 'Southern')) | category refers to CategoryName; tofu refers to ProductName = 'Tofu'; | name of the shipper company refers to ShipName; order No. refers to OrderID; | from UK refers to Country = 'UK' | is a UK citizen refers to Country = 'UK' | "Eastern" is the RegionDescription | full name refers to LastName, FirstName | highest number refers to max(count(CustomerID)) | United States of America refers to Country = 'USA' | '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 |
List all category name of Exotic Liquids 's product with units in stock over 100. | 'Exotic Liquids' is a CompanyName; units in stock over 100 refers to UnitsInStock > 100 | under confections category refers to CategoryName = 'Confections'; | through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100% | discontinued refers to Discontinued = 1 | shipped the most times refer to MAX(COUNT(ShipVia)); city of Aachen refers to ShipCity = 'Aache'; companies refers to CompanyName; | Eastern Region refers to RegionDescription = 'Eastern'; | products refers to ProductName; 'Zaanse Snoepfabriek' is a CompanyName | full name refers to LastName, FirstName | freight of over 800 refers to Freight > 800 | 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'; | Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate)) |
Indicate the name of the products that have been shipped to the city of Paris. | shipped to the city of Paris refers to ShipCity = 'Paris'; | beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel) | majority of the suppliers located refers to MAX(COUNT(SupplierID)) | "Teatime Chocolate Biscuits" is the ProductName | Gula Malacca is the name of the product; company refers to CompanyName; | Plutzer Lebensmittelgromrkte AG refers to CompanyName; is currently out of stock and on order refers to UnitsInStock = 0 and UnitsOnOrder > 0 | HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25'; | Federal Shipping refers to CompanyName = 'Federal Shipping' | freighted products for a value greater than 2,000,000 refer to Freight > 2000000; name of companies refers to CompanyName; | name of the supplier refers to SupplierID; the most product refers to max(count(ProductID)) | Highest reorder level refers to Max(ReorderLevel) |
Among orders shipping to Brazil, mention the supplier company of the order which was done by employee Anne Dodsworth in December, 1996 . | 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' | phone refers to HomePhone; Portsmouth territory refers to TerritoryDescription = 'Portsmouth'; | no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA'; | Eastern Region refers to RegionDescription = 'Eastern'; | territories refer to TerritoryDescription; Title = 'Inside Sales Coordinator'; | August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID)) | shipping company refers to Shippers; phone number refers to Phone | most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ; total sales refers to sum(MULTIPLY(Quantity, UnitPrice)) | year 1997 refers to year(OrderDate) = 1997; total amount of sales refers to (UnitPrice * Quantity) | phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName; |
List the top five most costly products in 1998. | 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' | total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120 | London refers to city = 'London'; | total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID; | full name refers to FirstName LastName; highest amount of orders refers to max(count(OrderID)) | "Brazil" is the ShipCountry; from 3/31/97 to 12/10/97 refers to 1997-03-31 < ShippedDate < 1997-10-12 | Federal Shipping refers to CompanyName = 'Federal Shipping'; | highest number of territories refers to max(TerritoryID); difference in salary = subtract(employeeA.Salary, employeeB.Salary) | most widely used refers to max(count(ShipVia)); shipping company refers to CompanyName; in the United States of America refers to ShipCountry = 'USA' | name of product refers to ProductName; ID refers to ProductID | average salary = AVG(Salary) |
What is the average salary for employees from ID 1 to 9? | ID 1 to 9 refers to EmployeeID BETWEEN 1 AND 9; Average salary = AVG(Salary) | August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID)) | the largest quantity of "Manjimup Dried Apples" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples'; | ProductName = 'Thringer Rostbratwurst'; | Highest reorder level refers to Max(ReorderLevel) | "10 boxes x 12 pieces" is the QuantityPerUnit | name of the shipper company refers to ShipName; order No. refers to OrderID; | "Eastern" is the RegionDescription | no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA'; | full name refers to FirstName, LastName; sales order with ID 10274 refers to OrderID = 10274 | Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName; |
Which employee has created the least order and please indicates the employee's title? | least order refers to Min(OrderID) | less than 4 territories refers to EmployeeID where Count(TerritoryID) < 4 | percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100% | 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 | Japan Supplier refers to Country = 'Japan'; total product refers to Count (ProductName) | highest salary refers to max(salary); position refers to Title | 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); | order number 10558 refers to OrderID = 10558; | grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10; | companies refers to CompanyName; | "Brazil" is the ShipCountry; from 3/31/97 to 12/10/97 refers to 1997-03-31 < ShippedDate < 1997-10-12 |
How many suppliers does Northwind have in USA? | 'USA' is a country; supplier refers to CompanyName | United States of America refers to Country = 'USA' | 'dairy product' refers to CategoryName; most popular reorder quantity refers to MAX(ReorderLevel) | no longer sold refers to Discontinued = 1; products refers to ProductName | 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); | product refers to ProductName; | Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName; | percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100% | from USA refers to Country = 'USA' | order number 10933 refers to OrderID = 10933; | discontinued refers to Discontinued = 1 |
Identify the total number of orders placed by the customer 'Laughing Bacchus Wine Cellars' and it's average value. | 'Laughing Bacchus Wine Cellars' refers to CompanyName; calculation = DIVIDE(SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)), COUNT(OrderID)) | name of all territories refers to TerritoryDescription; Northern region refers to RegionDescription = 'Northern' | freight of over 800 refers to Freight > 800 | 'Mascarpone Fabioli' is a ProductName; calculation = SUM(UnitsInStock, UnitsOnOrder) | from Japan refers to Country = 'Japan'; total production refers to ADD(UnitsInstock, UnitsOnOrder) | order number 10933 refers to OrderID = 10933; | Drachenblut Delikatessen is the company name; | from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1; | "Speedy Express" is the name of the shipping company; orders refer to OrderID; | "Gai pturage" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100 | name of territory refers to TerritoryDescription; Mr. refers to TitleOfCourtesy = 'Mr'; |
Please indicate total order quantity of product Geitost and calculate the percentage of such product among all the order quantity. | 'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100 | 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'; | sales representative refers to Title = 'Sales Representative'; sales values refers to MULTIPLY(Quantity, UnitPrice); the highest sales refers to max(MULTIPLY(Quantity, UnitPrice)) | DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage; | IDs of the orders refers to OrderID; production is not continuous refers to Discontinued = 1; | average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK' | 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' | name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup'; | Pavlova, Ltd. refers to CompanyName = 'Pavlova, Ltd.' | 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; | name of the supplier refers to SupplierID; the most product refers to max(count(ProductID)) |
List down the territory IDs, descriptions and region description which are under the in-charge of Nancy Davolio, | descriptions refers to TerritoryDescription; region refers to RegionDescription | average sales = AVG(ProductSales) | no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA'; | Drachenblut Delikatessen is the company name; | "Northern" region refers to RegionDescription = 'Northern' | suppliers refers to CompanyName; 'cheeses' is a Description | most total sales refers to Max(SaleAmount); companies refers to CompanyName | "Speedy Express" is the name of the shipping company; orders refer to OrderID; | through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100% | from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1; | "Exotic Liquids" is the CompanyName |
Give the full name of employee who handled the order id 10280. | full name refers to FirstName, LastName | "10 boxes x 12 pieces" is the QuantityPerUnit | 'Blondesddsl pre et fils' is a CompanyName | DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage; | biggest purchase refers to max(ProductID.Order_Details); ship to refers to ShipCountry | "Eastern" is the RegionDescription | beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel) | average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK' | Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription; | regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID)) | 'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName; |
List all the territories where Laura Callahan is in charge. | territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName | full name refers to LastName, FirstName | "Scottish Longbreads" refers to ProductName = 'Scottish Longbreads' | shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996 refers to year(OrderDate) = 1996 and month(OrderDate) = 12; | company in Spain refers to Country = 'Spain'; product supplied refers to ProductName | regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID)) | total payment is greater than 15000 refers to MULTIPLY((Quantity * UnitPrice * (1 - Discount))) > 15000
| discontinued product refers to Discontinued = 1; supplier refers to CompanyName | 'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100 | condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID | companies refers to ShipperID |
What is the difference in salary of the top 2 employees with the highest number of territories in charge? | highest number of territories refers to max(TerritoryID); difference in salary = subtract(employeeA.Salary, employeeB.Salary) | Eastern Region refers to RegionDescription = 'Eastern'; | female employees refers to TitleOfCourtesy = 'Mrs.' or TitleOfCourtesy = 'Ms.'; in charge of 3 or more territories refers to TerritoryID > = 3; | Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20 | Federal Shipping refers to CompanyName = 'Federal Shipping'; | percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100% | average sales = AVG(ProductSales) | products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5'; | is a UK citizen refers to Country = 'UK' | HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25'; | name of territory refers to TerritoryDescription; Mr. refers to TitleOfCourtesy = 'Mr'; |
What are the most popular confections product and calculate the total sales generated by this product? | most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ; total sales refers to sum(MULTIPLY(Quantity, UnitPrice)) | products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5'; | average = AVG(Quantity); Ikura refers to ProductName = 'Ikura'; | the least shipped product refers ProductName where MIN(Quantity); | Bigfoot Breweries is the name of the company; products refer to ProductName; | August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID)) | highest number of territories refers to max(TerritoryID) | ID 1 to 9 refers to EmployeeID BETWEEN 1 AND 9; Average salary = AVG(Salary) | "Exotic Liquids" is the CompanyName | via United Package refers to CompanyName = 'United Package' | shipping company refers to Shippers; phone number refers to Phone |
What is the highest total price paid for an order? | the highest total price paid for an order can be calculated as MAX(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1-Discount))); | most ordered refers to max(COUNT(OrderID)) | shipped to the city of Paris refers to ShipCity = 'Paris'; | highest number of products refers to MAX(COUNT(ProductID)) | shipped the most times refer to MAX(COUNT(ShipVia)); city of Aachen refers to ShipCity = 'Aache'; companies refers to CompanyName; | products belong to beverage category refer to ProductName where CategoryName = 'beverage'; | products refers to Order_Details.ProductID; on 14th August, 1996 refers to OrderDate = '8/14/1996' | "Speedy Express" is the name of the shipping company; orders refer to OrderID; | total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120 | "Seafood" is the CategoryName; order quantity of more than 50 refers to Quantity > 50 | UnitsInStock < UnitsOnOrder; |
How many orders were shipped by Federal Shipping? | Federal Shipping refers to CompanyName = 'Federal Shipping' | 'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100 | the largest quantity of "Manjimup Dried Apples" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples'; | the least shipped product refers ProductName where MIN(Quantity); | 'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName; | Vegie-spread product refers to ProductName = 'Vegie-spread';total payment = MULTIPLY(UnitPrice, Quantity, (1-Discount)) | ordered by ID 10979 refers to OrderID = '10979'; total payment refers to SUM(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount))) | freighted products for a value greater than 2,000,000 refer to Freight > 2000000; name of companies refers to CompanyName; | order number 10933 refers to OrderID = 10933; | Gula Malacca is the name of the product; company refers to CompanyName; | less than 4 territories refers to EmployeeID where Count(TerritoryID) < 4 |
What are the products by the company "Bigfoot Breweries"? | Bigfoot Breweries is the name of the company; products refer to ProductName; | highest salary refers to Max(Salary) | most common product refers to max(count(ProductID)); customer from Germany refers to Country = 'Germany' | product refers to ProductName; | the highest total price paid for an order can be calculated as MAX(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1-Discount))); | 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; | Federal Shipping refers to CompanyName = 'Federal Shipping'; | from Japan refers to Country = 'Japan'; total production refers to ADD(UnitsInstock, UnitsOnOrder) | 'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100 | more than thirty dollars per unit refers to UnitPrice > 30 | through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100% |
What products were ordered by the customer ID "WILMK" which were required on 3/26/1998? | required on 3/26/1998 refers to RequiredDate = '1998-03-26 00:00:00'; products ordered refers to ProductName | order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock)); | Highest reorder level refers to Max(ReorderLevel) | company in Spain refers to Country = 'Spain'; product supplied refers to ProductName | suppliers refers to CompanyName; 'cheeses' is a Description | "Pavlova, Ltd" is the CompanyName; products refers to ProductName | beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel) | Bigfoot Breweries is the name of the company; products refer to ProductName; | three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry'; | Gula Malacca is the name of the product; company refers to CompanyName; | average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK' |
Which customer have the biggest purchase in one order and where does this order being ship to? | biggest purchase refers to max(ProductID.Order_Details); ship to refers to ShipCountry | suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel) | discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1) | in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName | territories refers to TerritoryDescription; Eastern Region refers to RegionDescription = 'Eastern'; | order number 10933 refers to OrderID = 10933; | discontinued products refers to Discontinued = 1; calculation = DIVIDE(SUM(Discontinued = 1), COUNT(ProductID)) * 100 | percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100% | order number 10558 refers to OrderID = 10558; | the highest total price paid for an order can be calculated as MAX(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1-Discount))); | 'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title |
List the name, address, and phone number of companies that supply products for more than thirty dollars per unit. | more than thirty dollars per unit refers to UnitPrice > 30 | "Northern" region refers to RegionDescription = 'Northern' | total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120 | three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry'; | names of all territories refers to TerritoryDescription; | full name = FirstName, LastName; youngest refers to latest BirthDate; | how many more = SUBTRACT(SUM(RegionDescription = 'Eastern'), SUM(RegionDescription = 'Southern')); Eastern Region refers to RegionDescription = 'Eastern'; Southern Region refers to RegionDescription = 'Southern'; | highest number of territories refers to max(TerritoryID); difference in salary = subtract(employeeA.Salary, employeeB.Salary) | in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName | Japan Supplier refers to Country = 'Japan'; total product refers to Count (ProductName) | Pavlova, Ltd. refers to CompanyName = 'Pavlova, Ltd.' |
List the employees' full names and ages in 2022 who lived in London. | in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName | 'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100 | most ordered refers to max(COUNT(OrderID)) | from Japan refers to Country = 'Japan'; total production refers to ADD(UnitsInstock, UnitsOnOrder) | from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1; | beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel) | most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ; total sales refers to sum(MULTIPLY(Quantity, UnitPrice)) | regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID)) | most customers refers to max(count(Relationship)) | "10 boxes x 12 pieces" is the QuantityPerUnit | "Madrid" is the City; in 1996 refers to YEAR (OrderDate) = 1996; percentage = Divide (Count (CustomerID where City = 'Madrid'), Count (CustomerID)) * 100 |
What is the total production of the product that is ordered in the highest quantity in order no. 10248? | total production of the product = SUM(units in stock, units on order); 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; | average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK' | via United Package refers to CompanyName = 'United Package' | products belong to beverage category refer to ProductName where CategoryName = 'beverage'; | full name refers to FirstName, LastName; brith day refers to BirthDate | no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA'; | 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); | territories refers to TerritoryDescription; Eastern Region refers to RegionDescription = 'Eastern'; | 'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName; | in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName |
Please name any three products that have been discontinued in the meat or poultry category. | three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry'; | supplied by refers to CompanyName | from USA refers to Country = 'USA' | in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName | order number 10558 refers to OrderID = 10558; | full name refers to FirstName, LastName; Denver is a TerritoryDescription | via United Package refers to CompanyName = 'United Package' | Morristown refers to TerritoryDescription = 'Morristown' | 'USA' is a country; supplier refers to CompanyName | regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID)) | Tokyo Traders refers to CompanyName = 'Tokyo Traders' |
Provide the full name of the employee who processed the sales order with ID 10274. | full name refers to FirstName, LastName; sales order with ID 10274 refers to OrderID = 10274 | Vegie-spread product refers to ProductName = 'Vegie-spread';total payment = MULTIPLY(UnitPrice, Quantity, (1-Discount)) | name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup'; | from UK refers to Country = 'UK' | shipped through refers to ShipVia; United Package refers to CompanyName = 'United Package' | discontinued products refers to Discontinued = 1; total sales amount refers to SUM(MULTIPLY(UnitPrice, Quantity)) | London refers to city = 'London'; | condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID | phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName; | required on 3/26/1998 refers to RequiredDate = '1998-03-26 00:00:00'; products ordered refers to ProductName | "Gai pturage" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100 |
Find the total production amount and product names which had "10 - 500 g pkgs." as quantity per unit. | total production amount refers to ADD(UnitsInstock, UnitsOnOrder) | "Scottish Longbreads" refers to ProductName = 'Scottish Longbreads' | shipped to the city of Paris refers to ShipCity = 'Paris'; | majority of the suppliers located refers to MAX(COUNT(SupplierID)) | the most overdue from required date refers to MIN(SUBTRACT(ShippedDate, RequiredDate) < 0) | United States of America refers to Country = 'USA' | London refers to city = 'London'; | full name = FirstName, LastName; youngest refers to latest BirthDate; | grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10; | less than 4 territories refers to EmployeeID where Count(TerritoryID) < 4 | HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25'; |
How many employees from USA with Sales Representative title? | from USA refers to Country = 'USA' | through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100% | full address includes Address, City, Region, PostalCode and Country; ContactName = 'Andr Fonseca'; | "New Orleans Cajun Delights" is the CompanyName; discontinued refers to Discontinued = 1 | "Scottish Longbreads" refers to ProductName = 'Scottish Longbreads' | full name refers to FirstName, LastName; Denver is a TerritoryDescription | name of the shipper company refers to ShipName; order No. refers to OrderID; | highest salary refers to Max(Salary) | "Eastern Region" refers to RegionDescription = 'Eastern'; "Southern Region" refers to RegionDescription = 'Southern'; times = divide(count(TerritoryDescription where RegionDescription = 'Eastern') , count(TerritoryDescription where RegionDescription = 'Southern')) | shipping company refers to Shippers; phone number refers to Phone | 'Blondesddsl pre et fils' is a CompanyName |
Which country are the majority of the suppliers located? | majority of the suppliers located refers to MAX(COUNT(SupplierID)) | DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage; | products refers to Order_Details.ProductID; on 14th August, 1996 refers to OrderDate = '8/14/1996' | how many more = SUBTRACT(SUM(RegionDescription = 'Eastern'), SUM(RegionDescription = 'Southern')); Eastern Region refers to RegionDescription = 'Eastern'; Southern Region refers to RegionDescription = 'Southern'; | 'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title | product refers to ProductName; | highest salary refers to MAX(Salary); full name = FirstName, LastName; | companies refers to CompanyName; | most widely used refers to max(count(ShipVia)); shipping company refers to CompanyName; in the United States of America refers to ShipCountry = 'USA' | highest number of territories refers to max(TerritoryID); difference in salary = subtract(employeeA.Salary, employeeB.Salary) | ID 1 to 9 refers to EmployeeID BETWEEN 1 AND 9; Average salary = AVG(Salary) |
What are the order ids of the orders with freight of over 800? | freight of over 800 refers to Freight > 800 | doctorate refers to TitleOfCourtesy = 'Dr.; | total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID; | newest hired refers to latest HireDate; full name = FirstName, LastName; | name of the supplier refers to SupplierID; the most product refers to max(count(ProductID)) | Eastern Region refers to RegionDescription = 'Eastern'; | most common product refers to max(count(ProductID)); customer from Germany refers to Country = 'Germany' | "Pavlova, Ltd" is the CompanyName; products refers to ProductName | 'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName; | name of product refers to ProductName; ID refers to ProductID | GREAL refers to CustomerID = 'GREAL'; via United Package refers to CompanyName = 'United Package' |
List down the company names that have the highest reorder level. | Highest reorder level refers to Max(ReorderLevel) | product refers to ProductName; | "American" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID | Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20 | most ordered refers to max(COUNT(OrderID)) | full name refers to FirstName, LastName; sales order with ID 10274 refers to OrderID = 10274 | highest freight refers to max(Freight) | IDs of the orders refers to OrderID; production is not continuous refers to Discontinued = 1; | territories refers to TerritoryDescription; Eastern Region refers to RegionDescription = 'Eastern'; | "Northern" region refers to RegionDescription = 'Northern' | from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount))) |
List the products whose supplier is Pavlova, Ltd. Please include the product ID and re-order level. | "Pavlova, Ltd" is the CompanyName; products refers to ProductName | total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID; | 'Mascarpone Fabioli' is a ProductName; calculation = SUM(UnitsInStock, UnitsOnOrder) | from USA refers to Country = 'USA' | Highest reorder level refers to Max(ReorderLevel) | 'Blondesddsl pre et fils' is a CompanyName | grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10; | Hollis refers to TerritoryDescription = 'Hollis'; full name = FirstName, LastName; | United States of America refers to Country = 'USA' | Santa Monica refers to TerritoryDescription = 'Santa Monica'; full name = FirstName, MiddleName, LastName; | reported to employee id 5 refers to ReportsTo = 5 |
How many suppliers are there in the United States of America? | United States of America refers to Country = 'USA' | name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup'; | "USA" is the Country; PhD title of courtesy refers to TitleOfCourtesy = 'Dr.' | full name refers to FirstName, LastName; Denver is a TerritoryDescription | under confections category refers to CategoryName = 'Confections'; | 'Laughing Bacchus Wine Cellars' refers to CompanyName; calculation = DIVIDE(SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)), COUNT(OrderID)) | discontinued products refers to Discontinued = 1; total sales amount refers to SUM(MULTIPLY(UnitPrice, Quantity)) | shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage | most common product refers to max(count(ProductID)); customer from Germany refers to Country = 'Germany' | the highest unit price refers to MAX(UnitPrice); | Eastern Region refers to RegionDescription = 'Eastern'; |
How many days was the fastest shipping of Berglunds snabbkp's order? | Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate)) | orders to Brazil refers to ShipCountry = 'Brazil'; highest salary refers to max(salary); average salary = AVG(Salary) | Gula Malacca is the name of the product; company refers to CompanyName; | most ordered refers to max(COUNT(OrderID)) | London refers to city = 'London'; | doctorate refers to TitleOfCourtesy = 'Dr.; | 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' | Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription; | 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; shipped to USA refers to ShipCountry = 'USA' | "10 boxes x 12 pieces" is the QuantityPerUnit |
Calculate the percentage of shipping done through Speedy Express. | through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100% | phone refers to HomePhone; Portsmouth territory refers to TerritoryDescription = 'Portsmouth'; | "Madrid" is the City; in 1996 refers to YEAR (OrderDate) = 1996; percentage = Divide (Count (CustomerID where City = 'Madrid'), Count (CustomerID)) * 100 | UK refers to Country = 'UK'; employees with over 4 territories refers to EmployeeID WHERE TerritoryID > 4; | "Scottish Longbreads" refers to ProductName = 'Scottish Longbreads' | ordered by ID 10979 refers to OrderID = '10979'; total payment refers to SUM(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount))) | highest number refers to max(count(CustomerID)) | three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry'; | Bigfoot Breweries is the name of the company; products refer to ProductName; | cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName | how many more = SUBTRACT(SUM(RegionDescription = 'Eastern'), SUM(RegionDescription = 'Southern')); Eastern Region refers to RegionDescription = 'Eastern'; Southern Region refers to RegionDescription = 'Southern'; |
Please give the contact name for Tokyo Traders. | Tokyo Traders refers to CompanyName = 'Tokyo Traders' | freighted products for a value greater than 2,000,000 refer to Freight > 2000000; name of companies refers to CompanyName; | DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage; | highest freight refers to max(Freight) | Santa Monica refers to TerritoryDescription = 'Santa Monica'; full name = FirstName, MiddleName, LastName; | average salary = AVG(Salary) | 'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName; | UnitsInStock < UnitsOnOrder; | companies refers to CompanyName; | 'Mascarpone Fabioli' is a ProductName; calculation = SUM(UnitsInStock, UnitsOnOrder) | value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value) |
Who is in charge of the "Santa Monica" territory? Give the full name. | Santa Monica refers to TerritoryDescription = 'Santa Monica'; full name = FirstName, MiddleName, LastName; | 'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100 | company in Spain refers to Country = 'Spain'; product supplied refers to ProductName | 9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate; | "Gai pturage" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100 | newest hired refers to latest HireDate; full name = FirstName, LastName; | cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName | products belong to beverage category refer to ProductName where CategoryName = 'beverage'; | 'Exotic Liquids' is a CompanyName; units in stock over 100 refers to UnitsInStock > 100 | 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' | Vegie-spread product refers to ProductName = 'Vegie-spread';total payment = MULTIPLY(UnitPrice, Quantity, (1-Discount)) |
For the order from "HILAA" on 1997/12/25, what was the total quantity of the products in that order? | HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25'; | "Tokyo Traders" is the CompanyName; average unit price = AVG(UnitPrice) | category refers to CategoryName; tofu refers to ProductName = 'Tofu'; | no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA'; | total production of the product = SUM(units in stock, units on order); order no. refers to OrderID; | 'dairy product' refers to CategoryName; most popular reorder quantity refers to MAX(ReorderLevel) | grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10; | "Brazil" is the ShipCountry; from 3/31/97 to 12/10/97 refers to 1997-03-31 < ShippedDate < 1997-10-12 | Bigfoot Breweries is the name of the company; products refer to ProductName; | Federal Shipping refers to CompanyName = 'Federal Shipping'; | "Uncle Bob's Organic Dried Pears" is the ProductName; total order quantity refers to Sum(Quantity) |
Give the home phone number of the employee who is in charge of "Savannah" territory. | home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah'; | order number 10558 refers to OrderID = 10558; | required on 3/26/1998 refers to RequiredDate = '1998-03-26 00:00:00'; products ordered refers to ProductName | total payment is greater than 15000 refers to MULTIPLY((Quantity * UnitPrice * (1 - Discount))) > 15000
| "Tokyo Traders" is the CompanyName; average unit price = AVG(UnitPrice) | discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1) | "Formaggi Fortini s.r.l." is the CompanyName; average unit price = AVG(UnitPrice) | name of territory refers to TerritoryDescription; Mr. refers to TitleOfCourtesy = 'Mr'; | 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'; | 9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate; | from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1; |
Among the products ordered in order no. 10248, which product has the biggest ratio of units on order to units in stock? | order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock)); | 'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title | "Exotic Liquids" is the CompanyName | required on 3/26/1998 refers to RequiredDate = '1998-03-26 00:00:00'; products ordered refers to ProductName | regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID)) | "Gai pturage" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100 | highest salary refers to MAX(Salary); full name = FirstName, LastName; | 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)) | total production amount refers to ADD(UnitsInstock, UnitsOnOrder) | Pavlova, Ltd. refers to CompanyName = 'Pavlova, Ltd.' | condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID |
What is the average sales for each categories? | average sales = AVG(ProductSales) | average salary = AVG(Salary) | doctorate refers to TitleOfCourtesy = 'Dr.; | shipped to the city of Paris refers to ShipCity = 'Paris'; | percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100% | Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName; | August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID)) | average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK' | region refers to RegionDescription | full name refers to FirstName, LastName; Denver is a TerritoryDescription | shipping company refers to Shippers; phone number refers to Phone |
Among the products that are no longer in continuous production, how many of them have their supplier in the USA? | no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA'; | UnitsInStock < UnitsOnOrder; | full address includes Address, City, Region, PostalCode and Country; ContactName = 'Andr Fonseca'; | HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25'; | 'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title | phone refers to HomePhone; Portsmouth territory refers to TerritoryDescription = 'Portsmouth'; | female employees refers to TitleOfCourtesy = 'Mrs.' or TitleOfCourtesy = 'Ms.'; in charge of 3 or more territories refers to TerritoryID > = 3; | shipped through refers to ShipVia; United Package refers to CompanyName = 'United Package' | highest freight refers to max(Freight) | 'Mascarpone Fabioli' is a ProductName; calculation = SUM(UnitsInStock, UnitsOnOrder) | most common product refers to max(count(ProductID)); customer from Germany refers to Country = 'Germany' |
How many suppliers are from UK? | from UK refers to Country = 'UK' | highest number of territories refers to max(TerritoryID) | phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName; | most customers refers to max(count(Relationship)) | the largest quantity of "Manjimup Dried Apples" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples'; | product refers to ProductName; highest user satisfaction refers to max(ReorderLevel) | shipped through refers to ShipVia; United Package refers to CompanyName = 'United Package' | 'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle | region refers to RegionID; "Columbia" refers to TerritoryDescription = 'Columbia' | reported to employee id 5 refers to ReportsTo = 5 | Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate)) |
What are the territory descriptions of territories in the Eastern region? | in the Eastern region refers to RegionDescription = 'Eastern' | 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); | paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID)) | most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ; total sales refers to sum(MULTIPLY(Quantity, UnitPrice)) | territories refers to TerritoryDescription; Eastern Region refers to RegionDescription = 'Eastern'; | "Scottish Longbreads" refers to ProductName = 'Scottish Longbreads' | shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage | from USA refers to Country = 'USA' | "Uncle Bob's Organic Dried Pears" is the ProductName; total order quantity refers to Sum(Quantity) | '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 | region refers to RegionID; "Columbia" refers to TerritoryDescription = 'Columbia' |
What is the total price of Ikura ordered in order no. 10273? | total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID; | products refers to Order_Details.ProductID; on 14th August, 1996 refers to OrderDate = '8/14/1996' | Vice President of Sales refers to Title = 'Vice President, Sales'; | name of product refers to ProductName; ID refers to ProductID | "Eastern" is the RegionDescription | shipped to France refers to ShipCountry = 'France'; | regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID)) | Hollis refers to TerritoryDescription = 'Hollis'; full name = FirstName, LastName; | ProductName = 'Thringer Rostbratwurst'; | no longer sold refers to Discontinued = 1; products refers to ProductName | Eastern Region refers to RegionDescription = 'Eastern'; |
What territories is the Inside Sales Coordinator in charge of? | territories refer to TerritoryDescription; Title = 'Inside Sales Coordinator'; | shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage | "Eastern" is the RegionDescription | suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel) | no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA'; | products refers to Order_Details.ProductID; on 14th August, 1996 refers to OrderDate = '8/14/1996' | the least shipped product refers ProductName where MIN(Quantity); | Pavlova, Ltd. refers to CompanyName = 'Pavlova, Ltd.' | more than thirty dollars per unit refers to UnitPrice > 30 | highest salary refers to max(salary); position refers to Title | most customers refers to max(count(Relationship)) |
Of the 10 products with the highest unit price, identify by their ID the ones that have generated the least satisfaction. | 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); | company in Spain refers to Country = 'Spain'; product supplied refers to ProductName | 'Mascarpone Fabioli' is a ProductName; calculation = SUM(UnitsInStock, UnitsOnOrder) | highest salary refers to max(salary); position refers to Title | "Eastern" is the RegionDescription | in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID) | "USA" is the Country; PhD title of courtesy refers to TitleOfCourtesy = 'Dr.' | sales representative refers to Title = 'Sales Representative'; sales values refers to MULTIPLY(Quantity, UnitPrice); the highest sales refers to max(MULTIPLY(Quantity, UnitPrice)) | highest number of territories refers to max(TerritoryID); difference in salary = subtract(employeeA.Salary, employeeB.Salary) | freight of over 800 refers to Freight > 800 | "Gai pturage" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100 |
Give the number of territories in the "Northern" region. | "Northern" region refers to RegionDescription = 'Northern' | Eastern Region refers to RegionDescription = 'Eastern'; | 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; | 'USA' is a country; supplier refers to CompanyName | products refers to Order_Details.ProductID; on 14th August, 1996 refers to OrderDate = '8/14/1996' | 'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle | Hollis refers to TerritoryDescription = 'Hollis'; full name = FirstName, LastName; | name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup'; | territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName | Eastern Region refers to RegionDescription = 'Eastern'; | "Uncle Bob's Organic Dried Pears" is the ProductName; total order quantity refers to Sum(Quantity) |
Please calculate the average unit price for products of Formaggi Fortini s.r.l. | "Formaggi Fortini s.r.l." is the CompanyName; average unit price = AVG(UnitPrice) | 'Exotic Liquids' is a CompanyName; units in stock over 100 refers to UnitsInStock > 100 | 'Confections' is a CompanyName; | 'Mascarpone Fabioli' is a ProductName; calculation = SUM(UnitsInStock, UnitsOnOrder) | most common product refers to max(count(ProductID)); customer from Germany refers to Country = 'Germany' | cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName | 'Blondesddsl pre et fils' is a CompanyName | 'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100 | "Uncle Bob's Organic Dried Pears" is the ProductName; total order quantity refers to Sum(Quantity) | from Japan refers to Country = 'Japan'; total production refers to ADD(UnitsInstock, UnitsOnOrder) | Japan Supplier refers to Country = 'Japan'; total product refers to Count (ProductName) |
What products are no longer sold by Northwind? | no longer sold refers to Discontinued = 1; products refers to ProductName | Vice President of Sales refers to Title = 'Vice President, Sales'; | total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120 | Vegie-spread product refers to ProductName = 'Vegie-spread';total payment = MULTIPLY(UnitPrice, Quantity, (1-Discount)) | discontinued products refers to Discontinued = 1; calculation = DIVIDE(SUM(Discontinued = 1), COUNT(ProductID)) * 100 | no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA'; | 'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle | products refers to ProductName; 'Zaanse Snoepfabriek' is a CompanyName | full name refers to FirstName, LastName; sales order with ID 10274 refers to OrderID = 10274 | 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); | 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'; |
Write down the top ten companies with the most total sales by amount. | most total sales refers to Max(SaleAmount); companies refers to CompanyName | percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100% | 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 | UnitsInStock < UnitsOnOrder; | full name refers to FirstName, LastName | 'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName; | product refers to ProductName; | territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName | "Madrid" is the City; in 1996 refers to YEAR (OrderDate) = 1996; percentage = Divide (Count (CustomerID where City = 'Madrid'), Count (CustomerID)) * 100 | 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'; |
Name the suppliers that supply products under the category 'cheeses.' | suppliers refers to CompanyName; 'cheeses' is a Description | shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage | under confections category refers to CategoryName = 'Confections'; | highest salary refers to MAX(Salary); full name = FirstName, LastName; | total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID; | required on 3/26/1998 refers to RequiredDate = '1998-03-26 00:00:00'; products ordered refers to ProductName | "Northern" region refers to RegionDescription = 'Northern' | 'Mascarpone Fabioli' is a ProductName; calculation = SUM(UnitsInStock, UnitsOnOrder) | Drachenblut Delikatessen is the company name; | UnitsInStock < UnitsOnOrder; | 'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100 |
List the supplier company names located in Germany. | located in Germany refers to Country = 'Germany'; | territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName | from USA refers to Country = 'USA' | Bigfoot Breweries is the name of the company; products refer to ProductName; | Tokyo Traders refers to CompanyName = 'Tokyo Traders' | more than thirty dollars per unit refers to UnitPrice > 30 | name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup'; | suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel) | total payment is greater than 15000 refers to MULTIPLY((Quantity * UnitPrice * (1 - Discount))) > 15000
| from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount))) | cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName |
How many orders have been shipped through United Package? | shipped through refers to ShipVia; United Package refers to CompanyName = 'United Package' | Morristown refers to TerritoryDescription = 'Morristown' | Vice President of Sales refers to Title = 'Vice President, Sales'; | total production of the product = SUM(units in stock, units on order); order no. refers to OrderID; | most ordered refers to max(COUNT(OrderID)) | "Speedy Express" is the name of the shipping company; orders refer to OrderID; | from UK refers to Country = 'UK' | "Scottish Longbreads" refers to ProductName = 'Scottish Longbreads' | order number 10933 refers to OrderID = 10933; | full name refers to FirstName LastName; highest salary refers to max(Salary) | product refers to ProductName; highest user satisfaction refers to max(ReorderLevel) |
What is the company name of the supplier who supplies the product with the highest unit price? | the highest unit price refers to MAX(UnitPrice); | Federal Shipping refers to CompanyName = 'Federal Shipping'; | Vegie-spread product refers to ProductName = 'Vegie-spread';total payment = MULTIPLY(UnitPrice, Quantity, (1-Discount)) | in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName | average = AVG(Quantity); Ikura refers to ProductName = 'Ikura'; | shipping company refers to Shippers; phone number refers to Phone | average salary = DIVIDE(SUM(Salary), COUNT(EmployeeID)); employees who takes charge of over 4 territories refers to EmployeeID WHERE COUNT(TerritoryID) > 4; | Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID; | from Japan refers to Country = 'Japan'; total production refers to ADD(UnitsInstock, UnitsOnOrder) | 'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title | "USA" is the Country; PhD title of courtesy refers to TitleOfCourtesy = 'Dr.' |
Please list the names of all the territories whose sales are taken in charge by Nancy Davolio. | names of all territories refers to TerritoryDescription; | products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5'; | highest salary refers to max(salary); position refers to Title | Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20 | UnitsInStock < UnitsOnOrder; | Highest reorder level refers to Max(ReorderLevel) | products refers to ProductName; 'Zaanse Snoepfabriek' is a CompanyName | HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25'; | 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 | majority of the suppliers located refers to MAX(COUNT(SupplierID)) | 'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title |
How many products were ordered in the order with the highest freight? | highest freight refers to max(Freight) | 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'; | 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; | less than 4 territories refers to EmployeeID where Count(TerritoryID) < 4 | "New Orleans Cajun Delights" is the CompanyName; discontinued refers to Discontinued = 1 | majority of the suppliers located refers to MAX(COUNT(SupplierID)) | Drachenblut Delikatessen is the company name; | 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' | percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100% | beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel) |
What is the total amount of sales made in the year 1997? | year 1997 refers to year(OrderDate) = 1997; total amount of sales refers to (UnitPrice * Quantity) | "Seafood" is the CategoryName; order quantity of more than 50 refers to Quantity > 50 | shipped the most times refer to MAX(COUNT(ShipVia)); city of Aachen refers to ShipCity = 'Aache'; companies refers to CompanyName; | 'dairy product' refers to CategoryName; most popular reorder quantity refers to MAX(ReorderLevel) | cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName | the most overdue from required date refers to MIN(SUBTRACT(ShippedDate, RequiredDate) < 0) | highest number refers to max(count(CustomerID)) | no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA'; | companies refers to CompanyName; | more than thirty dollars per unit refers to UnitPrice > 30 | highest number of territories refers to max(TerritoryID) |
What is the full name of the Vice President of Sales. Give me the URL of his/her photo. | "Vice Present of Sales" refers to Title = 'Vice President, Sales'; full name refers to FirstName, LastName; url of photo refers to PhotoPath | home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah'; | in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName | in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName | name of product refers to ProductName; ID refers to ProductID | "Uncle Bob's Organic Dried Pears" is the ProductName; total order quantity refers to Sum(Quantity) | newest hired refers to latest HireDate; full name = FirstName, LastName; | via United Package refers to CompanyName = 'United Package' | "New Orleans Cajun Delights" is the CompanyName; discontinued refers to Discontinued = 1 | grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10; | "Eastern" is the RegionDescription |
What is the average quantity of Ikura ordered in one order? | average = AVG(Quantity); Ikura refers to ProductName = 'Ikura'; | the highest unit price refers to MAX(UnitPrice); | average salary = AVG(Salary) | 9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate; | condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID | region refers to RegionDescription | companies refers to ShipperID | full name refers to FirstName LastName; highest salary refers to max(Salary) | majority of the suppliers located refers to MAX(COUNT(SupplierID)) | full name refers to FirstName, LastName; sales order with ID 10274 refers to OrderID = 10274 | female employees refers to TitleOfCourtesy = 'Mrs.' or TitleOfCourtesy = 'Ms.'; in charge of 3 or more territories refers to TerritoryID > = 3; |
Calculate the average salary per order for Andrew Fuller. | average salary = AVG(Salary) | most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ; total sales refers to sum(MULTIPLY(Quantity, UnitPrice)) | most widely used refers to max(count(ShipVia)); shipping company refers to CompanyName; in the United States of America refers to ShipCountry = 'USA' | majority of the suppliers located refers to MAX(COUNT(SupplierID)) | grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10; | 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'; | '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 | discontinued products refers to Discontinued = 1; total sales amount refers to SUM(MULTIPLY(UnitPrice, Quantity)) | shipped to the city of Paris refers to ShipCity = 'Paris'; | ordered by ID 10979 refers to OrderID = '10979'; total payment refers to SUM(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount))) | 'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID |
What was the average unit price of products shipped via United Package in 1997? | 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)) | "Northern" region refers to RegionDescription = 'Northern' | full name refers to FirstName, LastName; shipped to USA refers to ShipCountry = 'USA' | names of all territories refers to TerritoryDescription; | Pavlova, Ltd. refers to CompanyName = 'Pavlova, Ltd.' | "Brazil" is the ShipCountry; from 3/31/97 to 12/10/97 refers to 1997-03-31 < ShippedDate < 1997-10-12 | average = AVG(Quantity); Ikura refers to ProductName = 'Ikura'; | region refers to RegionID; "Columbia" refers to TerritoryDescription = 'Columbia' | companies refers to ShipperID | Gula Malacca is the name of the product; company refers to CompanyName; | percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100% |
Calculate the total payment of orders for Vegie-spread product. | Vegie-spread product refers to ProductName = 'Vegie-spread';total payment = MULTIPLY(UnitPrice, Quantity, (1-Discount)) | 9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to 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'; | Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20 | "American" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID | 'Confections' is a CompanyName; | Eastern Region refers to RegionDescription = 'Eastern'; | name of product refers to ProductName; ID refers to ProductID | via United Package refers to CompanyName = 'United Package' | Pavlova, Ltd. refers to CompanyName = 'Pavlova, Ltd.' | "Laura Callahan" refers to FirstName = 'Laura AND LastName = 'Callahan |
What is the last name of the employees who must report to the Vice President of Sales? | 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'; | Federal Shipping refers to CompanyName = 'Federal Shipping' | companies refers to ShipperID | order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock)); | full name refers to FirstName, LastName; shipped to USA refers to ShipCountry = 'USA' | Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName; | biggest purchase refers to max(ProductID.Order_Details); ship to refers to ShipCountry | Eastern Region refers to RegionDescription = 'Eastern'; | average sales = AVG(ProductSales) | home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah'; | regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID)) |
How many orders was handled by employees who reported to employee id 5? | reported to employee id 5 refers to ReportsTo = 5 | female employees refers to TitleOfCourtesy = 'Mrs.' or TitleOfCourtesy = 'Ms.'; in charge of 3 or more territories refers to TerritoryID > = 3; | 9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate; | full name refers to LastName, FirstName | ordered by ID 10979 refers to OrderID = '10979'; total payment refers to SUM(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount))) | most ordered refers to max(COUNT(OrderID)) | highest number of products refers to MAX(COUNT(ProductID)) | full name refers to FirstName, LastName; shipped to USA refers to ShipCountry = 'USA' | Vegie-spread product refers to ProductName = 'Vegie-spread';total payment = MULTIPLY(UnitPrice, Quantity, (1-Discount)) | 'USA' is a country; supplier refers to CompanyName | "Exotic Liquids" is the CompanyName |
Through which companies have products been shipped the most times to the city of Aachen? | shipped the most times refer to MAX(COUNT(ShipVia)); city of Aachen refers to ShipCity = 'Aache'; companies refers to CompanyName; | "Scottish Longbreads" refers to ProductName = 'Scottish Longbreads' | from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount))) | total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120 | value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value) | "Brazil" is the ShipCountry; from 3/31/97 to 12/10/97 refers to 1997-03-31 < ShippedDate < 1997-10-12 | product refers to ProductName; | discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1) | 'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle | order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock)); | "Seafood" is the CategoryName; order quantity of more than 50 refers to Quantity > 50 |
Under the in-charge of inside sales coordinator, provide the product lists which were shipped to Mexico in 1996. | 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' | orders to Brazil refers to ShipCountry = 'Brazil'; highest salary refers to max(salary); average salary = AVG(Salary) | value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value) | name of the supplier refers to SupplierID; the most product refers to max(count(ProductID)) | GREAL refers to CustomerID = 'GREAL'; via United Package refers to CompanyName = 'United Package' | region refers to RegionID; "Columbia" refers to TerritoryDescription = 'Columbia' | Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate)) | '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 | "Seafood" is the CategoryName; order quantity of more than 50 refers to Quantity > 50 | 'Mascarpone Fabioli' is a ProductName; calculation = SUM(UnitsInStock, UnitsOnOrder) | "Tokyo Traders" is the CompanyName; average unit price = AVG(UnitPrice) |
List the name of the top ten most ordered product's names in descending order of the number of orders. | most ordered refers to max(COUNT(OrderID)) | 'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID | 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 product refers to ProductName; ID refers to ProductID | shipping company refers to Shippers; phone number refers to Phone | Sales Manager refers to Title = 'Sales Manager'; full name refers to FirstName, LastName | suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel) | discontinued product refers to Discontinued = 1; supplier refers to CompanyName | full name refers to FirstName, LastName; shipped to USA refers to ShipCountry = 'USA' | Santa Monica refers to TerritoryDescription = 'Santa Monica'; full name = FirstName, MiddleName, LastName; | "Uncle Bob's Organic Dried Pears" is the ProductName; total order quantity refers to Sum(Quantity) |
List the order IDs, product IDs and unit price of orders which total payment is greater than 15000. | total payment is greater than 15000 refers to MULTIPLY((Quantity * UnitPrice * (1 - Discount))) > 15000
| products refers to ProductName; 'Zaanse Snoepfabriek' is a CompanyName | Vice President of Sales refers to Title = 'Vice President, Sales'; | full name refers to FirstName LastName; highest salary refers to max(Salary) | territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName | DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage; | HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25'; | suppliers refers to CompanyName; 'cheeses' is a Description | Vegie-spread product refers to ProductName = 'Vegie-spread';total payment = MULTIPLY(UnitPrice, Quantity, (1-Discount)) | "Pavlova, Ltd" is the CompanyName; products refers to ProductName | highest salary refers to max(salary); position refers to Title |
List the full name of employees and titles who have to report to Sales Manager. | Sales Manager refers to Title = 'Sales Manager'; full name refers to FirstName, LastName | name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup'; | less than 4 territories refers to EmployeeID where Count(TerritoryID) < 4 | year 1997 refers to year(OrderDate) = 1997; total amount of sales refers to (UnitPrice * Quantity) | average salary = DIVIDE(SUM(Salary), COUNT(EmployeeID)); employees who takes charge of over 4 territories refers to EmployeeID WHERE COUNT(TerritoryID) > 4; | from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1; | in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName | "Eastern" is the RegionDescription | cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName | "Teatime Chocolate Biscuits" is the ProductName | full name refers to FirstName, LastName; Denver is a TerritoryDescription |
Calculate the percentage of products supplied by Gai pturage over all products. | "Gai pturage" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100 | located in Germany refers to Country = 'Germany'; | suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel) | 'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle | in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName | regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID)) | condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID | 9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate; | most expensive product refers to ProductName where MAX(UnitPrice); | value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value) | region refers to RegionID; "Columbia" refers to TerritoryDescription = 'Columbia' |
How many percent more orders were fulfilled with shipper company "United Package" than with "Speedy Express"? | percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100% | 9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate; | shipping company refers to Shippers; phone number refers to Phone | ProductName = 'Thringer Rostbratwurst'; | HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25'; | 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' | Federal Shipping refers to CompanyName = 'Federal Shipping' | highest salary refers to MAX(Salary); full name = FirstName, LastName; | "Seafood" is the CategoryName; order quantity of more than 50 refers to Quantity > 50 | names of all territories refers to TerritoryDescription; | freight of over 800 refers to Freight > 800 |
Give the full name and contact number of employees in descending order of age. | full name refers to FirstName LastName; contact number refers to HomePhone; descending order of age refers to order by BirthDate desc limit 1 | August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID)) | condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID | order number 10558 refers to OrderID = 10558; | biggest purchase refers to max(ProductID.Order_Details); ship to refers to ShipCountry | Vice President of Sales refers to Title = 'Vice President, Sales'; | Highest reorder level refers to Max(ReorderLevel) | 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)) | 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); | UnitsInStock < UnitsOnOrder; | 'Laughing Bacchus Wine Cellars' refers to CompanyName; calculation = DIVIDE(SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)), COUNT(OrderID)) |
What is the name of the supplier company for Aniseed Syrup? | name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup'; | name of product refers to ProductName; ID refers to ProductID | 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' | highest salary refers to Max(Salary) | female employees refers to TitleOfCourtesy = 'Mrs.' or TitleOfCourtesy = 'Ms.'; in charge of 3 or more territories refers to TerritoryID > = 3; | average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK' | Morristown refers to TerritoryDescription = 'Morristown' | products belong to beverage category refer to ProductName where CategoryName = 'beverage'; | 'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID | percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100% | products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5'; |
How many kinds of products are supplied by "Karkki Oy" company? | supplied by refers to CompanyName | United States of America refers to Country = 'USA' | name of the supplier refers to SupplierID; the most product refers to max(count(ProductID)) | London refers to city = 'London'; | Gula Malacca is the name of the product; company refers to CompanyName; | 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' | "Eastern Region" refers to RegionDescription = 'Eastern'; "Southern Region" refers to RegionDescription = 'Southern'; times = divide(count(TerritoryDescription where RegionDescription = 'Eastern') , count(TerritoryDescription where RegionDescription = 'Southern')) | "Speedy Express" is the name of the shipping company; orders refer to OrderID; | 'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle | Pavlova, Ltd. refers to CompanyName = 'Pavlova, Ltd.' | Highest reorder level refers to Max(ReorderLevel) |
What is the shipping company for order number 10558? | order number 10558 refers to OrderID = 10558; | in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName | "Teatime Chocolate Biscuits" is the ProductName | '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 | condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID | the largest quantity of "Manjimup Dried Apples" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples'; | average = AVG(Quantity); Ikura refers to ProductName = 'Ikura'; | 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'; | products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5'; | highest number of territories refers to max(TerritoryID); difference in salary = subtract(employeeA.Salary, employeeB.Salary) | no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA'; |
Which employee handled the most amount of orders in 1996? Give the full name, title, and address of this employee. | 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 | condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID | orders to Brazil refers to ShipCountry = 'Brazil'; highest salary refers to max(salary); average salary = AVG(Salary) | shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage | "Scottish Longbreads" refers to ProductName = 'Scottish Longbreads' | products belong to beverage category refer to ProductName where CategoryName = 'beverage'; | 'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID | freight of over 800 refers to Freight > 800 | order number 10558 refers to OrderID = 10558; | Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID; | full address includes Address, City, Region, PostalCode and Country; ContactName = 'Andr Fonseca'; |
How many orders have asked for the product Tofu? | product refers to ProductName; | Bigfoot Breweries is the name of the company; products refer to ProductName; | shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996 refers to year(OrderDate) = 1996 and month(OrderDate) = 12; | Japan Supplier refers to Country = 'Japan'; total product refers to Count (ProductName) | Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate)) | Margaret Peacock is the full name of an employee; full name refers to FirstName, LastName; phone number refers to HomePhone | more than thirty dollars per unit refers to UnitPrice > 30 | most expensive product refers to ProductName where MAX(UnitPrice); | "USA" is the Country; PhD title of courtesy refers to TitleOfCourtesy = 'Dr.' | regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID)) | paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID)) |
What is the full name of the employee who handled the highest amount of orders? | full name refers to FirstName LastName; highest amount of orders refers to max(count(OrderID)) | names of all territories refers to TerritoryDescription; | sales representative refers to Title = 'Sales Representative'; sales values refers to MULTIPLY(Quantity, UnitPrice); the highest sales refers to max(MULTIPLY(Quantity, UnitPrice)) | "Teatime Chocolate Biscuits" is the ProductName | "Seafood" is the CategoryName; order quantity of more than 50 refers to Quantity > 50 | phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName; | more than thirty dollars per unit refers to UnitPrice > 30 | "Eastern" is the RegionDescription | shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996 refers to year(OrderDate) = 1996 and month(OrderDate) = 12; | products refers to Order_Details.ProductID; on 14th August, 1996 refers to OrderDate = '8/14/1996' | condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID |
Write the address and phone number of Margaret Peacock. | Margaret Peacock is the full name of an employee; full name refers to FirstName, LastName; phone number refers to HomePhone | "Eastern" is the RegionDescription | phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName; | 'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID | products refers to Order_Details.ProductID; on 14th August, 1996 refers to OrderDate = '8/14/1996' | least order refers to Min(OrderID) | is a UK citizen refers to Country = 'UK' | "Exotic Liquids" is the CompanyName | total payment is greater than 15000 refers to MULTIPLY((Quantity * UnitPrice * (1 - Discount))) > 15000
| "Northern" region refers to RegionDescription = 'Northern' | three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry'; |
Tally the customer ID of orders that were shipped to Brazil by Margaret Peacock from 3/31/97 to 12/10/97. | "Brazil" is the ShipCountry; from 3/31/97 to 12/10/97 refers to 1997-03-31 < ShippedDate < 1997-10-12 | "Laura Callahan" refers to FirstName = 'Laura AND LastName = 'Callahan | 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 | discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1) | name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup'; | 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); | '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 | 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 | doctorate refers to TitleOfCourtesy = 'Dr.; | average sales = AVG(ProductSales) |
Calculate the total products that are supplied by Japan suppliers. | Japan Supplier refers to Country = 'Japan'; total product refers to Count (ProductName) | category refers to CategoryName; tofu refers to ProductName = 'Tofu'; | the largest quantity of "Manjimup Dried Apples" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples'; | three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry'; | Bigfoot Breweries is the name of the company; products refer to ProductName; | 'Confections' is a CompanyName; | "Pavlova, Ltd" is the CompanyName; products refers to ProductName | Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName; | shipping company refers to Shippers; phone number refers to Phone | ProductName = 'Thringer Rostbratwurst'; | name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup'; |
Indicate the name of the companies that have freighted products for a value greater than 2,000,000. | freighted products for a value greater than 2,000,000 refer to Freight > 2000000; name of companies refers to CompanyName; | most expensive product refers to ProductName where MAX(UnitPrice); | Federal Shipping refers to CompanyName = 'Federal Shipping'; | full name refers to FirstName LastName; contact number refers to HomePhone; descending order of age refers to order by BirthDate desc limit 1 | most customers refers to max(count(Relationship)) | "Eastern" is the RegionDescription | average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK' | cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName | shipped to the city of Paris refers to ShipCity = 'Paris'; | "Teatime Chocolate Biscuits" is the ProductName | full name refers to FirstName, LastName; shipped to USA refers to ShipCountry = 'USA' |
Who was taking charge of orders from Morristown? | Morristown refers to TerritoryDescription = 'Morristown' | from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1; | highest number of territories refers to max(TerritoryID) | August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID)) | reported to employee id 5 refers to ReportsTo = 5 | shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage | year 1997 refers to year(OrderDate) = 1997; total amount of sales refers to (UnitPrice * Quantity) | Federal Shipping refers to CompanyName = 'Federal Shipping' | three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry'; | value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value) | UnitsInStock < UnitsOnOrder; |
What is the full address of Andr Fonseca? | full address includes Address, City, Region, PostalCode and Country; ContactName = 'Andr Fonseca'; | least order refers to Min(OrderID) | territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName | most common product refers to max(count(ProductID)); customer from Germany refers to Country = 'Germany' | highest number of territories refers to max(TerritoryID); difference in salary = subtract(employeeA.Salary, employeeB.Salary) | 'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title | biggest purchase refers to max(ProductID.Order_Details); ship to refers to ShipCountry | 'Exotic Liquids' is a CompanyName; units in stock over 100 refers to UnitsInStock > 100 | "Teatime Chocolate Biscuits" is the ProductName | through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100% | 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); |
How many orders were shipped to GREAL via United Package? | GREAL refers to CustomerID = 'GREAL'; via United Package refers to CompanyName = 'United Package' | full name refers to FirstName LastName; highest amount of orders refers to max(count(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 | Plutzer Lebensmittelgromrkte AG refers to CompanyName; is currently out of stock and on order refers to UnitsInStock = 0 and UnitsOnOrder > 0 | order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock)); | total production of the product = SUM(units in stock, units on order); order no. refers to OrderID; | average salary = DIVIDE(SUM(Salary), COUNT(EmployeeID)); employees who takes charge of over 4 territories refers to EmployeeID WHERE COUNT(TerritoryID) > 4; | products belong to beverage category refer to ProductName where CategoryName = 'beverage'; | total production amount refers to ADD(UnitsInstock, UnitsOnOrder) | region refers to RegionID; "Columbia" refers to TerritoryDescription = 'Columbia' | "Northern" region refers to RegionDescription = 'Northern' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.