query
stringlengths
24
325
positive
stringlengths
1
580
negative
stringlengths
1
580
Please list 3 businesses along with their IDs that use cellphones.
business along with their IDs = BusinessEntityID; Cellphones refers to PhoneNumberType.name = ‘cell’
assembly lines that are not finished refers to EndDate = null
Please list 3 businesses along with their IDs that use cellphones.
business along with their IDs = BusinessEntityID; Cellphones refers to PhoneNumberType.name = ‘cell’
over 3 price changes refers to count(ListPrice)>3
Please list 3 businesses along with their IDs that use cellphones.
business along with their IDs = BusinessEntityID; Cellphones refers to PhoneNumberType.name = ‘cell’
Down Tube is a name of a product;
Please list 3 businesses along with their IDs that use cellphones.
business along with their IDs = BusinessEntityID; Cellphones refers to PhoneNumberType.name = ‘cell’
high class refers to Class = 'H'; men's product refers to Style = 'M'
Please list 3 businesses along with their IDs that use cellphones.
business along with their IDs = BusinessEntityID; Cellphones refers to PhoneNumberType.name = ‘cell’
average profit = DIVIDE(SUM(SUBTRACT(ListPrice, StandardCost))), (COUNT(ProductSubcategoryID))));
Please list 3 businesses along with their IDs that use cellphones.
business along with their IDs = BusinessEntityID; Cellphones refers to PhoneNumberType.name = ‘cell’
type of credit card refers to CardType; CardType = 'Vista';
Please list the product names of all the products on the LL Road Frame Sale.
LL Road Frame Sale is a description of special offer
Profit = SUBTRACT(StandardPrice, LastRecipeCost)
Please list the product names of all the products on the LL Road Frame Sale.
LL Road Frame Sale is a description of special offer
Average = Divide(Sum(Substract(year(@today),year(BirthDate))),Count(BusinessEntityID) by each Department ID; youngest employee refers to Min(BirthDate);
Please list the product names of all the products on the LL Road Frame Sale.
LL Road Frame Sale is a description of special offer
assembly lines that are not finished refers to EndDate = null
Please list the product names of all the products on the LL Road Frame Sale.
LL Road Frame Sale is a description of special offer
product that are purchased refers to MakeFlag = 0; never received highest rating refers to Rating! = 5
Please list the product names of all the products on the LL Road Frame Sale.
LL Road Frame Sale is a description of special offer
AVG(Rating) = DIVIDE(SUM(rating), COUNT(ReviewerName))
Please list the product names of all the products on the LL Road Frame Sale.
LL Road Frame Sale is a description of special offer
TransactionDate BETWEEN '2013-08-01' AND '2013-08-30'; sold in refers to TransactionType = 'S' which means SalesOrder;
Please list the product names of all the products on the LL Road Frame Sale.
LL Road Frame Sale is a description of special offer
miinimum order quantity refers to MinOrderQty = 100
Please list the product names of all the products on the LL Road Frame Sale.
LL Road Frame Sale is a description of special offer
type of credit card refers to CardType; CardType = 'Vista';
Please list the product names of all the products on the LL Road Frame Sale.
LL Road Frame Sale is a description of special offer
Married refers to MaritalStatus = 'M';  non-sales employees refer to PersonType = 'EM'
Please list the product names of all the products on the LL Road Frame Sale.
LL Road Frame Sale is a description of special offer
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)));
How many types of tax did the sales happen in Quebec have?
If Name = "+" in the value from SalesTaxRate, it means this sales are charged by multiple types of tax; Quebec refers to the name of State Province
Valley Bicycle Specialists is a name of store; full address = AddressLine1+AddressLine2;
How many types of tax did the sales happen in Quebec have?
If Name = "+" in the value from SalesTaxRate, it means this sales are charged by multiple types of tax; Quebec refers to the name of State Province
LL Road Frame Sale is a description of special offer
How many types of tax did the sales happen in Quebec have?
If Name = "+" in the value from SalesTaxRate, it means this sales are charged by multiple types of tax; Quebec refers to the name of State Province
job position and job title are synonyms; full name = FirstName+MiddleName+LastName;
How many types of tax did the sales happen in Quebec have?
If Name = "+" in the value from SalesTaxRate, it means this sales are charged by multiple types of tax; Quebec refers to the name of State Province
business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime
How many types of tax did the sales happen in Quebec have?
If Name = "+" in the value from SalesTaxRate, it means this sales are charged by multiple types of tax; Quebec refers to the name of State Province
full name = FirstName+MiddleName+LastName; HiredDate refers to the date the person joins the company;
How many types of tax did the sales happen in Quebec have?
If Name = "+" in the value from SalesTaxRate, it means this sales are charged by multiple types of tax; Quebec refers to the name of State Province
work order refers to TransactionType = 'W'; Quantity BETWEEN 100 AND 250; ReorderPoint< = 375;
How many types of tax did the sales happen in Quebec have?
If Name = "+" in the value from SalesTaxRate, it means this sales are charged by multiple types of tax; Quebec refers to the name of State Province
actual resource hours of 2 refers to ActualResourceHrs = 2
How many types of tax did the sales happen in Quebec have?
If Name = "+" in the value from SalesTaxRate, it means this sales are charged by multiple types of tax; Quebec refers to the name of State Province
fewest online orders refer to MIN(Quantity);
How many types of tax did the sales happen in Quebec have?
If Name = "+" in the value from SalesTaxRate, it means this sales are charged by multiple types of tax; Quebec refers to the name of State Province
employees that submitted resume to Human Resource Department and got hired refers to BusinessEntittyID NOT null;
How many types of tax did the sales happen in Quebec have?
If Name = "+" in the value from SalesTaxRate, it means this sales are charged by multiple types of tax; Quebec refers to the name of State Province
percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;
How many of the workers who started working in 2009 are from the Production Department?
StartDate BETWEEN '2009-01-01' AND '2009-12-31';
increased their current year sales by more than 60% refers to DIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6
How many of the workers who started working in 2009 are from the Production Department?
StartDate BETWEEN '2009-01-01' AND '2009-12-31';
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;
How many of the workers who started working in 2009 are from the Production Department?
StartDate BETWEEN '2009-01-01' AND '2009-12-31';
Headset Ball Bearings is name of a product
How many of the workers who started working in 2009 are from the Production Department?
StartDate BETWEEN '2009-01-01' AND '2009-12-31';
type of credit card refers to CardType; CardType = 'Vista';
How many of the workers who started working in 2009 are from the Production Department?
StartDate BETWEEN '2009-01-01' AND '2009-12-31';
business along with their IDs = BusinessEntityID; Cellphones refers to PhoneNumberType.name = ‘cell’
How many of the workers who started working in 2009 are from the Production Department?
StartDate BETWEEN '2009-01-01' AND '2009-12-31';
lowest rating refers to Rating = 1
How many of the workers who started working in 2009 are from the Production Department?
StartDate BETWEEN '2009-01-01' AND '2009-12-31';
highest selling price refers to MAX(ListPrice);
How many of the workers who started working in 2009 are from the Production Department?
StartDate BETWEEN '2009-01-01' AND '2009-12-31';
employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));
How many of the workers who started working in 2009 are from the Production Department?
StartDate BETWEEN '2009-01-01' AND '2009-12-31';
thumbnail photo file refers to ThumbnailPhotoFileName;
How many of the workers who started working in 2009 are from the Production Department?
StartDate BETWEEN '2009-01-01' AND '2009-12-31';
cost refers to StandardCost;
Please list all the vendors' usual selling prices of the product Hex Nut 5.
vendor's selling price refers to StandardPrice
do not have any type of offer refers to Description = 'No Discount'; sold in an amount greater than 2 refers to OrderQty>2
Please list all the vendors' usual selling prices of the product Hex Nut 5.
vendor's selling price refers to StandardPrice
mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))
Please list all the vendors' usual selling prices of the product Hex Nut 5.
vendor's selling price refers to StandardPrice
credit card number refers to CardNumber; employees who left the department refers to EndDate NOT null; Engineering Department is a name of department;
Please list all the vendors' usual selling prices of the product Hex Nut 5.
vendor's selling price refers to StandardPrice
married employee refers to MaritalStatus = 'M'; less than 20 vacation hours refers to VacationHours<20
Please list all the vendors' usual selling prices of the product Hex Nut 5.
vendor's selling price refers to StandardPrice
SP is an abbreviation for Sales Person; PersonType = 'SP';
Please list all the vendors' usual selling prices of the product Hex Nut 5.
vendor's selling price refers to StandardPrice
store contact refers to PersonType = 'SC';
Please list all the vendors' usual selling prices of the product Hex Nut 5.
vendor's selling price refers to StandardPrice
cost refers to StandardCost;
Please list all the vendors' usual selling prices of the product Hex Nut 5.
vendor's selling price refers to 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';
Please list all the vendors' usual selling prices of the product Hex Nut 5.
vendor's selling price refers to StandardPrice
tax amount refers to TaxAmt; biggest tax amount refers to MAX(TaxAmt);
Please list all the vendors' usual selling prices of the product Hex Nut 5.
vendor's selling price refers to StandardPrice
production technician is a job title; below average rate refers to Rate<AVG(Rate);
Which product has the highest price in 2012?
price refers to ListPrice; highest price refers to MAX(ListPrice);
business id refers to BusinessEntityID
Which product has the highest price in 2012?
price refers to ListPrice; highest price refers to MAX(ListPrice);
Valley Bicycle Specialists is a name of store; full address = AddressLine1+AddressLine2;
Which product has the highest price in 2012?
price refers to ListPrice; highest price refers to MAX(ListPrice);
SUBTRACT(LastReceiptCost, StandardPrice) for ProductID where name = 'Freewheel'
Which product has the highest price in 2012?
price refers to ListPrice; highest price refers to MAX(ListPrice);
percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%
Which product has the highest price in 2012?
price refers to ListPrice; highest price refers to MAX(ListPrice);
store contact refers to PersonType = 'SC';
Which product has the highest price in 2012?
price refers to ListPrice; highest price refers to MAX(ListPrice);
cost refers to StandardCost;
Which product has the highest price in 2012?
price refers to ListPrice; highest price refers to MAX(ListPrice);
percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;
Which product has the highest price in 2012?
price refers to ListPrice; highest price refers to MAX(ListPrice);
Headset Ball Bearings is name of a product
Which product has the highest price in 2012?
price refers to ListPrice; highest price refers to MAX(ListPrice);
profit = SUBTRACT(ListPrice, StandardCost);
Which product has the highest price in 2012?
price refers to ListPrice; highest price refers to MAX(ListPrice);
Profit on net = SUBTRACT(LastReceiptCost, StandardPrice); full location = AddressLine1+AddressLine2+City+PostalCode;
Average cost of purchase orders made during the first six months of 2012.
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))
product maintenance documents are private refers to DocumentSummary = null
Average cost of purchase orders made during the first six months of 2012.
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))
assembly lines that are not finished refers to EndDate = null
Average cost of purchase orders made during the first six months of 2012.
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))
year of credit card expiration refers to ExpYear;
Average cost of purchase orders made during the first six months of 2012.
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))
days to end a work order = SUBTRACT(ActualEndDate, ActualStartDate);
Average cost of purchase orders made during the first six months of 2012.
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))
highest rating refers to MAX(Rating)
Average cost of purchase orders made during the first six months of 2012.
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))
France territory refers to SalesTerritory.Name = 'France';
Average cost of purchase orders made during the first six months of 2012.
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))
work order refers to TransactionType = 'W'; Quantity BETWEEN 100 AND 250; ReorderPoint< = 375;
Average cost of purchase orders made during the first six months of 2012.
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))
tax amount refers to TaxAmt; biggest tax amount refers to MAX(TaxAmt);
Average cost of purchase orders made during the first six months of 2012.
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))
Average cost = AVG(StandardCost)
Average cost of purchase orders made during the first six months of 2012.
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))
year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';
Please list the names of the products that have over 3 price changes.
over 3 price changes refers to count(ListPrice)>3
If Name = "+" in the value from SalesTaxRate, it means this sales are charged by multiple types of tax; Quebec refers to the name of State Province
Please list the names of the products that have over 3 price changes.
over 3 price changes refers to count(ListPrice)>3
PreferredVendorStatus = 1 means 'Do not use if another vendor is available'; CreditRating = 2 means 'Preferred over other vendors supplying the same product'
Please list the names of the products that have over 3 price changes.
over 3 price changes refers to count(ListPrice)>3
active status of employees refers to CurrentFlag = 1; Male refers to Gender = 'M'; highest frequency refers to PayFrequency = 2;
Please list the names of the products that have over 3 price changes.
over 3 price changes refers to count(ListPrice)>3
type of employee refers to PersonType;
Please list the names of the products that have over 3 price changes.
over 3 price changes refers to count(ListPrice)>3
mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))
Please list the names of the products that have over 3 price changes.
over 3 price changes refers to count(ListPrice)>3
documents pending approval refers to Status = 1
Please list the names of the products that have over 3 price changes.
over 3 price changes refers to count(ListPrice)>3
price refers to ListPrice; price of 3 products = MULTIPLY(ListPrice, 3); Lock Washer 6 is a name of a product;
Please list the names of the products that have over 3 price changes.
over 3 price changes refers to count(ListPrice)>3
employees that submitted resume to Human Resource Department and got hired refers to BusinessEntittyID NOT null;
Please list the names of the products that have over 3 price changes.
over 3 price changes refers to count(ListPrice)>3
geographic area to which the city belong refers to Group;
Please list the names of the products that have over 3 price changes.
over 3 price changes refers to count(ListPrice)>3
product number = productID
What are the total per assembly quantity for unit measure code EA, IN and OZ respectively? What are the name of these 3 code?
Pre assembly quantity refers to PerAssemblyQty
Product with the lowest rating refers to the rating given by the reviewer where Rating = 1
What are the total per assembly quantity for unit measure code EA, IN and OZ respectively? What are the name of these 3 code?
Pre assembly quantity refers to PerAssemblyQty
business id refers to BusinessEntityID
What are the total per assembly quantity for unit measure code EA, IN and OZ respectively? What are the name of these 3 code?
Pre assembly quantity refers to PerAssemblyQty
documents pending approval refers to Status = 1
What are the total per assembly quantity for unit measure code EA, IN and OZ respectively? What are the name of these 3 code?
Pre assembly quantity refers to PerAssemblyQty
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)));
What are the total per assembly quantity for unit measure code EA, IN and OZ respectively? What are the name of these 3 code?
Pre assembly quantity refers to PerAssemblyQty
Bike refers to the name of the product category, therefore ProductCategoryID = 1
What are the total per assembly quantity for unit measure code EA, IN and OZ respectively? What are the name of these 3 code?
Pre assembly quantity refers to PerAssemblyQty
fewest online orders refer to MIN(Quantity);
What are the total per assembly quantity for unit measure code EA, IN and OZ respectively? What are the name of these 3 code?
Pre assembly quantity refers to PerAssemblyQty
customers' name refers to ReviewerName; best possible ratings means the highest rating = 5
What are the total per assembly quantity for unit measure code EA, IN and OZ respectively? What are the name of these 3 code?
Pre assembly quantity refers to PerAssemblyQty
employee exempt from collective bargaining refers to SalariedFlag = 1; highest pay rate refers to max(Rate)
What are the total per assembly quantity for unit measure code EA, IN and OZ respectively? What are the name of these 3 code?
Pre assembly quantity refers to PerAssemblyQty
Jill refers to the name of reviewer; HL Mountain Pedal refers to the name of the product
What are the total per assembly quantity for unit measure code EA, IN and OZ respectively? What are the name of these 3 code?
Pre assembly quantity refers to PerAssemblyQty
business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)
Which reviewer gives the biggest number of the highest rating?
highest rating refers to MAX(Rating)
assembly lines that are not finished refers to EndDate = null
Which reviewer gives the biggest number of the highest rating?
highest rating refers to MAX(Rating)
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
Which reviewer gives the biggest number of the highest rating?
highest rating refers to MAX(Rating)
employees refers to BusinessEntityID; most unused sick leave refers to MAX(SickLeaveHours); position title refers to JobTitle
Which reviewer gives the biggest number of the highest rating?
highest rating refers to MAX(Rating)
price refers to ListPrice;
Which reviewer gives the biggest number of the highest rating?
highest rating refers to MAX(Rating)
work order transaction refers to TransactionType = 'W';
Which reviewer gives the biggest number of the highest rating?
highest rating refers to MAX(Rating)
profit on net = subtract(LastReceiptCost, StandardPrice); best profit on net refers to max(subtract(LastReceiptCost, StandardPrice))
Which reviewer gives the biggest number of the highest rating?
highest rating refers to MAX(Rating)
married employee refers to MaritalStatus = 'M'; less than 20 vacation hours refers to VacationHours<20
Which reviewer gives the biggest number of the highest rating?
highest rating refers to MAX(Rating)
Salespeople refers to PersonType = 'SP'
Which reviewer gives the biggest number of the highest rating?
highest rating refers to MAX(Rating)
Headset Ball Bearings is name of a product
Which reviewer gives the biggest number of the highest rating?
highest rating refers to MAX(Rating)
Night shift refers to Name = 'Night';
Please give all the list prices of the product LL Fork.
Hex Nut 5 is name of a product
price refers to ListPrice;
Please give all the list prices of the product LL Fork.
Hex Nut 5 is name of a product
work order refers to TransactionType = 'W'; Quantity BETWEEN 100 AND 250; ReorderPoint< = 375;
Please give all the list prices of the product LL Fork.
Hex Nut 5 is name of a product
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
Please give all the list prices of the product LL Fork.
Hex Nut 5 is name of a product
average selling price = divide(sum(StandardPrice), count(BusinessEntityID))