query
stringlengths 24
325
| positive
stringlengths 1
580
| negative_1
stringlengths 6
580
| negative_2
stringlengths 1
576
| negative_3
stringlengths 1
576
| negative_4
stringlengths 1
580
| negative_5
stringlengths 1
580
| negative_6
stringlengths 1
580
| negative_7
stringlengths 5
576
| negative_8
stringlengths 1
576
| negative_9
stringlengths 1
580
| negative_10
stringlengths 1
580
|
---|---|---|---|---|---|---|---|---|---|---|---|
Calculate the total quantity of purchased product that has been prepared by employee number 257 and is in pending shipment status. | employee number 257 refers to EmployeeID = 257; pending shipment status refers to Status = 3 | 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; |
Among the employees in the Manufacturing group in 2007, how many of them are store contacts? | store contact refers to PersonType = 'SC'; year(EndDate)>2007 and year(StartDate)<2007; | 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'; |
What is the bussiness id for Mr. Hung-Fu Ting? | business id refers to BusinessEntityID; | 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 |
What is the average age of employee in Adventure Works? | average age = AVG(subtract(year(now), year(HireDate))) | 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)))); |
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. | profit = MULTIPLY(SUBTRACT(ListPrice, Standardcost)), (Quantity))); | 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'; |
What percentage of the AdventureWorks data is in Thai? | percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100% | 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; |
What is the minimum inventory quantity of Chainring Bolts? | minimum inventory quantity refers to SafetyStockLevel; chainring bolts is a name of product; | 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
DIVIDE(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; |
What is the stocked quantity of products manufactured from location ID 40? | Stocked quantity refers to StockedQty | 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
DIVIDE(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; |
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. | 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); | 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 |
What is the number of State Province of France that doesn't have a State Province Code? | Doesn't have a State Province Code refers to IsOnlyStateProvinceFlag = 1 where StateProvinceCode is unavailable | 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'; |
Which territory has the most customers as of 9/12/2014? | ModifiedDate between'2014-09-12 00:00:00' and '2014-09-12 23:59:59'; | 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; |
List all product names and its product line for all purchase order with order quantity of 5000 or more. | Purchase order with order quantity of 5000 or more refers to OrderQty> = 5000 | 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 '%+%'; |
What are the names of the vendor with the second lowest minimum order quantity? | minimum order quantity refers to MinOrderQty; | 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 |
What are the salespeople's email addresses? | Salespeople refers to PersonType = 'SP' | 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 |
What are the Department ids under the Sales and Marketing Group? | Sales and Marketing is group name of a department | 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'; |
Among the products that are purchased, how many of them have never received the highest rating? | product that are purchased refers to MakeFlag = 0; never received highest rating refers to Rating! = 5
| 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; |
What rating did Jill give for HL Mountain Pedal? | Jill refers to the name of reviewer; HL Mountain Pedal refers to the name of the product | 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
DIVIDE(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 |
Which store sales person was reently hired? Indicate his/her full name and gender. | SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate; | 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' |
List all of the credit cards that had expired by 2007. | card that expires in 2007 refers to ExpYear = 2007; | 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))
| SP is an abbreviation for Sales Person; PersonType = 'SP'; |
Among the active employees with over 10 hours of sick leave, what is the percentage of the employees with over 20 vacation hours? | 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; | 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); |
How many letters are there in Catherine Ward's e-mail account passwords? | Catherine Ward refers to the name of BusinessEntityID; how many letters in password for the e-mail account refers to LENGTH(PasswordHash) | 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; |
Please list the e-mail addresses of all the employees who wish to receive e-mail promotions from Adventureworks and selected partners. | employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 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; | 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; |
What goods were sold to customers in accordance with sales order number 43660? | goods refers to products | 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 |
How much is the tax amount of the purchase order with the biggest tax amount? Indicate the purchase order ID. | tax amount refers to TaxAmt; biggest tax amount refers to MAX(TaxAmt); | 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 |
How many salespersons haven't met quota? | salesperson that haven't met the quota refers to Bonus = 0; | 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); |
List down the email address of female single employees. | female refers to Gender = 'F'; single refers to MaritalStatus = 'S'; | 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
given by the
reviewer 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; |
List all the non-sales employees in ascending order of its business entitty ID. | non-sales employee refers to PersonType = 'EM' | 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
|
What is the price for the AWC Logo Cap? | price refers to ListPrice; price of 3 products = MULTIPLY(ListPrice, 3); Lock Washer 6 is a name of a product; | 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)) |
How many products using "roadster_black_small.gif" as the thumbnail photo? | products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif'; | 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); |
How many employees working in the Engineering Department in 2007 would have their credit cards expired in the same year? | year(StartDate) 2007; year of credit card expiration refers to ExpYear; ExpYear = 2007; | 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'; |
Which is a high quality product but with the lowest transacted quantity? | High quality refers to the product's quality class, therefore Class = 'H'; the lowest transacted quantity refers to Quantity = 1 | 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 |
What is the sales revenue for item number 740? | business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice) | 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'; |
Please list the e-mails of the reviewers who have reviewed high class. | high class refers to Class = 'H'; men's product refers to Style = 'M' | 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
| 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); |
What is the total shipment by "cargo transport 5" cost of all purchase orders created on 12/14/2011? | Catgo Transport 5 is a name of shipping method; OrderDate = '2011-12-14'; total shipment cost = SUM(Freight); | 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) |
Among the active employees, how many of them have a courtesy title of "Mr"? | active status of employees refers to CurrentFlag = 1; | 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))
| 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 |
Which sales areas are expected to have the highest yearly sales quota? | highest yearly sales quota refers to Max(SalesQuota); | 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 |
What is the person's business ID with a vista credit card number "11113366963373"? | business id refers to BusinessEntityID | 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 |
What is the job position of the oldest employee? | Oldest employee refers to Max ( Subtract((now())-BirthDate)); | 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' |
Provide all the transactions whereby the quantiy is more than 10,000 pieces. State the product name and the selling price. | Quantity more than 10,000 pieces refers to Quantity>10000; selling price refers to ListPrice | 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% |
How many location IDs have actual resource hours of 2? | actual resource hours of 2 refers to ActualResourceHrs = 2 | 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))) |
Where is the address 15873 located, in what city and state? Does that city belong to a province where the code exists? | Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable; | 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' |
Please list the top 3 house-manufactured products with the highest average rating. | home manufactured refers to MakeFlag = 1; average rating = divide(sum(Rating), count(ProductReview)) | 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 |
What is the average selling price of different vendors of the product Hex Nut 5? | average selling price = divide(sum(StandardPrice), count(BusinessEntityID)) | 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))
| 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 |
Among the salable products from the mountain product line, how many of them have the most reviews? | salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M' | 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; |
What is the product description of Headset Ball Bearings? | Headset Ball Bearings is name of a product | 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; |
State the product name, product line, rating and the selling price of product with the lowest rating. | Product with the lowest rating refers to the rating
given by the
reviewer where Rating = 1 | 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); |
How long does it take for the business to receive the item it has purchased? Who is the vendor for business number 1496? | business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime | 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
given by the
reviewer where Rating = 1 | highest yearly sales quota refers to Max(SalesQuota); |
To the products which could make the profit as 21.9037, what were their list price after October of 2012? | Profit as 82.41 = SUTRACT(ListPrice, StandardCost); May of 2012 refers to StartDate = '2012-05' | 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
given by the
reviewer 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))
| vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice) | handling damage is descrription of manufacturing failure which refers to ScrapReason.Name |
Where does the person with the BusinessEntityID "5555" live? | where the person live refers addresstype.Name = 'Home' | 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))
| 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 |
Which chromoly steel product model has AdventureWorks saved in English? | Saved in English refers to product description written in English where Culture.name = 'English' | 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; |
Please show the credit card number of David Bradley. | credit card number refers to CardNumber; | Profit = SUBTRACT(StandardPrice, LastRecipeCost)
| 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'))
| 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% |
Which product gets the most reviews? | most reviews refers to MAX(count(ProductID))
| 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))
| 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'; |
Please list the website purchasing links of the vendors from whom the product Hex Nut 5 can be purchased. | website purchasing link refers to PurchasingWebServiceURL | 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'; |
What is the name of the territory assigned to the sales person with business id "277"? | business id refers to BusinessEntityID | type of employee refers to PersonType; | Profit = SUBTRACT(StandardPrice, LastRecipeCost)
| 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 |
What is the current payrate of Rob Walters? Calculate the percentage increment from his previous payrate. | current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100% | 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))
| 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 |
What is the employee of company number 1's full name? | company number 1 refers to BusinessEntityId = 1; employee refers to PersonType = 'EM'; full name refers to FirstName + MiddleName + LastName | 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 |
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? | 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; | 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;
| 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' |
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. | total due before freight = SUBTRACT(TotalDue, Freight); age at the time an employee was hired = SUBTRACT(HireDate, year(BirthDate); | 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 |
Please list the top 3 discounts with the highest discount percentage and fall under the reseller category. | discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct); | 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'))
| 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)); |
Please list the top three employees with the most unused sick leave along with their position titles. | employees refers to BusinessEntityID; most unused sick leave refers to MAX(SickLeaveHours); position title refers to JobTitle | 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); |
Which job title has the lowest pay? | lowest pay refers to min(Rate); | 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; |
What is the highest vendor's selling price for Hex Nut 5? | vendor's selling price refers to StandardPrice | 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; |
When did the company hired its first Accountant? | Accountant is a job title; first hired = MIN(HireDate) | 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; |
Please list the email adresses of the reviewers who have given the lowest rating to the product HL Mountain Pedal. | lowest rating refers to Rating = 1 | increased their current year sales by more than 60% refers to
DIVIDE(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))) |
What is the shipping address for the sales order "43873"? | shipping address = AddressLine1+AddressLine2+City; | 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))
| 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' |
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. | projected sales quota refers to SalesQuota; projected sales quota in 2013 refers to year(QuotaDate) = 2013; | 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))
| 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 |
If a married employee has a western name style, what is the probability of him or her working as a store contact? | 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'))
| 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' |
Compare the average pay rate of male and female employees. | 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; | 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 |
Between Northwest and Southeast of the United States, which territory one recorded the highest amount of sales last year? | United States refers to CountryRegionCode = 'US'; | 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 |
Please list the total number of companies with a commission percentage of 0.018 or above, along with each company's assigned geographical location. | geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018; | 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 |
What is the thumbnail photo file for the product with the id "979"? | thumbnail photo file refers to ThumbnailPhotoFileName; | 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))
| 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; |
What is the forename and birthdate of person number 18? | person number 18 refers to BusinessEntityID = 18; forename refers to FirstName | 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% |
What category do Road Frames fall into? | Road Frames is a name of product subcategory | 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'; |
List all products with minimum order quantity of 100 and order them by product name in descending order. | miinimum order quantity refers to MinOrderQty = 100 | 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 |
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? | 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; | 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; |
What is the average profit of all the products from the Clothing category? | average profit = DIVIDE(SUM(SUBTRACT(ListPrice, StandardCost))), (COUNT(ProductSubcategoryID)))); | 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; |
How many products are there if we add all those located in the Subassembly category? | located in the Subassembly category refers to Name = 'Subassembly' | 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'; |
What's the profit for the Freewheel? | SUBTRACT(LastReceiptCost, StandardPrice) for ProductID where name = 'Freewheel' | 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; |
What is the percentage, by number of sales order units, for orders with quantities not greater than 3 and a discount of 0.2? | 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% | 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 |
What are the names of the product that has the lowest rating? | lowest rating refers to Rating = 1; | 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; |
How many employees with a pay rate of over 35 have more than 10 sick leave hours? | more than 10 sick leave hours refers to SickLeaveHours>10; pay rate over 35 refers to Rate>35; | 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;
| 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; |
Calculate the average age of employee in each department and state which department has the youngest employees. | Average = Divide(Sum(Substract(year(@today),year(BirthDate))),Count(BusinessEntityID) by each Department ID; youngest employee refers to Min(BirthDate); | 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;
| 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 |
Which geographic area does the city with the second lowest tax rate belongs to? Indicate the name of the state or province as well. | geographic area to which the city belong refers to Group; | 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 |
Among the employees whose pay frequencies are the highest, how many of them are married? | married refers to MaritalStatus = M; highest pay frequency refers to PayFrequency = 2 | 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'))
| 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)); |
What is business number 1580's net profit? | business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice) | 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; |
Among the sales with a tax applied to retail transaction, how many of them are charged by multiple types of taxes? | tax applied to retail transaction refers to Taxtype = 1; sales that are charged with multiple types of tax refers to NAME LIKE '%+%'; | non-sales employee refers to PersonType = 'EM' | shipment by truck refers to Name = 'XRQ - TRUCK GROUND'; | least number of sick leave refers to min(SickLeaveHours); PayFrequency = 1 means ‘Salary received monthly’; PayFrequency = 2 means ‘Salary received biweekly'; | Alex refers to FirstName = 'Alex'; single refers to MaritalStatus = 'S' | vendor's selling price refers to StandardPrice | hired in 2009 refers to year(HireDate) = 2009 | male refers to Gender = 'M'; employee refers to PersonType = 'EM'; percentage = DIVIDE(COUNT(Gender = 'M'), COUNT(PersonType = 'MY'))*100%; | job position and job title are synonyms; full name = FirstName+MiddleName+LastName; | Product with the lowest rating refers to the rating
given by the
reviewer where Rating = 1 | salesperson that haven't met the quota refers to Bonus = 0; |
Among the employees born before 1980 , how many of them are single? | BirthDate<'1980-01-01'; single refers to MaritalStatus = 'S' or null; | 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; | Facilities Manager is a job title | Vendor's selling price of a single product refers to UnitPrice; | store contact refers to PersonType = 'SC'; year(EndDate)>2007 and year(StartDate)<2007; | goods refers to products | handling damage is descrription of manufacturing failure which refers to ScrapReason.Name | 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' | card that expires in 2007 refers to ExpYear = 2007; | 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); |
How many products with the id "989" were sold in August 2013? | TransactionDate BETWEEN '2013-08-01' AND '2013-08-30'; sold in refers to TransactionType = 'S' which means SalesOrder; | United States refers to CountryRegionCode = 'US'; | employee number 257 refers to EmployeeID = 257; pending shipment status refers to Status = 3 | Sales and Marketing is group name of a department | 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))); | cost refers to StandardCost; | Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0 | Down Tube is a name of a product; | assembly lines that are not finished refers to EndDate = null | 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; | Hex Nut 5 is name of a product |
How many products that take more than 2 days to make are out of stock? | take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null | percentage = DIVIDE(SUM(Name = 'Night')), (COUNT(ShiftID)) as percentage; | Sales people refer to PersonType = 'SP'; projected yearly sales refers to SalesQuota | Canada is name of sales territory | active status of employees refers to CurrentFlag = 1; | salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10 | Purchase order with order quantity of 5000 or more refers to OrderQty> = 5000 | price refers to ListPrice; highest price refers to MAX(ListPrice); | full name = FirstName+MiddleName+LastName; | 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 | married refers to MaritalStatus = 'M'; male refers to Gender = 'M'; BirthDate < = '1959-12-31'; |
Among all the products that are manufactured in-house, how many of them are salable? | product is mnanufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1; | approved refers to Status = 2; confidential document refers to DocumentSummary is null; | full name = FirstName+MiddleName+LastName; HiredDate refers to the date the person joins the company; | percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100% | Purchase order with order quantity of 5000 or more refers to OrderQty> = 5000 | year of credit card expiration refers to ExpYear; | Profit as 82.41 = SUTRACT(ListPrice, StandardCost); May of 2012 refers to StartDate = '2012-05' | Sales people refer to PersonType = 'SP'; projected yearly sales refers to SalesQuota | salesperson that haven't met the quota refers to Bonus = 0; | least amount of workers refers to MIN(count(DepartmentID)); | job position and job title are synonyms; full name = FirstName+MiddleName+LastName; |
List the purchase order whereby all received quantity were rejected? Name those product. | Rejected refers rejected product in which to RejectedQty = 1 | vendor's selling price refers to StandardPrice | type of employee refers to PersonType; | StartDate BETWEEN '2009-01-01' AND '2009-12-31'; | product with large photo refers to LargePhoto NOT null; | number of products refers to OrderQty | cost refers to StandardCost; | employee number 257 refers to EmployeeID = 257; pending shipment status refers to Status = 3 | The Road line refers to the product line, therefore ProductLine = 'R' | credit card number refers to CardNumber; employees who left the department refers to EndDate NOT null; Engineering Department is a name of department; | employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2; |
Who is the oldest married male? State his job title. | Male refers to Gender = 'M'; married refers to MaritalStatus = 'M'; oldest refers to Min(BirthDate); | salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M' | Debur and Polish is name of manufacturing location | geographic area to which the city belong refers to Group; | website purchasing link refers to PurchasingWebServiceURL | manufactured in house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10 | business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice) | Oldest employee refers to Max ( Subtract((now())-BirthDate)); | least number of sick leave refers to min(SickLeaveHours); PayFrequency = 1 means ‘Salary received monthly’; PayFrequency = 2 means ‘Salary received biweekly'; | Department refers to Name where GroupName = 'Executive General and Administration' | profit on net = subtract(LastReceiptCost, StandardPrice); best profit on net refers to max(subtract(LastReceiptCost, StandardPrice)) |
Please list the titles of the documents that are pending approval. | documents pending approval refers to Status = 1 | Profit = SUBTRACT(ListPrice, StandardCost); the highest rating in review refers to Rating = 5 | 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; | 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; | manufactured in house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10 | profit = SUBTRACT(ListPrice, StandardCost); | geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018; | current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100% | SUBTRACT(LastReceiptCost, StandardPrice) for ProductID where name = 'Freewheel' | percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage; | 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; |
Sum the total number of products rejected for having a trim length that is too long. | number of product rejected refers to ScrapedQty; trim length that is too long refers to scrap reason where Name = 'Trim length too long' | Bike refers to the name of the product category, therefore ProductCategoryID = 1 | Northwest is name of SalesTerritory; US is the CountryRegionCode; | located in the Subassembly category refers to Name = 'Subassembly' | Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate | assembly lines that are not finished refers to EndDate = null | seasonal discount is a type of special offer; discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct); | began work in 2009 or later refers to StartDate> = 2009; | business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice) | year(EndDate)>2009 and year(StartDate)<2009; | Lightest product refers to Min(Weight); profit if they sell 10 items refers to Subtract (ListPrice , StandardCost) *10; |
What is the the percentage of profit for the product "858"? | percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage; | geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018; | Canada is name of a sales territory | resellers refers to Category = 'Reseller'; | Socks is a name of product subcategory | year of credit card expiration refers to ExpYear; | cost refers to StandardCost; | non-sales employee refers to PersonType = 'EM' | their home address as their address refers to AddressTypeID = 2; address corresponds to the shipping address refers to AddressTypeID = 5 | average age = AVG(subtract(year(now), year(HireDate))) | shipment by truck refers to Name = 'XRQ - TRUCK GROUND'; |
Who is the "Next-Door Bike Store" point of contact? | Next-Door Bike Store is name of a store | resellers refers to Category = 'Reseller'; | High quality refers to the product's quality class, therefore Class = 'H' | current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100% | Sales people refer to PersonType = 'SP'; projected yearly sales refers to SalesQuota | where the person live refers addresstype.Name = 'Home' | Alex refers to FirstName = 'Alex'; single refers to MaritalStatus = 'S' | Purchase order with order quantity of 5000 or more refers to OrderQty> = 5000 | salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M' | person number 18 refers to BusinessEntityID = 18; forename refers to FirstName | 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'; |
What is the class of the product with the most reviews? | 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' | Department refers to Name where GroupName = 'Executive General and Administration' | employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate))); | percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100% | Married refers to MaritalStatus = 'M'; non-sales employees refer to PersonType = 'EM' | Product with the lowest rating refers to the rating
given by the
reviewer where Rating = 1 | Product with more than 5 quantity refers to Quantity>5 | least amount of workers refers to MIN(count(DepartmentID)); | employees refers to BusinessEntityID; most unused sick leave refers to MAX(SickLeaveHours); position title refers to JobTitle | Australia Bike Retailer is name of vendor | store contact refers to PersonType = 'SC'; |
In which year will the David Bradley's credit card expire? | year of credit card expiration refers to ExpYear; | geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018; | fewest online orders refer to MIN(Quantity); | 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 | Road Frames is a name of product subcategory | Stocked quantity refers to StockedQty | card that expires in 2007 refers to ExpYear = 2007; | 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'))
| resellers refers to Category = 'Reseller'; | company number 1 refers to BusinessEntityId = 1; employee refers to PersonType = 'EM'; full name refers to FirstName + MiddleName + LastName | cost refers to StandardCost; |
What is the profit for the product "792"? | profit = SUBTRACT(ListPrice, StandardCost); | 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; | LL Road Frame Sale is a description of special offer | year(EndDate)>2009 and year(StartDate)<2009; | married refers to MaritalStatus = 'M'; male refers to Gender = 'M'; BirthDate < = '1959-12-31'; | Profit = AVG(SUBTRACT(ListPrice, StandardCost)>100 | seasonal discount is a type of special offer; discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct); | take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null | cost refers to StandardCost; | Full address refers to AddressLine1+AddressLine2; business number 24 refers to BusinessEntityID = '24' | store contact refers to PersonType = 'SC'; |
List the name and calculate its profit for product with the highest rating in review. | Profit = SUBTRACT(ListPrice, StandardCost); the highest rating in review refers to Rating = 5 | Stocked quantity refers to StockedQty | business id refers to BusinessEntityID; | unmarried refers to MaritalStatus = 'S', male refers to Gender = 'M', Production Supervisors is a job title | Next-Door Bike Store is name of a store | fewest online orders refer to MIN(Quantity); | Bike refers to the name of the product category, therefore ProductCategoryID = 1 | approved refers to Status = 2; confidential document refers to DocumentSummary is null; | vendor's selling price refers to StandardPrice | 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); | year(StartDate) 2007; year of credit card expiration refers to ExpYear; ExpYear = 2007; |