query
stringlengths
24
325
positive
stringlengths
1
580
negative
stringlengths
1
580
Among the products that are both manufactured in house and salable, how many of them get over 10 reviews?
manufactured in house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10
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 products that are both manufactured in house and salable, how many of them get over 10 reviews?
manufactured in house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10
percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;
Among the products that are both manufactured in house and salable, how many of them get over 10 reviews?
manufactured in house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10
cost refers to StandardCost;
Among the products that are both manufactured in house and salable, how many of them get over 10 reviews?
manufactured in house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10
Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate
Among the products that are both manufactured in house and salable, how many of them get over 10 reviews?
manufactured in house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10
profit = SUBTRACT(ListPrice, StandardCost);
Among the products that are both manufactured in house and salable, how many of them get over 10 reviews?
manufactured in house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10
fewest online orders refer to MIN(Quantity);
Please list the phone numbers of all the store contacts.
store contact refers to PersonType = 'SC';
Order Reference Number refers to ReferenceOrderID
Please list the phone numbers of all the store contacts.
store contact refers to PersonType = 'SC';
Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa
Please list the phone numbers of all the store contacts.
store contact refers to PersonType = 'SC';
United States refers to CountryRegionCode = 'US';
Please list the phone numbers of all the store contacts.
store contact refers to PersonType = 'SC';
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
Please list the phone numbers of all the store contacts.
store contact refers to PersonType = 'SC';
cost refers to StandardCost;
Please list the phone numbers of all the store contacts.
store contact refers to PersonType = 'SC';
business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime
Please list the phone numbers of all the store contacts.
store contact refers to PersonType = 'SC';
Product without any rejected quantity refers to RejectedQty = 0
Please list the phone numbers of all the store contacts.
store contact refers to PersonType = 'SC';
most reviews refers to MAX(count(ProductID))
Please list the phone numbers of all the store contacts.
store contact refers to PersonType = 'SC';
highest rating refers to Rating = 5; profit = SUBTRACT(ListPrice, StandardCost);
Please list the phone numbers of all the store contacts.
store contact refers to PersonType = 'SC';
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';
Which vendor's selling price for Hex Nut 5 is the lowest, please give the vendor's name.
vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)
job position and job title are synonyms; full name = FirstName+MiddleName+LastName;
Which vendor's selling price for Hex Nut 5 is the lowest, please give the vendor's name.
vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)
salaried employee refers to SalariedFlag = 1; hired in 2007 and later refers to year(HireDate)> = 2007
Which vendor's selling price for Hex Nut 5 is the lowest, please give the vendor's name.
vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)
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';
Which vendor's selling price for Hex Nut 5 is the lowest, please give the vendor's name.
vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)
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;
Which vendor's selling price for Hex Nut 5 is the lowest, please give the vendor's name.
vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)
Catherine Ward refers to the name of BusinessEntityID; how many letters in password for the e-mail account refers to LENGTH(PasswordHash)
Which vendor's selling price for Hex Nut 5 is the lowest, please give the vendor's name.
vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)
began work in 2009 or later refers to StartDate> = 2009;
Which vendor's selling price for Hex Nut 5 is the lowest, please give the vendor's name.
vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)
Production Technicians refer to the  JobTitle = 'Production Technician%'; single refers to MaritalStatus = 'S'; Vendor contact refers to PersonType = 'VC'
Which vendor's selling price for Hex Nut 5 is the lowest, please give the vendor's name.
vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)
profit = subtract(ListPrice, StandardCost); the depth the component from its parent refers to BOMLevel;
Which vendor's selling price for Hex Nut 5 is the lowest, please give the vendor's name.
vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)
Down Tube is a name of a product;
Which vendor's selling price for Hex Nut 5 is the lowest, please give the vendor's name.
vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)
profit = SUBTRACT(ListPrice, StandardCost);
What is the total amount due of all the purchases made by the company to the vendor that has the lowest selling price amount of a single product? Indicate the name of the vendor to which the purchases was made.
Vendor's selling price of a single product refers to UnitPrice;
profit = subtract(ListPrice, StandardCost); the depth the component from its parent refers to BOMLevel;
What is the total amount due of all the purchases made by the company to the vendor that has the lowest selling price amount of a single product? Indicate the name of the vendor to which the purchases was made.
Vendor's selling price of a single product refers to UnitPrice;
average age = AVG(subtract(year(now), year(HireDate)))
What is the total amount due of all the purchases made by the company to the vendor that has the lowest selling price amount of a single product? Indicate the name of the vendor to which the purchases was made.
Vendor's selling price of a single product refers to UnitPrice;
lowest rating refers to Rating = 1
What is the total amount due of all the purchases made by the company to the vendor that has the lowest selling price amount of a single product? Indicate the name of the vendor to which the purchases was made.
Vendor's selling price of a single product refers to UnitPrice;
highest amount of difference between the ordered quantity and actual quantity received in a single purchase order refers to MAX(SUBTRACT(OrderQty, ReceivedQty));
What is the total amount due of all the purchases made by the company to the vendor that has the lowest selling price amount of a single product? Indicate the name of the vendor to which the purchases was made.
Vendor's selling price of a single product refers to UnitPrice;
average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;
What is the total amount due of all the purchases made by the company to the vendor that has the lowest selling price amount of a single product? Indicate the name of the vendor to which the purchases was made.
Vendor's selling price of a single product refers to UnitPrice;
Married refers to MaritalStatus = 'M';  non-sales employees refer to PersonType = 'EM'
What is the total amount due of all the purchases made by the company to the vendor that has the lowest selling price amount of a single product? Indicate the name of the vendor to which the purchases was made.
Vendor's selling price of a single product refers to UnitPrice;
goods refers to products
What is the total amount due of all the purchases made by the company to the vendor that has the lowest selling price amount of a single product? Indicate the name of the vendor to which the purchases was made.
Vendor's selling price of a single product refers to UnitPrice;
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 total amount due of all the purchases made by the company to the vendor that has the lowest selling price amount of a single product? Indicate the name of the vendor to which the purchases was made.
Vendor's selling price of a single product refers to UnitPrice;
Sales people refer to PersonType = 'SP'; projected yearly sales refers to SalesQuota
What is the total amount due of all the purchases made by the company to the vendor that has the lowest selling price amount of a single product? Indicate the name of the vendor to which the purchases was made.
Vendor's selling price of a single product refers to UnitPrice;
Minipump is name of a product
For all the purchase order transactions, name all the products with low quality.
Low quality refers to the product's quality class, therefore Class = 'L'
salesperson that haven't met the quota refers to Bonus = 0;
For all the purchase order transactions, name all the products with low quality.
Low quality refers to the product's quality class, therefore Class = 'L'
shipping address = AddressLine1+AddressLine2+City;
For all the purchase order transactions, name all the products with low quality.
Low quality refers to the product's quality class, therefore Class = 'L'
Northwest is name of SalesTerritory; US is the CountryRegionCode;
For all the purchase order transactions, name all the products with low quality.
Low quality refers to the product's quality class, therefore Class = 'L'
business ID refers to BusinessEntityID; sales total year to date refers to SalesYTD; most sales total year to date refers to MAX(SalesYTD);
For all the purchase order transactions, name all the products with low quality.
Low quality refers to the product's quality class, therefore Class = 'L'
lowest rating refers to Rating = 1;
For all the purchase order transactions, name all the products with low quality.
Low quality refers to the product's quality class, therefore Class = 'L'
Catherine Ward refers to the name of BusinessEntityID; how many letters in password for the e-mail account refers to LENGTH(PasswordHash)
For all the purchase order transactions, name all the products with low quality.
Low quality refers to the product's quality class, therefore Class = 'L'
MOQ refers to minimum order quantity; MOQ of 1 refers to MinOrderQty = 1; standard cost more than 48 refers to StandardCost > 48;
For all the purchase order transactions, name all the products with low quality.
Low quality refers to the product's quality class, therefore Class = 'L'
actual resource hours of 2 refers to ActualResourceHrs = 2
For all the purchase order transactions, name all the products with low quality.
Low quality refers to the product's quality class, therefore Class = 'L'
Male refers to Gender = 'M'; married refers to MaritalStatus = 'M'; oldest refers to Min(BirthDate);
For all the purchase order transactions, name all the products with low quality.
Low quality refers to the product's quality class, therefore Class = 'L'
SUBTRACT(LastReceiptCost, StandardPrice) for ProductID where name = 'Freewheel'
In 2007, which job position was hired the most?
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';
Bike refers to the name of the product category, therefore ProductCategoryID = 1
In 2007, which job position was hired the most?
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';
days to end a work order = SUBTRACT(ActualEndDate, ActualStartDate);
In 2007, which job position was hired the most?
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';
product is manufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;
In 2007, which job position was hired the most?
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';
Catherine Ward refers to the name of BusinessEntityID; how many letters in password for the e-mail account refers to LENGTH(PasswordHash)
In 2007, which job position was hired the most?
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';
salesperson that haven't met the quota refers to Bonus = 0;
In 2007, which job position was hired the most?
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';
Accountant is a job title; first hired = MIN(HireDate)
In 2007, which job position was hired the most?
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';
Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;
In 2007, which job position was hired the most?
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';
Sales people refer to PersonType = 'SP'; projected yearly sales refers to SalesQuota
In 2007, which job position was hired the most?
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';
credit card number refers to CardNumber; employees who left the department refers to EndDate NOT null; Engineering Department is a name of department;
In 2007, which job position was hired the most?
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';
Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate
How many people were there in the Engineering Department in the year 2009?
year(EndDate)>2009 and year(StartDate)<2009;
Road Frames is a name of product subcategory
How many people were there in the Engineering Department in the year 2009?
year(EndDate)>2009 and year(StartDate)<2009;
France territory refers to SalesTerritory.Name = 'France';
How many people were there in the Engineering Department in the year 2009?
year(EndDate)>2009 and year(StartDate)<2009;
salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'
How many people were there in the Engineering Department in the year 2009?
year(EndDate)>2009 and year(StartDate)<2009;
Purchase order with order quantity of 5000 or more refers to OrderQty> = 5000
How many people were there in the Engineering Department in the year 2009?
year(EndDate)>2009 and year(StartDate)<2009;
handling damage is descrription of manufacturing failure which refers to ScrapReason.Name
How many people were there in the Engineering Department in the year 2009?
year(EndDate)>2009 and year(StartDate)<2009;
vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)
How many people were there in the Engineering Department in the year 2009?
year(EndDate)>2009 and year(StartDate)<2009;
vendor's selling price refers to StandardPrice
How many people were there in the Engineering Department in the year 2009?
year(EndDate)>2009 and year(StartDate)<2009;
married employee refers to MaritalStatus = 'M'; less than 20 vacation hours refers to VacationHours<20
How many people were there in the Engineering Department in the year 2009?
year(EndDate)>2009 and year(StartDate)<2009;
shipment by truck refers to Name = 'XRQ - TRUCK GROUND';
How many people were there in the Engineering Department in the year 2009?
year(EndDate)>2009 and year(StartDate)<2009;
highest rating refers to MAX(Rating)
Which vendor gives the best profit on net for product ID 342?
profit on net = subtract(LastReceiptCost, StandardPrice); best profit on net refers to max(subtract(LastReceiptCost, StandardPrice))
Valley Bicycle Specialists is a name of store; full address = AddressLine1+AddressLine2;
Which vendor gives the best profit on net for product ID 342?
profit on net = subtract(LastReceiptCost, StandardPrice); best profit on net refers to max(subtract(LastReceiptCost, StandardPrice))
SP is an abbreviation for Sales Person; PersonType = 'SP';
Which vendor gives the best profit on net for product ID 342?
profit on net = subtract(LastReceiptCost, StandardPrice); best profit on net refers to max(subtract(LastReceiptCost, StandardPrice))
Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'
Which vendor gives the best profit on net for product ID 342?
profit on net = subtract(LastReceiptCost, StandardPrice); best profit on net refers to max(subtract(LastReceiptCost, StandardPrice))
take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null
Which vendor gives the best profit on net for product ID 342?
profit on net = subtract(LastReceiptCost, StandardPrice); best profit on net refers to max(subtract(LastReceiptCost, StandardPrice))
proportion = DIVIDE(SUM(Name = 'UK')), (COUNT(SalesOrderID))) as count;
Which vendor gives the best profit on net for product ID 342?
profit on net = subtract(LastReceiptCost, StandardPrice); best profit on net refers to max(subtract(LastReceiptCost, StandardPrice))
in centimeter refers to SizeUnitMeasureCode = 'CM';
Which vendor gives the best profit on net for product ID 342?
profit on net = subtract(LastReceiptCost, StandardPrice); best profit on net refers to max(subtract(LastReceiptCost, StandardPrice))
Profit = SUBTRACT(ListPrice, StandardCost); the highest rating in review refers to Rating = 5
Which vendor gives the best profit on net for product ID 342?
profit on net = subtract(LastReceiptCost, StandardPrice); best profit on net refers to max(subtract(LastReceiptCost, StandardPrice))
Canada is name of a sales territory
Which vendor gives the best profit on net for product ID 342?
profit on net = subtract(LastReceiptCost, StandardPrice); best profit on net refers to max(subtract(LastReceiptCost, StandardPrice))
employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;
Which vendor gives the best profit on net for product ID 342?
profit on net = subtract(LastReceiptCost, StandardPrice); best profit on net refers to max(subtract(LastReceiptCost, StandardPrice))
lowest rating refers to Rating = 1
Did Rachel Valdez complete her sales task?
Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa
Lightest product refers to Min(Weight); profit if they sell 10 items refers to Subtract (ListPrice , StandardCost) *10;
Did Rachel Valdez complete her sales task?
Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa
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;
Did Rachel Valdez complete her sales task?
Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa
price refers to ListPrice; highest price refers to MAX(ListPrice);
Did Rachel Valdez complete her sales task?
Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa
profit = SUBTRACT(ListPrice, StandardCost);
Did Rachel Valdez complete her sales task?
Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa
profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
Did Rachel Valdez complete her sales task?
Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa
take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null
Did Rachel Valdez complete her sales task?
Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa
business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)
Did Rachel Valdez complete her sales task?
Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa
France territory refers to SalesTerritory.Name = 'France';
Did Rachel Valdez complete her sales task?
Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa
resellers refers to Category = 'Reseller';
Did Rachel Valdez complete her sales task?
Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa
Catgo Transport 5 is a name of shipping method; OrderDate = '2011-12-14'; total shipment cost = SUM(Freight);
How many Minipumps have been sold?
Minipump is name of a product
High quality refers to the product's quality class, therefore Class = 'H'; the lowest transacted quantity refers to Quantity = 1
How many Minipumps have been sold?
Minipump is name of a product
PreferredVendorStatus = 1 means 'Do not use if another vendor is available'; CreditRating = 2 means 'Preferred over other vendors supplying the same product'
How many Minipumps have been sold?
Minipump is name of a product
business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime
How many Minipumps have been sold?
Minipump is name of a product
hashed password refers to PasswordHash;
How many Minipumps have been sold?
Minipump is name of a product
projected sales quota refers to SalesQuota; projected sales quota in 2013 refers to year(QuotaDate) = 2013;
How many Minipumps have been sold?
Minipump is name of a product
fewest online orders refer to MIN(Quantity);
How many Minipumps have been sold?
Minipump is name of a product
Australia Bike Retailer is name of vendor
How many Minipumps have been sold?
Minipump is name of a product
mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5
How many Minipumps have been sold?
Minipump is name of a product
highest pay rate refers to MAX(Rate);
How many Minipumps have been sold?
Minipump is name of a product
geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;
How many Vista cards expired before the year 2007?
Vista Card refers to CardType = 'Vista'; expire before the year 2007 refers to ExpYear< = 2006;
Facilities Manager is a job title
How many Vista cards expired before the year 2007?
Vista Card refers to CardType = 'Vista'; expire before the year 2007 refers to ExpYear< = 2006;
Profit as 82.41 = SUTRACT(ListPrice, StandardCost); May of 2012 refers to StartDate = '2012-05'
How many Vista cards expired before the year 2007?
Vista Card refers to CardType = 'Vista'; expire before the year 2007 refers to ExpYear< = 2006;
Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa
How many Vista cards expired before the year 2007?
Vista Card refers to CardType = 'Vista'; expire before the year 2007 refers to ExpYear< = 2006;
Stocked quantity refers to StockedQty