set
dict |
---|
{
"query": "How many of the approved documents are confidential?",
"pos": [
"approved refers to Status = 2; confidential document refers to DocumentSummary is null;"
],
"neg": [
"take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null; manufactured in house refers to MakeFlag = 1",
"profit on net = SUBTRACT(LastReceiptCost, StandardPrice);",
"where the person live refers addresstype.Name = 'Home'",
"Saved in English refers to product description written in English where Culture.name = 'English'",
"total due before freight = SUBTRACT(TotalDue, Freight); age at the time an employee was hired = SUBTRACT(HireDate, year(BirthDate);",
"minimum order quantity refers to MinOrderQty;",
"Canada is name of sales territory",
"highest pay rate refers to MAX(Rate);",
"products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';",
"proportion = DIVIDE(SUM(Name = 'UK')), (COUNT(SalesOrderID))) as count;"
]
} |
{
"query": "What is the full address of business number 24?",
"pos": [
"Full address refers to AddressLine1+AddressLine2; business number 24 refers to BusinessEntityID = '24'"
],
"neg": [
"current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100%",
"over 3 price changes refers to count(ListPrice)>3",
"take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null; manufactured in house refers to MakeFlag = 1",
"employee refers to PersonType = 'EM'; Male refers to Gender = 'M'; Average = Divide( SUM(VacationHours(PersonType = 'EM'& Gender = 'M')),Count(BusinessEntityID(PersonType = 'EM' & Gender = 'M')));",
"MOQ refers to minimum order quantity; MOQ of 1 refers to MinOrderQty = 1; standard cost more than 48 refers to StandardCost > 48;",
"Canada is name of a sales territory",
"married refers to MaritalStatus = 'M'; western name style refers to NameStyle = 0; store contact refers to PersonType = 'SC'; probability = Divide (Count (BusinessEntityID( PersonType = 'SC' & MaritalStatus = 'M')), Count (BusinessEntityID ( PersonType) & MariatlStatus = 'M'))\n",
"ModifiedDate between'2014-09-12 00:00:00' and '2014-09-12 23:59:59';",
"female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;",
"vendor's selling price refers to StandardPrice"
]
} |
{
"query": "For all the employees that have left the Engineering Department, what is the average time of their stay?",
"pos": [
"employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));"
],
"neg": [
"goods refers to products",
"Bike refers to the name of the product category, therefore ProductCategoryID = 1",
"percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;",
"Salespeople refers to PersonType = 'SP'",
"Quantity more than 10,000 pieces refers to Quantity>10000; selling price refers to ListPrice",
"Job position and job title are synonyms; job position that was hired the most refers to MAX(COUNT(JobTitle); HireDate BETWEEN '2007-1-1' AND '2007-12-31';",
"geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;",
"employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;",
"High quality refers to the product's quality class, therefore Class = 'H'",
"weight in pounds refers to WeightUnitMeasureCode = 'LB';"
]
} |
{
"query": "Among all the employees who don't wish to receive promotion e-mails, how many of them belong to or once belonged to the Engineering Department?",
"pos": [
"Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;"
],
"neg": [
"profit on net = SUBTRACT(LastReceiptCost, StandardPrice);",
"geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;",
"order refers to SalesOrderID",
"mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5",
"business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime",
"Vendor's selling price of a single product refers to UnitPrice;",
"product is manufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;",
"amount to be paid refers to TotalDue;",
"lowest pay refers to min(Rate);",
"CurrentFlag = 1 refers to the active status of employees; Percentage = Divide (Count (BusinessEntityID (CurrentFlag = 1 & VacationHours >20 & SickLeaveHours > 10)), Count (BusinessEntityID (CurrentFlag = 1 & SickLeaveHours>10))) * 100;"
]
} |
{
"query": "How many customers are there in Canada?",
"pos": [
"Canada is name of sales territory"
],
"neg": [
"projected yearly sales quota refers to SalesQuota; projected yearly sales quota in 2013 refers to year(QuotaDate) = 2013; percentage = (MULTIPLY(DIVIDE(SUM(Bonus)), (SUM(SalesQuota))) as percentage;",
"High quality refers to the product's quality class, therefore Class = 'H'; the lowest transacted quantity refers to Quantity = 1",
"Socks is a name of product subcategory",
"Job position and job title are synonyms; job position that was hired the most refers to MAX(COUNT(JobTitle); HireDate BETWEEN '2007-1-1' AND '2007-12-31';",
"Canada is name of a sales territory",
"average profit = DIVIDE(SUM(SUBTRACT(ListPrice, StandardCost))), (COUNT(ProductSubcategoryID))));",
"female refers to Gender = 'F'; single refers to MaritalStatus = 'S';",
"Minipump is name of a product",
"customers' name refers to ReviewerName; best possible ratings means the highest rating = 5",
"Doesn't have a State Province Code refers to IsOnlyStateProvinceFlag = 1 where StateProvinceCode is unavailable"
]
} |
{
"query": "What is the Crankarm product's net profit?",
"pos": [
"net profit = Subtract(LastReceiptCost, StandardPrice);"
],
"neg": [
"full name = FirstName+MiddleName+LastName; Production Technician - WC50 is a job title;",
"United States refers to CountryRegionCode = 'US';",
"profit on net = SUBTRACT(LastReceiptCost, StandardPrice);",
"mountain product line refers to ProductLine = 'M'",
"actual resource hours of 2 refers to ActualResourceHrs = 2",
"purchase orders refers to TransactionType = 'P'; first six months of 2012 refers to TransactionDate bewteen '2012-01-01'and '2012-06-30'; average = DIVIDE(ActualCost where TransactionType = 'P', count(TransactionID))\n",
"price refers to ListPrice;",
"still need to be assembled means the assembly doesn't finish or still going on which refers to EndDate IS NULL; a depth of 2 refers to BOMLevel = 2;",
"MOQ refers to minimum order quantity; MOQ of 1 refers to MinOrderQty = 1; standard cost more than 48 refers to StandardCost > 48;",
"salaried employee refers to SalariedFlag = 1; hired in 2007 and later refers to year(HireDate)> = 2007"
]
} |
{
"query": "Which type of transaction was it for the \"LL Road Handlebars\" order happened in 2012/11/3?",
"pos": [
"Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate"
],
"neg": [
"production technician is a job title; below average rate refers to Rate<AVG(Rate);",
"total due before freight = SUBTRACT(TotalDue, Freight); age at the time an employee was hired = SUBTRACT(HireDate, year(BirthDate);",
"Debur and Polish is name of manufacturing location",
"vendor's selling price refers to StandardPrice",
"handling damage is descrription of manufacturing failure which refers to ScrapReason.Name",
"unmarried refers to MaritalStatus = 'S', male refers to Gender = 'M', Production Supervisors is a job title",
"ModifiedDate between'2014-09-12 00:00:00' and '2014-09-12 23:59:59';",
"still need to be assembled means the assembly doesn't finish or still going on which refers to EndDate IS NULL; a depth of 2 refers to BOMLevel = 2;",
"France territory refers to SalesTerritory.Name = 'France';",
"employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));"
]
} |
{
"query": "Identifies the ID number of the customer whose sales order for 32 units had a unit price of 35.",
"pos": [
"sales order for 32 units refers to OrderQty = 32"
],
"neg": [
"business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime",
"Full address refers to AddressLine1+AddressLine2; business number 24 refers to BusinessEntityID = '24'",
"Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate",
"store contact refers to PersonType = 'SC';",
"Average = Divide(Sum(Substract(year(@today),year(BirthDate))),Count(BusinessEntityID) by each Department ID; youngest employee refers to Min(BirthDate);",
"high class refers to Class = 'H'; men's product refers to Style = 'M'",
"vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)",
"full name = FirstName+MiddleName+LastName; Production Technician - WC50 is a job title;",
"number of departments an employee works for between 2011 and 2012 refers to year(StartDate) BETWEEN 2011 AND 2012 and year(EndDate) BETWEEN 2011 and 2012;",
"profit on net = SUBTRACT(LastReceiptCost, StandardPrice);"
]
} |
{
"query": "How many employees work for AdvertureWorks that is single?",
"pos": [
"Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'"
],
"neg": [
"not recommended refers to PreferredVendorStatus = 0;",
"compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product",
"percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%",
"Started selling in 2013 refers to year(SellStartDate) = 2013;",
"product number = productID",
"business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime",
"Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'",
"business id refers to BusinessEntityID",
"credit card number refers to CardNumber;",
"business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)"
]
} |
{
"query": "List the locations ids, compartments and containers for the Lock Ring",
"pos": [
"compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product"
],
"neg": [
"purchase orders refers to TransactionType = 'P'; first six months of 2012 refers to TransactionDate bewteen '2012-01-01'and '2012-06-30'; average = DIVIDE(ActualCost where TransactionType = 'P', count(TransactionID))\n",
"most reviews refers to MAX(count(ProductID))\n\n",
"lowest rating refers to Rating = 1;",
"low class refers to Class = 'L'; universal refers to Style = 'U'; road frame is a name of product subcategory; average profit = AVG(SUBTRACT(ListPrice, StandardCost);",
"LL Road Frame Sale is a description of special offer",
"mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5",
"business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)",
"miinimum order quantity refers to MinOrderQty = 100",
"Highest year to date sales refers to Max(SalesYTD);",
"SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate;"
]
} |
{
"query": "How many products from the Clothing category were on the LL Road Frame Sale?",
"pos": [
"LL Road Frame Sale is a description of special offer"
],
"neg": [
"customers' name refers to ReviewerName; best possible ratings means the highest rating = 5",
"products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';",
"shelves refer to shelf; down tube is a product",
"year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';",
"lowest pay refers to min(Rate);",
"active employee refers to CurrentFlag = 1; Rate< = 30;",
"Do not have any work order ID means WorkOrderID is null",
"Saved in English refers to product description written in English where Culture.name = 'English'",
"Bike refers to the name of the product category, therefore ProductCategoryID = 1",
"Male refers to Gender = 'M'; married refers to MaritalStatus = 'M'; oldest refers to Min(BirthDate);"
]
} |
{
"query": "What is the total sick leave hours of employees who do not wish to receive any e-mail promotion?",
"pos": [
"Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0"
],
"neg": [
"Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;",
"average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;",
"more than 10 sick leave hours refers to SickLeaveHours>10; pay rate over 35 refers to Rate>35;",
"cost refers to StandardCost;",
"Profit as 82.41 = SUTRACT(ListPrice, StandardCost); May of 2012 refers to StartDate = '2012-05'",
"hashed password refers to PasswordHash;",
"Do not have any work order ID means WorkOrderID is null",
"Profit = SUBTRACT(ListPrice, StandardCost); the highest rating in review refers to Rating = 5",
"store contact refers to PersonType = 'SC'; year(EndDate)>2007 and year(StartDate)<2007;",
"Accountant is a job title; first hired = MIN(HireDate)"
]
} |
{
"query": "List all the pay rates of all employees that were hired at 20 years of age.",
"pos": [
"pay rate refers to Rate; 20 years old at the time of being hired refers to SUBTRACT(year(HireDate)), (year(BirthDate))) = 20;"
],
"neg": [
"price refers to ListPrice; price of 3 products = MULTIPLY(ListPrice, 3); Lock Washer 6 is a name of a product;",
"business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime",
"Male refers to Gender = 'M'; married refers to MaritalStatus = 'M'; oldest refers to Min(BirthDate);",
"geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;",
"products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';",
"company number 1 refers to BusinessEntityId = 1; employee refers to PersonType = 'EM'; full name refers to FirstName + MiddleName + LastName",
"Northwest is name of SalesTerritory; US is the CountryRegionCode;",
"Product with the lowest rating refers to the rating\ngiven by the\nreviewer where Rating = 1",
"male refers to Gender = 'M'; employee refers to PersonType = 'EM'; percentage = DIVIDE(COUNT(Gender = 'M'), COUNT(PersonType = 'MY'))*100%;",
"Pre assembly quantity refers to PerAssemblyQty"
]
} |
{
"query": "What is the order reference number for the \"Mountain End Caps\" product?",
"pos": [
"Order Reference Number refers to ReferenceOrderID"
],
"neg": [
"product number = productID",
"salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'",
"non-sales employee refers to PersonType = 'EM'",
"current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100%",
"Profit = AVG(SUBTRACT(ListPrice, StandardCost)>100",
"MOQ refers to minimum order quantity; MOQ of 1 refers to MinOrderQty = 1; standard cost more than 48 refers to StandardCost > 48;",
"Catgo Transport 5 is a name of shipping method; OrderDate = '2011-12-14'; total shipment cost = SUM(Freight);",
"Married refers to MaritalStatus = 'M'; non-sales employees refer to PersonType = 'EM'",
"Product with more than 5 quantity refers to Quantity>5",
"average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;"
]
} |
{
"query": "To which group does the department with the least amount of workers belong to? Indicate the name of the department as well.",
"pos": [
"least amount of workers refers to MIN(count(DepartmentID));"
],
"neg": [
"company number 1 refers to BusinessEntityId = 1; employee refers to PersonType = 'EM'; full name refers to FirstName + MiddleName + LastName",
"Full address refers to AddressLine1+AddressLine2; business number 24 refers to BusinessEntityID = '24'",
"Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'",
"product that are purchased refers to MakeFlag = 0; never received highest rating refers to Rating! = 5\n\n",
"Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa",
"began work in 2009 or later refers to StartDate> = 2009;",
"average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;",
"Jill refers to the name of reviewer; HL Mountain Pedal refers to the name of the product",
"male refers to Gender = 'M'; female refers to Gender = 'F'; difference in average rate = DIVIDE(AVG(Rate where Gender = 'F')), (AVG(Rate where Gender = 'M'))) as diff;",
"Product with more than 5 quantity refers to Quantity>5"
]
} |
{
"query": "Calculate the total quantity of purchased product that has been prepared by employee number 257 and is in pending shipment status.",
"pos": [
"employee number 257 refers to EmployeeID = 257; pending shipment status refers to Status = 3"
],
"neg": [
"number of product rejected refers to ScrapedQty; trim length that is too long refers to scrap reason where Name = 'Trim length too long'",
"business id refers to BusinessEntityID",
"employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;",
"vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)",
"company number 1 refers to BusinessEntityId = 1; employee refers to PersonType = 'EM'; full name refers to FirstName + MiddleName + LastName",
"current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100%",
"Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'",
"lowest rating refers to Rating = 1",
"High quality refers to the product's quality class, therefore Class = 'H'",
"year(StartDate) 2007; year of credit card expiration refers to ExpYear; ExpYear = 2007;"
]
} |
{
"query": "Among the employees in the Manufacturing group in 2007, how many of them are store contacts?",
"pos": [
"store contact refers to PersonType = 'SC'; year(EndDate)>2007 and year(StartDate)<2007;"
],
"neg": [
"Sales and Marketing is group name of a department",
"began work in 2009 or later refers to StartDate> = 2009;",
"still need to be assembled means the assembly doesn't finish or still going on which refers to EndDate IS NULL; a depth of 2 refers to BOMLevel = 2;",
"female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;",
"least number of sick leave refers to min(SickLeaveHours); PayFrequency = 1 means ‘Salary received monthly’; PayFrequency = 2 means ‘Salary received biweekly';",
"product maintenance documents are private refers to DocumentSummary = null",
"Low quality refers to the product's quality class, therefore Class = 'L'",
"shipment by truck refers to Name = 'XRQ - TRUCK GROUND';",
"Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'",
"married refers to MaritalStatus = 'M'; male refers to Gender = 'M'; BirthDate < = '1959-12-31';"
]
} |
{
"query": "What is the bussiness id for Mr. Hung-Fu Ting?",
"pos": [
"business id refers to BusinessEntityID;"
],
"neg": [
"over 3 price changes refers to count(ListPrice)>3",
"job position and job title are synonyms; full name = FirstName+MiddleName+LastName;",
"Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0",
"Alex refers to FirstName = 'Alex'; single refers to MaritalStatus = 'S'",
"employee exempt from collective bargaining refers to SalariedFlag = 1; highest pay rate refers to max(Rate)",
"lowest pay refers to min(Rate);",
"Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'",
"type of employee refers to PersonType;",
"Order Reference Number refers to ReferenceOrderID",
"Headset Ball Bearings is name of a product"
]
} |
{
"query": "What is the average age of employee in Adventure Works?",
"pos": [
"average age = AVG(subtract(year(now), year(HireDate)))"
],
"neg": [
"Job position and job title are synonyms; job position that was hired the most refers to MAX(COUNT(JobTitle); HireDate BETWEEN '2007-1-1' AND '2007-12-31';",
"Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;",
"female refers to Gender = 'F'; single refers to MaritalStatus = 'S';",
"began work in 2009 or later refers to StartDate> = 2009;",
"salaried employee refers to SalariedFlag = 1; hired in 2007 and later refers to year(HireDate)> = 2007",
"resellers refers to Category = 'Reseller';",
"most review refers to MAX(count(comments)); high class refers to Class = 'H'; medium class refers to Class = 'M'; low class refers to Class = 'L'",
"job position and job title are synonyms; full name = FirstName+MiddleName+LastName;",
"Document Control Assistant refers to the JobTitle = 'Document Control Assistant'; hired on 2009/1/22 means the person's hiring date is HireDate = '2009-01-22'; private documents indicate that DocumentSummary is null; DIVIDE(COUNT(DocumentSummary is null), COUNT(DocumentSummary))*100",
"average profit = DIVIDE(SUM(SUBTRACT(ListPrice, StandardCost))), (COUNT(ProductSubcategoryID))));"
]
} |
{
"query": "What is the total profit gained by the company from the product that has the highest amount of quantity ordered from online customers? Indicate the name of the product.",
"pos": [
"profit = MULTIPLY(SUBTRACT(ListPrice, Standardcost)), (Quantity)));"
],
"neg": [
"tax amount refers to TaxAmt; biggest tax amount refers to MAX(TaxAmt);",
"male refers to Gender = 'M'; female refers to Gender = 'F'; difference in average rate = DIVIDE(AVG(Rate where Gender = 'F')), (AVG(Rate where Gender = 'M'))) as diff;",
"not recommended refers to PreferredVendorStatus = 0;",
"minimum inventory quantity refers to SafetyStockLevel; chainring bolts is a name of product;",
"store contact refers to PersonType = 'SC'; year(EndDate)>2007 and year(StartDate)<2007;",
"active status of employees refers to CurrentFlag = 1;",
"manufactured in house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10",
"customers' name refers to ReviewerName; best possible ratings means the highest rating = 5",
"located in the Subassembly category refers to Name = 'Subassembly'",
"in centimeter refers to SizeUnitMeasureCode = 'CM';"
]
} |
{
"query": "What percentage of the AdventureWorks data is in Thai?",
"pos": [
"percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%"
],
"neg": [
"credit card number refers to CardNumber; employees who left the department refers to EndDate NOT null; Engineering Department is a name of department;",
"shelves refer to shelf; down tube is a product",
"Pre assembly quantity refers to PerAssemblyQty",
"order refers to SalesOrderID",
"began work in 2009 or later refers to StartDate> = 2009;",
"maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);",
"salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'",
"production technician is a job title; below average rate refers to Rate<AVG(Rate);",
"Salespeople refers to PersonType = 'SP'",
"projected sales quota refers to SalesQuota; projected sales quota in 2013 refers to year(QuotaDate) = 2013;"
]
} |
{
"query": "What is the minimum inventory quantity of Chainring Bolts?",
"pos": [
"minimum inventory quantity refers to SafetyStockLevel; chainring bolts is a name of product;"
],
"neg": [
"assembly lines that are not finished refers to EndDate = null",
"LL Road Frame Sale is a description of special offer",
"over 3 price changes refers to count(ListPrice)>3",
"business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime",
"increased their current year sales by more than 60% refers to\nDIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6",
"TransactionDate BETWEEN '2013-08-01' AND '2013-08-30'; sold in refers to TransactionType = 'S' which means SalesOrder;",
"where the person live refers addresstype.Name = 'Home'",
"married refers to MaritalStatus = 'M'; male refers to Gender = 'M'; BirthDate < = '1959-12-31';",
"take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null",
"geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;"
]
} |
{
"query": "What is the stocked quantity of products manufactured from location ID 40?",
"pos": [
"Stocked quantity refers to StockedQty"
],
"neg": [
"ModifiedDate between'2014-09-12 00:00:00' and '2014-09-12 23:59:59';",
"approved refers to Status = 2; confidential document refers to DocumentSummary is null;",
"increased their current year sales by more than 60% refers to\nDIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6",
"The Road line refers to the product line, therefore ProductLine = 'R'",
"employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;",
"Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate",
"pay rate above 40 refers to Rate>40; male employee refers to Gender = M",
"mountain product line refers to ProductLine = 'M'",
"Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0",
"BirthDate<'1980-01-01'; single refers to MaritalStatus = 'S' or null;"
]
} |
{
"query": "What is the average profit of all the low class universal road frames? Indicate how many variety of sizes are there and the available colors.",
"pos": [
"low class refers to Class = 'L'; universal refers to Style = 'U'; road frame is a name of product subcategory; average profit = AVG(SUBTRACT(ListPrice, StandardCost);"
],
"neg": [
"full name = FirstName+MiddleName+LastName;",
"Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;",
"pay rate refers to Rate; 20 years old at the time of being hired refers to SUBTRACT(year(HireDate)), (year(BirthDate))) = 20;",
"AVG(Rating) = DIVIDE(SUM(rating), COUNT(ReviewerName))",
"take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null; manufactured in house refers to MakeFlag = 1",
"net profit = Subtract(LastReceiptCost, StandardPrice);",
"highest selling price refers to MAX(ListPrice);",
"Catherine Ward refers to the name of BusinessEntityID; how many letters in password for the e-mail account refers to LENGTH(PasswordHash)",
"Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate",
"Bike refers to the name of the product category, therefore ProductCategoryID = 1"
]
} |
{
"query": "What is the number of State Province of France that doesn't have a State Province Code?",
"pos": [
"Doesn't have a State Province Code refers to IsOnlyStateProvinceFlag = 1 where StateProvinceCode is unavailable"
],
"neg": [
"projected sales quota refers to SalesQuota; projected sales quota in 2013 refers to year(QuotaDate) = 2013;",
"last receipt date is August 17, 2011 refers to LastReceiptDate> = '2011-08-17 00:00:00' and LastReceiptDate < '2011-08-18 00:00:00';",
"Average cost = AVG(StandardCost)",
"female refers to Gender = 'F'; single refers to MaritalStatus = 'S';",
"maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);",
"salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10",
"business id refers to BusinessEntityID",
"still need to be assembled means the assembly doesn't finish or still going on which refers to EndDate IS NULL; a depth of 2 refers to BOMLevel = 2;",
"net profit = Subtract(LastReceiptCost, StandardPrice);",
"SP is an abbreviation for Sales Person; PersonType = 'SP';"
]
} |
{
"query": "Which territory has the most customers as of 9/12/2014?",
"pos": [
"ModifiedDate between'2014-09-12 00:00:00' and '2014-09-12 23:59:59';"
],
"neg": [
"cost refers to StandardCost;",
"price refers to ListPrice; price of 3 products = MULTIPLY(ListPrice, 3); Lock Washer 6 is a name of a product;",
"projected sales quota refers to SalesQuota; projected sales quota in 2013 refers to year(QuotaDate) = 2013;",
"SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate;",
"cost refers to StandardCost;",
"minimum inventory quantity refers to SafetyStockLevel; chainring bolts is a name of product;",
"maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);",
"tax amount refers to TaxAmt; biggest tax amount refers to MAX(TaxAmt);",
"Sales and Marketing is group name of a department",
"female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;"
]
} |
{
"query": "List all product names and its product line for all purchase order with order quantity of 5000 or more.",
"pos": [
"Purchase order with order quantity of 5000 or more refers to OrderQty> = 5000"
],
"neg": [
"Lightest product refers to Min(Weight); profit if they sell 10 items refers to Subtract (ListPrice , StandardCost) *10;",
"salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10",
"take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null; manufactured in house refers to MakeFlag = 1",
"compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product",
"resellers refers to Category = 'Reseller';",
"Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate",
"profit = SUBTRACT(ListPrice, StandardCost);",
"Road Frames is a name of product subcategory",
"order refers to SalesOrderID",
"tax applied to retail transaction refers to Taxtype = 1; sales that are charged with multiple types of tax refers to NAME LIKE '%+%';"
]
} |
{
"query": "What are the names of the vendor with the second lowest minimum order quantity?",
"pos": [
"minimum order quantity refers to MinOrderQty;"
],
"neg": [
"Night shift refers to Name = 'Night';",
"Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate",
"Hex Nut 5 is name of a product",
"business ID refers to BusinessEntityID; sales total year to date refers to SalesYTD; most sales total year to date refers to MAX(SalesYTD);",
"SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate;",
"last receipt date is August 17, 2011 refers to LastReceiptDate> = '2011-08-17 00:00:00' and LastReceiptDate < '2011-08-18 00:00:00';",
"Pre assembly quantity refers to PerAssemblyQty",
"tax applied to retail transaction refers to Taxtype = 1; sales that are charged with multiple types of tax refers to NAME LIKE '%+%';",
"products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';",
"assembly lines that are not finished refers to EndDate = null"
]
} |
{
"query": "What are the salespeople's email addresses?",
"pos": [
"Salespeople refers to PersonType = 'SP'"
],
"neg": [
"Socks is a name of product subcategory",
"miinimum order quantity refers to MinOrderQty = 100",
"product is mnanufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;",
"Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0",
"salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'",
"projected sales quota refers to SalesQuota; projected sales quota in 2013 refers to year(QuotaDate) = 2013;",
"active status of employees refers to CurrentFlag = 1; Male refers to Gender = 'M'; highest frequency refers to PayFrequency = 2;",
"do not have any type of offer refers to Description = 'No Discount'; sold in an amount greater than 2 refers to OrderQty>2",
"most review refers to MAX(count(comments)); high class refers to Class = 'H'; medium class refers to Class = 'M'; low class refers to Class = 'L'",
"business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime"
]
} |
{
"query": "What are the Department ids under the Sales and Marketing Group?",
"pos": [
"Sales and Marketing is group name of a department"
],
"neg": [
"card that expires in 2007 refers to ExpYear = 2007;",
"still need to be assembled means the assembly doesn't finish or still going on which refers to EndDate IS NULL; a depth of 2 refers to BOMLevel = 2;",
"Pre assembly quantity refers to PerAssemblyQty",
"goods refers to products",
"Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate",
"take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null; manufactured in house refers to MakeFlag = 1",
"Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;",
"lowest rating refers to Rating = 1;",
"product with large photo refers to LargePhoto NOT null;",
"shipment by truck refers to Name = 'XRQ - TRUCK GROUND';"
]
} |
{
"query": "Among the products that are purchased, how many of them have never received the highest rating?",
"pos": [
"product that are purchased refers to MakeFlag = 0; never received highest rating refers to Rating! = 5\n\n"
],
"neg": [
"female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;",
"year of credit card expiration refers to ExpYear;",
"Do not have any work order ID means WorkOrderID is null",
"Profit as 82.41 = SUTRACT(ListPrice, StandardCost); May of 2012 refers to StartDate = '2012-05'",
"amount to be paid refers to TotalDue;",
"Started selling in 2013 refers to year(SellStartDate) = 2013;",
"proportion = DIVIDE(SUM(Name = 'UK')), (COUNT(SalesOrderID))) as count;",
"Average = Divide(Sum(Substract(year(@today),year(BirthDate))),Count(BusinessEntityID) by each Department ID; youngest employee refers to Min(BirthDate);",
"number of products refers to OrderQty",
"not recommended refers to PreferredVendorStatus = 0;"
]
} |
{
"query": "What rating did Jill give for HL Mountain Pedal?",
"pos": [
"Jill refers to the name of reviewer; HL Mountain Pedal refers to the name of the product"
],
"neg": [
"in centimeter refers to SizeUnitMeasureCode = 'CM';",
"home manufactured refers to MakeFlag = 1; average rating = divide(sum(Rating), count(ProductReview))",
"type of employee refers to PersonType;",
"profit = SUBTRACT(ListPrice, StandardCost);",
"year(EndDate)>2009 and year(StartDate)<2009;",
"increased their current year sales by more than 60% refers to\nDIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6",
"located in the Subassembly category refers to Name = 'Subassembly'",
"Vendor's selling price of a single product refers to UnitPrice;",
"LL Road Frame Sale is a description of special offer",
"Next-Door Bike Store is name of a store"
]
} |
{
"query": "Which store sales person was reently hired? Indicate his/her full name and gender.",
"pos": [
"SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate;"
],
"neg": [
"shelves refer to shelf; down tube is a product",
"price refers to ListPrice; highest price refers to MAX(ListPrice);",
"vendor's selling price refers to StandardPrice",
"fewest online orders refer to MIN(Quantity);",
"high class refers to Class = 'H'; men's product refers to Style = 'M'",
"Mauritius Rupee is name of currency",
"employees refers to BusinessEntityID; most unused sick leave refers to MAX(SickLeaveHours); position title refers to JobTitle",
"store contact refers to PersonType = 'SC';",
"began work in 2009 or later refers to StartDate> = 2009;",
"Department refers to Name where GroupName = 'Executive General and Administration'"
]
} |
{
"query": "List all of the credit cards that had expired by 2007.",
"pos": [
"card that expires in 2007 refers to ExpYear = 2007;"
],
"neg": [
"Road Frames is a name of product subcategory",
"SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate;",
"business id refers to BusinessEntityID",
"Sales and Marketing is group name of a department",
"price refers to ListPrice; highest price refers to MAX(ListPrice);",
"SUBTRACT(LastReceiptCost, StandardPrice) for ProductID where name = 'Freewheel'",
"company number 1 refers to BusinessEntityId = 1; employee refers to PersonType = 'EM'; full name refers to FirstName + MiddleName + LastName",
"profit = SUBTRACT(ListPrice, StandardCost);",
"purchase orders refers to TransactionType = 'P'; first six months of 2012 refers to TransactionDate bewteen '2012-01-01'and '2012-06-30'; average = DIVIDE(ActualCost where TransactionType = 'P', count(TransactionID))\n",
"SP is an abbreviation for Sales Person; PersonType = 'SP';"
]
} |
{
"query": "Among the active employees with over 10 hours of sick leave, what is the percentage of the employees with over 20 vacation hours?",
"pos": [
"CurrentFlag = 1 refers to the active status of employees; Percentage = Divide (Count (BusinessEntityID (CurrentFlag = 1 & VacationHours >20 & SickLeaveHours > 10)), Count (BusinessEntityID (CurrentFlag = 1 & SickLeaveHours>10))) * 100;"
],
"neg": [
"work order transaction refers to TransactionType = 'W';",
"business id refers to BusinessEntityID",
"Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;",
"Mauritius Rupee is name of currency",
"salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'",
"not recommended refers to PreferredVendorStatus = 0;",
"Road Frames is a name of product subcategory",
"projected yearly sales quota refers to SalesQuota; projected yearly sales quota in 2013 refers to year(QuotaDate) = 2013; percentage = (MULTIPLY(DIVIDE(SUM(Bonus)), (SUM(SalesQuota))) as percentage;",
"Average cost = AVG(StandardCost)",
"fewest online orders refer to MIN(Quantity);"
]
} |
{
"query": "How many letters are there in Catherine Ward's e-mail account passwords?",
"pos": [
"Catherine Ward refers to the name of BusinessEntityID; how many letters in password for the e-mail account refers to LENGTH(PasswordHash)"
],
"neg": [
"shipping address = AddressLine1+AddressLine2+City;",
"product number = productID",
"goods refers to products",
"poor credit rating means bad credit; CreditRating = 5; Business number refers to BusinessEntityID",
"Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate",
"product is mnanufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;",
"second-lowest rating refers to Rating = 2; high-quality class product refers to Class = 'H'; length of time it takes the company to manufacture a product refers to DaysToManufacture;",
"products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';",
"Average = Divide(Sum(Substract(year(@today),year(BirthDate))),Count(BusinessEntityID) by each Department ID; youngest employee refers to Min(BirthDate);",
"price refers to ListPrice; price of 3 products = MULTIPLY(ListPrice, 3); Lock Washer 6 is a name of a product;"
]
} |
{
"query": "Please list the e-mail addresses of all the employees who wish to receive e-mail promotions from Adventureworks and selected partners.",
"pos": [
"employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;"
],
"neg": [
"female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;",
"products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';",
"LL Road Frame Sale is a description of special offer",
"married refers to MaritalStatus = 'M'; male refers to Gender = 'M'; BirthDate < = '1959-12-31';",
"fewest online orders refer to MIN(Quantity);",
"The Road line refers to the product line, therefore ProductLine = 'R'",
"female refers to Gender = 'F'; single refers to MaritalStatus = 'S';",
"take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null; manufactured in house refers to MakeFlag = 1",
"shipment by truck refers to Name = 'XRQ - TRUCK GROUND';",
"Vendor's selling price of a single product refers to UnitPrice;"
]
} |
{
"query": "What goods were sold to customers in accordance with sales order number 43660?",
"pos": [
"goods refers to products"
],
"neg": [
"Rejected refers rejected product in which to RejectedQty = 1",
"Profit = AVG(SUBTRACT(ListPrice, StandardCost)>100",
"products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';",
"employee exempt from collective bargaining refers to SalariedFlag = 1; highest pay rate refers to max(Rate)",
"last receipt date is August 17, 2011 refers to LastReceiptDate> = '2011-08-17 00:00:00' and LastReceiptDate < '2011-08-18 00:00:00';",
"female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;",
"high class refers to Class = 'H'; men's product refers to Style = 'M'",
"over 3 price changes refers to count(ListPrice)>3",
"SP is an abbreviation for Sales Person; PersonType = 'SP';",
"Mauritius Rupee is name of currency"
]
} |
{
"query": "How much is the tax amount of the purchase order with the biggest tax amount? Indicate the purchase order ID.",
"pos": [
"tax amount refers to TaxAmt; biggest tax amount refers to MAX(TaxAmt);"
],
"neg": [
"highest rating refers to Rating = 5; high class refers to Class = 'H'; men's product refers to Style = 'M'",
"Profit = SUBTRACT(ListPrice, StandardCost); the highest rating in review refers to Rating = 5",
"CurrentFlag = 1 refers to the active status of employees; Percentage = Divide (Count (BusinessEntityID (CurrentFlag = 1 & VacationHours >20 & SickLeaveHours > 10)), Count (BusinessEntityID (CurrentFlag = 1 & SickLeaveHours>10))) * 100;",
"If Name = \"+\" in the value from SalesTaxRate, it means this sales are charged by multiple types of tax; Quebec refers to the name of State Province",
"ModifiedDate between'2014-09-12 00:00:00' and '2014-09-12 23:59:59';",
"Sales people refer to PersonType = 'SP'; projected yearly sales refers to SalesQuota",
"more than 10 sick leave hours refers to SickLeaveHours>10; pay rate over 35 refers to Rate>35;",
"average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;",
"sales order for 32 units refers to OrderQty = 32",
"High quality refers to the product's quality class, therefore Class = 'H'; the lowest transacted quantity refers to Quantity = 1"
]
} |
{
"query": "How many salespersons haven't met quota?",
"pos": [
"salesperson that haven't met the quota refers to Bonus = 0;"
],
"neg": [
"their home address as their address refers to AddressTypeID = 2; address corresponds to the shipping address refers to AddressTypeID = 5",
"store contact refers to PersonType = 'SC'; year(EndDate)>2007 and year(StartDate)<2007;",
"poor credit rating means bad credit; CreditRating = 5; Business number refers to BusinessEntityID",
"Order Reference Number refers to ReferenceOrderID",
"Accountant is a job title; first hired = MIN(HireDate)",
"projected yearly sales quota refers to SalesQuota; projected yearly sales quota in 2013 refers to year(QuotaDate) = 2013; percentage = (MULTIPLY(DIVIDE(SUM(Bonus)), (SUM(SalesQuota))) as percentage;",
"weight in pounds refers to WeightUnitMeasureCode = 'LB';",
"highest amount of difference between the ordered quantity and actual quantity received in a single purchase order refers to MAX(SUBTRACT(OrderQty, ReceivedQty));",
"product number = productID",
"profit = SUBTRACT(ListPrice, StandardCost);"
]
} |
{
"query": "List down the email address of female single employees.",
"pos": [
"female refers to Gender = 'F'; single refers to MaritalStatus = 'S';"
],
"neg": [
"production technician is a job title; below average rate refers to Rate<AVG(Rate);",
"business id refers to BusinessEntityID;",
"Product with the lowest rating refers to the rating\ngiven by the\nreviewer where Rating = 1",
"take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null",
"mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5",
"year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';",
"Highest year to date sales refers to Max(SalesYTD);",
"Quantity more than 10,000 pieces refers to Quantity>10000; selling price refers to ListPrice",
"Catgo Transport 5 is a name of shipping method; OrderDate = '2011-12-14'; total shipment cost = SUM(Freight);",
"projected sales quota refers to SalesQuota; projected sales quota in 2013 refers to year(QuotaDate) = 2013;"
]
} |
{
"query": "List all the non-sales employees in ascending order of its business entitty ID.",
"pos": [
"non-sales employee refers to PersonType = 'EM'"
],
"neg": [
"amount to be paid refers to TotalDue;",
"employees refers to BusinessEntityID; most unused sick leave refers to MAX(SickLeaveHours); position title refers to JobTitle",
"Salespeople refers to PersonType = 'SP'",
"Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'",
"quantities not greater than 3 refers to OrderQty<3; discount of 0.2 refers to UnitPriceDiscount = 0.2; percentage = DIVIDE(count(SalesOrderID(OrderQty<3 & UnitPriceDiscount = 0.2)), count(SalesOrderID))*100%",
"employees that submitted resume to Human Resource Department and got hired refers to BusinessEntittyID NOT null;",
"product is mnanufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;",
"Doesn't have a State Province Code refers to IsOnlyStateProvinceFlag = 1 where StateProvinceCode is unavailable",
"net profit = Subtract(LastReceiptCost, StandardPrice);",
"product that are purchased refers to MakeFlag = 0; never received highest rating refers to Rating! = 5\n\n"
]
} |
{
"query": "What is the price for the AWC Logo Cap?",
"pos": [
"price refers to ListPrice; price of 3 products = MULTIPLY(ListPrice, 3); Lock Washer 6 is a name of a product;"
],
"neg": [
"not recommended refers to PreferredVendorStatus = 0;",
"current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100%",
"Saved in English refers to product description written in English where Culture.name = 'English'",
"married refers to MaritalStatus = M; highest pay frequency refers to PayFrequency = 2",
"Document Control Assistant refers to the JobTitle = 'Document Control Assistant'; born on 1975/12/25 refers to BirthDate = '1975-12-25'; private documents indicate that DocumentSummary is null",
"288th sales person refers to BusinessEntityID = 288; predited annual sales refers to SalesQuota; actual sales refers to SalesYTD; difference = Substract(SalesQuota(BusinessEntityID(288))), (SalesYTD(BusinessEntityID(288)));",
"store contact refers to PersonType = 'SC';",
"card that expires in 2007 refers to ExpYear = 2007;",
"hired in 2009 refers to year(HireDate) = 2009",
"average selling price = divide(sum(StandardPrice), count(BusinessEntityID))"
]
} |
{
"query": "How many products using \"roadster_black_small.gif\" as the thumbnail photo?",
"pos": [
"products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';"
],
"neg": [
"Sales and Marketing is group name of a department",
"married refers to MaritalStatus = M; highest pay frequency refers to PayFrequency = 2",
"Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'",
"product with large photo refers to LargePhoto NOT null;",
"Vendor's selling price of a single product refers to UnitPrice;",
"profit = MULTIPLY(SUBTRACT(ListPrice, Standardcost)), (Quantity)));",
"proportion = DIVIDE(SUM(Name = 'UK')), (COUNT(SalesOrderID))) as count;",
"home manufactured refers to MakeFlag = 1; average rating = divide(sum(Rating), count(ProductReview))",
"where the person live refers addresstype.Name = 'Home'",
"highest selling price refers to MAX(ListPrice);"
]
} |
{
"query": "How many employees working in the Engineering Department in 2007 would have their credit cards expired in the same year?",
"pos": [
"year(StartDate) 2007; year of credit card expiration refers to ExpYear; ExpYear = 2007;"
],
"neg": [
"Highest year to date sales refers to Max(SalesYTD);",
"Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate",
"order refers to SalesOrderID",
"weight in pounds refers to WeightUnitMeasureCode = 'LB';",
"days to end a work order = SUBTRACT(ActualEndDate, ActualStartDate);",
"Night shift refers to Name = 'Night';",
"mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5",
"Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0",
"vendor's selling price refers to StandardPrice",
"resellers refers to Category = 'Reseller';"
]
} |
{
"query": "Which is a high quality product but with the lowest transacted quantity?",
"pos": [
"High quality refers to the product's quality class, therefore Class = 'H'; the lowest transacted quantity refers to Quantity = 1"
],
"neg": [
"profit = SUBTRACT(ListPrice, StandardCost);",
"mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5",
"least number of sick leave refers to min(SickLeaveHours); PayFrequency = 1 means ‘Salary received monthly’; PayFrequency = 2 means ‘Salary received biweekly';",
"Vendor's selling price of a single product refers to UnitPrice;",
"where the person live refers addresstype.Name = 'Home'",
"cost refers to StandardCost;",
"Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'",
"cost refers to StandardCost;",
"thumbnail photo file refers to ThumbnailPhotoFileName;",
"Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa"
]
} |
{
"query": "What is the sales revenue for item number 740?",
"pos": [
"business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)"
],
"neg": [
"number of products refers to OrderQty",
"LL Road Frame Sale is a description of special offer",
"AVG(Rating) = DIVIDE(SUM(rating), COUNT(ReviewerName))",
"shelves refer to shelf; down tube is a product",
"product is manufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;",
"female refers to Gender = 'F'; single refers to MaritalStatus = 'S';",
"Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate",
"highest rating refers to MAX(Rating)",
"product with large photo refers to LargePhoto NOT null;",
"France territory refers to SalesTerritory.Name = 'France';"
]
} |
{
"query": "Please list the e-mails of the reviewers who have reviewed high class.",
"pos": [
"high class refers to Class = 'H'; men's product refers to Style = 'M'"
],
"neg": [
"employee number 257 refers to EmployeeID = 257; pending shipment status refers to Status = 3",
"Do not have any work order ID means WorkOrderID is null",
"product that are purchased refers to MakeFlag = 0; never received highest rating refers to Rating! = 5\n\n",
"miinimum order quantity refers to MinOrderQty = 100",
"Canada is name of sales territory",
"shelves refer to shelf; down tube is a product",
"Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate",
"home manufactured refers to MakeFlag = 1; average rating = divide(sum(Rating), count(ProductReview))",
"weight in pounds refers to WeightUnitMeasureCode = 'LB';",
"highest pay rate refers to MAX(Rate);"
]
} |
{
"query": "What is the total shipment by \"cargo transport 5\" cost of all purchase orders created on 12/14/2011?",
"pos": [
"Catgo Transport 5 is a name of shipping method; OrderDate = '2011-12-14'; total shipment cost = SUM(Freight);"
],
"neg": [
"Next-Door Bike Store is name of a store",
"customers' name refers to ReviewerName; best possible ratings means the highest rating = 5",
"AVG(Rating) = DIVIDE(SUM(rating), COUNT(ReviewerName))",
"work order transaction refers to TransactionType = 'W';",
"Order Reference Number refers to ReferenceOrderID",
"production technician is a job title; below average rate refers to Rate<AVG(Rate);",
"poor credit rating means bad credit; CreditRating = 5; Business number refers to BusinessEntityID",
"average selling price = divide(sum(StandardPrice), count(BusinessEntityID))",
"Stocked quantity refers to StockedQty",
"Catherine Ward refers to the name of BusinessEntityID; how many letters in password for the e-mail account refers to LENGTH(PasswordHash)"
]
} |
{
"query": "Among the active employees, how many of them have a courtesy title of \"Mr\"?",
"pos": [
"active status of employees refers to CurrentFlag = 1;"
],
"neg": [
"business id refers to BusinessEntityID;",
"Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;",
"located in the Subassembly category refers to Name = 'Subassembly'",
"over 3 price changes refers to count(ListPrice)>3",
"most reviews refers to MAX(count(ProductID))\n\n",
"still need to be assembled means the assembly doesn't finish or still going on which refers to EndDate IS NULL; a depth of 2 refers to BOMLevel = 2;",
"married refers to MaritalStatus = M; highest pay frequency refers to PayFrequency = 2",
"approved refers to Status = 2; confidential document refers to DocumentSummary is null;",
"proportion = DIVIDE(SUM(Name = 'UK')), (COUNT(SalesOrderID))) as count;",
"Stocked quantity refers to StockedQty"
]
} |
{
"query": "Which sales areas are expected to have the highest yearly sales quota?",
"pos": [
"highest yearly sales quota refers to Max(SalesQuota);"
],
"neg": [
"fewest online orders refer to MIN(Quantity);",
"Product with more than 5 quantity refers to Quantity>5",
"most review refers to MAX(count(comments)); high class refers to Class = 'H'; medium class refers to Class = 'M'; low class refers to Class = 'L'",
"type of employee refers to PersonType;",
"Low quality refers to the product's quality class, therefore Class = 'L'",
"Oldest employee refers to Max ( Subtract((now())-BirthDate));",
"Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;",
"job position and job title are synonyms; full name = FirstName+MiddleName+LastName;",
"number of products refers to OrderQty",
"If Name = \"+\" in the value from SalesTaxRate, it means this sales are charged by multiple types of tax; Quebec refers to the name of State Province"
]
} |
{
"query": "What is the person's business ID with a vista credit card number \"11113366963373\"?",
"pos": [
"business id refers to BusinessEntityID"
],
"neg": [
"percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%",
"average age = AVG(subtract(year(now), year(HireDate)))",
"business id refers to BusinessEntityID",
"price refers to ListPrice; price of 3 products = MULTIPLY(ListPrice, 3); Lock Washer 6 is a name of a product;",
"Oldest employee refers to Max ( Subtract((now())-BirthDate));",
"discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);",
"full name = FirstName+MiddleName+LastName;",
"Down Tube is a name of a product;",
"High quality refers to the product's quality class, therefore Class = 'H'; the lowest transacted quantity refers to Quantity = 1",
"Product without any rejected quantity refers to RejectedQty = 0"
]
} |
{
"query": "What is the job position of the oldest employee?",
"pos": [
"Oldest employee refers to Max ( Subtract((now())-BirthDate));"
],
"neg": [
"Night shift refers to Name = 'Night';",
"profit = SUBTRACT(ListPrice, StandardCost);",
"take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null",
"shipping cost and Freight are synonyms; highest shipping cost refers to MAX(Freight);",
"price refers to ListPrice;",
"highest amount of difference between the ordered quantity and actual quantity received in a single purchase order refers to MAX(SUBTRACT(OrderQty, ReceivedQty));",
"salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10",
"goods refers to products",
"order refers to SalesOrderID",
"Married refers to MaritalStatus = 'M'; non-sales employees refer to PersonType = 'EM'"
]
} |
{
"query": "Provide all the transactions whereby the quantiy is more than 10,000 pieces. State the product name and the selling price.",
"pos": [
"Quantity more than 10,000 pieces refers to Quantity>10000; selling price refers to ListPrice"
],
"neg": [
"least number of sick leave refers to min(SickLeaveHours); PayFrequency = 1 means ‘Salary received monthly’; PayFrequency = 2 means ‘Salary received biweekly';",
"mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5",
"profit = SUBTRACT(ListPrice, StandardCost);",
"married refers to MaritalStatus = M; highest pay frequency refers to PayFrequency = 2",
"take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null",
"profit = SUBTRACT(ListPrice, StandardCost);",
"order refers to SalesOrderID",
"over 3 price changes refers to count(ListPrice)>3",
"active status of employees refers to CurrentFlag = 1; Male refers to Gender = 'M'; highest frequency refers to PayFrequency = 2;",
"percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%"
]
} |
{
"query": "How many location IDs have actual resource hours of 2?",
"pos": [
"actual resource hours of 2 refers to ActualResourceHrs = 2"
],
"neg": [
"Male refers to Gender = 'M'; married refers to MaritalStatus = 'M'; oldest refers to Min(BirthDate);",
"profit on net = subtract(LastReceiptCost, StandardPrice); best profit on net refers to max(subtract(LastReceiptCost, StandardPrice))",
"number of products refers to OrderQty",
"products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';",
"High quality refers to the product's quality class, therefore Class = 'H'",
"LL Road Frame Sale is a description of special offer",
"handling damage is descrription of manufacturing failure which refers to ScrapReason.Name",
"number of product rejected refers to ScrapedQty; trim length that is too long refers to scrap reason where Name = 'Trim length too long'",
"shelves refer to shelf; down tube is a product",
"mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))"
]
} |
{
"query": "Where is the address 15873 located, in what city and state? Does that city belong to a province where the code exists?",
"pos": [
"Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;"
],
"neg": [
"Alex refers to FirstName = 'Alex'; single refers to MaritalStatus = 'S'",
"thumbnail photo file refers to ThumbnailPhotoFileName;",
"mountain product line refers to ProductLine = 'M'",
"assembly lines that are not finished refers to EndDate = null",
"highest selling price refers to MAX(ListPrice);",
"projected yearly sales quota refers to SalesQuota; projected yearly sales quota in 2013 refers to year(QuotaDate) = 2013; percentage = (MULTIPLY(DIVIDE(SUM(Bonus)), (SUM(SalesQuota))) as percentage;",
"PreferredVendorStatus = 1 means 'Do not use if another vendor is available'; CreditRating = 2 means 'Preferred over other vendors supplying the same product'",
"cost refers to StandardCost;",
"Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0",
"Married refers to MaritalStatus = 'M'; non-sales employees refer to PersonType = 'EM'"
]
} |
{
"query": "Please list the top 3 house-manufactured products with the highest average rating.",
"pos": [
"home manufactured refers to MakeFlag = 1; average rating = divide(sum(Rating), count(ProductReview))"
],
"neg": [
"documents pending approval refers to Status = 1",
"Department refers to Name where GroupName = 'Executive General and Administration'",
"year of credit card expiration refers to ExpYear;",
"assembly lines that are not finished refers to EndDate = null",
"BirthDate<'1980-01-01'; single refers to MaritalStatus = 'S' or null;",
"maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);",
"Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'",
"Saved in English refers to product description written in English where Culture.name = 'English'",
"began work in 2009 or later refers to StartDate> = 2009;",
"Pre assembly quantity refers to PerAssemblyQty"
]
} |
{
"query": "What is the average selling price of different vendors of the product Hex Nut 5?",
"pos": [
"average selling price = divide(sum(StandardPrice), count(BusinessEntityID))"
],
"neg": [
"Rejected refers rejected product in which to RejectedQty = 1",
"sales order for 32 units refers to OrderQty = 32",
"Canada is name of a sales territory",
"profit on net = SUBTRACT(LastReceiptCost, StandardPrice);",
"business along with their IDs = BusinessEntityID; Cellphones refers to PhoneNumberType.name = ‘cell’",
"most reviews refers to MAX(count(ProductID))\n\n",
"profit on net = subtract(LastReceiptCost, StandardPrice); best profit on net refers to max(subtract(LastReceiptCost, StandardPrice))",
"Profit = SUBTRACT(ListPrice, StandardCost); the highest rating in review refers to Rating = 5",
"last receipt date is August 17, 2011 refers to LastReceiptDate> = '2011-08-17 00:00:00' and LastReceiptDate < '2011-08-18 00:00:00';",
"goods refers to products"
]
} |
{
"query": "Among the salable products from the mountain product line, how many of them have the most reviews?",
"pos": [
"salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'"
],
"neg": [
"Oldest employee refers to Max ( Subtract((now())-BirthDate));",
"cost refers to StandardCost;",
"assembly lines that are not finished refers to EndDate = null",
"Lightest product refers to Min(Weight); profit if they sell 10 items refers to Subtract (ListPrice , StandardCost) *10;",
"CurrentFlag = 1 refers to the active status of employees; Percentage = Divide (Count (BusinessEntityID (CurrentFlag = 1 & VacationHours >20 & SickLeaveHours > 10)), Count (BusinessEntityID (CurrentFlag = 1 & SickLeaveHours>10))) * 100;",
"store contact refers to PersonType = 'SC'; year(EndDate)>2007 and year(StartDate)<2007;",
"take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null",
"order refers to SalesOrderID",
"Sales and Marketing is group name of a department",
"business id refers to BusinessEntityID;"
]
} |
{
"query": "What is the product description of Headset Ball Bearings?",
"pos": [
"Headset Ball Bearings is name of a product"
],
"neg": [
"ModifiedDate between'2014-09-12 00:00:00' and '2014-09-12 23:59:59';",
"product is manufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;",
"Started selling in 2013 refers to year(SellStartDate) = 2013;",
"number of product rejected refers to ScrapedQty; trim length that is too long refers to scrap reason where Name = 'Trim length too long'",
"percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%",
"seasonal discount is a type of special offer; discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);",
"days to end a work order = SUBTRACT(ActualEndDate, ActualStartDate);",
"geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;",
"type of employee refers to PersonType;",
"Information Service is a name of department;"
]
} |
{
"query": "State the product name, product line, rating and the selling price of product with the lowest rating.",
"pos": [
"Product with the lowest rating refers to the rating\ngiven by the\nreviewer where Rating = 1"
],
"neg": [
"price refers to ListPrice;",
"average age = AVG(subtract(year(now), year(HireDate)))",
"days to end a work order = SUBTRACT(ActualEndDate, ActualStartDate);",
"employees refers to BusinessEntityID; most unused sick leave refers to MAX(SickLeaveHours); position title refers to JobTitle",
"employee exempt from collective bargaining refers to SalariedFlag = 1; highest pay rate refers to max(Rate)",
"France territory refers to SalesTerritory.Name = 'France';",
"shelves refer to shelf; down tube is a product",
"TransactionDate BETWEEN '2013-08-01' AND '2013-08-30'; sold in refers to TransactionType = 'S' which means SalesOrder;",
"shipping address = AddressLine1+AddressLine2+City;",
"production technician is a job title; below average rate refers to Rate<AVG(Rate);"
]
} |
{
"query": "How long does it take for the business to receive the item it has purchased? Who is the vendor for business number 1496?",
"pos": [
"business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime"
],
"neg": [
"Average = Divide(Sum(Substract(year(@today),year(BirthDate))),Count(BusinessEntityID) by each Department ID; youngest employee refers to Min(BirthDate);",
"Accountant is a job title; first hired = MIN(HireDate)",
"Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate",
"SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate;",
"full name = FirstName+MiddleName+LastName; Production Technician - WC50 is a job title;",
"married refers to MaritalStatus = 'M'; male refers to Gender = 'M'; BirthDate < = '1959-12-31';",
"least number of sick leave refers to min(SickLeaveHours); PayFrequency = 1 means ‘Salary received monthly’; PayFrequency = 2 means ‘Salary received biweekly';",
"employee exempt from collective bargaining refers to SalariedFlag = 1; highest pay rate refers to max(Rate)",
"Product with the lowest rating refers to the rating\ngiven by the\nreviewer where Rating = 1",
"highest yearly sales quota refers to Max(SalesQuota);"
]
} |
{
"query": "To the products which could make the profit as 21.9037, what were their list price after October of 2012?",
"pos": [
"Profit as 82.41 = SUTRACT(ListPrice, StandardCost); May of 2012 refers to StartDate = '2012-05'"
],
"neg": [
"profit = SUBTRACT(ListPrice, StandardCost);",
"High quality refers to the product's quality class, therefore Class = 'H'; the lowest transacted quantity refers to Quantity = 1",
"employees that submitted resume to Human Resource Department and got hired refers to BusinessEntittyID NOT null;",
"SP is an abbreviation for Sales Person; PersonType = 'SP';",
"card that expires in 2007 refers to ExpYear = 2007;",
"Product with the lowest rating refers to the rating\ngiven by the\nreviewer where Rating = 1",
"home manufactured refers to MakeFlag = 1; average rating = divide(sum(Rating), count(ProductReview))",
"purchase orders refers to TransactionType = 'P'; first six months of 2012 refers to TransactionDate bewteen '2012-01-01'and '2012-06-30'; average = DIVIDE(ActualCost where TransactionType = 'P', count(TransactionID))\n",
"vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)",
"handling damage is descrription of manufacturing failure which refers to ScrapReason.Name"
]
} |
{
"query": "Where does the person with the BusinessEntityID \"5555\" live?",
"pos": [
"where the person live refers addresstype.Name = 'Home'"
],
"neg": [
"full name = FirstName+MiddleName+LastName; Production Technician - WC50 is a job title;",
"assembly lines that are not finished refers to EndDate = null",
"product maintenance documents are private refers to DocumentSummary = null",
"planned cost is different from actual cost refers to ActualCost ! = PlannedCost;",
"type of employee refers to PersonType;",
"percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;",
"High quality refers to the product's quality class, therefore Class = 'H'",
"most reviews refers to MAX(count(ProductID))\n\n",
"Catherine Ward refers to the name of BusinessEntityID; how many letters in password for the e-mail account refers to LENGTH(PasswordHash)",
"miinimum order quantity refers to MinOrderQty = 100"
]
} |
{
"query": "Which chromoly steel product model has AdventureWorks saved in English?",
"pos": [
"Saved in English refers to product description written in English where Culture.name = 'English'"
],
"neg": [
"maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);",
"Information Service is a name of department;",
"goods refers to products",
"United States refers to CountryRegionCode = 'US';",
"Mauritius Rupee is name of currency",
"employees that submitted resume to Human Resource Department and got hired refers to BusinessEntittyID NOT null;",
"percentage = DIVIDE(SUM(Name = 'Night')), (COUNT(ShiftID)) as percentage;",
"Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'",
"Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate",
"cost refers to StandardCost;"
]
} |
{
"query": "Please show the credit card number of David Bradley.",
"pos": [
"credit card number refers to CardNumber;"
],
"neg": [
"Profit = SUBTRACT(StandardPrice, LastRecipeCost)\n",
"Department refers to Name where GroupName = 'Executive General and Administration'",
"more than 10 sick leave hours refers to SickLeaveHours>10; pay rate over 35 refers to Rate>35;",
"married refers to MaritalStatus = 'M'; western name style refers to NameStyle = 0; store contact refers to PersonType = 'SC'; probability = Divide (Count (BusinessEntityID( PersonType = 'SC' & MaritalStatus = 'M')), Count (BusinessEntityID ( PersonType) & MariatlStatus = 'M'))\n",
"least amount of workers refers to MIN(count(DepartmentID));",
"Down Tube is a name of a product;",
"Rejected refers rejected product in which to RejectedQty = 1",
"Saved in English refers to product description written in English where Culture.name = 'English'",
"projected sales quota refers to SalesQuota; projected sales quota in 2013 refers to year(QuotaDate) = 2013;",
"current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100%"
]
} |
{
"query": "Which product gets the most reviews?",
"pos": [
"most reviews refers to MAX(count(ProductID))\n\n"
],
"neg": [
"geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;",
"Male refers to Gender = 'M'; married refers to MaritalStatus = 'M'; oldest refers to Min(BirthDate);",
"purchase orders refers to TransactionType = 'P'; first six months of 2012 refers to TransactionDate bewteen '2012-01-01'and '2012-06-30'; average = DIVIDE(ActualCost where TransactionType = 'P', count(TransactionID))\n",
"Canada is name of a sales territory",
"discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);",
"miinimum order quantity refers to MinOrderQty = 100",
"Profit on net = SUBTRACT(LastReceiptCost, StandardPrice); full location = AddressLine1+AddressLine2+City+PostalCode;",
"Jill refers to the name of reviewer; HL Mountain Pedal refers to the name of the product",
"product number = productID",
"Job position and job title are synonyms; job position that was hired the most refers to MAX(COUNT(JobTitle); HireDate BETWEEN '2007-1-1' AND '2007-12-31';"
]
} |
{
"query": "Please list the website purchasing links of the vendors from whom the product Hex Nut 5 can be purchased.",
"pos": [
"website purchasing link refers to PurchasingWebServiceURL"
],
"neg": [
"Profit = SUBTRACT(ListPrice, StandardCost); the highest rating in review refers to Rating = 5",
"High quality refers to the product's quality class, therefore Class = 'H'; the lowest transacted quantity refers to Quantity = 1",
"highest amount of difference between the ordered quantity and actual quantity received in a single purchase order refers to MAX(SUBTRACT(OrderQty, ReceivedQty));",
"Vendor's selling price of a single product refers to UnitPrice;",
"mountain product line refers to ProductLine = 'M'",
"product number = productID",
"Department refers to Name where GroupName = 'Executive General and Administration'",
"not recommended refers to PreferredVendorStatus = 0;",
"price refers to ListPrice;",
"Night shift refers to Name = 'Night';"
]
} |
{
"query": "What is the name of the territory assigned to the sales person with business id \"277\"?",
"pos": [
"business id refers to BusinessEntityID"
],
"neg": [
"type of employee refers to PersonType;",
"Profit = SUBTRACT(StandardPrice, LastRecipeCost)\n",
"Sales people refer to PersonType = 'SP'; projected yearly sales refers to SalesQuota",
"weight in pounds refers to WeightUnitMeasureCode = 'LB';",
"mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))",
"employee refers to PersonType = 'EM'; Male refers to Gender = 'M'; Average = Divide( SUM(VacationHours(PersonType = 'EM'& Gender = 'M')),Count(BusinessEntityID(PersonType = 'EM' & Gender = 'M')));",
"price refers to ListPrice; highest price refers to MAX(ListPrice);",
"United States refers to CountryRegionCode = 'US';",
"highest selling price refers to MAX(ListPrice);",
"married employee refers to MaritalStatus = 'M'; less than 20 vacation hours refers to VacationHours<20"
]
} |
{
"query": "What is the current payrate of Rob Walters? Calculate the percentage increment from his previous payrate.",
"pos": [
"current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100%"
],
"neg": [
"Salespeople refers to PersonType = 'SP'",
"purchase orders refers to TransactionType = 'P'; first six months of 2012 refers to TransactionDate bewteen '2012-01-01'and '2012-06-30'; average = DIVIDE(ActualCost where TransactionType = 'P', count(TransactionID))\n",
"mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5",
"Northwest is name of SalesTerritory; US is the CountryRegionCode;",
"Pre assembly quantity refers to PerAssemblyQty",
"Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;",
"website purchasing link refers to PurchasingWebServiceURL",
"salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'",
"seasonal discount is a type of special offer; discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);",
"documents pending approval refers to Status = 1"
]
} |
{
"query": "What is the employee of company number 1's full name?",
"pos": [
"company number 1 refers to BusinessEntityId = 1; employee refers to PersonType = 'EM'; full name refers to FirstName + MiddleName + LastName"
],
"neg": [
"hired in 2009 refers to year(HireDate) = 2009",
"take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null; manufactured in house refers to MakeFlag = 1",
"Stocked quantity refers to StockedQty",
"highest selling price refers to MAX(ListPrice);",
"mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))",
"Product without any rejected quantity refers to RejectedQty = 0",
"current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100%",
"Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'",
"proportion = DIVIDE(SUM(Name = 'UK')), (COUNT(SalesOrderID))) as count;",
"customers' name refers to ReviewerName; best possible ratings means the highest rating = 5"
]
} |
{
"query": "Among the employees who are married and wish to receive e-mail promotions, how much higher is their highest pay rate from the average pay rate?",
"pos": [
"married refers to MaritalStatus = 'M'; Contact does wish to receive e-mail promotions from Adventure Works refers to EmailPromotion = 1; Average = Divide (Sum(Rate (MaritalStatus = 'M' & EmailPromotion = 1))), Count (BusinessEntityID (MaritalStatus = 'M' & EmailPromotion = 1)); MAX(Rate (MaritalStatus = 'M' & EmailPromotion = 1) - Average;"
],
"neg": [
"salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10",
"Canada is name of a sales territory",
"price refers to ListPrice; highest price refers to MAX(ListPrice);",
"job position and job title are synonyms; full name = FirstName+MiddleName+LastName;",
"Vista Card refers to CardType = 'Vista'; expire before the year 2007 refers to ExpYear< = 2006;\n\n",
"full name = FirstName+MiddleName+LastName; Production Technician - WC50 is a job title;",
"minimum order quantity refers to MinOrderQty;",
"take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null; manufactured in house refers to MakeFlag = 1",
"Night shift refers to Name = 'Night';",
"number of product rejected refers to ScrapedQty; trim length that is too long refers to scrap reason where Name = 'Trim length too long'"
]
} |
{
"query": "Who made the purchase order with the greatest total due before freight? Indicate her employee ID and calculate for his/her age when he/she was hired.",
"pos": [
"total due before freight = SUBTRACT(TotalDue, Freight); age at the time an employee was hired = SUBTRACT(HireDate, year(BirthDate);"
],
"neg": [
"highest rating refers to Rating = 5; high class refers to Class = 'H'; men's product refers to Style = 'M'",
"Document Control Assistant refers to the JobTitle = 'Document Control Assistant'; born on 1975/12/25 refers to BirthDate = '1975-12-25'; private documents indicate that DocumentSummary is null",
"full name = FirstName+MiddleName+LastName; HiredDate refers to the date the person joins the company;",
"card that expires in 2007 refers to ExpYear = 2007;",
"mountain product line refers to ProductLine = 'M'",
"Started selling in 2013 refers to year(SellStartDate) = 2013;",
"employee refers to PersonType = 'EM'; Male refers to Gender = 'M'; Average = Divide( SUM(VacationHours(PersonType = 'EM'& Gender = 'M')),Count(BusinessEntityID(PersonType = 'EM' & Gender = 'M')));",
"mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5",
"Doesn't have a State Province Code refers to IsOnlyStateProvinceFlag = 1 where StateProvinceCode is unavailable",
"actual resource hours of 2 refers to ActualResourceHrs = 2"
]
} |
{
"query": "Please list the top 3 discounts with the highest discount percentage and fall under the reseller category.",
"pos": [
"discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);"
],
"neg": [
"married refers to MaritalStatus = 'M'; western name style refers to NameStyle = 0; store contact refers to PersonType = 'SC'; probability = Divide (Count (BusinessEntityID( PersonType = 'SC' & MaritalStatus = 'M')), Count (BusinessEntityID ( PersonType) & MariatlStatus = 'M'))\n",
"CurrentFlag = 1 refers to the active status of employees; Percentage = Divide (Count (BusinessEntityID (CurrentFlag = 1 & VacationHours >20 & SickLeaveHours > 10)), Count (BusinessEntityID (CurrentFlag = 1 & SickLeaveHours>10))) * 100;",
"married refers to MaritalStatus = 'M'; Contact does wish to receive e-mail promotions from Adventure Works refers to EmailPromotion = 1; Average = Divide (Sum(Rate (MaritalStatus = 'M' & EmailPromotion = 1))), Count (BusinessEntityID (MaritalStatus = 'M' & EmailPromotion = 1)); MAX(Rate (MaritalStatus = 'M' & EmailPromotion = 1) - Average;",
"product number = productID",
"compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product",
"tax amount refers to TaxAmt; biggest tax amount refers to MAX(TaxAmt);",
"store contact refers to PersonType = 'SC';",
"in centimeter refers to SizeUnitMeasureCode = 'CM';",
"hired in 2009 refers to year(HireDate) = 2009",
"highest amount of difference between the ordered quantity and actual quantity received in a single purchase order refers to MAX(SUBTRACT(OrderQty, ReceivedQty));"
]
} |
{
"query": "Please list the top three employees with the most unused sick leave along with their position titles.",
"pos": [
"employees refers to BusinessEntityID; most unused sick leave refers to MAX(SickLeaveHours); position title refers to JobTitle"
],
"neg": [
"CurrentFlag = 1 refers to the active status of employees; Percentage = Divide (Count (BusinessEntityID (CurrentFlag = 1 & VacationHours >20 & SickLeaveHours > 10)), Count (BusinessEntityID (CurrentFlag = 1 & SickLeaveHours>10))) * 100;",
"their home address as their address refers to AddressTypeID = 2; address corresponds to the shipping address refers to AddressTypeID = 5",
"high class refers to Class = 'H'; men's product refers to Style = 'M'",
"percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%",
"Product with more than 5 quantity refers to Quantity>5",
"Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate",
"employee refers to PersonType = 'EM'; Male refers to Gender = 'M'; Average = Divide( SUM(VacationHours(PersonType = 'EM'& Gender = 'M')),Count(BusinessEntityID(PersonType = 'EM' & Gender = 'M')));",
"approved refers to Status = 2; confidential document refers to DocumentSummary is null;",
"highest pay rate refers to MAX(Rate);",
"production technician is a job title; below average rate refers to Rate<AVG(Rate);"
]
} |
{
"query": "Which job title has the lowest pay?",
"pos": [
"lowest pay refers to min(Rate);"
],
"neg": [
"located in the Subassembly category refers to Name = 'Subassembly'",
"profit = SUBTRACT(ListPrice, StandardCost);",
"high class refers to Class = 'H'; men's product refers to Style = 'M'",
"thumbnail photo file refers to ThumbnailPhotoFileName;",
"sales order for 32 units refers to OrderQty = 32",
"Mauritius Rupee is name of currency",
"female refers to Gender = 'F'; single refers to MaritalStatus = 'S';",
"in centimeter refers to SizeUnitMeasureCode = 'CM';",
"non-sales employee refers to PersonType = 'EM'",
"product with large photo refers to LargePhoto NOT null;"
]
} |
{
"query": "What is the highest vendor's selling price for Hex Nut 5?",
"pos": [
"vendor's selling price refers to StandardPrice"
],
"neg": [
"manufactured in house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10",
"home manufactured refers to MakeFlag = 1; average rating = divide(sum(Rating), count(ProductReview))",
"product number = productID",
"full name = FirstName+MiddleName+LastName; Production Technician - WC50 is a job title;",
"Australia Bike Retailer is name of vendor",
"Catherine Ward refers to the name of BusinessEntityID; how many letters in password for the e-mail account refers to LENGTH(PasswordHash)",
"Hex Nut 5 is name of a product",
"StartDate BETWEEN '2009-01-01' AND '2009-12-31';",
"maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);",
"amount to be paid refers to TotalDue;"
]
} |
{
"query": "When did the company hired its first Accountant?",
"pos": [
"Accountant is a job title; first hired = MIN(HireDate)"
],
"neg": [
"active status of employees refers to CurrentFlag = 1;",
"profit = MULTIPLY(SUBTRACT(ListPrice, Standardcost)), (Quantity)));",
"male refers to Gender = 'M'; female refers to Gender = 'F'; difference in average rate = DIVIDE(AVG(Rate where Gender = 'F')), (AVG(Rate where Gender = 'M'))) as diff;",
"store contact refers to PersonType = 'SC'; year(EndDate)>2007 and year(StartDate)<2007;",
"salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'",
"hired in 2009 refers to year(HireDate) = 2009",
"lowest pay refers to min(Rate);",
"their home address as their address refers to AddressTypeID = 2; address corresponds to the shipping address refers to AddressTypeID = 5",
"SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate;",
"began work in 2009 or later refers to StartDate> = 2009;"
]
} |
{
"query": "Please list the email adresses of the reviewers who have given the lowest rating to the product HL Mountain Pedal.",
"pos": [
"lowest rating refers to Rating = 1"
],
"neg": [
"increased their current year sales by more than 60% refers to\nDIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6",
"full name = FirstName+MiddleName+LastName;",
"Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;",
"highest rating refers to MAX(Rating)",
"tax applied to retail transaction refers to Taxtype = 1; sales that are charged with multiple types of tax refers to NAME LIKE '%+%';",
"shipping cost and Freight are synonyms; highest shipping cost refers to MAX(Freight);",
"Low quality refers to the product's quality class, therefore Class = 'L'",
"Canada is name of a sales territory",
"Started selling in 2013 refers to year(SellStartDate) = 2013;",
"average age = AVG(subtract(year(now), year(HireDate)))"
]
} |
{
"query": "What is the shipping address for the sales order \"43873\"?",
"pos": [
"shipping address = AddressLine1+AddressLine2+City;"
],
"neg": [
"Production Technicians refer to the JobTitle = 'Production Technician%'; single refers to MaritalStatus = 'S'; Vendor contact refers to PersonType = 'VC'",
"number of product rejected refers to ScrapedQty; trim length that is too long refers to scrap reason where Name = 'Trim length too long'",
"Male refers to Gender = 'M'; married refers to MaritalStatus = 'M'; oldest refers to Min(BirthDate);",
"Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;",
"most reviews refers to MAX(count(ProductID))\n\n",
"active status of employees refers to CurrentFlag = 1;",
"proportion = DIVIDE(SUM(Name = 'UK')), (COUNT(SalesOrderID))) as count;",
"credit card number refers to CardNumber;",
"cost refers to StandardCost;",
"most review refers to MAX(count(comments)); high class refers to Class = 'H'; medium class refers to Class = 'M'; low class refers to Class = 'L'"
]
} |
{
"query": "Among the sales people who achieved projected sales quota 2013, is there any person from territory ID 1? If yes, state the business entity ID.",
"pos": [
"projected sales quota refers to SalesQuota; projected sales quota in 2013 refers to year(QuotaDate) = 2013;"
],
"neg": [
"production technician is a job title; below average rate refers to Rate<AVG(Rate);",
"Sales and Marketing is group name of a department",
"most reviews refers to MAX(count(ProductID))\n\n",
"hired in 2009 refers to year(HireDate) = 2009",
"website purchasing link refers to PurchasingWebServiceURL",
"salesperson that haven't met the quota refers to Bonus = 0;",
"price refers to ListPrice;",
"active status of employees refers to CurrentFlag = 1;",
"business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)",
"Headset Ball Bearings is name of a product"
]
} |
{
"query": "If a married employee has a western name style, what is the probability of him or her working as a store contact?",
"pos": [
"married refers to MaritalStatus = 'M'; western name style refers to NameStyle = 0; store contact refers to PersonType = 'SC'; probability = Divide (Count (BusinessEntityID( PersonType = 'SC' & MaritalStatus = 'M')), Count (BusinessEntityID ( PersonType) & MariatlStatus = 'M'))\n"
],
"neg": [
"percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;",
"second-lowest rating refers to Rating = 2; high-quality class product refers to Class = 'H'; length of time it takes the company to manufacture a product refers to DaysToManufacture;",
"hired in 2009 refers to year(HireDate) = 2009",
"vendor's selling price refers to StandardPrice",
"High quality refers to the product's quality class, therefore Class = 'H'; the lowest transacted quantity refers to Quantity = 1",
"Product with more than 5 quantity refers to Quantity>5",
"website purchasing link refers to PurchasingWebServiceURL",
"business id refers to BusinessEntityID",
"average age = AVG(subtract(year(now), year(HireDate)))",
"Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'"
]
} |
{
"query": "Compare the average pay rate of male and female employees.",
"pos": [
"male refers to Gender = 'M'; female refers to Gender = 'F'; difference in average rate = DIVIDE(AVG(Rate where Gender = 'F')), (AVG(Rate where Gender = 'M'))) as diff;"
],
"neg": [
"Catgo Transport 5 is a name of shipping method; OrderDate = '2011-12-14'; total shipment cost = SUM(Freight);",
"employee refers to PersonType = 'EM'; Male refers to Gender = 'M'; Average = Divide( SUM(VacationHours(PersonType = 'EM'& Gender = 'M')),Count(BusinessEntityID(PersonType = 'EM' & Gender = 'M')));",
"mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))",
"fewest online orders refer to MIN(Quantity);",
"projected yearly sales quota refers to SalesQuota; projected yearly sales quota in 2013 refers to year(QuotaDate) = 2013; percentage = (MULTIPLY(DIVIDE(SUM(Bonus)), (SUM(SalesQuota))) as percentage;",
"married refers to MaritalStatus = 'M'; Contact does wish to receive e-mail promotions from Adventure Works refers to EmailPromotion = 1; Average = Divide (Sum(Rate (MaritalStatus = 'M' & EmailPromotion = 1))), Count (BusinessEntityID (MaritalStatus = 'M' & EmailPromotion = 1)); MAX(Rate (MaritalStatus = 'M' & EmailPromotion = 1) - Average;",
"non-sales employee refers to PersonType = 'EM'",
"credit card number refers to CardNumber;",
"minimum inventory quantity refers to SafetyStockLevel; chainring bolts is a name of product;",
"compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product"
]
} |
{
"query": "Between Northwest and Southeast of the United States, which territory one recorded the highest amount of sales last year?",
"pos": [
"United States refers to CountryRegionCode = 'US';"
],
"neg": [
"store contact refers to PersonType = 'SC';",
"Canada is name of a sales territory",
"product is mnanufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;",
"price refers to ListPrice; highest price refers to MAX(ListPrice);",
"Located refers to the total address of the entity that comprises city, addressline1, addressline2",
"minimum inventory quantity refers to SafetyStockLevel; chainring bolts is a name of product;",
"least number of sick leave refers to min(SickLeaveHours); PayFrequency = 1 means ‘Salary received monthly’; PayFrequency = 2 means ‘Salary received biweekly';",
"thumbnail photo file refers to ThumbnailPhotoFileName;",
"goods refers to products",
"Sales and Marketing is group name of a department"
]
} |
{
"query": "Please list the total number of companies with a commission percentage of 0.018 or above, along with each company's assigned geographical location.",
"pos": [
"geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;"
],
"neg": [
"288th sales person refers to BusinessEntityID = 288; predited annual sales refers to SalesQuota; actual sales refers to SalesYTD; difference = Substract(SalesQuota(BusinessEntityID(288))), (SalesYTD(BusinessEntityID(288)));",
"vendor's selling price refers to StandardPrice",
"business id refers to BusinessEntityID",
"projected yearly sales quota refers to SalesQuota; projected yearly sales quota in 2013 refers to year(QuotaDate) = 2013; percentage = (MULTIPLY(DIVIDE(SUM(Bonus)), (SUM(SalesQuota))) as percentage;",
"year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';",
"Bike refers to the name of the product category, therefore ProductCategoryID = 1",
"salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'",
"profit = subtract(ListPrice, StandardCost); the depth the component from its parent refers to BOMLevel;",
"highest pay rate refers to MAX(Rate);",
"business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime"
]
} |
{
"query": "What is the thumbnail photo file for the product with the id \"979\"?",
"pos": [
"thumbnail photo file refers to ThumbnailPhotoFileName;"
],
"neg": [
"Production Technicians refer to the JobTitle = 'Production Technician%'; single refers to MaritalStatus = 'S'; Vendor contact refers to PersonType = 'VC'",
"Night shift refers to Name = 'Night';",
"percentage = DIVIDE(SUM(Name = 'Night')), (COUNT(ShiftID)) as percentage;",
"most reviews refers to MAX(count(ProductID))\n\n",
"ModifiedDate between'2014-09-12 00:00:00' and '2014-09-12 23:59:59';",
"company number 1 refers to BusinessEntityId = 1; employee refers to PersonType = 'EM'; full name refers to FirstName + MiddleName + LastName",
"female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;",
"SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate;",
"discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);",
"year of credit card expiration refers to ExpYear;"
]
} |
{
"query": "What is the forename and birthdate of person number 18?",
"pos": [
"person number 18 refers to BusinessEntityID = 18; forename refers to FirstName"
],
"neg": [
"Accountant is a job title; first hired = MIN(HireDate)",
"current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100%",
"product maintenance documents are private refers to DocumentSummary = null",
"active employee refers to CurrentFlag = 1; Rate< = 30;",
"Married refers to MaritalStatus = 'M'; non-sales employees refer to PersonType = 'EM'",
"Purchase order with order quantity of 5000 or more refers to OrderQty> = 5000",
"percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%",
"product is manufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;",
"Job position and job title are synonyms; job position that was hired the most refers to MAX(COUNT(JobTitle); HireDate BETWEEN '2007-1-1' AND '2007-12-31';",
"quantities not greater than 3 refers to OrderQty<3; discount of 0.2 refers to UnitPriceDiscount = 0.2; percentage = DIVIDE(count(SalesOrderID(OrderQty<3 & UnitPriceDiscount = 0.2)), count(SalesOrderID))*100%"
]
} |
{
"query": "What category do Road Frames fall into?",
"pos": [
"Road Frames is a name of product subcategory"
],
"neg": [
"Purchase order with order quantity of 5000 or more refers to OrderQty> = 5000",
"Full address refers to AddressLine1+AddressLine2; business number 24 refers to BusinessEntityID = '24'",
"most review refers to MAX(count(comments)); high class refers to Class = 'H'; medium class refers to Class = 'M'; low class refers to Class = 'L'",
"mountain product line refers to ProductLine = 'M'",
"thumbnail photo file refers to ThumbnailPhotoFileName;",
"Mauritius Rupee is name of currency",
"card that expires in 2007 refers to ExpYear = 2007;",
"Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;",
"Headset Ball Bearings is name of a product",
"Night shift refers to Name = 'Night';"
]
} |
{
"query": "List all products with minimum order quantity of 100 and order them by product name in descending order.",
"pos": [
"miinimum order quantity refers to MinOrderQty = 100"
],
"neg": [
"located in the Subassembly category refers to Name = 'Subassembly'",
"days to end a work order = SUBTRACT(ActualEndDate, ActualStartDate);",
"approved refers to Status = 2; confidential document refers to DocumentSummary is null;",
"highest rating refers to MAX(Rating)",
"credit card number refers to CardNumber; employees who left the department refers to EndDate NOT null; Engineering Department is a name of department;",
"website purchasing link refers to PurchasingWebServiceURL",
"France territory refers to SalesTerritory.Name = 'France';",
"least amount of workers refers to MIN(count(DepartmentID));",
"not recommended refers to PreferredVendorStatus = 0;",
"product number = productID"
]
} |
{
"query": "How much is the total bonus received by sales person and what is the percentage of it against the projected yearly sales quota in 2013?",
"pos": [
"projected yearly sales quota refers to SalesQuota; projected yearly sales quota in 2013 refers to year(QuotaDate) = 2013; percentage = (MULTIPLY(DIVIDE(SUM(Bonus)), (SUM(SalesQuota))) as percentage;"
],
"neg": [
"store contact refers to PersonType = 'SC';",
"highest rating refers to Rating = 5; high class refers to Class = 'H'; men's product refers to Style = 'M'",
"Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;",
"vendor's selling price refers to StandardPrice",
"married employee refers to MaritalStatus = 'M'; less than 20 vacation hours refers to VacationHours<20",
"year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';",
"TransactionDate BETWEEN '2013-08-01' AND '2013-08-30'; sold in refers to TransactionType = 'S' which means SalesOrder;",
"actual resource hours of 2 refers to ActualResourceHrs = 2",
"net profit = Subtract(LastReceiptCost, StandardPrice);",
"shipping address = AddressLine1+AddressLine2+City;"
]
} |
{
"query": "What is the average profit of all the products from the Clothing category?",
"pos": [
"average profit = DIVIDE(SUM(SUBTRACT(ListPrice, StandardCost))), (COUNT(ProductSubcategoryID))));"
],
"neg": [
"weight in pounds refers to WeightUnitMeasureCode = 'LB';",
"If Name = \"+\" in the value from SalesTaxRate, it means this sales are charged by multiple types of tax; Quebec refers to the name of State Province",
"maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);",
"Next-Door Bike Store is name of a store",
"salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'",
"Purchase order with order quantity of 5000 or more refers to OrderQty> = 5000",
"Job position and job title are synonyms; job position that was hired the most refers to MAX(COUNT(JobTitle); HireDate BETWEEN '2007-1-1' AND '2007-12-31';",
"employee exempt from collective bargaining refers to SalariedFlag = 1; highest pay rate refers to max(Rate)",
"Profit = AVG(SUBTRACT(ListPrice, StandardCost)>100",
"male refers to Gender = 'M'; female refers to Gender = 'F'; difference in average rate = DIVIDE(AVG(Rate where Gender = 'F')), (AVG(Rate where Gender = 'M'))) as diff;"
]
} |
{
"query": "How many products are there if we add all those located in the Subassembly category?",
"pos": [
"located in the Subassembly category refers to Name = 'Subassembly'"
],
"neg": [
"employee number 257 refers to EmployeeID = 257; pending shipment status refers to Status = 3",
"Profit = AVG(SUBTRACT(ListPrice, StandardCost)>100",
"type of employee refers to PersonType;",
"minimum inventory quantity refers to SafetyStockLevel; chainring bolts is a name of product;",
"Doesn't have a State Province Code refers to IsOnlyStateProvinceFlag = 1 where StateProvinceCode is unavailable",
"Male refers to Gender = 'M'; married refers to MaritalStatus = 'M'; oldest refers to Min(BirthDate);",
"full name = FirstName+MiddleName+LastName; Production Technician - WC50 is a job title;",
"employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;",
"profit on net = SUBTRACT(LastReceiptCost, StandardPrice);",
"SP is an abbreviation for Sales Person; PersonType = 'SP';"
]
} |
{
"query": "What's the profit for the Freewheel?",
"pos": [
"SUBTRACT(LastReceiptCost, StandardPrice) for ProductID where name = 'Freewheel'"
],
"neg": [
"profit = SUBTRACT(ListPrice, StandardCost);",
"quantities not greater than 3 refers to OrderQty<3; discount of 0.2 refers to UnitPriceDiscount = 0.2; percentage = DIVIDE(count(SalesOrderID(OrderQty<3 & UnitPriceDiscount = 0.2)), count(SalesOrderID))*100%",
"full name = FirstName+MiddleName+LastName; Production Technician - WC50 is a job title;",
"LL Road Frame Sale is a description of special offer",
"active status of employees refers to CurrentFlag = 1;",
"business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime",
"Production Technicians refer to the JobTitle = 'Production Technician%'; single refers to MaritalStatus = 'S'; Vendor contact refers to PersonType = 'VC'",
"Sales and Marketing is group name of a department",
"year of credit card expiration refers to ExpYear;",
"employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;"
]
} |
{
"query": "What is the percentage, by number of sales order units, for orders with quantities not greater than 3 and a discount of 0.2?",
"pos": [
"quantities not greater than 3 refers to OrderQty<3; discount of 0.2 refers to UnitPriceDiscount = 0.2; percentage = DIVIDE(count(SalesOrderID(OrderQty<3 & UnitPriceDiscount = 0.2)), count(SalesOrderID))*100%"
],
"neg": [
"Started selling in 2013 refers to year(SellStartDate) = 2013;",
"average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;",
"least amount of workers refers to MIN(count(DepartmentID));",
"Alex refers to FirstName = 'Alex'; single refers to MaritalStatus = 'S'",
"LL Road Frame Sale is a description of special offer",
"salaried employee refers to SalariedFlag = 1; hired in 2007 and later refers to year(HireDate)> = 2007",
"High quality refers to the product's quality class, therefore Class = 'H'",
"TransactionDate BETWEEN '2013-08-01' AND '2013-08-30'; sold in refers to TransactionType = 'S' which means SalesOrder;",
"work order transaction refers to TransactionType = 'W';",
"Canada is name of a sales territory"
]
} |
{
"query": "What are the names of the product that has the lowest rating?",
"pos": [
"lowest rating refers to Rating = 1;"
],
"neg": [
"Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;",
"take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null",
"over 3 price changes refers to count(ListPrice)>3",
"employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;",
"vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)",
"pay rate refers to Rate; 20 years old at the time of being hired refers to SUBTRACT(year(HireDate)), (year(BirthDate))) = 20;",
"production technician is a job title; below average rate refers to Rate<AVG(Rate);",
"Vendor's selling price of a single product refers to UnitPrice;",
"active status of employees refers to CurrentFlag = 1; Male refers to Gender = 'M'; highest frequency refers to PayFrequency = 2;",
"product with large photo refers to LargePhoto NOT null;"
]
} |
{
"query": "How many employees with a pay rate of over 35 have more than 10 sick leave hours?",
"pos": [
"more than 10 sick leave hours refers to SickLeaveHours>10; pay rate over 35 refers to Rate>35;"
],
"neg": [
"in centimeter refers to SizeUnitMeasureCode = 'CM';",
"percentage = DIVIDE(SUM(Name = 'Night')), (COUNT(ShiftID)) as percentage;",
"Vista Card refers to CardType = 'Vista'; expire before the year 2007 refers to ExpYear< = 2006;\n\n",
"job position and job title are synonyms; full name = FirstName+MiddleName+LastName;",
"shipping cost and Freight are synonyms; highest shipping cost refers to MAX(Freight);",
"product with large photo refers to LargePhoto NOT null;",
"production technician is a job title; below average rate refers to Rate<AVG(Rate);",
"goods refers to products",
"not recommended refers to PreferredVendorStatus = 0;",
"minimum order quantity refers to MinOrderQty;"
]
} |
{
"query": "Calculate the average age of employee in each department and state which department has the youngest employees.",
"pos": [
"Average = Divide(Sum(Substract(year(@today),year(BirthDate))),Count(BusinessEntityID) by each Department ID; youngest employee refers to Min(BirthDate);"
],
"neg": [
"poor credit rating means bad credit; CreditRating = 5; Business number refers to BusinessEntityID",
"business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)",
"employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;",
"Vista Card refers to CardType = 'Vista'; expire before the year 2007 refers to ExpYear< = 2006;\n\n",
"mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))",
"proportion = DIVIDE(SUM(Name = 'UK')), (COUNT(SalesOrderID))) as count;",
"Sales and Marketing is group name of a department",
"shipping address = AddressLine1+AddressLine2+City;",
"highest rating refers to Rating = 5; profit = SUBTRACT(ListPrice, StandardCost);",
"product number = productID"
]
} |
{
"query": "Which geographic area does the city with the second lowest tax rate belongs to? Indicate the name of the state or province as well.",
"pos": [
"geographic area to which the city belong refers to Group;"
],
"neg": [
"Facilities Manager is a job title",
"Canada is name of a sales territory",
"percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%",
"lowest pay refers to min(Rate);",
"active status of employees refers to CurrentFlag = 1;",
"thumbnail photo file refers to ThumbnailPhotoFileName;",
"business along with their IDs = BusinessEntityID; Cellphones refers to PhoneNumberType.name = ‘cell’",
"business id refers to BusinessEntityID;",
"home manufactured refers to MakeFlag = 1; average rating = divide(sum(Rating), count(ProductReview))",
"business id refers to BusinessEntityID"
]
} |
{
"query": "Among the employees whose pay frequencies are the highest, how many of them are married?",
"pos": [
"married refers to MaritalStatus = M; highest pay frequency refers to PayFrequency = 2"
],
"neg": [
"High quality refers to the product's quality class, therefore Class = 'H'; the lowest transacted quantity refers to Quantity = 1",
"shipment by truck refers to Name = 'XRQ - TRUCK GROUND';",
"Married refers to MaritalStatus = 'M'; non-sales employees refer to PersonType = 'EM'",
"vendor's selling price refers to StandardPrice",
"married refers to MaritalStatus = 'M'; western name style refers to NameStyle = 0; store contact refers to PersonType = 'SC'; probability = Divide (Count (BusinessEntityID( PersonType = 'SC' & MaritalStatus = 'M')), Count (BusinessEntityID ( PersonType) & MariatlStatus = 'M'))\n",
"proportion = DIVIDE(SUM(Name = 'UK')), (COUNT(SalesOrderID))) as count;",
"Profit as 82.41 = SUTRACT(ListPrice, StandardCost); May of 2012 refers to StartDate = '2012-05'",
"percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;",
"company number 1 refers to BusinessEntityId = 1; employee refers to PersonType = 'EM'; full name refers to FirstName + MiddleName + LastName",
"least amount of workers refers to MIN(count(DepartmentID));"
]
} |
{
"query": "What is business number 1580's net profit?",
"pos": [
"business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)"
],
"neg": [
"Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa",
"percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%",
"SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate;",
"highest rating refers to Rating = 5; profit = SUBTRACT(ListPrice, StandardCost);",
"married employee refers to MaritalStatus = 'M'; less than 20 vacation hours refers to VacationHours<20",
"MOQ refers to minimum order quantity; MOQ of 1 refers to MinOrderQty = 1; standard cost more than 48 refers to StandardCost > 48;",
"where the person live refers addresstype.Name = 'Home'",
"cost refers to StandardCost;",
"more than 10 sick leave hours refers to SickLeaveHours>10; pay rate over 35 refers to Rate>35;",
"CurrentFlag = 1 refers to the active status of employees; Percentage = Divide (Count (BusinessEntityID (CurrentFlag = 1 & VacationHours >20 & SickLeaveHours > 10)), Count (BusinessEntityID (CurrentFlag = 1 & SickLeaveHours>10))) * 100;"
]
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.