query
stringlengths
24
325
positive
stringlengths
1
580
negative
stringlengths
1
580
How many Vista cards expired before the year 2007?
Vista Card refers to CardType = 'Vista'; expire before the year 2007 refers to ExpYear< = 2006;
Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'
How many Vista cards expired before the year 2007?
Vista Card refers to CardType = 'Vista'; expire before the year 2007 refers to ExpYear< = 2006;
take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null
How many Vista cards expired before the year 2007?
Vista Card refers to CardType = 'Vista'; expire before the year 2007 refers to ExpYear< = 2006;
Located refers to the total address of the entity that comprises city, addressline1, addressline2
How many Vista cards expired before the year 2007?
Vista Card refers to CardType = 'Vista'; expire before the year 2007 refers to ExpYear< = 2006;
store contact refers to PersonType = 'SC'; year(EndDate)>2007 and year(StartDate)<2007;
How many Vista cards expired before the year 2007?
Vista Card refers to CardType = 'Vista'; expire before the year 2007 refers to ExpYear< = 2006;
LL Road Frame Sale is a description of special offer
How many Vista cards expired before the year 2007?
Vista Card refers to CardType = 'Vista'; expire before the year 2007 refers to ExpYear< = 2006;
credit card number refers to CardNumber;
Which seasonal discount had the highest discount percentage?
seasonal discount is a type of special offer; discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);
shipping address = AddressLine1+AddressLine2+City;
Which seasonal discount had the highest discount percentage?
seasonal discount is a type of special offer; discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);
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;
Which seasonal discount had the highest discount percentage?
seasonal discount is a type of special offer; discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);
manufactured in house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10
Which seasonal discount had the highest discount percentage?
seasonal discount is a type of special offer; discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);
product is mnanufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;
Which seasonal discount had the highest discount percentage?
seasonal discount is a type of special offer; discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);
amount to be paid refers to TotalDue;
Which seasonal discount had the highest discount percentage?
seasonal discount is a type of special offer; discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);
goods refers to products
Which seasonal discount had the highest discount percentage?
seasonal discount is a type of special offer; discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);
tax applied to retail transaction refers to Taxtype = 1; sales that are charged with multiple types of tax refers to NAME LIKE '%+%';
Which seasonal discount had the highest discount percentage?
seasonal discount is a type of special offer; discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);
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)));
Which seasonal discount had the highest discount percentage?
seasonal discount is a type of special offer; discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);
card that expires in 2007 refers to ExpYear = 2007;
Which seasonal discount had the highest discount percentage?
seasonal discount is a type of special offer; discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);
Purchase order with order quantity of 5000 or more refers to OrderQty> = 5000
How many types of credit cards are there and how many are vista?
type of credit card refers to CardType; CardType = 'Vista';
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))
How many types of credit cards are there and how many are vista?
type of credit card refers to CardType; CardType = 'Vista';
The Road line refers to the product line, therefore ProductLine = 'R'
How many types of credit cards are there and how many are vista?
type of credit card refers to CardType; CardType = 'Vista';
hired in 2009 refers to year(HireDate) = 2009
How many types of credit cards are there and how many are vista?
type of credit card refers to CardType; CardType = 'Vista';
product number = productID
How many types of credit cards are there and how many are vista?
type of credit card refers to CardType; CardType = 'Vista';
current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100%
How many types of credit cards are there and how many are vista?
type of credit card refers to CardType; CardType = 'Vista';
shipping cost and Freight are synonyms; highest shipping cost refers to MAX(Freight);
How many types of credit cards are there and how many are vista?
type of credit card refers to CardType; CardType = 'Vista';
employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));
How many types of credit cards are there and how many are vista?
type of credit card refers to CardType; CardType = 'Vista';
Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0
How many types of credit cards are there and how many are vista?
type of credit card refers to CardType; CardType = 'Vista';
Next-Door Bike Store is name of a store
How many types of credit cards are there and how many are vista?
type of credit card refers to CardType; CardType = 'Vista';
manufactured in house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10
Lists all companies by BusinessEntityID that increased their current year sales by more than 60% over last year's sales and have a bonus greater than 3,000.
increased their current year sales by more than 60% refers to DIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6
minimum order quantity refers to MinOrderQty;
Lists all companies by BusinessEntityID that increased their current year sales by more than 60% over last year's sales and have a bonus greater than 3,000.
increased their current year sales by more than 60% refers to DIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6
geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;
Lists all companies by BusinessEntityID that increased their current year sales by more than 60% over last year's sales and have a bonus greater than 3,000.
increased their current year sales by more than 60% refers to DIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6
do not have any type of offer refers to Description = 'No Discount'; sold in an amount greater than 2 refers to OrderQty>2
Lists all companies by BusinessEntityID that increased their current year sales by more than 60% over last year's sales and have a bonus greater than 3,000.
increased their current year sales by more than 60% refers to DIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6
over 3 price changes refers to count(ListPrice)>3
Lists all companies by BusinessEntityID that increased their current year sales by more than 60% over last year's sales and have a bonus greater than 3,000.
increased their current year sales by more than 60% refers to DIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6
profit = MULTIPLY(SUBTRACT(ListPrice, Standardcost)), (Quantity)));
Lists all companies by BusinessEntityID that increased their current year sales by more than 60% over last year's sales and have a bonus greater than 3,000.
increased their current year sales by more than 60% refers to DIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6
shipping address = AddressLine1+AddressLine2+City;
Lists all companies by BusinessEntityID that increased their current year sales by more than 60% over last year's sales and have a bonus greater than 3,000.
increased their current year sales by more than 60% refers to DIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6
year of credit card expiration refers to ExpYear;
Lists all companies by BusinessEntityID that increased their current year sales by more than 60% over last year's sales and have a bonus greater than 3,000.
increased their current year sales by more than 60% refers to DIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6
maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
Lists all companies by BusinessEntityID that increased their current year sales by more than 60% over last year's sales and have a bonus greater than 3,000.
increased their current year sales by more than 60% refers to DIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6
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
Lists all companies by BusinessEntityID that increased their current year sales by more than 60% over last year's sales and have a bonus greater than 3,000.
increased their current year sales by more than 60% refers to DIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6
married refers to MaritalStatus = 'M'; western name style refers to NameStyle = 0; store contact refers to PersonType = 'SC'; probability = Divide (Count (BusinessEntityID( PersonType = 'SC' & MaritalStatus = 'M')), Count (BusinessEntityID ( PersonType) & MariatlStatus = 'M'))
What categories of offers qualify for group discounts for resellers?
resellers refers to Category = 'Reseller';
not recommended refers to PreferredVendorStatus = 0;
What categories of offers qualify for group discounts for resellers?
resellers refers to Category = 'Reseller';
Document Control Assistant refers to the JobTitle = 'Document Control Assistant'; born on 1975/12/25 refers to BirthDate = '1975-12-25'; private documents indicate that DocumentSummary is null
What categories of offers qualify for group discounts for resellers?
resellers refers to Category = 'Reseller';
Low quality refers to the product's quality class, therefore Class = 'L'
What categories of offers qualify for group discounts for resellers?
resellers refers to Category = 'Reseller';
SP is an abbreviation for Sales Person; PersonType = 'SP';
What categories of offers qualify for group discounts for resellers?
resellers refers to Category = 'Reseller';
unmarried refers to MaritalStatus = 'S', male refers to Gender = 'M', Production Supervisors is a job title
What categories of offers qualify for group discounts for resellers?
resellers refers to Category = 'Reseller';
Salespeople refers to PersonType = 'SP'
What categories of offers qualify for group discounts for resellers?
resellers refers to Category = 'Reseller';
over 3 price changes refers to count(ListPrice)>3
What categories of offers qualify for group discounts for resellers?
resellers refers to Category = 'Reseller';
Socks is a name of product subcategory
What categories of offers qualify for group discounts for resellers?
resellers refers to Category = 'Reseller';
store contact refers to PersonType = 'SC';
What categories of offers qualify for group discounts for resellers?
resellers refers to Category = 'Reseller';
average profit = DIVIDE(SUM(SUBTRACT(ListPrice, StandardCost))), (COUNT(ProductSubcategoryID))));
Among all the production technicians, how many have a below average pay rate for a production technician?
production technician is a job title; below average rate refers to Rate<AVG(Rate);
store contact refers to PersonType = 'SC'; year(EndDate)>2007 and year(StartDate)<2007;
Among all the production technicians, how many have a below average pay rate for a production technician?
production technician is a job title; below average rate refers to Rate<AVG(Rate);
AVG(Rating) = DIVIDE(SUM(rating), COUNT(ReviewerName))
Among all the production technicians, how many have a below average pay rate for a production technician?
production technician is a job title; below average rate refers to Rate<AVG(Rate);
type of credit card refers to CardType; CardType = 'Vista';
Among all the production technicians, how many have a below average pay rate for a production technician?
production technician is a job title; below average rate refers to Rate<AVG(Rate);
credit card number refers to CardNumber;
Among all the production technicians, how many have a below average pay rate for a production technician?
production technician is a job title; below average rate refers to Rate<AVG(Rate);
employee exempt from collective bargaining refers to SalariedFlag = 1; highest pay rate refers to max(Rate)
Among all the production technicians, how many have a below average pay rate for a production technician?
production technician is a job title; below average rate refers to Rate<AVG(Rate);
employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;
Among all the production technicians, how many have a below average pay rate for a production technician?
production technician is a job title; below average rate refers to Rate<AVG(Rate);
store contact refers to PersonType = 'SC';
Among all the production technicians, how many have a below average pay rate for a production technician?
production technician is a job title; below average rate refers to Rate<AVG(Rate);
miinimum order quantity refers to MinOrderQty = 100
Among all the production technicians, how many have a below average pay rate for a production technician?
production technician is a job title; below average rate refers to Rate<AVG(Rate);
product number = productID
Among all the production technicians, how many have a below average pay rate for a production technician?
production technician is a job title; below average rate refers to Rate<AVG(Rate);
Vista Card refers to CardType = 'Vista'; expire before the year 2007 refers to ExpYear< = 2006;
Among the employees who are store contacts, how many of them have a title of "Mr."?
store contact refers to PersonType = 'SC';
Purchase order with order quantity of 5000 or more refers to OrderQty> = 5000
Among the employees who are store contacts, how many of them have a title of "Mr."?
store contact refers to PersonType = 'SC';
profit = MULTIPLY(SUBTRACT(ListPrice, Standardcost)), (Quantity)));
Among the employees who are store contacts, how many of them have a title of "Mr."?
store contact refers to PersonType = 'SC';
actual resource hours of 2 refers to ActualResourceHrs = 2
Among the employees who are store contacts, how many of them have a title of "Mr."?
store contact refers to PersonType = 'SC';
Profit = SUBTRACT(StandardPrice, LastRecipeCost)
Among the employees who are store contacts, how many of them have a title of "Mr."?
store contact refers to PersonType = 'SC';
Hex Nut 5 is name of a product
Among the employees who are store contacts, how many of them have a title of "Mr."?
store contact refers to PersonType = 'SC';
product maintenance documents are private refers to DocumentSummary = null
Among the employees who are store contacts, how many of them have a title of "Mr."?
store contact refers to PersonType = 'SC';
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 who are store contacts, how many of them have a title of "Mr."?
store contact refers to PersonType = 'SC';
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;
Among the employees who are store contacts, how many of them have a title of "Mr."?
store contact refers to PersonType = 'SC';
highest pay rate refers to MAX(Rate);
Among the employees who are store contacts, how many of them have a title of "Mr."?
store contact refers to PersonType = 'SC';
Debur and Polish is name of manufacturing location
What is the average pay rate of the employees who worked in the Engineering Departmentin 2007?
average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;
geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;
What is the average pay rate of the employees who worked in the Engineering Departmentin 2007?
average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;
company number 1 refers to BusinessEntityId = 1; employee refers to PersonType = 'EM'; full name refers to FirstName + MiddleName + LastName
What is the average pay rate of the employees who worked in the Engineering Departmentin 2007?
average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;
Mauritius Rupee is name of currency
What is the average pay rate of the employees who worked in the Engineering Departmentin 2007?
average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;
Saved in English refers to product description written in English where Culture.name = 'English'
What is the average pay rate of the employees who worked in the Engineering Departmentin 2007?
average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;
Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate
What is the average pay rate of the employees who worked in the Engineering Departmentin 2007?
average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;
discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);
What is the average pay rate of the employees who worked in the Engineering Departmentin 2007?
average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;
business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime
What is the average pay rate of the employees who worked in the Engineering Departmentin 2007?
average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;
employees that submitted resume to Human Resource Department and got hired refers to BusinessEntittyID NOT null;
What is the average pay rate of the employees who worked in the Engineering Departmentin 2007?
average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;
documents pending approval refers to Status = 1
What is the average pay rate of the employees who worked in the Engineering Departmentin 2007?
average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;
poor credit rating means bad credit; CreditRating = 5; Business number refers to BusinessEntityID
What are the differences between the 288th salesperson's predicted annual sales and his or her actual sales thus far?
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)));
married refers to MaritalStatus = M; highest pay frequency refers to PayFrequency = 2
What are the differences between the 288th salesperson's predicted annual sales and his or her actual sales thus far?
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)));
miinimum order quantity refers to MinOrderQty = 100
What are the differences between the 288th salesperson's predicted annual sales and his or her actual sales thus far?
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)));
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 are the differences between the 288th salesperson's predicted annual sales and his or her actual sales thus far?
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)));
year(StartDate) 2007; year of credit card expiration refers to ExpYear; ExpYear = 2007;
What are the differences between the 288th salesperson's predicted annual sales and his or her actual sales thus far?
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)));
employees that submitted resume to Human Resource Department and got hired refers to BusinessEntittyID NOT null;
What are the differences between the 288th salesperson's predicted annual sales and his or her actual sales thus far?
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)));
business id refers to BusinessEntityID
What are the differences between the 288th salesperson's predicted annual sales and his or her actual sales thus far?
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)));
Product without any rejected quantity refers to RejectedQty = 0
What are the differences between the 288th salesperson's predicted annual sales and his or her actual sales thus far?
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)));
France territory refers to SalesTerritory.Name = 'France';
What are the differences between the 288th salesperson's predicted annual sales and his or her actual sales thus far?
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)));
product number = productID
What are the differences between the 288th salesperson's predicted annual sales and his or her actual sales thus far?
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)));
average profit = DIVIDE(SUM(SUBTRACT(ListPrice, StandardCost))), (COUNT(ProductSubcategoryID))));
What type of employee is David Bradley?
type of employee refers to PersonType;
highest rating refers to Rating = 5; high class refers to Class = 'H'; men's product refers to Style = 'M'
What type of employee is David Bradley?
type of employee refers to PersonType;
Profit = AVG(SUBTRACT(ListPrice, StandardCost)>100
What type of employee is David Bradley?
type of employee refers to PersonType;
married refers to MaritalStatus = 'M'; male refers to Gender = 'M'; BirthDate < = '1959-12-31';
What type of employee is David Bradley?
type of employee refers to PersonType;
SP is an abbreviation for Sales Person; PersonType = 'SP';
What type of employee is David Bradley?
type of employee refers to PersonType;
business id refers to BusinessEntityID
What type of employee is David Bradley?
type of employee refers to PersonType;
weight in pounds refers to WeightUnitMeasureCode = 'LB';
What type of employee is David Bradley?
type of employee refers to PersonType;
percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;
What type of employee is David Bradley?
type of employee refers to PersonType;
Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'
What type of employee is David Bradley?
type of employee refers to PersonType;
highest selling price refers to MAX(ListPrice);
What type of employee is David Bradley?
type of employee refers to PersonType;
hired in 2009 refers to year(HireDate) = 2009
Please list 3 businesses along with their IDs that use cellphones.
business along with their IDs = BusinessEntityID; Cellphones refers to PhoneNumberType.name = ‘cell’
Order Reference Number refers to ReferenceOrderID
Please list 3 businesses along with their IDs that use cellphones.
business along with their IDs = BusinessEntityID; Cellphones refers to PhoneNumberType.name = ‘cell’
business id refers to BusinessEntityID
Please list 3 businesses along with their IDs that use cellphones.
business along with their IDs = BusinessEntityID; Cellphones refers to PhoneNumberType.name = ‘cell’
average age = AVG(subtract(year(now), year(HireDate)))
Please list 3 businesses along with their IDs that use cellphones.
business along with their IDs = BusinessEntityID; Cellphones refers to PhoneNumberType.name = ‘cell’
highest selling price refers to MAX(ListPrice);