query
stringlengths
24
325
positive
stringlengths
1
580
negative
stringlengths
1
580
What is the order reference number for the "Mountain End Caps" product?
Order Reference Number refers to ReferenceOrderID
Profit = AVG(SUBTRACT(ListPrice, StandardCost)>100
What is the order reference number for the "Mountain End Caps" product?
Order Reference Number refers to ReferenceOrderID
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 order reference number for the "Mountain End Caps" product?
Order Reference Number refers to ReferenceOrderID
Catgo Transport 5 is a name of shipping method; OrderDate = '2011-12-14'; total shipment cost = SUM(Freight);
What is the order reference number for the "Mountain End Caps" product?
Order Reference Number refers to ReferenceOrderID
Married refers to MaritalStatus = 'M';  non-sales employees refer to PersonType = 'EM'
What is the order reference number for the "Mountain End Caps" product?
Order Reference Number refers to ReferenceOrderID
Product with more than 5 quantity refers to Quantity>5
What is the order reference number for the "Mountain End Caps" product?
Order Reference Number refers to ReferenceOrderID
average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;
To which group does the department with the least amount of workers belong to? Indicate the name of the department as well.
least amount of workers refers to MIN(count(DepartmentID));
company number 1 refers to BusinessEntityId = 1; employee refers to PersonType = 'EM'; full name refers to FirstName + MiddleName + LastName
To which group does the department with the least amount of workers belong to? Indicate the name of the department as well.
least amount of workers refers to MIN(count(DepartmentID));
Full address refers to AddressLine1+AddressLine2; business number 24 refers to BusinessEntityID = '24'
To which group does the department with the least amount of workers belong to? Indicate the name of the department as well.
least amount of workers refers to MIN(count(DepartmentID));
Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'
To which group does the department with the least amount of workers belong to? Indicate the name of the department as well.
least amount of workers refers to MIN(count(DepartmentID));
product that are purchased refers to MakeFlag = 0; never received highest rating refers to Rating! = 5
To which group does the department with the least amount of workers belong to? Indicate the name of the department as well.
least amount of workers refers to MIN(count(DepartmentID));
Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa
To which group does the department with the least amount of workers belong to? Indicate the name of the department as well.
least amount of workers refers to MIN(count(DepartmentID));
began work in 2009 or later refers to StartDate> = 2009;
To which group does the department with the least amount of workers belong to? Indicate the name of the department as well.
least amount of workers refers to MIN(count(DepartmentID));
average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;
To which group does the department with the least amount of workers belong to? Indicate the name of the department as well.
least amount of workers refers to MIN(count(DepartmentID));
Jill refers to the name of reviewer; HL Mountain Pedal refers to the name of the product
To which group does the department with the least amount of workers belong to? Indicate the name of the department as well.
least amount of workers refers to MIN(count(DepartmentID));
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;
To which group does the department with the least amount of workers belong to? Indicate the name of the department as well.
least amount of workers refers to MIN(count(DepartmentID));
Product with more than 5 quantity refers to Quantity>5
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'
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
business id refers to BusinessEntityID
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
employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;
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
vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)
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
company number 1 refers to BusinessEntityId = 1; employee refers to PersonType = 'EM'; full name refers to FirstName + MiddleName + LastName
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
current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100%
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
Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'
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
lowest rating refers to Rating = 1
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
High quality refers to the product's quality class, therefore Class = 'H'
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
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
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;
began work in 2009 or later refers to StartDate> = 2009;
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;
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;
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;
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;
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;
least number of sick leave refers to min(SickLeaveHours); PayFrequency = 1 means ‘Salary received monthly’; PayFrequency = 2 means ‘Salary received biweekly';
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;
product maintenance documents are private refers to DocumentSummary = null
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;
Low quality refers to the product's quality class, therefore Class = 'L'
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;
shipment by truck refers to Name = 'XRQ - TRUCK GROUND';
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;
Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'
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;
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
What is the bussiness id for Mr. Hung-Fu Ting?
business id refers to BusinessEntityID;
job position and job title are synonyms; full name = FirstName+MiddleName+LastName;
What is the bussiness id for Mr. Hung-Fu Ting?
business id refers to BusinessEntityID;
Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0
What is the bussiness id for Mr. Hung-Fu Ting?
business id refers to BusinessEntityID;
Alex refers to FirstName = 'Alex'; single refers to MaritalStatus = 'S'
What is the bussiness id for Mr. Hung-Fu Ting?
business id refers to BusinessEntityID;
employee exempt from collective bargaining refers to SalariedFlag = 1; highest pay rate refers to max(Rate)
What is the bussiness id for Mr. Hung-Fu Ting?
business id refers to BusinessEntityID;
lowest pay refers to min(Rate);
What is the bussiness id for Mr. Hung-Fu Ting?
business id refers to BusinessEntityID;
Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'
What is the bussiness id for Mr. Hung-Fu Ting?
business id refers to BusinessEntityID;
type of employee refers to PersonType;
What is the bussiness id for Mr. Hung-Fu Ting?
business id refers to BusinessEntityID;
Order Reference Number refers to ReferenceOrderID
What is the bussiness id for Mr. Hung-Fu Ting?
business id refers to BusinessEntityID;
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';
What is the average age of employee in Adventure Works?
average age = AVG(subtract(year(now), year(HireDate)))
Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;
What is the average age of employee in Adventure Works?
average age = AVG(subtract(year(now), year(HireDate)))
female refers to Gender = 'F'; single refers to MaritalStatus = 'S';
What is the average age of employee in Adventure Works?
average age = AVG(subtract(year(now), year(HireDate)))
began work in 2009 or later refers to StartDate> = 2009;
What is the average age of employee in Adventure Works?
average age = AVG(subtract(year(now), year(HireDate)))
salaried employee refers to SalariedFlag = 1; hired in 2007 and later refers to year(HireDate)> = 2007
What is the average age of employee in Adventure Works?
average age = AVG(subtract(year(now), year(HireDate)))
resellers refers to Category = 'Reseller';
What is the average age of employee in Adventure Works?
average age = AVG(subtract(year(now), year(HireDate)))
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'
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; full name = FirstName+MiddleName+LastName;
What is the average age of employee in Adventure Works?
average age = AVG(subtract(year(now), year(HireDate)))
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
What is the average age of employee in Adventure Works?
average age = AVG(subtract(year(now), year(HireDate)))
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);
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)));
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;
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)));
not recommended refers to PreferredVendorStatus = 0;
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)));
minimum inventory quantity refers to SafetyStockLevel; chainring bolts is a name of product;
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)));
store contact refers to PersonType = 'SC'; year(EndDate)>2007 and year(StartDate)<2007;
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)));
active status of employees refers to CurrentFlag = 1;
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)));
manufactured in house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10
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)));
customers' name refers to ReviewerName; best possible ratings means the highest rating = 5
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)));
located in the Subassembly category refers to Name = 'Subassembly'
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)));
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;
What percentage of the AdventureWorks data is in Thai?
percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%
shelves refer to shelf; down tube is a product
What percentage of the AdventureWorks data is in Thai?
percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%
Pre assembly quantity refers to PerAssemblyQty
What percentage of the AdventureWorks data is in Thai?
percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%
order refers to SalesOrderID
What percentage of the AdventureWorks data is in Thai?
percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%
began work in 2009 or later refers to StartDate> = 2009;
What percentage of the AdventureWorks data is in Thai?
percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%
maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
What percentage of the AdventureWorks data is in Thai?
percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%
salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'
What percentage of the AdventureWorks data is in Thai?
percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%
production technician is a job title; below average rate refers to Rate<AVG(Rate);
What percentage of the AdventureWorks data is in Thai?
percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%
Salespeople refers to PersonType = 'SP'
What percentage of the AdventureWorks data is in Thai?
percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%
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
What is the minimum inventory quantity of Chainring Bolts?
minimum inventory quantity refers to SafetyStockLevel; chainring bolts is a name of product;
LL Road Frame Sale is a description of special offer
What is the minimum inventory quantity of Chainring Bolts?
minimum inventory quantity refers to SafetyStockLevel; chainring bolts is a name of product;
over 3 price changes refers to count(ListPrice)>3
What is the minimum inventory quantity of Chainring Bolts?
minimum inventory quantity refers to SafetyStockLevel; chainring bolts is a name of product;
business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime
What is the minimum inventory quantity of Chainring Bolts?
minimum inventory quantity refers to SafetyStockLevel; chainring bolts is a name of product;
increased their current year sales by more than 60% refers to DIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6
What is the minimum inventory quantity of Chainring Bolts?
minimum inventory quantity refers to SafetyStockLevel; chainring bolts is a name of product;
TransactionDate BETWEEN '2013-08-01' AND '2013-08-30'; sold in refers to TransactionType = 'S' which means SalesOrder;
What is the minimum inventory quantity of Chainring Bolts?
minimum inventory quantity refers to SafetyStockLevel; chainring bolts is a name of product;
where the person live refers addresstype.Name = 'Home'
What is the minimum inventory quantity of Chainring Bolts?
minimum inventory quantity refers to SafetyStockLevel; chainring bolts is a name of product;
married refers to MaritalStatus = 'M'; male refers to Gender = 'M'; BirthDate < = '1959-12-31';
What is the minimum inventory quantity of Chainring Bolts?
minimum inventory quantity refers to SafetyStockLevel; chainring bolts is a name of product;
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 minimum inventory quantity of Chainring Bolts?
minimum inventory quantity refers to SafetyStockLevel; chainring bolts is a name of product;
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';
What is the stocked quantity of products manufactured from location ID 40?
Stocked quantity refers to StockedQty
approved refers to Status = 2; confidential document refers to DocumentSummary is null;
What is the stocked quantity of products manufactured from location ID 40?
Stocked quantity refers to StockedQty
increased their current year sales by more than 60% refers to DIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6
What is the stocked quantity of products manufactured from location ID 40?
Stocked quantity refers to StockedQty
The Road line refers to the product line, therefore ProductLine = 'R'
What is the stocked quantity of products manufactured from location ID 40?
Stocked quantity refers to StockedQty
employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;
What is the stocked quantity of products manufactured from location ID 40?
Stocked quantity refers to StockedQty
Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate
What is the stocked quantity of products manufactured from location ID 40?
Stocked quantity refers to StockedQty
pay rate above 40 refers to Rate>40; male employee refers to Gender = M
What is the stocked quantity of products manufactured from location ID 40?
Stocked quantity refers to StockedQty
mountain product line refers to ProductLine = 'M'
What is the stocked quantity of products manufactured from location ID 40?
Stocked quantity refers to StockedQty
Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0
What is the stocked quantity of products manufactured from location ID 40?
Stocked quantity refers to StockedQty
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;
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);
Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;
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);
pay rate refers to Rate; 20 years old at the time of being hired refers to SUBTRACT(year(HireDate)), (year(BirthDate))) = 20;
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);
AVG(Rating) = DIVIDE(SUM(rating), COUNT(ReviewerName))