set
dict |
---|
{
"query": "How many percent more orders were fulfilled with shipper company \"United Package\" than with \"Speedy Express\"?",
"pos": [
"percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%"
],
"neg": [
"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"
]
} |
{
"query": "Give the full name and contact number of employees in descending order of age.",
"pos": [
"full name refers to FirstName LastName; contact number refers to HomePhone; descending order of age refers to order by BirthDate desc limit 1"
],
"neg": [
"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))"
]
} |
{
"query": "What is the name of the supplier company for Aniseed Syrup?",
"pos": [
"name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup';"
],
"neg": [
"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';"
]
} |
{
"query": "How many kinds of products are supplied by \"Karkki Oy\" company?",
"pos": [
"supplied by refers to CompanyName"
],
"neg": [
"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)"
]
} |
{
"query": "What is the shipping company for order number 10558?",
"pos": [
"order number 10558 refers to OrderID = 10558;"
],
"neg": [
"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';"
]
} |
{
"query": "Which employee handled the most amount of orders in 1996? Give the full name, title, and address of this employee.",
"pos": [
"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"
],
"neg": [
"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';"
]
} |
{
"query": "How many orders have asked for the product Tofu?",
"pos": [
"product refers to ProductName;"
],
"neg": [
"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))"
]
} |
{
"query": "What is the full name of the employee who handled the highest amount of orders?",
"pos": [
"full name refers to FirstName LastName; highest amount of orders refers to max(count(OrderID))"
],
"neg": [
"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"
]
} |
{
"query": "Write the address and phone number of Margaret Peacock.",
"pos": [
"Margaret Peacock is the full name of an employee; full name refers to FirstName, LastName; phone number refers to HomePhone"
],
"neg": [
"\"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\n",
"\"Northern\" region refers to RegionDescription = 'Northern'",
"three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry';"
]
} |
{
"query": "Tally the customer ID of orders that were shipped to Brazil by Margaret Peacock from 3/31/97 to 12/10/97.",
"pos": [
"\"Brazil\" is the ShipCountry; from 3/31/97 to 12/10/97 refers to 1997-03-31 < ShippedDate < 1997-10-12"
],
"neg": [
"\"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)"
]
} |
{
"query": "Calculate the total products that are supplied by Japan suppliers.",
"pos": [
"Japan Supplier refers to Country = 'Japan'; total product refers to Count (ProductName)"
],
"neg": [
"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';"
]
} |
{
"query": "Indicate the name of the companies that have freighted products for a value greater than 2,000,000.",
"pos": [
"freighted products for a value greater than 2,000,000 refer to Freight > 2000000; name of companies refers to CompanyName;"
],
"neg": [
"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'"
]
} |
{
"query": "Who was taking charge of orders from Morristown?",
"pos": [
"Morristown refers to TerritoryDescription = 'Morristown'"
],
"neg": [
"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;"
]
} |
{
"query": "What is the full address of Andr Fonseca?",
"pos": [
"full address includes Address, City, Region, PostalCode and Country; ContactName = 'Andr Fonseca';"
],
"neg": [
"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);"
]
} |
{
"query": "How many orders were shipped to GREAL via United Package?",
"pos": [
"GREAL refers to CustomerID = 'GREAL'; via United Package refers to CompanyName = 'United Package'"
],
"neg": [
"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'"
]
} |
{
"query": "How many boxes of 'Pavlova' did Northwind sell?",
"pos": [
"'Pavlova' is a ProductName"
],
"neg": [
"no longer sold refers to Discontinued = 1; products refers to ProductName",
"ProductName = 'Thringer Rostbratwurst';",
"from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))",
"'Andrew Fuller' is the full name of an employee; full name refers to FistName, LastName; Austria refers to ShipCountry; calculation = DIVIDE(SUM(ShipCountry = 'Austria'), COUNT(OrderID)) * 100",
"full name refers to FirstName LastName; highest salary refers to max(Salary)",
"full name refers to FirstName LastName; contact number refers to HomePhone; descending order of age refers to order by BirthDate desc limit 1",
"phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName;",
"\"USA\" is the Country; PhD title of courtesy refers to TitleOfCourtesy = 'Dr.'",
"doctorate refers to TitleOfCourtesy = 'Dr.;",
"supplied by refers to CompanyName"
]
} |
{
"query": "Find the percentage of discontinued products in Northwind's portfolio of products.",
"pos": [
"discontinued products refers to Discontinued = 1; calculation = DIVIDE(SUM(Discontinued = 1), COUNT(ProductID)) * 100"
],
"neg": [
"\"Uncle Bob's Organic Dried Pears\" is the ProductName; total order quantity refers to Sum(Quantity)",
"percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%",
"company in Spain refers to Country = 'Spain'; product supplied refers to ProductName",
"territories refer to TerritoryDescription; Title = 'Inside Sales Coordinator';",
"more than thirty dollars per unit refers to UnitPrice > 30",
"High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG';",
"total payment is greater than 15000 refers to MULTIPLY((Quantity * UnitPrice * (1 - Discount))) > 15000\n",
"grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10;",
"no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA';",
"\"Formaggi Fortini s.r.l.\" is the CompanyName; average unit price = AVG(UnitPrice)"
]
} |
{
"query": "Describe the ordered products which were the most overdue from required date.",
"pos": [
"the most overdue from required date refers to MIN(SUBTRACT(ShippedDate, RequiredDate) < 0)"
],
"neg": [
"highest salary refers to MAX(Salary); full name = FirstName, LastName;",
"discontinued refers to Discontinued = 1",
"\"Formaggi Fortini s.r.l.\" is the CompanyName; average unit price = AVG(UnitPrice)",
"highest number of territories refers to max(TerritoryID); difference in salary = subtract(employeeA.Salary, employeeB.Salary)",
"\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100",
"companies refers to CompanyName;",
"product refers to ProductName;",
"the largest quantity of \"Manjimup Dried Apples\" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples';",
"discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1)",
"Federal Shipping refers to CompanyName = 'Federal Shipping'"
]
} |
{
"query": "What is the total sales amount of all discontinued products?",
"pos": [
"discontinued products refers to Discontinued = 1; total sales amount refers to SUM(MULTIPLY(UnitPrice, Quantity))"
],
"neg": [
"territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName",
"Plutzer Lebensmittelgromrkte AG refers to CompanyName; is currently out of stock and on order refers to UnitsInStock = 0 and UnitsOnOrder > 0",
"shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage",
"via United Package refers to CompanyName = 'United Package'",
"percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%",
"product refers to ProductName;",
"'Laughing Bacchus Wine Cellars' refers to CompanyName; calculation = DIVIDE(SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)), COUNT(OrderID))",
"region refers to RegionDescription",
"most common product refers to max(count(ProductID)); customer from Germany refers to Country = 'Germany'",
"'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName;"
]
} |
{
"query": "Who is the newest hired employee? Give the full name.",
"pos": [
"newest hired refers to latest HireDate; full name = FirstName, LastName;"
],
"neg": [
"territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName",
"from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))",
"descriptions refers to TerritoryDescription; region refers to RegionDescription",
"sales representative refers to Title = 'Sales Representative'; sales values refers to MULTIPLY(Quantity, UnitPrice); the highest sales refers to max(MULTIPLY(Quantity, UnitPrice))",
"highest salary refers to MAX(Salary); full name = FirstName, LastName;",
"most amount of orders refers to max(count(OrderID)); in 1996 refers to OrderDate > = '1996-01-01 00:00:00' AND OrderDate < '1997-01-01 00:00:00'; full name refers to FirstName, LastName",
"total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120",
"shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996 refers to year(OrderDate) = 1996 and month(OrderDate) = 12;",
"full name refers to FirstName LastName; highest amount of orders refers to max(count(OrderID))",
"\"Pavlova, Ltd\" is the CompanyName; products refers to ProductName"
]
} |
{
"query": "Which of the American customers have experienced a delay in the shipment and how long was the longest?",
"pos": [
"\"American\" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID"
],
"neg": [
"Highest reorder level refers to Max(ReorderLevel)",
"\"USA\" is the Country; PhD title of courtesy refers to TitleOfCourtesy = 'Dr.'",
"beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel)",
"the largest quantity of \"Manjimup Dried Apples\" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples';",
"\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100",
"territories refers to TerritoryDescription; Eastern Region refers to RegionDescription = 'Eastern';",
"name of the shipper company refers to ShipName; order No. refers to OrderID;",
"most amount of orders refers to max(count(OrderID)); in 1996 refers to OrderDate > = '1996-01-01 00:00:00' AND OrderDate < '1997-01-01 00:00:00'; full name refers to FirstName, LastName",
"Bigfoot Breweries is the name of the company; products refer to ProductName;",
"freight of over 800 refers to Freight > 800"
]
} |
{
"query": "Among the seafoods, how many of them have an order quantity of more than 50?",
"pos": [
"\"Seafood\" is the CategoryName; order quantity of more than 50 refers to Quantity > 50"
],
"neg": [
"Drachenblut Delikatessen is the company name;",
"Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName;",
"from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))",
"'Blondesddsl pre et fils' is a CompanyName",
"full name refers to FirstName LastName; highest salary refers to max(Salary)",
"shipped to Brazil refers to ShipCountry = 'Brazil'; by Speedy Express Company refers to CompanyName = 'Speedy Express'; total products value refers to sum(MULTIPLY(UnitPrice, Quantity))",
"order number 10933 refers to OrderID = 10933;",
"no longer sold refers to Discontinued = 1; products refers to ProductName",
"Eastern Region refers to RegionDescription = 'Eastern';",
"DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage;"
]
} |
{
"query": "Write down the notes of employee with the highest salary.",
"pos": [
"highest salary refers to Max(Salary)"
],
"neg": [
"Gula Malacca is the name of the product; company refers to CompanyName;",
"full name refers to FirstName LastName; contact number refers to HomePhone; descending order of age refers to order by BirthDate desc limit 1",
"\"Pavlova, Ltd\" is the CompanyName; products refers to ProductName",
"Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20",
"Tokyo Traders refers to CompanyName = 'Tokyo Traders'",
"\"American\" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID",
"9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate;",
"DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage;",
"year 1997 refers to year(OrderDate) = 1997; total amount of sales refers to (UnitPrice * Quantity)",
"doctorate refers to TitleOfCourtesy = 'Dr.;"
]
} |
{
"query": "Name all products supplied by Zaanse Snoepfabriek.",
"pos": [
"products refers to ProductName; 'Zaanse Snoepfabriek' is a CompanyName"
],
"neg": [
"from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1;",
"name of the shipper company refers to ShipName; order No. refers to OrderID;",
"biggest purchase refers to max(ProductID.Order_Details); ship to refers to ShipCountry",
"phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName;",
"report to represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; Vice President of Sales refers to Title = 'Vice President, Sales';",
"\"Uncle Bob's Organic Dried Pears\" is the ProductName; total order quantity refers to Sum(Quantity)",
"highest freight refers to max(Freight)",
"total production of the product = SUM(units in stock, units on order); order no. refers to OrderID;",
"\"Vice Present of Sales\" refers to Title = 'Vice President, Sales'; full name refers to FirstName, LastName; url of photo refers to PhotoPath",
"ordered by ID 10979 refers to OrderID = '10979'; total payment refers to SUM(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))"
]
} |
{
"query": "Which customer is a regular customer in this shop and what are the products category that he mostly buy?",
"pos": [
"regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID))"
],
"neg": [
"order number 10558 refers to OrderID = 10558;",
"\"Speedy Express\" is the name of the shipping company; orders refer to OrderID;",
"name of all territories refers to TerritoryDescription; Northern region refers to RegionDescription = 'Northern'",
"shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage",
"female employees refers to TitleOfCourtesy = 'Mrs.' or TitleOfCourtesy = 'Ms.'; in charge of 3 or more territories refers to TerritoryID > = 3;",
"'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100",
"report to represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; Vice President of Sales refers to Title = 'Vice President, Sales';",
"shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996 refers to year(OrderDate) = 1996 and month(OrderDate) = 12;",
"in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName",
"year 1997 refers to year(OrderDate) = 1997; total amount of sales refers to (UnitPrice * Quantity)"
]
} |
{
"query": "How many orders were shipped by \"Speedy Express\"?",
"pos": [
"\"Speedy Express\" is the name of the shipping company; orders refer to OrderID;"
],
"neg": [
"grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10;",
"discontinued refers to Discontinued = 1",
"year 1997 refers to year(OrderDate) = 1997; total amount of sales refers to (UnitPrice * Quantity)",
"supplied by refers to CompanyName",
"shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage",
"company in Spain refers to Country = 'Spain'; product supplied refers to ProductName",
"IDs of the orders refers to OrderID; production is not continuous refers to Discontinued = 1;",
"suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel)",
"regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID))",
"August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID))"
]
} |
{
"query": "How many female employees are in charge of 3 or more territories?",
"pos": [
"female employees refers to TitleOfCourtesy = 'Mrs.' or TitleOfCourtesy = 'Ms.'; in charge of 3 or more territories refers to TerritoryID > = 3;"
],
"neg": [
"'Mascarpone Fabioli' is a ProductName; calculation = SUM(UnitsInStock, UnitsOnOrder)",
"paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID))",
"suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel)",
"region refers to RegionID; \"Columbia\" refers to TerritoryDescription = 'Columbia'",
"in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName",
"highest salary refers to max(salary); position refers to Title",
"located in Germany refers to Country = 'Germany';",
"HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25';",
"ordered by ID 10979 refers to OrderID = '10979'; total payment refers to SUM(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))",
"discontinued refers to Discontinued = 1"
]
} |
{
"query": "What proportion of orders are taken by the Sales Representative?",
"pos": [
"DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage;"
],
"neg": [
"product refers to ProductName;",
"'USA' is a country; supplier refers to CompanyName",
"category refers to CategoryName; tofu refers to ProductName = 'Tofu';",
"\"Pavlova, Ltd\" is the CompanyName; products refers to ProductName",
"Federal Shipping refers to CompanyName = 'Federal Shipping';",
"'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName;",
"most common product refers to max(count(ProductID)); customer from Germany refers to Country = 'Germany'",
"phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName;",
"shipped to Brazil refers to ShipCountry = 'Brazil'; by Speedy Express Company refers to CompanyName = 'Speedy Express'; total products value refers to sum(MULTIPLY(UnitPrice, Quantity))",
"supplied by refers to CompanyName"
]
} |
{
"query": "How many more territories are there in than Eastern Region than in the Southern Region?",
"pos": [
"how many more = SUBTRACT(SUM(RegionDescription = 'Eastern'), SUM(RegionDescription = 'Southern')); Eastern Region refers to RegionDescription = 'Eastern'; Southern Region refers to RegionDescription = 'Southern';"
],
"neg": [
"\"Tokyo Traders\" is the CompanyName; average unit price = AVG(UnitPrice)",
"\"10 boxes x 12 pieces\" is the QuantityPerUnit",
"cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName",
"High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG';",
"highest number of products refers to MAX(COUNT(ProductID))",
"value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value)",
"shipped the most times refer to MAX(COUNT(ShipVia)); city of Aachen refers to ShipCity = 'Aache'; companies refers to CompanyName;",
"newest hired refers to latest HireDate; full name = FirstName, LastName;",
"in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID)",
"beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel)"
]
} |
{
"query": "What are the names of Robert King's territories?",
"pos": [
"Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription;"
],
"neg": [
"product refers to ProductName;",
"the highest total price paid for an order can be calculated as MAX(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1-Discount)));",
"\"10 boxes x 12 pieces\" is the QuantityPerUnit",
"name of the supplier refers to SupplierID; the most product refers to max(count(ProductID))",
"\"Teatime Chocolate Biscuits\" is the ProductName",
"Japan Supplier refers to Country = 'Japan'; total product refers to Count (ProductName)",
"total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120",
"\"American\" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID",
"Pavlova, Ltd. refers to CompanyName = 'Pavlova, Ltd.'",
"full name refers to FirstName, LastName"
]
} |
{
"query": "List all the products that were shipped to Starenweg 5.",
"pos": [
"products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5';"
],
"neg": [
"DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage;",
"Federal Shipping refers to CompanyName = 'Federal Shipping'; DIVIDE(SUM(Quantity), COUNT(ProductID)) where CompanyName = 'Federal Shipping' and ShippedDate > = '1996-11-01 00:00:00' AND ShippedDate < '1996-12-01 00:00:00';",
"no longer sold refers to Discontinued = 1; products refers to ProductName",
"Santa Monica refers to TerritoryDescription = 'Santa Monica'; full name = FirstName, MiddleName, LastName;",
"\"Seafood\" is the CategoryName; order quantity of more than 50 refers to Quantity > 50",
"doctorate refers to TitleOfCourtesy = 'Dr.;",
"located in Germany refers to Country = 'Germany';",
"highest salary refers to max(salary); position refers to Title",
"descriptions refers to TerritoryDescription; region refers to RegionDescription",
"Margaret Peacock is the full name of an employee; full name refers to FirstName, LastName; phone number refers to HomePhone"
]
} |
{
"query": "What are the highest salary earn by the the employee and what is his/her position in the company?",
"pos": [
"highest salary refers to max(salary); position refers to Title"
],
"neg": [
"discontinued products refers to Discontinued = 1; calculation = DIVIDE(SUM(Discontinued = 1), COUNT(ProductID)) * 100",
"\"Vice Present of Sales\" refers to Title = 'Vice President, Sales'; full name refers to FirstName, LastName; url of photo refers to PhotoPath",
"highest number of territories refers to max(TerritoryID); difference in salary = subtract(employeeA.Salary, employeeB.Salary)",
"full name refers to FirstName, LastName",
"shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996 refers to year(OrderDate) = 1996 and month(OrderDate) = 12;",
"\"Laura Callahan\" refers to FirstName = 'Laura AND LastName = 'Callahan",
"\"Eastern Region\" refers to RegionDescription = 'Eastern'; \"Southern Region\" refers to RegionDescription = 'Southern'; times = divide(count(TerritoryDescription where RegionDescription = 'Eastern') , count(TerritoryDescription where RegionDescription = 'Southern'))",
"Eastern Region refers to RegionDescription = 'Eastern';",
"freighted products for a value greater than 2,000,000 refer to Freight > 2000000; name of companies refers to CompanyName;",
"\"Teatime Chocolate Biscuits\" is the ProductName"
]
} |
{
"query": "Among the products, how many of them were discontinued in production?",
"pos": [
"discontinued refers to Discontinued = 1"
],
"neg": [
"in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID)",
"shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996 refers to year(OrderDate) = 1996 and month(OrderDate) = 12;",
"suppliers refers to CompanyName; 'cheeses' is a Description",
"from Japan refers to Country = 'Japan'; total production refers to ADD(UnitsInstock, UnitsOnOrder)",
"names of all territories refers to TerritoryDescription;",
"'Pavlova' is a ProductName",
"order number 10933 refers to OrderID = 10933;",
"full address includes Address, City, Region, PostalCode and Country; ContactName = 'Andr Fonseca';",
"Morristown refers to TerritoryDescription = 'Morristown'",
"discontinued products refers to Discontinued = 1; calculation = DIVIDE(SUM(Discontinued = 1), COUNT(ProductID)) * 100"
]
} |
{
"query": "How many products supplied by Plutzer Lebensmittelgromrkte AG that is currently out of stock and on order?",
"pos": [
"Plutzer Lebensmittelgromrkte AG refers to CompanyName; is currently out of stock and on order refers to UnitsInStock = 0 and UnitsOnOrder > 0"
],
"neg": [
"freight of over 800 refers to Freight > 800",
"names of all territories refers to TerritoryDescription;",
"shipping company refers to Shippers; phone number refers to Phone",
"'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle",
"\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100",
"more than thirty dollars per unit refers to UnitPrice > 30",
"companies refers to ShipperID",
"average salary = AVG(Salary)",
"Eastern Region refers to RegionDescription = 'Eastern';",
"\"Northern\" region refers to RegionDescription = 'Northern'"
]
} |
{
"query": "What were the products supplied by the company in Spain?",
"pos": [
"company in Spain refers to Country = 'Spain'; product supplied refers to ProductName"
],
"neg": [
"from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1;",
"\"10 boxes x 12 pieces\" is the QuantityPerUnit",
"\"Formaggi Fortini s.r.l.\" is the CompanyName; average unit price = AVG(UnitPrice)",
"from USA refers to Country = 'USA'",
"\"Eastern\" is the RegionDescription",
"\"Pavlova, Ltd\" is the CompanyName; products refers to ProductName",
"in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName",
"beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel)",
"Vice President of Sales refers to Title = 'Vice President, Sales';",
"Bigfoot Breweries is the name of the company; products refer to ProductName;"
]
} |
{
"query": "Indicate the fax of the company Blondesddsl pre et fils in Strasbourg city.",
"pos": [
"'Blondesddsl pre et fils' is a CompanyName"
],
"neg": [
"paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID))",
"Vegie-spread product refers to ProductName = 'Vegie-spread';total payment = MULTIPLY(UnitPrice, Quantity, (1-Discount))",
"HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25';",
"average = AVG(Quantity); Ikura refers to ProductName = 'Ikura';",
"\"Northern\" region refers to RegionDescription = 'Northern'",
"most amount of orders refers to max(count(OrderID)); in 1996 refers to OrderDate > = '1996-01-01 00:00:00' AND OrderDate < '1997-01-01 00:00:00'; full name refers to FirstName, LastName",
"\"American\" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID",
"no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA';",
"most customers refers to max(count(Relationship))",
"required on 3/26/1998 refers to RequiredDate = '1998-03-26 00:00:00'; products ordered refers to ProductName"
]
} |
{
"query": "Who are the suppliers of the discontinued products?",
"pos": [
"discontinued product refers to Discontinued = 1; supplier refers to CompanyName"
],
"neg": [
"shipped to Mexico refers to ShipCountry = 'Mexico'; in 1996 refers to year(ShippedDate) = 1996; charge of inside sales coordinator refers to Title = 'Inside Sales Coordinator'",
"in the Eastern region refers to RegionDescription = 'Eastern'",
"products refers to ProductName; 'Zaanse Snoepfabriek' is a CompanyName",
"territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName",
"in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID)",
"Chef Anton's Cajun Seasoning' AND 'Chef Anton''s Gumbo Mix' are ProductName; 'New Orleans Cajun Delights' is a CompanyName; calculation = SUBTRACT(UnitPrice where ProductName = 'Chef Anton's Cajun Seasoning', UnitPrice where ProductName = 'Chef Anton''s Gumbo Mix')",
"freighted products for a value greater than 2,000,000 refer to Freight > 2000000; name of companies refers to CompanyName;",
"name of product refers to ProductName; ID refers to ProductID",
"\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100",
"full name refers to FirstName, LastName; brith day refers to BirthDate"
]
} |
{
"query": "How many sales values have been created by sales representative and which sales representative have the highest sales?",
"pos": [
"sales representative refers to Title = 'Sales Representative'; sales values refers to MULTIPLY(Quantity, UnitPrice); the highest sales refers to max(MULTIPLY(Quantity, UnitPrice))"
],
"neg": [
"shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996 refers to year(OrderDate) = 1996 and month(OrderDate) = 12;",
"most widely used refers to max(count(ShipVia)); shipping company refers to CompanyName; in the United States of America refers to ShipCountry = 'USA'",
"Federal Shipping refers to CompanyName = 'Federal Shipping'; DIVIDE(SUM(Quantity), COUNT(ProductID)) where CompanyName = 'Federal Shipping' and ShippedDate > = '1996-11-01 00:00:00' AND ShippedDate < '1996-12-01 00:00:00';",
"phone refers to HomePhone; Portsmouth territory refers to TerritoryDescription = 'Portsmouth';",
"DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage;",
"discontinued refers to Discontinued = 1",
"three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry';",
"name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup';",
"percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%",
"Plutzer Lebensmittelgromrkte AG refers to CompanyName; is currently out of stock and on order refers to UnitsInStock = 0 and UnitsOnOrder > 0"
]
} |
{
"query": "Please list the full names and titles of all employees.",
"pos": [
"full name refers to LastName, FirstName"
],
"neg": [
"Tokyo Traders refers to CompanyName = 'Tokyo Traders'",
"majority of the suppliers located refers to MAX(COUNT(SupplierID))",
"most amount of orders refers to max(count(OrderID)); in 1996 refers to OrderDate > = '1996-01-01 00:00:00' AND OrderDate < '1997-01-01 00:00:00'; full name refers to FirstName, LastName",
"ordered by ID 10979 refers to OrderID = '10979'; total payment refers to SUM(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))",
"Eastern Region refers to RegionDescription = 'Eastern';",
"Name the shipper refers to CompanyName; most shipments refers to max(count(OrderID)); first quarter of 1998 refers to ShippedDate = 1998/1 and ShippedDate = 1998/2 and ShippedDate = 1998/3 and ShippedDate = 1998/4",
"territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName",
"shipped to France refers to ShipCountry = 'France';",
"highest freight refers to max(Freight)",
"three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry';"
]
} |
{
"query": "Please name any two products that have the highest satisfaction levels among users of Heli Swaren GmbH & Co. KG.",
"pos": [
"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';"
],
"neg": [
"paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID))",
"full name refers to FirstName LastName; contact number refers to HomePhone; descending order of age refers to order by BirthDate desc limit 1",
"in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName",
"Margaret Peacock is the full name of an employee; full name refers to FirstName, LastName; phone number refers to HomePhone",
"IDs of the orders refers to OrderID; production is not continuous refers to Discontinued = 1;",
"\"American\" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID",
"Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription;",
"name of all territories refers to TerritoryDescription; Northern region refers to RegionDescription = 'Northern'",
"Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20",
"condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID"
]
} |
{
"query": "What are the companies that have the same phone area code as 171?",
"pos": [
"phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName;"
],
"neg": [
"full name refers to FirstName LastName; highest salary refers to max(Salary)",
"\"New Orleans Cajun Delights\" is the CompanyName; discontinued refers to Discontinued = 1",
"doctorate refers to TitleOfCourtesy = 'Dr.;",
"the least shipped product refers ProductName where MIN(Quantity);",
"product refers to ProductName;",
"\"Eastern Region\" refers to RegionDescription = 'Eastern'; \"Southern Region\" refers to RegionDescription = 'Southern'; times = divide(count(TerritoryDescription where RegionDescription = 'Eastern') , count(TerritoryDescription where RegionDescription = 'Southern'))",
"suppliers refers to CompanyName; 'cheeses' is a Description",
"from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1;",
"9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate;",
"descriptions refers to TerritoryDescription; region refers to RegionDescription"
]
} |
{
"query": "How many employees is a UK citizen and are they all covering the same region?",
"pos": [
"is a UK citizen refers to Country = 'UK'"
],
"neg": [
"High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG';",
"Drachenblut Delikatessen is the company name;",
"territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName",
"\"Brazil\" is the ShipCountry; from 3/31/97 to 12/10/97 refers to 1997-03-31 < ShippedDate < 1997-10-12",
"highest number of products refers to MAX(COUNT(ProductID))",
"Vegie-spread product refers to ProductName = 'Vegie-spread';total payment = MULTIPLY(UnitPrice, Quantity, (1-Discount))",
"\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100",
"\"Vice Present of Sales\" refers to Title = 'Vice President, Sales'; full name refers to FirstName, LastName; url of photo refers to PhotoPath",
"newest hired refers to latest HireDate; full name = FirstName, LastName;",
"'Andrew Fuller' is the full name of an employee; full name refers to FistName, LastName; Austria refers to ShipCountry; calculation = DIVIDE(SUM(ShipCountry = 'Austria'), COUNT(OrderID)) * 100"
]
} |
{
"query": "Which product is the most expensive?",
"pos": [
"most expensive product refers to ProductName where MAX(UnitPrice);"
],
"neg": [
"total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120",
"Pavlova, Ltd. refers to CompanyName = 'Pavlova, Ltd.'",
"full name refers to FirstName, LastName; shipped to USA refers to ShipCountry = 'USA'",
"\"Eastern\" is the RegionDescription",
"most ordered refers to max(COUNT(OrderID))",
"'Laughing Bacchus Wine Cellars' refers to CompanyName; calculation = DIVIDE(SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)), COUNT(OrderID))",
"suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel)",
"in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName",
"region refers to RegionDescription",
"most widely used refers to max(count(ShipVia)); shipping company refers to CompanyName; in the United States of America refers to ShipCountry = 'USA'"
]
} |
{
"query": "Indicate the name of the categories to which the products of order number 10933 belong.",
"pos": [
"order number 10933 refers to OrderID = 10933;"
],
"neg": [
"\"American\" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID",
"\"Eastern\" is the RegionDescription",
"full name refers to FirstName, LastName; brith day refers to BirthDate",
"shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage",
"name of the supplier refers to SupplierID; the most product refers to max(count(ProductID))",
"most customers refers to max(count(Relationship))",
"'Andrew Fuller' is the full name of an employee; full name refers to FistName, LastName; Austria refers to ShipCountry; calculation = DIVIDE(SUM(ShipCountry = 'Austria'), COUNT(OrderID)) * 100",
"shipped to France refers to ShipCountry = 'France';",
"highest number refers to max(count(CustomerID))",
"shipped the most times refer to MAX(COUNT(ShipVia)); city of Aachen refers to ShipCity = 'Aache'; companies refers to CompanyName;"
]
} |
{
"query": "How many territories are there in the Eastern Region?",
"pos": [
"Eastern Region refers to RegionDescription = 'Eastern';"
],
"neg": [
"HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25';",
"biggest purchase refers to max(ProductID.Order_Details); ship to refers to ShipCountry",
"Plutzer Lebensmittelgromrkte AG refers to CompanyName; is currently out of stock and on order refers to UnitsInStock = 0 and UnitsOnOrder > 0",
"\"Brazil\" is the ShipCountry; from 3/31/97 to 12/10/97 refers to 1997-03-31 < ShippedDate < 1997-10-12",
"phone refers to HomePhone; Portsmouth territory refers to TerritoryDescription = 'Portsmouth';",
"ordered by ID 10979 refers to OrderID = '10979'; total payment refers to SUM(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))",
"Chef Anton's Cajun Seasoning' AND 'Chef Anton''s Gumbo Mix' are ProductName; 'New Orleans Cajun Delights' is a CompanyName; calculation = SUBTRACT(UnitPrice where ProductName = 'Chef Anton's Cajun Seasoning', UnitPrice where ProductName = 'Chef Anton''s Gumbo Mix')",
"\"Laura Callahan\" refers to FirstName = 'Laura AND LastName = 'Callahan",
"shipped to Mexico refers to ShipCountry = 'Mexico'; in 1996 refers to year(ShippedDate) = 1996; charge of inside sales coordinator refers to Title = 'Inside Sales Coordinator'",
"sales representative refers to Title = 'Sales Representative'; sales values refers to MULTIPLY(Quantity, UnitPrice); the highest sales refers to max(MULTIPLY(Quantity, UnitPrice))"
]
} |
{
"query": "What is the phone number for the employee in charge of the Portsmouth territory?",
"pos": [
"phone refers to HomePhone; Portsmouth territory refers to TerritoryDescription = 'Portsmouth';"
],
"neg": [
"how many more = SUBTRACT(SUM(RegionDescription = 'Eastern'), SUM(RegionDescription = 'Southern')); Eastern Region refers to RegionDescription = 'Eastern'; Southern Region refers to RegionDescription = 'Southern';",
"ProductName = 'Thringer Rostbratwurst';",
"shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage",
"\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100",
"most customers refers to max(count(Relationship))",
"total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120",
"most widely used refers to max(count(ShipVia)); shipping company refers to CompanyName; in the United States of America refers to ShipCountry = 'USA'",
"London refers to city = 'London';",
"beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel)",
"name of the shipper company refers to ShipName; order No. refers to OrderID;"
]
} |
{
"query": "What is the quantity of Ikura ordered in order no. 10273?",
"pos": [
"Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;"
],
"neg": [
"beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel)",
"suppliers refers to CompanyName; 'cheeses' is a Description",
"grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10;",
"discontinued products refers to Discontinued = 1; total sales amount refers to SUM(MULTIPLY(UnitPrice, Quantity))",
"under confections category refers to CategoryName = 'Confections';",
"is a UK citizen refers to Country = 'UK'",
"regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID))",
"most costly refers to max(add(unit price , Freight)); in 1998 refers to OrderDate > = '1998-01-01 00:00:00' AND OrderDate < '1999-01-01 00:00:00'",
"full name refers to FirstName, LastName; Denver is a TerritoryDescription",
"London refers to city = 'London';"
]
} |
{
"query": "List down the company names which supplied products for the order on 14th August, 1996.",
"pos": [
"products refers to Order_Details.ProductID; on 14th August, 1996 refers to OrderDate = '8/14/1996'"
],
"neg": [
"three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry';",
"name of the shipper company refers to ShipName; order No. refers to OrderID;",
"grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10;",
"highest number of territories refers to max(TerritoryID)",
"London refers to city = 'London';",
"products belong to beverage category refer to ProductName where CategoryName = 'beverage';",
"region refers to RegionDescription",
"'USA' is a country; supplier refers to CompanyName",
"\"Uncle Bob's Organic Dried Pears\" is the ProductName; total order quantity refers to Sum(Quantity)",
"Vice President of Sales refers to Title = 'Vice President, Sales';"
]
} |
{
"query": "Calculate the total production for each product which were supplied from Japan",
"pos": [
"from Japan refers to Country = 'Japan'; total production refers to ADD(UnitsInstock, UnitsOnOrder)"
],
"neg": [
"cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName",
"\"10 boxes x 12 pieces\" is the QuantityPerUnit",
"Santa Monica refers to TerritoryDescription = 'Santa Monica'; full name = FirstName, MiddleName, LastName;",
"grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10;",
"more than thirty dollars per unit refers to UnitPrice > 30",
"discontinued product refers to Discontinued = 1; supplier refers to CompanyName",
"phone refers to HomePhone; Portsmouth territory refers to TerritoryDescription = 'Portsmouth';",
"products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5';",
"in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID)",
"in the Eastern region refers to RegionDescription = 'Eastern'"
]
} |
{
"query": "How many employees have territories in the Eastern region?",
"pos": [
"\"Eastern\" is the RegionDescription"
],
"neg": [
"highest salary refers to max(salary); position refers to Title",
"products refers to Order_Details.ProductID; on 14th August, 1996 refers to OrderDate = '8/14/1996'",
"average salary = AVG(Salary)",
"year 1997 refers to year(OrderDate) = 1997; total amount of sales refers to (UnitPrice * Quantity)",
"Plutzer Lebensmittelgromrkte AG refers to CompanyName; is currently out of stock and on order refers to UnitsInStock = 0 and UnitsOnOrder > 0",
"Highest reorder level refers to Max(ReorderLevel)",
"Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20",
"\"Eastern Region\" refers to RegionDescription = 'Eastern'; \"Southern Region\" refers to RegionDescription = 'Southern'; times = divide(count(TerritoryDescription where RegionDescription = 'Eastern') , count(TerritoryDescription where RegionDescription = 'Southern'))",
"Drachenblut Delikatessen is the company name;",
"companies refers to ShipperID"
]
} |
{
"query": "State the name of all territories in Northern region.",
"pos": [
"name of all territories refers to TerritoryDescription; Northern region refers to RegionDescription = 'Northern'"
],
"neg": [
"cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName",
"required on 3/26/1998 refers to RequiredDate = '1998-03-26 00:00:00'; products ordered refers to ProductName",
"'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle",
"total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120",
"most expensive product refers to ProductName where MAX(UnitPrice);",
"GREAL refers to CustomerID = 'GREAL'; via United Package refers to CompanyName = 'United Package'",
"descriptions refers to TerritoryDescription; region refers to RegionDescription",
"Vice President of Sales refers to Title = 'Vice President, Sales';",
"value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value)",
"'Laughing Bacchus Wine Cellars' refers to CompanyName; calculation = DIVIDE(SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)), COUNT(OrderID))"
]
} |
{
"query": "Identify the name of the most popular dairy product in terms of reorder quantity.",
"pos": [
"'dairy product' refers to CategoryName; most popular reorder quantity refers to MAX(ReorderLevel)"
],
"neg": [
"most total sales refers to Max(SaleAmount); companies refers to CompanyName",
"Eastern Region refers to RegionDescription = 'Eastern';",
"from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))",
"total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;",
"total production of the product = SUM(units in stock, units on order); order no. refers to OrderID;",
"'Exotic Liquids' is a CompanyName; units in stock over 100 refers to UnitsInStock > 100",
"shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996 refers to year(OrderDate) = 1996 and month(OrderDate) = 12;",
"home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah';",
"most common product refers to max(count(ProductID)); customer from Germany refers to Country = 'Germany'",
"order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock));"
]
} |
{
"query": "Give the full name of the youngest employee.",
"pos": [
"full name = FirstName, LastName; youngest refers to latest BirthDate;"
],
"neg": [
"'Confections' is a CompanyName;",
"Eastern Region refers to RegionDescription = 'Eastern';",
"in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName",
"shipped to the city of Paris refers to ShipCity = 'Paris';",
"shipping company refers to Shippers; phone number refers to Phone",
"discontinued product refers to Discontinued = 1; supplier refers to CompanyName",
"less than 4 territories refers to EmployeeID where Count(TerritoryID) < 4",
"'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title",
"\"Uncle Bob's Organic Dried Pears\" is the ProductName; total order quantity refers to Sum(Quantity)",
"full name refers to FirstName, LastName; brith day refers to BirthDate"
]
} |
{
"query": "What are the total products value shipped to Brazil by Speedy Express Company?",
"pos": [
"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))"
],
"neg": [
"phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName;",
"region refers to RegionID; \"Columbia\" refers to TerritoryDescription = 'Columbia'",
"report to represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; Vice President of Sales refers to Title = 'Vice President, Sales';",
"shipping company refers to Shippers; phone number refers to Phone",
"Federal Shipping refers to CompanyName = 'Federal Shipping';",
"from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1;",
"name of the shipper company refers to ShipName; order No. refers to OrderID;",
"located in Germany refers to Country = 'Germany';",
"reported to employee id 5 refers to ReportsTo = 5",
"doctorate refers to TitleOfCourtesy = 'Dr.;"
]
} |
{
"query": "From which country is the company \"Drachenblut Delikatessen\" from?",
"pos": [
"Drachenblut Delikatessen is the company name;"
],
"neg": [
"names of all territories refers to TerritoryDescription;",
"least order refers to Min(OrderID)",
"'Andrew Fuller' is the full name of an employee; full name refers to FistName, LastName; Austria refers to ShipCountry; calculation = DIVIDE(SUM(ShipCountry = 'Austria'), COUNT(OrderID)) * 100",
"'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100",
"'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title",
"product refers to ProductName; highest user satisfaction refers to max(ReorderLevel)",
"'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID",
"average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK'",
"suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel)",
"\"New Orleans Cajun Delights\" is the CompanyName; discontinued refers to Discontinued = 1"
]
} |
{
"query": "Who is the Sales Agent for the company 'Eastern Connection'?",
"pos": [
"'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle"
],
"neg": [
"average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK'",
"highest salary refers to MAX(Salary); full name = FirstName, LastName;",
"from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))",
"products refers to Order_Details.ProductID; on 14th August, 1996 refers to OrderDate = '8/14/1996'",
"Chef Anton's Cajun Seasoning' AND 'Chef Anton''s Gumbo Mix' are ProductName; 'New Orleans Cajun Delights' is a CompanyName; calculation = SUBTRACT(UnitPrice where ProductName = 'Chef Anton's Cajun Seasoning', UnitPrice where ProductName = 'Chef Anton''s Gumbo Mix')",
"via United Package refers to CompanyName = 'United Package'",
"DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage;",
"from UK refers to Country = 'UK'",
"Tokyo Traders refers to CompanyName = 'Tokyo Traders'",
"Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;"
]
} |
{
"query": "The sales of how many territories in total do the employees in London take charge of?",
"pos": [
"London refers to city = 'London';"
],
"neg": [
"\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100",
"in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID)",
"average sales = AVG(ProductSales)",
"via United Package refers to CompanyName = 'United Package'",
"report to represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; Vice President of Sales refers to Title = 'Vice President, Sales';",
"paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID))",
"full name refers to FirstName LastName; highest amount of orders refers to max(count(OrderID))",
"discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1)",
"name of all territories refers to TerritoryDescription; Northern region refers to RegionDescription = 'Northern'",
"name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup';"
]
} |
{
"query": "Which of Cooperativa de Quesos 'Las Cabras' products have a unit price greater than 20?",
"pos": [
"Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20"
],
"neg": [
"Federal Shipping refers to CompanyName = 'Federal Shipping'; DIVIDE(SUM(Quantity), COUNT(ProductID)) where CompanyName = 'Federal Shipping' and ShippedDate > = '1996-11-01 00:00:00' AND ShippedDate < '1996-12-01 00:00:00';",
"name of product refers to ProductName; ID refers to ProductID",
"condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID",
"Hollis refers to TerritoryDescription = 'Hollis'; full name = FirstName, LastName;",
"region refers to RegionID; \"Columbia\" refers to TerritoryDescription = 'Columbia'",
"Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate))",
"full name refers to LastName, FirstName",
"phone refers to HomePhone; Portsmouth territory refers to TerritoryDescription = 'Portsmouth';",
"how many more = SUBTRACT(SUM(RegionDescription = 'Eastern'), SUM(RegionDescription = 'Southern')); Eastern Region refers to RegionDescription = 'Eastern'; Southern Region refers to RegionDescription = 'Southern';",
"Gula Malacca is the name of the product; company refers to CompanyName;"
]
} |
{
"query": "Which employee is in charge of the sales in Hollis? Please give the employee's full name.",
"pos": [
"Hollis refers to TerritoryDescription = 'Hollis'; full name = FirstName, LastName;"
],
"neg": [
"\"Uncle Bob's Organic Dried Pears\" is the ProductName; total order quantity refers to Sum(Quantity)",
"London refers to city = 'London';",
"via United Package refers to CompanyName = 'United Package'; in 1997 refers to OrderDate > = '1997-01-01 00:00:00' AND OrderDate < '1998-01-01 00:00:00'; average unit price = divide(sum(UnitPrice), count(ShipperID))",
"'Mascarpone Fabioli' is a ProductName; calculation = SUM(UnitsInStock, UnitsOnOrder)",
"the least shipped product refers ProductName where MIN(Quantity);",
"territories refer to TerritoryDescription; Title = 'Inside Sales Coordinator';",
"Plutzer Lebensmittelgromrkte AG refers to CompanyName; is currently out of stock and on order refers to UnitsInStock = 0 and UnitsOnOrder > 0",
"cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName",
"most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ; total sales refers to sum(MULTIPLY(Quantity, UnitPrice))",
"through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100%"
]
} |
{
"query": "Give the name of the territory where Mr. Robert King works.",
"pos": [
"name of territory refers to TerritoryDescription; Mr. refers to TitleOfCourtesy = 'Mr';"
],
"neg": [
"category refers to CategoryName; tofu refers to ProductName = 'Tofu';",
"via United Package refers to CompanyName = 'United Package'",
"'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName;",
"highest salary refers to max(salary); position refers to Title",
"August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID))",
"Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate))",
"High reorder level generally means high user satisfaction of the product and vice versa; the least satisfaction refers to MIN(ReorderLevel); the highest unit price refers to MAX(UnitPrice);",
"percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%",
"the most overdue from required date refers to MIN(SUBTRACT(ShippedDate, RequiredDate) < 0)",
"shipping company refers to Shippers; phone number refers to Phone"
]
} |
{
"query": "How many of the orders are shipped to France?",
"pos": [
"shipped to France refers to ShipCountry = 'France';"
],
"neg": [
"\"Laura Callahan\" refers to FirstName = 'Laura AND LastName = 'Callahan",
"majority of the suppliers located refers to MAX(COUNT(SupplierID))",
"name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup';",
"three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry';",
"\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100",
"'dairy product' refers to CategoryName; most popular reorder quantity refers to MAX(ReorderLevel)",
"in the Eastern region refers to RegionDescription = 'Eastern'",
"discontinued product refers to Discontinued = 1; supplier refers to CompanyName",
"supplied by refers to CompanyName",
"average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK'"
]
} |
{
"query": "How many territories are there in the region with the highest number of territories?",
"pos": [
"highest number of territories refers to max(TerritoryID)"
],
"neg": [
"London refers to city = 'London';",
"Federal Shipping refers to CompanyName = 'Federal Shipping';",
"\"Formaggi Fortini s.r.l.\" is the CompanyName; average unit price = AVG(UnitPrice)",
"most expensive product refers to ProductName where MAX(UnitPrice);",
"Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription;",
"Morristown refers to TerritoryDescription = 'Morristown'",
"\"10 boxes x 12 pieces\" is the QuantityPerUnit",
"'Andrew Fuller' is the full name of an employee; full name refers to FistName, LastName; Austria refers to ShipCountry; calculation = DIVIDE(SUM(ShipCountry = 'Austria'), COUNT(OrderID)) * 100",
"in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName",
"\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100"
]
} |
{
"query": "What product is the least shipped to the postal code 28023?",
"pos": [
"the least shipped product refers ProductName where MIN(Quantity);"
],
"neg": [
"regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID))",
"shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996 refers to year(OrderDate) = 1996 and month(OrderDate) = 12;",
"highest salary refers to max(salary); position refers to Title",
"shipped to France refers to ShipCountry = 'France';",
"IDs of the orders refers to OrderID; production is not continuous refers to Discontinued = 1;",
"highest freight refers to max(Freight)",
"Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription;",
"name of the supplier refers to SupplierID; the most product refers to max(count(ProductID))",
"name of product refers to ProductName; ID refers to ProductID",
"High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG';"
]
} |
{
"query": "Among the USA employess, how many of them has PhD title of courtesy?",
"pos": [
"\"USA\" is the Country; PhD title of courtesy refers to TitleOfCourtesy = 'Dr.'"
],
"neg": [
"Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName;",
"name of territory refers to TerritoryDescription; Mr. refers to TitleOfCourtesy = 'Mr';",
"products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5';",
"in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID)",
"total production of the product = SUM(units in stock, units on order); order no. refers to OrderID;",
"companies refers to ShipperID",
"product refers to ProductName;",
"located in Germany refers to Country = 'Germany';",
"shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996 refers to year(OrderDate) = 1996 and month(OrderDate) = 12;",
"discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1)"
]
} |
{
"query": "What is the position of Robert King?",
"pos": [
"'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title"
],
"neg": [
"discontinued refers to Discontinued = 1",
"highest number refers to max(count(CustomerID))",
"discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1)",
"shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage",
"Sales Manager refers to Title = 'Sales Manager'; full name refers to FirstName, LastName",
"'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID",
"total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120",
"\"Eastern\" is the RegionDescription",
"located in Germany refers to Country = 'Germany';",
"'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle"
]
} |
{
"query": "List all product names under Confections.",
"pos": [
"'Confections' is a CompanyName;"
],
"neg": [
"grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10;",
"percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%",
"companies refers to CompanyName;",
"highest number of territories refers to max(TerritoryID)",
"\"Eastern\" is the RegionDescription",
"\"Pavlova, Ltd\" is the CompanyName; products refers to ProductName",
"phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName;",
"product refers to ProductName; highest user satisfaction refers to max(ReorderLevel)",
"shipped to the city of Paris refers to ShipCity = 'Paris';",
"in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName"
]
} |
{
"query": "What is the name of product with the ID of 77?",
"pos": [
"name of product refers to ProductName; ID refers to ProductID"
],
"neg": [
"average = AVG(Quantity); Ikura refers to ProductName = 'Ikura';",
"companies refers to ShipperID",
"'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title",
"\"Seafood\" is the CategoryName; order quantity of more than 50 refers to Quantity > 50",
"\"10 boxes x 12 pieces\" is the QuantityPerUnit",
"supplied by refers to CompanyName",
"via United Package refers to CompanyName = 'United Package'; in 1997 refers to OrderDate > = '1997-01-01 00:00:00' AND OrderDate < '1998-01-01 00:00:00'; average unit price = divide(sum(UnitPrice), count(ShipperID))",
"beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel)",
"more than thirty dollars per unit refers to UnitPrice > 30",
"Margaret Peacock is the full name of an employee; full name refers to FirstName, LastName; phone number refers to HomePhone"
]
} |
{
"query": "Calculate the average payment per product under confections category.",
"pos": [
"under confections category refers to CategoryName = 'Confections';"
],
"neg": [
"most common product refers to max(count(ProductID)); customer from Germany refers to Country = 'Germany'",
"full name refers to FirstName LastName; highest amount of orders refers to max(count(OrderID))",
"full address includes Address, City, Region, PostalCode and Country; ContactName = 'Andr Fonseca';",
"'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title",
"Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName;",
"how many more = SUBTRACT(SUM(RegionDescription = 'Eastern'), SUM(RegionDescription = 'Southern')); Eastern Region refers to RegionDescription = 'Eastern'; Southern Region refers to RegionDescription = 'Southern';",
"newest hired refers to latest HireDate; full name = FirstName, LastName;",
"the most overdue from required date refers to MIN(SUBTRACT(ShippedDate, RequiredDate) < 0)",
"Ms. refers to TitleOfCourtesy = 'Ms'; ReportsTo’ represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; name of the territory refers to TerritoryDescription;",
"highest number of territories refers to max(TerritoryID); difference in salary = subtract(employeeA.Salary, employeeB.Salary)"
]
} |
{
"query": "What is the most widely used shipping company in the United States of America?",
"pos": [
"most widely used refers to max(count(ShipVia)); shipping company refers to CompanyName; in the United States of America refers to ShipCountry = 'USA'"
],
"neg": [
"most amount of orders refers to max(count(OrderID)); in 1996 refers to OrderDate > = '1996-01-01 00:00:00' AND OrderDate < '1997-01-01 00:00:00'; full name refers to FirstName, LastName",
"'USA' is a country; supplier refers to CompanyName",
"\"Vice Present of Sales\" refers to Title = 'Vice President, Sales'; full name refers to FirstName, LastName; url of photo refers to PhotoPath",
"ID 1 to 9 refers to EmployeeID BETWEEN 1 AND 9; Average salary = AVG(Salary)",
"Japan Supplier refers to Country = 'Japan'; total product refers to Count (ProductName)",
"Hollis refers to TerritoryDescription = 'Hollis'; full name = FirstName, LastName;",
"highest salary refers to max(salary); position refers to Title",
"Sales Manager refers to Title = 'Sales Manager'; full name refers to FirstName, LastName",
"\"Seafood\" is the CategoryName; order quantity of more than 50 refers to Quantity > 50",
"Tokyo Traders refers to CompanyName = 'Tokyo Traders'"
]
} |
{
"query": "Mention the oldest empoyee's full name, title, salary and number of orders which were shipped to USA by him.",
"pos": [
"full name refers to FirstName, LastName; shipped to USA refers to ShipCountry = 'USA'"
],
"neg": [
"from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1;",
"territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName",
"UK refers to Country = 'UK'; employees with over 4 territories refers to EmployeeID WHERE TerritoryID > 4;",
"highest salary refers to max(salary); position refers to Title",
"sales representative refers to Title = 'Sales Representative'; sales values refers to MULTIPLY(Quantity, UnitPrice); the highest sales refers to max(MULTIPLY(Quantity, UnitPrice))",
"percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%",
"no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA';",
"\"Laura Callahan\" refers to FirstName = 'Laura AND LastName = 'Callahan",
"Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription;",
"via United Package refers to CompanyName = 'United Package'"
]
} |
{
"query": "How many territories are there in the Eastern region?",
"pos": [
"\"Eastern\" is the RegionDescription"
],
"neg": [
"shipping company refers to Shippers; phone number refers to Phone",
"Eastern Region refers to RegionDescription = 'Eastern';",
"products belong to beverage category refer to ProductName where CategoryName = 'beverage';",
"ID 1 to 9 refers to EmployeeID BETWEEN 1 AND 9; Average salary = AVG(Salary)",
"value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value)",
"no longer sold refers to Discontinued = 1; products refers to ProductName",
"High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG';",
"three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry';",
"the most overdue from required date refers to MIN(SUBTRACT(ShippedDate, RequiredDate) < 0)",
"total production of the product = SUM(units in stock, units on order); order no. refers to OrderID;"
]
} |
{
"query": "In total, how many orders were shipped via United Package?",
"pos": [
"via United Package refers to CompanyName = 'United Package'"
],
"neg": [
"HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25';",
"DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage;",
"under confections category refers to CategoryName = 'Confections';",
"order number 10933 refers to OrderID = 10933;",
"freighted products for a value greater than 2,000,000 refer to Freight > 2000000; name of companies refers to CompanyName;",
"the highest total price paid for an order can be calculated as MAX(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1-Discount)));",
"region refers to RegionDescription",
"Eastern Region refers to RegionDescription = 'Eastern';",
"\"Northern\" region refers to RegionDescription = 'Northern'",
"Vegie-spread product refers to ProductName = 'Vegie-spread';total payment = MULTIPLY(UnitPrice, Quantity, (1-Discount))"
]
} |
{
"query": "Please calculate the number of orders from customers by country in 1996.",
"pos": [
"in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID)"
],
"neg": [
"full name = FirstName, LastName; youngest refers to latest BirthDate;",
"'Blondesddsl pre et fils' is a CompanyName",
"supplied by refers to CompanyName",
"through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100%",
"total payment is greater than 15000 refers to MULTIPLY((Quantity * UnitPrice * (1 - Discount))) > 15000\n",
"average = AVG(Quantity); Ikura refers to ProductName = 'Ikura';",
"descriptions refers to TerritoryDescription; region refers to RegionDescription",
"value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value)",
"'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title",
"is a UK citizen refers to Country = 'UK'"
]
} |
{
"query": "Among the products under grains/cereals category, provide the contact person and title of the supplier with one digit ID.",
"pos": [
"grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10;"
],
"neg": [
"Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;",
"Plutzer Lebensmittelgromrkte AG refers to CompanyName; is currently out of stock and on order refers to UnitsInStock = 0 and UnitsOnOrder > 0",
"\"Eastern Region\" refers to RegionDescription = 'Eastern'; \"Southern Region\" refers to RegionDescription = 'Southern'; times = divide(count(TerritoryDescription where RegionDescription = 'Eastern') , count(TerritoryDescription where RegionDescription = 'Southern'))",
"discontinued products refers to Discontinued = 1; total sales amount refers to SUM(MULTIPLY(UnitPrice, Quantity))",
"High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG';",
"'Pavlova' is a ProductName",
"average salary = AVG(Salary)",
"product refers to ProductName;",
"company in Spain refers to Country = 'Spain'; product supplied refers to ProductName",
"category refers to CategoryName; tofu refers to ProductName = 'Tofu';"
]
} |
{
"query": "How many products have been discountinued by New Orleans Cajun Delights?",
"pos": [
"\"New Orleans Cajun Delights\" is the CompanyName; discontinued refers to Discontinued = 1"
],
"neg": [
"full name refers to FirstName LastName; highest amount of orders refers to max(count(OrderID))",
"condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID",
"DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage;",
"name of the shipper company refers to ShipName; order No. refers to OrderID;",
"\"Teatime Chocolate Biscuits\" is the ProductName",
"shipped through refers to ShipVia; United Package refers to CompanyName = 'United Package'",
"ordered by ID 10979 refers to OrderID = '10979'; total payment refers to SUM(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))",
"discontinued product refers to Discontinued = 1; supplier refers to CompanyName",
"\"Formaggi Fortini s.r.l.\" is the CompanyName; average unit price = AVG(UnitPrice)",
"9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate;"
]
} |
{
"query": "Calculate the percentage salary of employees who handled orders shipped in 1996.",
"pos": [
"shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage"
],
"neg": [
"'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID",
"discontinued product refers to Discontinued = 1; supplier refers to CompanyName",
"how much lower in percentage = MULTIPLY(DIVIDE(SUBTRACT(Products.UnitPrice, Order Details.UnitPrice), Products.UnitPrice), 100); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;",
"average salary = AVG(Salary)",
"names of all territories refers to TerritoryDescription;",
"product refers to ProductName; highest user satisfaction refers to max(ReorderLevel)",
"\"Northern\" region refers to RegionDescription = 'Northern'",
"\"Uncle Bob's Organic Dried Pears\" is the ProductName; total order quantity refers to Sum(Quantity)",
"9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate;",
"in the Eastern region refers to RegionDescription = 'Eastern'"
]
} |
{
"query": "What is the difference in number of unit price from Chef Anton's Cajun Seasoning product and Chef Anton's Gumbo Mix product of New Orleans Cajun Delights company.",
"pos": [
"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')"
],
"neg": [
"in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName",
"Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName;",
"total payment is greater than 15000 refers to MULTIPLY((Quantity * UnitPrice * (1 - Discount))) > 15000\n",
"the least shipped product refers ProductName where MIN(Quantity);",
"full name refers to FirstName, LastName; shipped to USA refers to ShipCountry = 'USA'",
"total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;",
"home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah';",
"discontinued products refers to Discontinued = 1; calculation = DIVIDE(SUM(Discontinued = 1), COUNT(ProductID)) * 100",
"three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry';",
"Drachenblut Delikatessen is the company name;"
]
} |
{
"query": "How many products were supplied by Pavlova, Ltd.?",
"pos": [
"Pavlova, Ltd. refers to CompanyName = 'Pavlova, Ltd.'"
],
"neg": [
"total production amount refers to ADD(UnitsInstock, UnitsOnOrder)",
"products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5';",
"company in Spain refers to Country = 'Spain'; product supplied refers to ProductName",
"three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry';",
"required on 3/26/1998 refers to RequiredDate = '1998-03-26 00:00:00'; products ordered refers to ProductName",
"Eastern Region refers to RegionDescription = 'Eastern';",
"\"10 boxes x 12 pieces\" is the QuantityPerUnit",
"\"Eastern\" is the RegionDescription",
"the most overdue from required date refers to MIN(SUBTRACT(ShippedDate, RequiredDate) < 0)",
"most widely used refers to max(count(ShipVia)); shipping company refers to CompanyName; in the United States of America refers to ShipCountry = 'USA'"
]
} |
{
"query": "Name the shipper which had the most shipments in first quarter of 1998.",
"pos": [
"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"
],
"neg": [
"average = AVG(Quantity); Ikura refers to ProductName = 'Ikura';",
"'Mascarpone Fabioli' is a ProductName; calculation = SUM(UnitsInStock, UnitsOnOrder)",
"the highest unit price refers to MAX(UnitPrice);",
"discontinued products refers to Discontinued = 1; calculation = DIVIDE(SUM(Discontinued = 1), COUNT(ProductID)) * 100",
"\"Formaggi Fortini s.r.l.\" is the CompanyName; average unit price = AVG(UnitPrice)",
"shipped to the city of Paris refers to ShipCity = 'Paris';",
"'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle",
"shipped to Mexico refers to ShipCountry = 'Mexico'; in 1996 refers to year(ShippedDate) = 1996; charge of inside sales coordinator refers to Title = 'Inside Sales Coordinator'",
"less than 4 territories refers to EmployeeID where Count(TerritoryID) < 4",
"discontinued refers to Discontinued = 1"
]
} |
{
"query": "Which company had the most orders in 1998?",
"pos": [
"in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName"
],
"neg": [
"shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996 refers to year(OrderDate) = 1996 and month(OrderDate) = 12;",
"\"Tokyo Traders\" is the CompanyName; average unit price = AVG(UnitPrice)",
"GREAL refers to CustomerID = 'GREAL'; via United Package refers to CompanyName = 'United Package'",
"most common product refers to max(count(ProductID)); customer from Germany refers to Country = 'Germany'",
"Gula Malacca is the name of the product; company refers to CompanyName;",
"product refers to ProductName; highest user satisfaction refers to max(ReorderLevel)",
"from UK refers to Country = 'UK'",
"'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID",
"total production amount refers to ADD(UnitsInstock, UnitsOnOrder)",
"Eastern Region refers to RegionDescription = 'Eastern';"
]
} |
{
"query": "Among the beverages, which product has the highest customer satisfaction?",
"pos": [
"beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel)"
],
"neg": [
"paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID))",
"from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))",
"discontinued product refers to Discontinued = 1; supplier refers to CompanyName",
"the largest quantity of \"Manjimup Dried Apples\" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples';",
"newest hired refers to latest HireDate; full name = FirstName, LastName;",
"'Blondesddsl pre et fils' is a CompanyName",
"name of product refers to ProductName; ID refers to ProductID",
"High reorder level generally means high user satisfaction of the product and vice versa; the least satisfaction refers to MIN(ReorderLevel); the highest unit price refers to MAX(UnitPrice);",
"Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;",
"'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName;"
]
} |
{
"query": "Tell the name of the shipper company for the order No.10585.",
"pos": [
"name of the shipper company refers to ShipName; order No. refers to OrderID;"
],
"neg": [
"full name refers to FirstName, LastName; Denver is a TerritoryDescription",
"'Exotic Liquids' is a CompanyName; units in stock over 100 refers to UnitsInStock > 100",
"Chef Anton's Cajun Seasoning' AND 'Chef Anton''s Gumbo Mix' are ProductName; 'New Orleans Cajun Delights' is a CompanyName; calculation = SUBTRACT(UnitPrice where ProductName = 'Chef Anton's Cajun Seasoning', UnitPrice where ProductName = 'Chef Anton''s Gumbo Mix')",
"Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate))",
"ID 1 to 9 refers to EmployeeID BETWEEN 1 AND 9; Average salary = AVG(Salary)",
"DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage;",
"from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))",
"from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1;",
"'Laughing Bacchus Wine Cellars' refers to CompanyName; calculation = DIVIDE(SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)), COUNT(OrderID))",
"home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah';"
]
} |
{
"query": "Calculate the production volume of the dairy product 'Mascarpone Fabioli'.",
"pos": [
"'Mascarpone Fabioli' is a ProductName; calculation = SUM(UnitsInStock, UnitsOnOrder)"
],
"neg": [
"order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock));",
"how much lower in percentage = MULTIPLY(DIVIDE(SUBTRACT(Products.UnitPrice, Order Details.UnitPrice), Products.UnitPrice), 100); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;",
"home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah';",
"phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName;",
"\"Eastern\" is the RegionDescription",
"majority of the suppliers located refers to MAX(COUNT(SupplierID))",
"three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry';",
"reported to employee id 5 refers to ReportsTo = 5",
"\"USA\" is the Country; PhD title of courtesy refers to TitleOfCourtesy = 'Dr.'",
"full name refers to FirstName, LastName; brith day refers to BirthDate"
]
} |
{
"query": "What is the name of the supplier that supplies the most products to the company?",
"pos": [
"name of the supplier refers to SupplierID; the most product refers to max(count(ProductID))"
],
"neg": [
"Federal Shipping refers to CompanyName = 'Federal Shipping'",
"order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock));",
"via United Package refers to CompanyName = 'United Package'; in 1997 refers to OrderDate > = '1997-01-01 00:00:00' AND OrderDate < '1998-01-01 00:00:00'; average unit price = divide(sum(UnitPrice), count(ShipperID))",
"order number 10933 refers to OrderID = 10933;",
"least order refers to Min(OrderID)",
"freight of over 800 refers to Freight > 800",
"total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120",
"'Exotic Liquids' is a CompanyName; units in stock over 100 refers to UnitsInStock > 100",
"regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID))",
"highest freight refers to max(Freight)"
]
} |
{
"query": "Which category does \"tofu\" belong to?",
"pos": [
"category refers to CategoryName; tofu refers to ProductName = 'Tofu';"
],
"neg": [
"most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ; total sales refers to sum(MULTIPLY(Quantity, UnitPrice))",
"from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))",
"no longer sold refers to Discontinued = 1; products refers to ProductName",
"territories refers to TerritoryDescription; Eastern Region refers to RegionDescription = 'Eastern';",
"shipping company refers to Shippers; phone number refers to Phone",
"full name = FirstName, LastName; youngest refers to latest BirthDate;",
"companies refers to ShipperID",
"full name refers to FirstName LastName; highest amount of orders refers to max(count(OrderID))",
"Sales Manager refers to Title = 'Sales Manager'; full name refers to FirstName, LastName",
"'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100"
]
} |
{
"query": "Which region does territory id 2116 belong to?",
"pos": [
"region refers to RegionDescription"
],
"neg": [
"order number 10933 refers to OrderID = 10933;",
"in the Eastern region refers to RegionDescription = 'Eastern'",
"\"Northern\" region refers to RegionDescription = 'Northern'",
"Santa Monica refers to TerritoryDescription = 'Santa Monica'; full name = FirstName, MiddleName, LastName;",
"in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID)",
"in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName",
"most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ; total sales refers to sum(MULTIPLY(Quantity, UnitPrice))",
"shipped through refers to ShipVia; United Package refers to CompanyName = 'United Package'",
"the largest quantity of \"Manjimup Dried Apples\" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples';",
"\"Teatime Chocolate Biscuits\" is the ProductName"
]
} |
{
"query": "On what date did the Du monde entier company request that 9 units of Filo Mix be sent to it?",
"pos": [
"9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate;"
],
"neg": [
"discontinued products refers to Discontinued = 1; total sales amount refers to SUM(MULTIPLY(UnitPrice, Quantity))",
"'Exotic Liquids' is a CompanyName; units in stock over 100 refers to UnitsInStock > 100",
"'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title",
"'USA' is a country; supplier refers to CompanyName",
"most expensive product refers to ProductName where MAX(UnitPrice);",
"Margaret Peacock is the full name of an employee; full name refers to FirstName, LastName; phone number refers to HomePhone",
"how much lower in percentage = MULTIPLY(DIVIDE(SUBTRACT(Products.UnitPrice, Order Details.UnitPrice), Products.UnitPrice), 100); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;",
"the most overdue from required date refers to MIN(SUBTRACT(ShippedDate, RequiredDate) < 0)",
"shipped to the city of Paris refers to ShipCity = 'Paris';",
"product refers to ProductName; highest user satisfaction refers to max(ReorderLevel)"
]
} |
{
"query": "Who is the customer who purchased the highest number of products in a single order?",
"pos": [
"highest number of products refers to MAX(COUNT(ProductID))"
],
"neg": [
"\"Vice Present of Sales\" refers to Title = 'Vice President, Sales'; full name refers to FirstName, LastName; url of photo refers to PhotoPath",
"\"Eastern\" is the RegionDescription",
"beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel)",
"supplied by refers to CompanyName",
"region refers to RegionDescription",
"name of territory refers to TerritoryDescription; Mr. refers to TitleOfCourtesy = 'Mr';",
"descriptions refers to TerritoryDescription; region refers to RegionDescription",
"the least shipped product refers ProductName where MIN(Quantity);",
"highest number refers to max(count(CustomerID))",
"highest number of territories refers to max(TerritoryID); difference in salary = subtract(employeeA.Salary, employeeB.Salary)"
]
} |
{
"query": "In August of 1996, how many orders were placed by the customer with the highest amount of orders?",
"pos": [
"August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID))"
],
"neg": [
"how much lower in percentage = MULTIPLY(DIVIDE(SUBTRACT(Products.UnitPrice, Order Details.UnitPrice), Products.UnitPrice), 100); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;",
"female employees refers to TitleOfCourtesy = 'Mrs.' or TitleOfCourtesy = 'Ms.'; in charge of 3 or more territories refers to TerritoryID > = 3;",
"order number 10558 refers to OrderID = 10558;",
"average sales = AVG(ProductSales)",
"product refers to ProductName;",
"descriptions refers to TerritoryDescription; region refers to RegionDescription",
"under confections category refers to CategoryName = 'Confections';",
"discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1)",
"regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID))",
"orders to Brazil refers to ShipCountry = 'Brazil'; highest salary refers to max(salary); average salary = AVG(Salary)"
]
} |
{
"query": "How many companies are there in the city of London?",
"pos": [
"companies refers to CompanyName;"
],
"neg": [
"\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100",
"Ms. refers to TitleOfCourtesy = 'Ms'; ReportsTo’ represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; name of the territory refers to TerritoryDescription;",
"total payment is greater than 15000 refers to MULTIPLY((Quantity * UnitPrice * (1 - Discount))) > 15000\n",
"United States of America refers to Country = 'USA'",
"freight of over 800 refers to Freight > 800",
"High reorder level generally means high user satisfaction of the product and vice versa; the least satisfaction refers to MIN(ReorderLevel); the highest unit price refers to MAX(UnitPrice);",
"August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID))",
"shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage",
"located in Germany refers to Country = 'Germany';",
"Name the shipper refers to CompanyName; most shipments refers to max(count(OrderID)); first quarter of 1998 refers to ShippedDate = 1998/1 and ShippedDate = 1998/2 and ShippedDate = 1998/3 and ShippedDate = 1998/4"
]
} |
{
"query": "Among the supplied products from Australia, describe the discontinued products and the category.",
"pos": [
"from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1;"
],
"neg": [
"reported to employee id 5 refers to ReportsTo = 5",
"\"Teatime Chocolate Biscuits\" is the ProductName",
"full name refers to FirstName LastName; highest amount of orders refers to max(count(OrderID))",
"Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate))",
"High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG';",
"discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1)",
"'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID",
"newest hired refers to latest HireDate; full name = FirstName, LastName;",
"value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value)",
"most amount of orders refers to max(count(OrderID)); in 1996 refers to OrderDate > = '1996-01-01 00:00:00' AND OrderDate < '1997-01-01 00:00:00'; full name refers to FirstName, LastName"
]
} |
{
"query": "How many employees in the UK takes charge of the sales in over 4 territories?",
"pos": [
"UK refers to Country = 'UK'; employees with over 4 territories refers to EmployeeID WHERE TerritoryID > 4;"
],
"neg": [
"percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%",
"the most overdue from required date refers to MIN(SUBTRACT(ShippedDate, RequiredDate) < 0)",
"Eastern Region refers to RegionDescription = 'Eastern';",
"total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;",
"regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID))",
"name of the supplier refers to SupplierID; the most product refers to max(count(ProductID))",
"Chef Anton's Cajun Seasoning' AND 'Chef Anton''s Gumbo Mix' are ProductName; 'New Orleans Cajun Delights' is a CompanyName; calculation = SUBTRACT(UnitPrice where ProductName = 'Chef Anton's Cajun Seasoning', UnitPrice where ProductName = 'Chef Anton''s Gumbo Mix')",
"shipped the most times refer to MAX(COUNT(ShipVia)); city of Aachen refers to ShipCity = 'Aache'; companies refers to CompanyName;",
"paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID))",
"descriptions refers to TerritoryDescription; region refers to RegionDescription"
]
} |
{
"query": "Which region is \"Columbia\" in?",
"pos": [
"region refers to RegionID; \"Columbia\" refers to TerritoryDescription = 'Columbia'"
],
"neg": [
"Name the shipper refers to CompanyName; most shipments refers to max(count(OrderID)); first quarter of 1998 refers to ShippedDate = 1998/1 and ShippedDate = 1998/2 and ShippedDate = 1998/3 and ShippedDate = 1998/4",
"highest number of products refers to MAX(COUNT(ProductID))",
"products refers to Order_Details.ProductID; on 14th August, 1996 refers to OrderDate = '8/14/1996'",
"orders to Brazil refers to ShipCountry = 'Brazil'; highest salary refers to max(salary); average salary = AVG(Salary)",
"full name refers to FirstName, LastName; shipped to USA refers to ShipCountry = 'USA'",
"shipped to France refers to ShipCountry = 'France';",
"discontinued products refers to Discontinued = 1; total sales amount refers to SUM(MULTIPLY(UnitPrice, Quantity))",
"Pavlova, Ltd. refers to CompanyName = 'Pavlova, Ltd.'",
"August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID))",
"home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah';"
]
} |
{
"query": "Write down the full name of Vie President of Sales and his age when he was hired.",
"pos": [
"Vice President of Sales refers to Title = 'Vice President, Sales';"
],
"neg": [
"discontinued products refers to Discontinued = 1; calculation = DIVIDE(SUM(Discontinued = 1), COUNT(ProductID)) * 100",
"is a UK citizen refers to Country = 'UK'",
"\"Pavlova, Ltd\" is the CompanyName; products refers to ProductName",
"phone refers to HomePhone; Portsmouth territory refers to TerritoryDescription = 'Portsmouth';",
"phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName;",
"highest salary refers to Max(Salary)",
"\"Northern\" region refers to RegionDescription = 'Northern'",
"total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;",
"Eastern Region refers to RegionDescription = 'Eastern';",
"'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle"
]
} |
{
"query": "Among the customers, list customers' company names and addresses who paid more than average in freight.",
"pos": [
"paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID))"
],
"neg": [
"Eastern Region refers to RegionDescription = 'Eastern';",
"Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription;",
"ID 1 to 9 refers to EmployeeID BETWEEN 1 AND 9; Average salary = AVG(Salary)",
"Name the shipper refers to CompanyName; most shipments refers to max(count(OrderID)); first quarter of 1998 refers to ShippedDate = 1998/1 and ShippedDate = 1998/2 and ShippedDate = 1998/3 and ShippedDate = 1998/4",
"freighted products for a value greater than 2,000,000 refer to Freight > 2000000; name of companies refers to CompanyName;",
"order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock));",
"product refers to ProductName; highest user satisfaction refers to max(ReorderLevel)",
"shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996 refers to year(OrderDate) = 1996 and month(OrderDate) = 12;",
"IDs of the orders refers to OrderID; production is not continuous refers to Discontinued = 1;",
"through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100%"
]
} |
{
"query": "What are the product names of Exotic Liquids?",
"pos": [
"\"Exotic Liquids\" is the CompanyName"
],
"neg": [
"\"Vice Present of Sales\" refers to Title = 'Vice President, Sales'; full name refers to FirstName, LastName; url of photo refers to PhotoPath",
"'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle",
"company in Spain refers to Country = 'Spain'; product supplied refers to ProductName",
"most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ; total sales refers to sum(MULTIPLY(Quantity, UnitPrice))",
"ID 1 to 9 refers to EmployeeID BETWEEN 1 AND 9; Average salary = AVG(Salary)",
"name of the supplier refers to SupplierID; the most product refers to max(count(ProductID))",
"descriptions refers to TerritoryDescription; region refers to RegionDescription",
"newest hired refers to latest HireDate; full name = FirstName, LastName;",
"Federal Shipping refers to CompanyName = 'Federal Shipping'; DIVIDE(SUM(Quantity), COUNT(ProductID)) where CompanyName = 'Federal Shipping' and ShippedDate > = '1996-11-01 00:00:00' AND ShippedDate < '1996-12-01 00:00:00';",
"products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5';"
]
} |
{
"query": "How many employees in total are in charge of the sales in the Eastern Region?",
"pos": [
"Eastern Region refers to RegionDescription = 'Eastern';"
],
"neg": [
"Federal Shipping refers to CompanyName = 'Federal Shipping'; DIVIDE(SUM(Quantity), COUNT(ProductID)) where CompanyName = 'Federal Shipping' and ShippedDate > = '1996-11-01 00:00:00' AND ShippedDate < '1996-12-01 00:00:00';",
"reported to employee id 5 refers to ReportsTo = 5",
"phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName;",
"region refers to RegionDescription",
"\"Vice Present of Sales\" refers to Title = 'Vice President, Sales'; full name refers to FirstName, LastName; url of photo refers to PhotoPath",
"highest salary refers to MAX(Salary); full name = FirstName, LastName;",
"'Blondesddsl pre et fils' is a CompanyName",
"freighted products for a value greater than 2,000,000 refer to Freight > 2000000; name of companies refers to CompanyName;",
"supplied by refers to CompanyName",
"London refers to city = 'London';"
]
} |
{
"query": "List out the phone number of the shipping company of order id 10296.",
"pos": [
"shipping company refers to Shippers; phone number refers to Phone"
],
"neg": [
"order number 10558 refers to OrderID = 10558;",
"most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ; total sales refers to sum(MULTIPLY(Quantity, UnitPrice))",
"name of the supplier refers to SupplierID; the most product refers to max(count(ProductID))",
"suppliers refers to CompanyName; 'cheeses' is a Description",
"supplied by refers to CompanyName",
"shipped to France refers to ShipCountry = 'France';",
"\"Exotic Liquids\" is the CompanyName",
"\"Madrid\" is the City; in 1996 refers to YEAR (OrderDate) = 1996; percentage = Divide (Count (CustomerID where City = 'Madrid'), Count (CustomerID)) * 100",
"home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah';",
"\"Speedy Express\" is the name of the shipping company; orders refer to OrderID;"
]
} |
{
"query": "Which territory does Ms. Laura Callahan's direct supervisor work in? Give the name of the territory.",
"pos": [
"Ms. refers to TitleOfCourtesy = 'Ms'; ReportsTo’ represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; name of the territory refers to TerritoryDescription;"
],
"neg": [
"9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate;",
"\"Speedy Express\" is the name of the shipping company; orders refer to OrderID;",
"percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%",
"Eastern Region refers to RegionDescription = 'Eastern';",
"Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName;",
"most total sales refers to Max(SaleAmount); companies refers to CompanyName",
"the least shipped product refers ProductName where MIN(Quantity);",
"shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996 refers to year(OrderDate) = 1996 and month(OrderDate) = 12;",
"home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah';",
"through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100%"
]
} |
{
"query": "How many times is the number of territories in \"Eastern Region\" than \"Southern Region\"?",
"pos": [
"\"Eastern Region\" refers to RegionDescription = 'Eastern'; \"Southern Region\" refers to RegionDescription = 'Southern'; times = divide(count(TerritoryDescription where RegionDescription = 'Eastern') , count(TerritoryDescription where RegionDescription = 'Southern'))"
],
"neg": [
"paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID))",
"highest number of products refers to MAX(COUNT(ProductID))",
"ID 1 to 9 refers to EmployeeID BETWEEN 1 AND 9; Average salary = AVG(Salary)",
"average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK'",
"Santa Monica refers to TerritoryDescription = 'Santa Monica'; full name = FirstName, MiddleName, LastName;",
"\"Madrid\" is the City; in 1996 refers to YEAR (OrderDate) = 1996; percentage = Divide (Count (CustomerID where City = 'Madrid'), Count (CustomerID)) * 100",
"companies refers to CompanyName;",
"shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage",
"\"Laura Callahan\" refers to FirstName = 'Laura AND LastName = 'Callahan",
"from UK refers to Country = 'UK'"
]
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.