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