query
stringlengths
24
325
positive
stringlengths
1
580
negative
stringlengths
1
580
For all the employees that have left the Engineering Department, what is the average time of their stay?
employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));
Quantity more than 10,000 pieces refers to Quantity>10000; selling price refers to ListPrice
For all the employees that have left the Engineering Department, what is the average time of their stay?
employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));
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';
For all the employees that have left the Engineering Department, what is the average time of their stay?
employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));
geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;
For all the employees that have left the Engineering Department, what is the average time of their stay?
employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));
employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;
For all the employees that have left the Engineering Department, what is the average time of their stay?
employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));
High quality refers to the product's quality class, therefore Class = 'H'
For all the employees that have left the Engineering Department, what is the average time of their stay?
employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));
weight in pounds refers to WeightUnitMeasureCode = 'LB';
Among all the employees who don't wish to receive promotion e-mails, how many of them belong to or once belonged to the Engineering Department?
Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;
profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
Among all the employees who don't wish to receive promotion e-mails, how many of them belong to or once belonged to the Engineering Department?
Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;
geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;
Among all the employees who don't wish to receive promotion e-mails, how many of them belong to or once belonged to the Engineering Department?
Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;
order refers to SalesOrderID
Among all the employees who don't wish to receive promotion e-mails, how many of them belong to or once belonged to the Engineering Department?
Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;
mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5
Among all the employees who don't wish to receive promotion e-mails, how many of them belong to or once belonged to the Engineering Department?
Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;
business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime
Among all the employees who don't wish to receive promotion e-mails, how many of them belong to or once belonged to the Engineering Department?
Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;
Vendor's selling price of a single product refers to UnitPrice;
Among all the employees who don't wish to receive promotion e-mails, how many of them belong to or once belonged to the Engineering Department?
Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;
product is manufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;
Among all the employees who don't wish to receive promotion e-mails, how many of them belong to or once belonged to the Engineering Department?
Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;
amount to be paid refers to TotalDue;
Among all the employees who don't wish to receive promotion e-mails, how many of them belong to or once belonged to the Engineering Department?
Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;
lowest pay refers to min(Rate);
Among all the employees who don't wish to receive promotion e-mails, how many of them belong to or once belonged to the Engineering Department?
Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;
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;
How many customers are there in Canada?
Canada is name of sales territory
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;
How many customers are there in Canada?
Canada is name of sales territory
High quality refers to the product's quality class, therefore Class = 'H'; the lowest transacted quantity refers to Quantity = 1
How many customers are there in Canada?
Canada is name of sales territory
Socks is a name of product subcategory
How many customers are there in Canada?
Canada is name of sales territory
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';
How many customers are there in Canada?
Canada is name of sales territory
Canada is name of a sales territory
How many customers are there in Canada?
Canada is name of sales territory
average profit = DIVIDE(SUM(SUBTRACT(ListPrice, StandardCost))), (COUNT(ProductSubcategoryID))));
How many customers are there in Canada?
Canada is name of sales territory
female refers to Gender = 'F'; single refers to MaritalStatus = 'S';
How many customers are there in Canada?
Canada is name of sales territory
Minipump is name of a product
How many customers are there in Canada?
Canada is name of sales territory
customers' name refers to ReviewerName; best possible ratings means the highest rating = 5
How many customers are there in Canada?
Canada is name of sales territory
Doesn't have a State Province Code refers to IsOnlyStateProvinceFlag = 1 where StateProvinceCode is unavailable
What is the Crankarm product's net profit?
net profit = Subtract(LastReceiptCost, StandardPrice);
full name = FirstName+MiddleName+LastName; Production Technician - WC50 is a job title;
What is the Crankarm product's net profit?
net profit = Subtract(LastReceiptCost, StandardPrice);
United States refers to CountryRegionCode = 'US';
What is the Crankarm product's net profit?
net profit = Subtract(LastReceiptCost, StandardPrice);
profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
What is the Crankarm product's net profit?
net profit = Subtract(LastReceiptCost, StandardPrice);
mountain product line refers to ProductLine = 'M'
What is the Crankarm product's net profit?
net profit = Subtract(LastReceiptCost, StandardPrice);
actual resource hours of 2 refers to ActualResourceHrs = 2
What is the Crankarm product's net profit?
net profit = Subtract(LastReceiptCost, StandardPrice);
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))
What is the Crankarm product's net profit?
net profit = Subtract(LastReceiptCost, StandardPrice);
price refers to ListPrice;
What is the Crankarm product's net profit?
net profit = Subtract(LastReceiptCost, StandardPrice);
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;
What is the Crankarm product's net profit?
net profit = Subtract(LastReceiptCost, StandardPrice);
MOQ refers to minimum order quantity; MOQ of 1 refers to MinOrderQty = 1; standard cost more than 48 refers to StandardCost > 48;
What is the Crankarm product's net profit?
net profit = Subtract(LastReceiptCost, StandardPrice);
salaried employee refers to SalariedFlag = 1; hired in 2007 and later refers to year(HireDate)> = 2007
Which type of transaction was it for the "LL Road Handlebars" order happened in 2012/11/3?
Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate
production technician is a job title; below average rate refers to Rate<AVG(Rate);
Which type of transaction was it for the "LL Road Handlebars" order happened in 2012/11/3?
Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate
total due before freight = SUBTRACT(TotalDue, Freight); age at the time an employee was hired = SUBTRACT(HireDate, year(BirthDate);
Which type of transaction was it for the "LL Road Handlebars" order happened in 2012/11/3?
Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate
Debur and Polish is name of manufacturing location
Which type of transaction was it for the "LL Road Handlebars" order happened in 2012/11/3?
Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate
vendor's selling price refers to StandardPrice
Which type of transaction was it for the "LL Road Handlebars" order happened in 2012/11/3?
Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate
handling damage is descrription of manufacturing failure which refers to ScrapReason.Name
Which type of transaction was it for the "LL Road Handlebars" order happened in 2012/11/3?
Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate
unmarried refers to MaritalStatus = 'S', male refers to Gender = 'M', Production Supervisors is a job title
Which type of transaction was it for the "LL Road Handlebars" order happened in 2012/11/3?
Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate
ModifiedDate between'2014-09-12 00:00:00' and '2014-09-12 23:59:59';
Which type of transaction was it for the "LL Road Handlebars" order happened in 2012/11/3?
Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate
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;
Which type of transaction was it for the "LL Road Handlebars" order happened in 2012/11/3?
Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate
France territory refers to SalesTerritory.Name = 'France';
Which type of transaction was it for the "LL Road Handlebars" order happened in 2012/11/3?
Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate
employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));
How many employees work for AdvertureWorks that is single?
Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'
not recommended refers to PreferredVendorStatus = 0;
How many employees work for AdvertureWorks that is single?
Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'
compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product
How many employees work for AdvertureWorks that is single?
Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'
percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%
How many employees work for AdvertureWorks that is single?
Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'
Started selling in 2013 refers to year(SellStartDate) = 2013;
How many employees work for AdvertureWorks that is single?
Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'
product number = productID
How many employees work for AdvertureWorks that is single?
Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'
business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime
How many employees work for AdvertureWorks that is single?
Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'
Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'
How many employees work for AdvertureWorks that is single?
Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'
business id refers to BusinessEntityID
How many employees work for AdvertureWorks that is single?
Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'
credit card number refers to CardNumber;
How many employees work for AdvertureWorks that is single?
Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'
business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)
List the locations ids, compartments and containers for the Lock Ring
compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product
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))
List the locations ids, compartments and containers for the Lock Ring
compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product
most reviews refers to MAX(count(ProductID))
List the locations ids, compartments and containers for the Lock Ring
compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product
lowest rating refers to Rating = 1;
List the locations ids, compartments and containers for the Lock Ring
compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product
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 locations ids, compartments and containers for the Lock Ring
compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product
LL Road Frame Sale is a description of special offer
List the locations ids, compartments and containers for the Lock Ring
compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product
mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5
List the locations ids, compartments and containers for the Lock Ring
compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product
business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)
List the locations ids, compartments and containers for the Lock Ring
compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product
miinimum order quantity refers to MinOrderQty = 100
List the locations ids, compartments and containers for the Lock Ring
compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product
Highest year to date sales refers to Max(SalesYTD);
List the locations ids, compartments and containers for the Lock Ring
compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product
SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate;
How many products from the Clothing category were on the LL Road Frame Sale?
LL Road Frame Sale is a description of special offer
customers' name refers to ReviewerName; best possible ratings means the highest rating = 5
How many products from the Clothing category were on the LL Road Frame Sale?
LL Road Frame Sale is a description of special offer
products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';
How many products from the Clothing category were on the LL Road Frame Sale?
LL Road Frame Sale is a description of special offer
shelves refer to shelf; down tube is a product
How many products from the Clothing category were on the LL Road Frame Sale?
LL Road Frame Sale is a description of special offer
year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';
How many products from the Clothing category were on the LL Road Frame Sale?
LL Road Frame Sale is a description of special offer
lowest pay refers to min(Rate);
How many products from the Clothing category were on the LL Road Frame Sale?
LL Road Frame Sale is a description of special offer
active employee refers to CurrentFlag = 1; Rate< = 30;
How many products from the Clothing category were on the LL Road Frame Sale?
LL Road Frame Sale is a description of special offer
Do not have any work order ID means WorkOrderID is null
How many products from the Clothing category were on the LL Road Frame Sale?
LL Road Frame Sale is a description of special offer
Saved in English refers to product description written in English where Culture.name = 'English'
How many products from the Clothing category were on the LL Road Frame Sale?
LL Road Frame Sale is a description of special offer
Bike refers to the name of the product category, therefore ProductCategoryID = 1
How many products from the Clothing category were on the LL Road Frame Sale?
LL Road Frame Sale is a description of special offer
Male refers to Gender = 'M'; married refers to MaritalStatus = 'M'; oldest refers to Min(BirthDate);
What is the total sick leave hours of employees who do not wish to receive any e-mail promotion?
Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0
Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;
What is the total sick leave hours of employees who do not wish to receive any e-mail promotion?
Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0
average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;
What is the total sick leave hours of employees who do not wish to receive any e-mail promotion?
Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0
more than 10 sick leave hours refers to SickLeaveHours>10; pay rate over 35 refers to Rate>35;
What is the total sick leave hours of employees who do not wish to receive any e-mail promotion?
Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0
cost refers to StandardCost;
What is the total sick leave hours of employees who do not wish to receive any e-mail promotion?
Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0
Profit as 82.41 = SUTRACT(ListPrice, StandardCost); May of 2012 refers to StartDate = '2012-05'
What is the total sick leave hours of employees who do not wish to receive any e-mail promotion?
Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0
hashed password refers to PasswordHash;
What is the total sick leave hours of employees who do not wish to receive any e-mail promotion?
Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0
Do not have any work order ID means WorkOrderID is null
What is the total sick leave hours of employees who do not wish to receive any e-mail promotion?
Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0
Profit = SUBTRACT(ListPrice, StandardCost); the highest rating in review refers to Rating = 5
What is the total sick leave hours of employees who do not wish to receive any e-mail promotion?
Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0
store contact refers to PersonType = 'SC'; year(EndDate)>2007 and year(StartDate)<2007;
What is the total sick leave hours of employees who do not wish to receive any e-mail promotion?
Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0
Accountant is a job title; first hired = MIN(HireDate)
List all the pay rates of all employees that were hired at 20 years of age.
pay rate refers to Rate; 20 years old at the time of being hired refers to SUBTRACT(year(HireDate)), (year(BirthDate))) = 20;
price refers to ListPrice; price of 3 products = MULTIPLY(ListPrice, 3); Lock Washer 6 is a name of a product;
List all the pay rates of all employees that were hired at 20 years of age.
pay rate refers to Rate; 20 years old at the time of being hired refers to SUBTRACT(year(HireDate)), (year(BirthDate))) = 20;
business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime
List all the pay rates of all employees that were hired at 20 years of age.
pay rate refers to Rate; 20 years old at the time of being hired refers to SUBTRACT(year(HireDate)), (year(BirthDate))) = 20;
Male refers to Gender = 'M'; married refers to MaritalStatus = 'M'; oldest refers to Min(BirthDate);
List all the pay rates of all employees that were hired at 20 years of age.
pay rate refers to Rate; 20 years old at the time of being hired refers to SUBTRACT(year(HireDate)), (year(BirthDate))) = 20;
geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;
List all the pay rates of all employees that were hired at 20 years of age.
pay rate refers to Rate; 20 years old at the time of being hired refers to SUBTRACT(year(HireDate)), (year(BirthDate))) = 20;
products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';
List all the pay rates of all employees that were hired at 20 years of age.
pay rate refers to Rate; 20 years old at the time of being hired refers to SUBTRACT(year(HireDate)), (year(BirthDate))) = 20;
company number 1 refers to BusinessEntityId = 1; employee refers to PersonType = 'EM'; full name refers to FirstName + MiddleName + LastName
List all the pay rates of all employees that were hired at 20 years of age.
pay rate refers to Rate; 20 years old at the time of being hired refers to SUBTRACT(year(HireDate)), (year(BirthDate))) = 20;
Northwest is name of SalesTerritory; US is the CountryRegionCode;
List all the pay rates of all employees that were hired at 20 years of age.
pay rate refers to Rate; 20 years old at the time of being hired refers to SUBTRACT(year(HireDate)), (year(BirthDate))) = 20;
Product with the lowest rating refers to the rating given by the reviewer where Rating = 1
List all the pay rates of all employees that were hired at 20 years of age.
pay rate refers to Rate; 20 years old at the time of being hired refers to SUBTRACT(year(HireDate)), (year(BirthDate))) = 20;
male refers to Gender = 'M'; employee refers to PersonType = 'EM'; percentage = DIVIDE(COUNT(Gender = 'M'), COUNT(PersonType = 'MY'))*100%;
List all the pay rates of all employees that were hired at 20 years of age.
pay rate refers to Rate; 20 years old at the time of being hired refers to SUBTRACT(year(HireDate)), (year(BirthDate))) = 20;
Pre assembly quantity refers to PerAssemblyQty
What is the order reference number for the "Mountain End Caps" product?
Order Reference Number refers to ReferenceOrderID
product number = productID
What is the order reference number for the "Mountain End Caps" product?
Order Reference Number refers to ReferenceOrderID
salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'
What is the order reference number for the "Mountain End Caps" product?
Order Reference Number refers to ReferenceOrderID
non-sales employee refers to PersonType = 'EM'
What is the order reference number for the "Mountain End Caps" product?
Order Reference Number refers to ReferenceOrderID
current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100%