query
stringlengths
24
325
positive
stringlengths
1
580
negative
stringlengths
1
580
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'
assembly lines that are not finished refers to EndDate = null
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'
seasonal discount is a type of special offer; discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);
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'
began work in 2009 or later refers to StartDate> = 2009;
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'
business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)
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'
year(EndDate)>2009 and year(StartDate)<2009;
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'
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;
What is the the percentage of profit for the product "858"?
percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;
Canada is name of a sales territory
What is the the percentage of profit for the product "858"?
percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;
resellers refers to Category = 'Reseller';
What is the the percentage of profit for the product "858"?
percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;
Socks is a name of product subcategory
What is the the percentage of profit for the product "858"?
percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;
year of credit card expiration refers to ExpYear;
What is the the percentage of profit for the product "858"?
percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;
cost refers to StandardCost;
What is the the percentage of profit for the product "858"?
percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;
non-sales employee refers to PersonType = 'EM'
What is the the percentage of profit for the product "858"?
percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;
their home address as their address refers to AddressTypeID = 2; address corresponds to the shipping address refers to AddressTypeID = 5
What is the the percentage of profit for the product "858"?
percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;
average age = AVG(subtract(year(now), year(HireDate)))
What is the the percentage of profit for the product "858"?
percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;
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';
Who is the "Next-Door Bike Store" point of contact?
Next-Door Bike Store is name of a store
High quality refers to the product's quality class, therefore Class = 'H'
Who is the "Next-Door Bike Store" point of contact?
Next-Door Bike Store is name of a store
current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100%
Who is the "Next-Door Bike Store" point of contact?
Next-Door Bike Store is name of a store
Sales people refer to PersonType = 'SP'; projected yearly sales refers to SalesQuota
Who is the "Next-Door Bike Store" point of contact?
Next-Door Bike Store is name of a store
where the person live refers addresstype.Name = 'Home'
Who is the "Next-Door Bike Store" point of contact?
Next-Door Bike Store is name of a store
Alex refers to FirstName = 'Alex'; single refers to MaritalStatus = 'S'
Who is the "Next-Door Bike Store" point of contact?
Next-Door Bike Store is name of a store
Purchase order with order quantity of 5000 or more refers to OrderQty> = 5000
Who is the "Next-Door Bike Store" point of contact?
Next-Door Bike Store is name of a store
salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'
Who is the "Next-Door Bike Store" point of contact?
Next-Door Bike Store is name of a store
person number 18 refers to BusinessEntityID = 18; forename refers to FirstName
Who is the "Next-Door Bike Store" point of contact?
Next-Door Bike Store is name of a store
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'
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'
employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));
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'
percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%
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'
Married refers to MaritalStatus = 'M';  non-sales employees refer to PersonType = 'EM'
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'
Product with the lowest rating refers to the rating given by the reviewer where Rating = 1
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'
Product with more than 5 quantity refers to Quantity>5
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'
least amount of workers refers to MIN(count(DepartmentID));
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'
employees refers to BusinessEntityID; most unused sick leave refers to MAX(SickLeaveHours); position title refers to JobTitle
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'
Australia Bike Retailer is name of vendor
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'
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;
In which year will the David Bradley's credit card expire?
year of credit card expiration refers to ExpYear;
fewest online orders refer to MIN(Quantity);
In which year will the David Bradley's credit card expire?
year of credit card expiration refers to ExpYear;
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
In which year will the David Bradley's credit card expire?
year of credit card expiration refers to ExpYear;
Road Frames is a name of product subcategory
In which year will the David Bradley's credit card expire?
year of credit card expiration refers to ExpYear;
Stocked quantity refers to StockedQty
In which year will the David Bradley's credit card expire?
year of credit card expiration refers to ExpYear;
card that expires in 2007 refers to ExpYear = 2007;
In which year will the David Bradley's credit card expire?
year of credit card expiration refers to ExpYear;
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'))
In which year will the David Bradley's credit card expire?
year of credit card expiration refers to ExpYear;
resellers refers to Category = 'Reseller';
In which year will the David Bradley's credit card expire?
year of credit card expiration refers to ExpYear;
company number 1 refers to BusinessEntityId = 1; employee refers to PersonType = 'EM'; full name refers to FirstName + MiddleName + LastName
In which year will the David Bradley's credit card expire?
year of credit card expiration refers to ExpYear;
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;
What is the profit for the product "792"?
profit = SUBTRACT(ListPrice, StandardCost);
LL Road Frame Sale is a description of special offer
What is the profit for the product "792"?
profit = SUBTRACT(ListPrice, StandardCost);
year(EndDate)>2009 and year(StartDate)<2009;
What is the profit for the product "792"?
profit = SUBTRACT(ListPrice, StandardCost);
married refers to MaritalStatus = 'M'; male refers to Gender = 'M'; BirthDate < = '1959-12-31';
What is the profit for the product "792"?
profit = SUBTRACT(ListPrice, StandardCost);
Profit = AVG(SUBTRACT(ListPrice, StandardCost)>100
What is the profit for the product "792"?
profit = SUBTRACT(ListPrice, StandardCost);
seasonal discount is a type of special offer; discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);
What is the profit for the product "792"?
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
What is the profit for the product "792"?
profit = SUBTRACT(ListPrice, StandardCost);
cost refers to StandardCost;
What is the profit for the product "792"?
profit = SUBTRACT(ListPrice, StandardCost);
Full address refers to AddressLine1+AddressLine2; business number 24 refers to BusinessEntityID = '24'
What is the profit for the product "792"?
profit = SUBTRACT(ListPrice, StandardCost);
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
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
business id refers to BusinessEntityID;
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
unmarried refers to MaritalStatus = 'S', male refers to Gender = 'M', Production Supervisors is a job title
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
Next-Door Bike Store is name of a store
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
fewest online orders refer to MIN(Quantity);
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
Bike refers to the name of the product category, therefore ProductCategoryID = 1
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
approved refers to Status = 2; confidential document refers to DocumentSummary is null;
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
vendor's selling price refers to StandardPrice
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
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);
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
year(StartDate) 2007; year of credit card expiration refers to ExpYear; ExpYear = 2007;
Among the vendors with maximum orders betweeen 500 to 750, which vendor has the 10th highest profit on net?
maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
salaried employee refers to SalariedFlag = 1; hired in 2007 and later refers to year(HireDate)> = 2007
Among the vendors with maximum orders betweeen 500 to 750, which vendor has the 10th highest profit on net?
maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
card that expires in 2007 refers to ExpYear = 2007;
Among the vendors with maximum orders betweeen 500 to 750, which vendor has the 10th highest profit on net?
maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
weight in pounds refers to WeightUnitMeasureCode = 'LB';
Among the vendors with maximum orders betweeen 500 to 750, which vendor has the 10th highest profit on net?
maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
Valley Bicycle Specialists is a name of store; full address = AddressLine1+AddressLine2;
Among the vendors with maximum orders betweeen 500 to 750, which vendor has the 10th highest profit on net?
maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
product is mnanufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;
Among the vendors with maximum orders betweeen 500 to 750, which vendor has the 10th highest profit on net?
maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
store contact refers to PersonType = 'SC';
Among the vendors with maximum orders betweeen 500 to 750, which vendor has the 10th highest profit on net?
maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
pay rate above 40 refers to Rate>40; male employee refers to Gender = M
Among the vendors with maximum orders betweeen 500 to 750, which vendor has the 10th highest profit on net?
maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
AVG(Rating) = DIVIDE(SUM(rating), COUNT(ReviewerName))
Among the vendors with maximum orders betweeen 500 to 750, which vendor has the 10th highest profit on net?
maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
Production Technicians refer to the  JobTitle = 'Production Technician%'; single refers to MaritalStatus = 'S'; Vendor contact refers to PersonType = 'VC'
Among the vendors with maximum orders betweeen 500 to 750, which vendor has the 10th highest profit on net?
maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
Male refers to Gender = 'M'; married refers to MaritalStatus = 'M'; oldest refers to Min(BirthDate);
What is the highest amount of bonus earned by the sales person in Canada?
Canada is name of a sales territory
Bike refers to the name of the product category, therefore ProductCategoryID = 1
What is the highest amount of bonus earned by the sales person in Canada?
Canada is name of a sales territory
Valley Bicycle Specialists is a name of store; full address = AddressLine1+AddressLine2;
What is the highest amount of bonus earned by the sales person in Canada?
Canada is name of a sales territory
proportion = DIVIDE(SUM(Name = 'UK')), (COUNT(SalesOrderID))) as count;
What is the highest amount of bonus earned by the sales person in Canada?
Canada is name of a sales territory
Average = Divide(Sum(Substract(year(@today),year(BirthDate))),Count(BusinessEntityID) by each Department ID; youngest employee refers to Min(BirthDate);
What is the highest amount of bonus earned by the sales person in Canada?
Canada is name of a sales territory
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 highest amount of bonus earned by the sales person in Canada?
Canada is name of a sales territory
tax applied to retail transaction refers to Taxtype = 1; sales that are charged with multiple types of tax refers to NAME LIKE '%+%';
What is the highest amount of bonus earned by the sales person in Canada?
Canada is name of a sales territory
Product with the lowest rating refers to the rating given by the reviewer where Rating = 1
What is the highest amount of bonus earned by the sales person in Canada?
Canada is name of a sales territory
type of credit card refers to CardType; CardType = 'Vista';
What is the highest amount of bonus earned by the sales person in Canada?
Canada is name of a sales territory
minimum order quantity refers to MinOrderQty;
What is the highest amount of bonus earned by the sales person in Canada?
Canada is name of a sales territory
planned cost is different from actual cost refers to ActualCost ! = PlannedCost;
What are the top 5 types of products with the highest selling price? ?
highest selling price refers to MAX(ListPrice);
products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';
What are the top 5 types of products with the highest selling price? ?
highest selling price refers to MAX(ListPrice);
Catgo Transport 5 is a name of shipping method; OrderDate = '2011-12-14'; total shipment cost = SUM(Freight);
What are the top 5 types of products with the highest selling price? ?
highest selling price refers to MAX(ListPrice);
lowest pay refers to min(Rate);
What are the top 5 types of products with the highest selling price? ?
highest selling price refers to MAX(ListPrice);
do not have any type of offer refers to Description = 'No Discount'; sold in an amount greater than 2 refers to OrderQty>2
What are the top 5 types of products with the highest selling price? ?
highest selling price refers to MAX(ListPrice);
shelves refer to shelf; down tube is a product
What are the top 5 types of products with the highest selling price? ?
highest selling price refers to MAX(ListPrice);
active employee refers to CurrentFlag = 1; Rate< = 30;
What are the top 5 types of products with the highest selling price? ?
highest selling price refers to MAX(ListPrice);
Located refers to the total address of the entity that comprises city, addressline1, addressline2
What are the top 5 types of products with the highest selling price? ?
highest selling price refers to MAX(ListPrice);
United States refers to CountryRegionCode = 'US';
What are the top 5 types of products with the highest selling price? ?
highest selling price refers to MAX(ListPrice);
LL Road Frame Sale is a description of special offer
What are the top 5 types of products with the highest selling price? ?
highest selling price refers to MAX(ListPrice);
salesperson that haven't met the quota refers to Bonus = 0;
Please list the businesses along with their numbers that have their accounts located in Duvall.
Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'
Socks is a name of product subcategory
Please list the businesses along with their numbers that have their accounts located in Duvall.
Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'
Male refers to Gender = 'M'; married refers to MaritalStatus = 'M'; oldest refers to Min(BirthDate);
Please list the businesses along with their numbers that have their accounts located in Duvall.
Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'
weight in pounds refers to WeightUnitMeasureCode = 'LB';
Please list the businesses along with their numbers that have their accounts located in Duvall.
Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'
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;