query
stringlengths 24
325
| positive
stringlengths 1
580
| negative
stringlengths 1
580
|
---|---|---|
List all the sales people in the Northwest US.
|
Northwest is name of SalesTerritory; US is the CountryRegionCode;
|
profit = MULTIPLY(SUBTRACT(ListPrice, Standardcost)), (Quantity)));
|
List all the sales people in the Northwest US.
|
Northwest is name of SalesTerritory; US is the CountryRegionCode;
|
days to end a work order = SUBTRACT(ActualEndDate, ActualStartDate);
|
List all the sales people in the Northwest US.
|
Northwest is name of SalesTerritory; US is the CountryRegionCode;
|
Lightest product refers to Min(Weight); profit if they sell 10 items refers to Subtract (ListPrice , StandardCost) *10;
|
List all the sales people in the Northwest US.
|
Northwest is name of SalesTerritory; US is the CountryRegionCode;
|
manufactured in house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10
|
List all the sales people in the Northwest US.
|
Northwest is name of SalesTerritory; US is the CountryRegionCode;
|
high class refers to Class = 'H'; men's product refers to Style = 'M'
|
List all the sales people in the Northwest US.
|
Northwest is name of SalesTerritory; US is the CountryRegionCode;
|
lowest rating refers to Rating = 1;
|
What is the price for the product with the id "912"?
|
price refers to ListPrice;
|
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;
|
What is the price for the product with the id "912"?
|
price refers to ListPrice;
|
Saved in English refers to product description written in English where Culture.name = 'English'
|
What is the price for the product with the id "912"?
|
price refers to ListPrice;
|
average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;
|
What is the price for the product with the id "912"?
|
price refers to ListPrice;
|
in centimeter refers to SizeUnitMeasureCode = 'CM';
|
What is the price for the product with the id "912"?
|
price refers to ListPrice;
|
Pre assembly quantity refers to PerAssemblyQty
|
What is the price for the product with the id "912"?
|
price refers to ListPrice;
|
credit card number refers to CardNumber; employees who left the department refers to EndDate NOT null; Engineering Department is a name of department;
|
What is the price for the product with the id "912"?
|
price refers to ListPrice;
|
Purchase order with order quantity of 5000 or more refers to OrderQty> = 5000
|
What is the price for the product with the id "912"?
|
price refers to ListPrice;
|
business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)
|
What is the price for the product with the id "912"?
|
price refers to ListPrice;
|
net profit = Subtract(LastReceiptCost, StandardPrice);
|
What is the price for the product with the id "912"?
|
price refers to ListPrice;
|
shipping cost and Freight are synonyms; highest shipping cost refers to MAX(Freight);
|
What is the email address of the Facilities Manager?
|
Facilities Manager is a job title
|
net profit = Subtract(LastReceiptCost, StandardPrice);
|
What is the email address of the Facilities Manager?
|
Facilities Manager is a job title
|
job position and job title are synonyms; full name = FirstName+MiddleName+LastName;
|
What is the email address of the Facilities Manager?
|
Facilities Manager is a job title
|
full name = FirstName+MiddleName+LastName; HiredDate refers to the date the person joins the company;
|
What is the email address of the Facilities Manager?
|
Facilities Manager is a job title
|
Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate
|
What is the email address of the Facilities Manager?
|
Facilities Manager is a job title
|
SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate;
|
What is the email address of the Facilities Manager?
|
Facilities Manager is a job title
|
Doesn't have a State Province Code refers to IsOnlyStateProvinceFlag = 1 where StateProvinceCode is unavailable
|
What is the email address of the Facilities Manager?
|
Facilities Manager is a job title
|
more than 10 sick leave hours refers to SickLeaveHours>10; pay rate over 35 refers to Rate>35;
|
What is the email address of the Facilities Manager?
|
Facilities Manager is a job title
|
Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'
|
What is the email address of the Facilities Manager?
|
Facilities Manager is a job title
|
products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';
|
What is the email address of the Facilities Manager?
|
Facilities Manager is a job title
|
Northwest is name of SalesTerritory; US is the CountryRegionCode;
|
What is the hashed password of David Bradley?
|
hashed password refers to PasswordHash;
|
least amount of workers refers to MIN(count(DepartmentID));
|
What is the hashed password of David Bradley?
|
hashed password refers to PasswordHash;
|
salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10
|
What is the hashed password of David Bradley?
|
hashed password refers to PasswordHash;
|
Lightest product refers to Min(Weight); profit if they sell 10 items refers to Subtract (ListPrice , StandardCost) *10;
|
What is the hashed password of David Bradley?
|
hashed password refers to PasswordHash;
|
order refers to SalesOrderID
|
What is the hashed password of David Bradley?
|
hashed password refers to PasswordHash;
|
employee number 257 refers to EmployeeID = 257; pending shipment status refers to Status = 3
|
What is the hashed password of David Bradley?
|
hashed password refers to PasswordHash;
|
proportion = DIVIDE(SUM(Name = 'UK')), (COUNT(SalesOrderID))) as count;
|
What is the hashed password of David Bradley?
|
hashed password refers to PasswordHash;
|
maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
|
What is the hashed password of David Bradley?
|
hashed password refers to PasswordHash;
|
number of departments an employee works for between 2011 and 2012 refers to year(StartDate) BETWEEN 2011 AND 2012 and year(EndDate) BETWEEN 2011 and 2012;
|
What is the hashed password of David Bradley?
|
hashed password refers to PasswordHash;
|
Married refers to MaritalStatus = 'M'; non-sales employees refer to PersonType = 'EM'
|
What is the hashed password of David Bradley?
|
hashed password refers to PasswordHash;
|
began work in 2009 or later refers to StartDate> = 2009;
|
What is the profit on net of the vendor with the highest standard price? If there are two vendors of the same amount, calculate only for one vendor.
|
profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
|
price refers to ListPrice; price of 3 products = MULTIPLY(ListPrice, 3); Lock Washer 6 is a name of a product;
|
What is the profit on net of the vendor with the highest standard price? If there are two vendors of the same amount, calculate only for one vendor.
|
profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
|
mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5
|
What is the profit on net of the vendor with the highest standard price? If there are two vendors of the same amount, calculate only for one vendor.
|
profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
|
Valley Bicycle Specialists is a name of store; full address = AddressLine1+AddressLine2;
|
What is the profit on net of the vendor with the highest standard price? If there are two vendors of the same amount, calculate only for one vendor.
|
profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
|
employees refers to BusinessEntityID; most unused sick leave refers to MAX(SickLeaveHours); position title refers to JobTitle
|
What is the profit on net of the vendor with the highest standard price? If there are two vendors of the same amount, calculate only for one vendor.
|
profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
|
last receipt date is August 17, 2011 refers to LastReceiptDate> = '2011-08-17 00:00:00' and LastReceiptDate < '2011-08-18 00:00:00';
|
What is the profit on net of the vendor with the highest standard price? If there are two vendors of the same amount, calculate only for one vendor.
|
profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
|
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;
|
What is the profit on net of the vendor with the highest standard price? If there are two vendors of the same amount, calculate only for one vendor.
|
profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
|
discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);
|
What is the profit on net of the vendor with the highest standard price? If there are two vendors of the same amount, calculate only for one vendor.
|
profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
|
tax amount refers to TaxAmt; biggest tax amount refers to MAX(TaxAmt);
|
What is the profit on net of the vendor with the highest standard price? If there are two vendors of the same amount, calculate only for one vendor.
|
profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
|
Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;
|
What is the profit on net of the vendor with the highest standard price? If there are two vendors of the same amount, calculate only for one vendor.
|
profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
|
vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)
|
What is the weight in pounds of the style that is produced the most by the company? If there are multiple products sharing the same weight, indicate the name of each one of them and their corresponding weights.
|
weight in pounds refers to WeightUnitMeasureCode = 'LB';
|
Sales and Marketing is group name of a department
|
What is the weight in pounds of the style that is produced the most by the company? If there are multiple products sharing the same weight, indicate the name of each one of them and their corresponding weights.
|
weight in pounds refers to WeightUnitMeasureCode = 'LB';
|
handling damage is descrription of manufacturing failure which refers to ScrapReason.Name
|
What is the weight in pounds of the style that is produced the most by the company? If there are multiple products sharing the same weight, indicate the name of each one of them and their corresponding weights.
|
weight in pounds refers to WeightUnitMeasureCode = 'LB';
|
High quality refers to the product's quality class, therefore Class = 'H'; the lowest transacted quantity refers to Quantity = 1
|
What is the weight in pounds of the style that is produced the most by the company? If there are multiple products sharing the same weight, indicate the name of each one of them and their corresponding weights.
|
weight in pounds refers to WeightUnitMeasureCode = 'LB';
|
high class refers to Class = 'H'; men's product refers to Style = 'M'
|
What is the weight in pounds of the style that is produced the most by the company? If there are multiple products sharing the same weight, indicate the name of each one of them and their corresponding weights.
|
weight in pounds refers to WeightUnitMeasureCode = 'LB';
|
percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%
|
What is the weight in pounds of the style that is produced the most by the company? If there are multiple products sharing the same weight, indicate the name of each one of them and their corresponding weights.
|
weight in pounds refers to WeightUnitMeasureCode = 'LB';
|
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 weight in pounds of the style that is produced the most by the company? If there are multiple products sharing the same weight, indicate the name of each one of them and their corresponding weights.
|
weight in pounds refers to WeightUnitMeasureCode = 'LB';
|
product is mnanufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;
|
What is the weight in pounds of the style that is produced the most by the company? If there are multiple products sharing the same weight, indicate the name of each one of them and their corresponding weights.
|
weight in pounds refers to WeightUnitMeasureCode = 'LB';
|
located in the Subassembly category refers to Name = 'Subassembly'
|
What is the weight in pounds of the style that is produced the most by the company? If there are multiple products sharing the same weight, indicate the name of each one of them and their corresponding weights.
|
weight in pounds refers to WeightUnitMeasureCode = 'LB';
|
year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';
|
What is the weight in pounds of the style that is produced the most by the company? If there are multiple products sharing the same weight, indicate the name of each one of them and their corresponding weights.
|
weight in pounds refers to WeightUnitMeasureCode = 'LB';
|
year(StartDate) 2007; year of credit card expiration refers to ExpYear; ExpYear = 2007;
|
What is the average standard cost of product number CA-1098?
|
Average cost = AVG(StandardCost)
|
percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;
|
What is the average standard cost of product number CA-1098?
|
Average cost = AVG(StandardCost)
|
work order refers to TransactionType = 'W'; Quantity BETWEEN 100 AND 250; ReorderPoint< = 375;
|
What is the average standard cost of product number CA-1098?
|
Average cost = AVG(StandardCost)
|
Profit = SUBTRACT(ListPrice, StandardCost); the highest rating in review refers to Rating = 5
|
What is the average standard cost of product number CA-1098?
|
Average cost = AVG(StandardCost)
|
thumbnail photo file refers to ThumbnailPhotoFileName;
|
What is the average standard cost of product number CA-1098?
|
Average cost = AVG(StandardCost)
|
vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)
|
What is the average standard cost of product number CA-1098?
|
Average cost = AVG(StandardCost)
|
mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))
|
What is the average standard cost of product number CA-1098?
|
Average cost = AVG(StandardCost)
|
Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;
|
What is the average standard cost of product number CA-1098?
|
Average cost = AVG(StandardCost)
|
highest pay rate refers to MAX(Rate);
|
What is the average standard cost of product number CA-1098?
|
Average cost = AVG(StandardCost)
|
Married refers to MaritalStatus = 'M'; non-sales employees refer to PersonType = 'EM'
|
What is the average standard cost of product number CA-1098?
|
Average cost = AVG(StandardCost)
|
home manufactured refers to MakeFlag = 1; average rating = divide(sum(Rating), count(ProductReview))
|
Please list the names of all the store contact employees whose credit cards expired in 2007.
|
year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';
|
Stocked quantity refers to StockedQty
|
Please list the names of all the store contact employees whose credit cards expired in 2007.
|
year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';
|
married refers to MaritalStatus = 'M'; male refers to Gender = 'M'; BirthDate < = '1959-12-31';
|
Please list the names of all the store contact employees whose credit cards expired in 2007.
|
year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';
|
The Road line refers to the product line, therefore ProductLine = 'R'
|
Please list the names of all the store contact employees whose credit cards expired in 2007.
|
year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';
|
United States refers to CountryRegionCode = 'US';
|
Please list the names of all the store contact employees whose credit cards expired in 2007.
|
year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';
|
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;
|
Please list the names of all the store contact employees whose credit cards expired in 2007.
|
year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';
|
cost refers to StandardCost;
|
Please list the names of all the store contact employees whose credit cards expired in 2007.
|
year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';
|
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)));
|
Please list the names of all the store contact employees whose credit cards expired in 2007.
|
year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';
|
Northwest is name of SalesTerritory; US is the CountryRegionCode;
|
Please list the names of all the store contact employees whose credit cards expired in 2007.
|
year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';
|
married refers to MaritalStatus = M; highest pay frequency refers to PayFrequency = 2
|
Please list the names of all the store contact employees whose credit cards expired in 2007.
|
year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';
|
ModifiedDate between'2014-09-12 00:00:00' and '2014-09-12 23:59:59';
|
Calculate the profit of each products. List all products with more than $100 in profit.
|
Profit = AVG(SUBTRACT(ListPrice, StandardCost)>100
|
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 profit of each products. List all products with more than $100 in profit.
|
Profit = AVG(SUBTRACT(ListPrice, StandardCost)>100
|
percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;
|
Calculate the profit of each products. List all products with more than $100 in profit.
|
Profit = AVG(SUBTRACT(ListPrice, StandardCost)>100
|
year of credit card expiration refers to ExpYear;
|
Calculate the profit of each products. List all products with more than $100 in profit.
|
Profit = AVG(SUBTRACT(ListPrice, StandardCost)>100
|
year(StartDate) 2007; year of credit card expiration refers to ExpYear; ExpYear = 2007;
|
Calculate the profit of each products. List all products with more than $100 in profit.
|
Profit = AVG(SUBTRACT(ListPrice, StandardCost)>100
|
business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)
|
Calculate the profit of each products. List all products with more than $100 in profit.
|
Profit = AVG(SUBTRACT(ListPrice, StandardCost)>100
|
employees that submitted resume to Human Resource Department and got hired refers to BusinessEntittyID NOT null;
|
Calculate the profit of each products. List all products with more than $100 in profit.
|
Profit = AVG(SUBTRACT(ListPrice, StandardCost)>100
|
tax applied to retail transaction refers to Taxtype = 1; sales that are charged with multiple types of tax refers to NAME LIKE '%+%';
|
Calculate the profit of each products. List all products with more than $100 in profit.
|
Profit = AVG(SUBTRACT(ListPrice, StandardCost)>100
|
Canada is name of sales territory
|
Calculate the profit of each products. List all products with more than $100 in profit.
|
Profit = AVG(SUBTRACT(ListPrice, StandardCost)>100
|
Night shift refers to Name = 'Night';
|
Calculate the profit of each products. List all products with more than $100 in profit.
|
Profit = AVG(SUBTRACT(ListPrice, StandardCost)>100
|
Catgo Transport 5 is a name of shipping method; OrderDate = '2011-12-14'; total shipment cost = SUM(Freight);
|
What is the location id for Debur and Polish?
|
Debur and Polish is name of manufacturing location
|
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
|
What is the location id for Debur and Polish?
|
Debur and Polish is name of manufacturing location
|
planned cost is different from actual cost refers to ActualCost ! = PlannedCost;
|
What is the location id for Debur and Polish?
|
Debur and Polish is name of manufacturing location
|
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);
|
What is the location id for Debur and Polish?
|
Debur and Polish is name of manufacturing location
|
minimum order quantity refers to MinOrderQty;
|
What is the location id for Debur and Polish?
|
Debur and Polish is name of manufacturing location
|
order refers to SalesOrderID
|
What is the location id for Debur and Polish?
|
Debur and Polish is name of manufacturing location
|
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;
|
What is the location id for Debur and Polish?
|
Debur and Polish is name of manufacturing location
|
Hex Nut 5 is name of a product
|
What is the location id for Debur and Polish?
|
Debur and Polish is name of manufacturing location
|
unmarried refers to MaritalStatus = 'S', male refers to Gender = 'M', Production Supervisors is a job title
|
What is the location id for Debur and Polish?
|
Debur and Polish is name of manufacturing location
|
SUBTRACT(LastReceiptCost, StandardPrice) for ProductID where name = 'Freewheel'
|
What is the location id for Debur and Polish?
|
Debur and Polish is name of manufacturing location
|
year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';
|
What is the current status of the order with the highest shipping cost?
|
shipping cost and Freight are synonyms; highest shipping cost refers to MAX(Freight);
|
Vendor's selling price of a single product refers to UnitPrice;
|
What is the current status of the order with the highest shipping cost?
|
shipping cost and Freight are synonyms; highest shipping cost refers to MAX(Freight);
|
located in the Subassembly category refers to Name = 'Subassembly'
|
What is the current status of the order with the highest shipping cost?
|
shipping cost and Freight are synonyms; highest shipping cost refers to MAX(Freight);
|
Profit as 82.41 = SUTRACT(ListPrice, StandardCost); May of 2012 refers to StartDate = '2012-05'
|
What is the current status of the order with the highest shipping cost?
|
shipping cost and Freight are synonyms; highest shipping cost refers to MAX(Freight);
|
product number = productID
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.