query
stringlengths 24
325
| positive
stringlengths 1
580
| negative
stringlengths 1
580
|
---|---|---|
Please list the businesses along with their numbers that have their accounts located in Duvall.
|
Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'
|
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))
|
Please list the businesses along with their numbers that have their accounts located in Duvall.
|
Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'
|
Debur and Polish is name of manufacturing location
|
Please list the businesses along with their numbers that have their accounts located in Duvall.
|
Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'
|
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;
|
Please list the businesses along with their numbers that have their accounts located in Duvall.
|
Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'
|
Stocked quantity refers to StockedQty
|
Please list the businesses along with their numbers that have their accounts located in Duvall.
|
Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'
|
increased their current year sales by more than 60% refers to
DIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6
|
Please list the businesses along with their numbers that have their accounts located in Duvall.
|
Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'
|
Located refers to the total address of the entity that comprises city, addressline1, addressline2
|
List all the socks products.
|
Socks is a name of product subcategory
|
lowest pay refers to min(Rate);
|
List all the socks products.
|
Socks is a name of product subcategory
|
Canada is name of sales territory
|
List all the socks products.
|
Socks is a name of product subcategory
|
type of credit card refers to CardType; CardType = 'Vista';
|
List all the socks products.
|
Socks is a name of product subcategory
|
employee number 257 refers to EmployeeID = 257; pending shipment status refers to Status = 3
|
List all the socks products.
|
Socks is a name of product subcategory
|
hired in 2009 refers to year(HireDate) = 2009
|
List all the socks products.
|
Socks is a name of product subcategory
|
average selling price = divide(sum(StandardPrice), count(BusinessEntityID))
|
List all the socks products.
|
Socks is a name of product subcategory
|
Sales people refer to PersonType = 'SP'; projected yearly sales refers to SalesQuota
|
List all the socks products.
|
Socks is a name of product subcategory
|
Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate
|
List all the socks products.
|
Socks is a name of product subcategory
|
Facilities Manager is a job title
|
List all the socks products.
|
Socks is a name of product subcategory
|
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 cost and the product number of product with the id "888"?
|
cost refers to StandardCost;
|
Catherine Ward refers to the name of BusinessEntityID; how many letters in password for the e-mail account refers to LENGTH(PasswordHash)
|
What is the cost and the product number of product with the id "888"?
|
cost refers to StandardCost;
|
Night shift refers to Name = 'Night';
|
What is the cost and the product number of product with the id "888"?
|
cost refers to StandardCost;
|
resellers refers to Category = 'Reseller';
|
What is the cost and the product number of product with the id "888"?
|
cost refers to StandardCost;
|
number of product rejected refers to ScrapedQty; trim length that is too long refers to scrap reason where Name = 'Trim length too long'
|
What is the cost and the product number of product with the id "888"?
|
cost refers to StandardCost;
|
business id refers to BusinessEntityID
|
What is the cost and the product number of product with the id "888"?
|
cost refers to StandardCost;
|
unmarried refers to MaritalStatus = 'S', male refers to Gender = 'M', Production Supervisors is a job title
|
What is the cost and the product number of product with the id "888"?
|
cost refers to StandardCost;
|
highest rating refers to Rating = 5; high class refers to Class = 'H'; men's product refers to Style = 'M'
|
What is the cost and the product number of product with the id "888"?
|
cost refers to StandardCost;
|
non-sales employee refers to PersonType = 'EM'
|
What is the cost and the product number of product with the id "888"?
|
cost refers to StandardCost;
|
in centimeter refers to SizeUnitMeasureCode = 'CM';
|
What is the cost and the product number of product with the id "888"?
|
cost refers to StandardCost;
|
shelves refer to shelf; down tube is a product
|
What is the surname suffix of the employee who works as a store contact and has the longest sick leave hours?
|
store contact refers to PersonType = 'SC';
|
seasonal discount is a type of special offer; discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);
|
What is the surname suffix of the employee who works as a store contact and has the longest sick leave hours?
|
store contact refers to PersonType = 'SC';
|
card that expires in 2007 refers to ExpYear = 2007;
|
What is the surname suffix of the employee who works as a store contact and has the longest sick leave hours?
|
store contact refers to PersonType = 'SC';
|
do not have any type of offer refers to Description = 'No Discount'; sold in an amount greater than 2 refers to OrderQty>2
|
What is the surname suffix of the employee who works as a store contact and has the longest sick leave hours?
|
store contact refers to PersonType = 'SC';
|
active status of employees refers to CurrentFlag = 1;
|
What is the surname suffix of the employee who works as a store contact and has the longest sick leave hours?
|
store contact refers to PersonType = 'SC';
|
shelves refer to shelf; down tube is a product
|
What is the surname suffix of the employee who works as a store contact and has the longest sick leave hours?
|
store contact refers to PersonType = 'SC';
|
profit = SUBTRACT(ListPrice, StandardCost);
|
What is the surname suffix of the employee who works as a store contact and has the longest sick leave hours?
|
store contact refers to PersonType = 'SC';
|
Male refers to Gender = 'M'; married refers to MaritalStatus = 'M'; oldest refers to Min(BirthDate);
|
What is the surname suffix of the employee who works as a store contact and has the longest sick leave hours?
|
store contact refers to PersonType = 'SC';
|
product is mnanufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;
|
What is the surname suffix of the employee who works as a store contact and has the longest sick leave hours?
|
store contact refers to PersonType = 'SC';
|
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))
|
What is the surname suffix of the employee who works as a store contact and has the longest sick leave hours?
|
store contact refers to PersonType = 'SC';
|
projected sales quota refers to SalesQuota; projected sales quota in 2013 refers to year(QuotaDate) = 2013;
|
Who is the Vice President of Engineering and when did he join the company? Indicate his/her full name.
|
full name = FirstName+MiddleName+LastName; HiredDate refers to the date the person joins the company;
|
Low quality refers to the product's quality class, therefore Class = 'L'
|
Who is the Vice President of Engineering and when did he join the company? Indicate his/her full name.
|
full name = FirstName+MiddleName+LastName; HiredDate refers to the date the person joins the company;
|
business id refers to BusinessEntityID
|
Who is the Vice President of Engineering and when did he join the company? Indicate his/her full name.
|
full name = FirstName+MiddleName+LastName; HiredDate refers to the date the person joins the company;
|
business along with their IDs = BusinessEntityID; Cellphones refers to PhoneNumberType.name = ‘cell’
|
Who is the Vice President of Engineering and when did he join the company? Indicate his/her full name.
|
full name = FirstName+MiddleName+LastName; HiredDate refers to the date the person joins the company;
|
BirthDate<'1980-01-01'; single refers to MaritalStatus = 'S' or null;
|
Who is the Vice President of Engineering and when did he join the company? Indicate his/her full name.
|
full name = FirstName+MiddleName+LastName; HiredDate refers to the date the person joins the company;
|
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);
|
Who is the Vice President of Engineering and when did he join the company? Indicate his/her full name.
|
full name = FirstName+MiddleName+LastName; HiredDate refers to the date the person joins the company;
|
male refers to Gender = 'M'; employee refers to PersonType = 'EM'; percentage = DIVIDE(COUNT(Gender = 'M'), COUNT(PersonType = 'MY'))*100%;
|
Who is the Vice President of Engineering and when did he join the company? Indicate his/her full name.
|
full name = FirstName+MiddleName+LastName; HiredDate refers to the date the person joins the company;
|
high class refers to Class = 'H'; men's product refers to Style = 'M'
|
Who is the Vice President of Engineering and when did he join the company? Indicate his/her full name.
|
full name = FirstName+MiddleName+LastName; HiredDate refers to the date the person joins the company;
|
LL Road Frame Sale is a description of special offer
|
Who is the Vice President of Engineering and when did he join the company? Indicate his/her full name.
|
full name = FirstName+MiddleName+LastName; HiredDate refers to the date the person joins the company;
|
Profit on net = SUBTRACT(LastReceiptCost, StandardPrice); full location = AddressLine1+AddressLine2+City+PostalCode;
|
Who is the Vice President of Engineering and when did he join the company? Indicate his/her full name.
|
full name = FirstName+MiddleName+LastName; HiredDate refers to the date the person joins the company;
|
mountain product line refers to ProductLine = 'M'
|
What time does the company's night shift begin? Indicate the answer in regular form.
|
Night shift refers to Name = 'Night';
|
percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%
|
What time does the company's night shift begin? Indicate the answer in regular form.
|
Night shift refers to Name = 'Night';
|
Order Reference Number refers to ReferenceOrderID
|
What time does the company's night shift begin? Indicate the answer in regular form.
|
Night shift refers to Name = 'Night';
|
located in the Subassembly category refers to Name = 'Subassembly'
|
What time does the company's night shift begin? Indicate the answer in regular form.
|
Night shift refers to Name = 'Night';
|
maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
|
What time does the company's night shift begin? Indicate the answer in regular form.
|
Night shift refers to Name = 'Night';
|
Oldest employee refers to Max ( Subtract((now())-BirthDate));
|
What time does the company's night shift begin? Indicate the answer in regular form.
|
Night shift refers to Name = 'Night';
|
employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));
|
What time does the company's night shift begin? Indicate the answer in regular form.
|
Night shift refers to Name = 'Night';
|
home manufactured refers to MakeFlag = 1; average rating = divide(sum(Rating), count(ProductReview))
|
What time does the company's night shift begin? Indicate the answer in regular form.
|
Night shift refers to Name = 'Night';
|
mountain product line refers to ProductLine = 'M'
|
What time does the company's night shift begin? Indicate the answer in regular form.
|
Night shift refers to Name = 'Night';
|
work order refers to TransactionType = 'W'; Quantity BETWEEN 100 AND 250; ReorderPoint< = 375;
|
What time does the company's night shift begin? Indicate the answer in regular form.
|
Night shift refers to Name = 'Night';
|
Low quality refers to the product's quality class, therefore Class = 'L'
|
Please list any 3 product numbers with the lowest standard cost.
|
product number = productID
|
percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;
|
Please list any 3 product numbers with the lowest standard cost.
|
product number = productID
|
quantities not greater than 3 refers to OrderQty<3; discount of 0.2 refers to UnitPriceDiscount = 0.2; percentage = DIVIDE(count(SalesOrderID(OrderQty<3 & UnitPriceDiscount = 0.2)), count(SalesOrderID))*100%
|
Please list any 3 product numbers with the lowest standard cost.
|
product number = productID
|
Rejected refers rejected product in which to RejectedQty = 1
|
Please list any 3 product numbers with the lowest standard cost.
|
product number = productID
|
percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%
|
Please list any 3 product numbers with the lowest standard cost.
|
product number = productID
|
business id refers to BusinessEntityID
|
Please list any 3 product numbers with the lowest standard cost.
|
product number = productID
|
located in the Subassembly category refers to Name = 'Subassembly'
|
Please list any 3 product numbers with the lowest standard cost.
|
product number = productID
|
Information Service is a name of department;
|
Please list any 3 product numbers with the lowest standard cost.
|
product number = productID
|
Alex refers to FirstName = 'Alex'; single refers to MaritalStatus = 'S'
|
Please list any 3 product numbers with the lowest standard cost.
|
product number = productID
|
Jill refers to the name of reviewer; HL Mountain Pedal refers to the name of the product
|
Please list any 3 product numbers with the lowest standard cost.
|
product number = productID
|
SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate;
|
How many materials still need to be assembled and have a depth of 2 between each component and their parent product?
|
still need to be assembled means the assembly doesn't finish or still going on which refers to EndDate IS NULL; a depth of 2 refers to BOMLevel = 2;
|
lowest rating refers to Rating = 1
|
How many materials still need to be assembled and have a depth of 2 between each component and their parent product?
|
still need to be assembled means the assembly doesn't finish or still going on which refers to EndDate IS NULL; a depth of 2 refers to BOMLevel = 2;
|
geographic area to which the city belong refers to Group;
|
How many materials still need to be assembled and have a depth of 2 between each component and their parent product?
|
still need to be assembled means the assembly doesn't finish or still going on which refers to EndDate IS NULL; a depth of 2 refers to BOMLevel = 2;
|
SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate;
|
How many materials still need to be assembled and have a depth of 2 between each component and their parent product?
|
still need to be assembled means the assembly doesn't finish or still going on which refers to EndDate IS NULL; a depth of 2 refers to BOMLevel = 2;
|
oldest employee refers to min(BirthDate)
|
How many materials still need to be assembled and have a depth of 2 between each component and their parent product?
|
still need to be assembled means the assembly doesn't finish or still going on which refers to EndDate IS NULL; a depth of 2 refers to BOMLevel = 2;
|
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
|
How many materials still need to be assembled and have a depth of 2 between each component and their parent product?
|
still need to be assembled means the assembly doesn't finish or still going on which refers to EndDate IS NULL; a depth of 2 refers to BOMLevel = 2;
|
Alex refers to FirstName = 'Alex'; single refers to MaritalStatus = 'S'
|
How many materials still need to be assembled and have a depth of 2 between each component and their parent product?
|
still need to be assembled means the assembly doesn't finish or still going on which refers to EndDate IS NULL; a depth of 2 refers to BOMLevel = 2;
|
minimum order quantity refers to MinOrderQty;
|
How many materials still need to be assembled and have a depth of 2 between each component and their parent product?
|
still need to be assembled means the assembly doesn't finish or still going on which refers to EndDate IS NULL; a depth of 2 refers to BOMLevel = 2;
|
store contact refers to PersonType = 'SC';
|
How many materials still need to be assembled and have a depth of 2 between each component and their parent product?
|
still need to be assembled means the assembly doesn't finish or still going on which refers to EndDate IS NULL; a depth of 2 refers to BOMLevel = 2;
|
geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;
|
How many materials still need to be assembled and have a depth of 2 between each component and their parent product?
|
still need to be assembled means the assembly doesn't finish or still going on which refers to EndDate IS NULL; a depth of 2 refers to BOMLevel = 2;
|
MOQ refers to minimum order quantity; MOQ of 1 refers to MinOrderQty = 1; standard cost more than 48 refers to StandardCost > 48;
|
Names the Sales Representative with the highest year to date sales.
|
Highest year to date sales refers to Max(SalesYTD);
|
ModifiedDate between'2014-09-12 00:00:00' and '2014-09-12 23:59:59';
|
Names the Sales Representative with the highest year to date sales.
|
Highest year to date sales refers to Max(SalesYTD);
|
Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate
|
Names the Sales Representative with the highest year to date sales.
|
Highest year to date sales refers to Max(SalesYTD);
|
current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100%
|
Names the Sales Representative with the highest year to date sales.
|
Highest year to date sales refers to Max(SalesYTD);
|
job position and job title are synonyms; full name = FirstName+MiddleName+LastName;
|
Names the Sales Representative with the highest year to date sales.
|
Highest year to date sales refers to Max(SalesYTD);
|
store contact refers to PersonType = 'SC';
|
Names the Sales Representative with the highest year to date sales.
|
Highest year to date sales refers to Max(SalesYTD);
|
non-sales employee refers to PersonType = 'EM'
|
Names the Sales Representative with the highest year to date sales.
|
Highest year to date sales refers to Max(SalesYTD);
|
fewest online orders refer to MIN(Quantity);
|
Names the Sales Representative with the highest year to date sales.
|
Highest year to date sales refers to Max(SalesYTD);
|
where the person live refers addresstype.Name = 'Home'
|
Names the Sales Representative with the highest year to date sales.
|
Highest year to date sales refers to Max(SalesYTD);
|
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;
|
Names the Sales Representative with the highest year to date sales.
|
Highest year to date sales refers to Max(SalesYTD);
|
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;
|
How many active employees whose payrate is equal or below 30 per hour.
|
active employee refers to CurrentFlag = 1; Rate< = 30;
|
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 active employees whose payrate is equal or below 30 per hour.
|
active employee refers to CurrentFlag = 1; Rate< = 30;
|
tax amount refers to TaxAmt; biggest tax amount refers to MAX(TaxAmt);
|
How many active employees whose payrate is equal or below 30 per hour.
|
active employee refers to CurrentFlag = 1; Rate< = 30;
|
LL Road Frame Sale is a description of special offer
|
How many active employees whose payrate is equal or below 30 per hour.
|
active employee refers to CurrentFlag = 1; Rate< = 30;
|
began work in 2009 or later refers to StartDate> = 2009;
|
How many active employees whose payrate is equal or below 30 per hour.
|
active employee refers to CurrentFlag = 1; Rate< = 30;
|
AVG(Rating) = DIVIDE(SUM(rating), COUNT(ReviewerName))
|
How many active employees whose payrate is equal or below 30 per hour.
|
active employee refers to CurrentFlag = 1; Rate< = 30;
|
employee exempt from collective bargaining refers to SalariedFlag = 1; highest pay rate refers to max(Rate)
|
How many active employees whose payrate is equal or below 30 per hour.
|
active employee refers to CurrentFlag = 1; Rate< = 30;
|
percentage = DIVIDE(SUM(Name = 'Night')), (COUNT(ShiftID)) as percentage;
|
How many active employees whose payrate is equal or below 30 per hour.
|
active employee refers to CurrentFlag = 1; Rate< = 30;
|
Product with more than 5 quantity refers to Quantity>5
|
How many active employees whose payrate is equal or below 30 per hour.
|
active employee refers to CurrentFlag = 1; Rate< = 30;
|
Rejected refers rejected product in which to RejectedQty = 1
|
How many active employees whose payrate is equal or below 30 per hour.
|
active employee refers to CurrentFlag = 1; Rate< = 30;
|
cost refers to StandardCost;
|
Among the employees in Adventure Works, calculate the percentage of them working as sales representatives.
|
percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%
|
Alex refers to FirstName = 'Alex'; single refers to MaritalStatus = 'S'
|
Among the employees in Adventure Works, calculate the percentage of them working as sales representatives.
|
percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%
|
Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa
|
Among the employees in Adventure Works, calculate the percentage of them working as sales representatives.
|
percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%
|
Socks is a name of product subcategory
|
Among the employees in Adventure Works, calculate the percentage of them working as sales representatives.
|
percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%
|
Sales and Marketing is group name of a department
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.