query
stringlengths 24
325
| positive
stringlengths 1
580
| negative
stringlengths 1
580
|
---|---|---|
Among the Production Technicians who are single, how many of them are vendor contact?
|
Production Technicians refer to the JobTitle = 'Production Technician%'; single refers to MaritalStatus = 'S'; Vendor contact refers to PersonType = 'VC'
|
Lightest product refers to Min(Weight); profit if they sell 10 items refers to Subtract (ListPrice , StandardCost) *10;
|
Among the Production Technicians who are single, how many of them are vendor contact?
|
Production Technicians refer to the JobTitle = 'Production Technician%'; single refers to MaritalStatus = 'S'; Vendor contact refers to PersonType = 'VC'
|
Average = Divide(Sum(Substract(year(@today),year(BirthDate))),Count(BusinessEntityID) by each Department ID; youngest employee refers to Min(BirthDate);
|
Among the Production Technicians who are single, how many of them are vendor contact?
|
Production Technicians refer to the JobTitle = 'Production Technician%'; single refers to MaritalStatus = 'S'; Vendor contact refers to PersonType = 'VC'
|
product with large photo refers to LargePhoto NOT null;
|
Among the Production Technicians who are single, how many of them are vendor contact?
|
Production Technicians refer to the JobTitle = 'Production Technician%'; single refers to MaritalStatus = 'S'; Vendor contact refers to PersonType = 'VC'
|
geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;
|
Among the Production Technicians who are single, how many of them are vendor contact?
|
Production Technicians refer to the JobTitle = 'Production Technician%'; single refers to MaritalStatus = 'S'; Vendor contact refers to PersonType = 'VC'
|
LL Road Frame Sale is a description of special offer
|
Among the Production Technicians who are single, how many of them are vendor contact?
|
Production Technicians refer to the JobTitle = 'Production Technician%'; single refers to MaritalStatus = 'S'; Vendor contact refers to PersonType = 'VC'
|
compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product
|
Which Production Technician has the highest pay rate?
|
highest pay rate refers to MAX(Rate);
|
documents pending approval refers to Status = 1
|
Which Production Technician has the highest pay rate?
|
highest pay rate refers to MAX(Rate);
|
percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%
|
Which Production Technician has the highest pay rate?
|
highest pay rate refers to MAX(Rate);
|
active status of employees refers to CurrentFlag = 1;
|
Which Production Technician has the highest pay rate?
|
highest pay rate refers to MAX(Rate);
|
Accountant is a job title; first hired = MIN(HireDate)
|
Which Production Technician has the highest pay rate?
|
highest pay rate refers to MAX(Rate);
|
credit card number refers to CardNumber; employees who left the department refers to EndDate NOT null; Engineering Department is a name of department;
|
Which Production Technician has the highest pay rate?
|
highest pay rate refers to MAX(Rate);
|
Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa
|
Which Production Technician has the highest pay rate?
|
highest pay rate refers to MAX(Rate);
|
Alex refers to FirstName = 'Alex'; single refers to MaritalStatus = 'S'
|
Which Production Technician has the highest pay rate?
|
highest pay rate refers to MAX(Rate);
|
type of employee refers to PersonType;
|
Which Production Technician has the highest pay rate?
|
highest pay rate refers to MAX(Rate);
|
hashed password refers to PasswordHash;
|
Which Production Technician has the highest pay rate?
|
highest pay rate refers to MAX(Rate);
|
type of credit card refers to CardType; CardType = 'Vista';
|
What was the first job position that the company needed, and who was hired? Indicate his/her full name.
|
job position and job title are synonyms; full name = FirstName+MiddleName+LastName;
|
tax applied to retail transaction refers to Taxtype = 1; sales that are charged with multiple types of tax refers to NAME LIKE '%+%';
|
What was the first job position that the company needed, and who was hired? Indicate his/her full name.
|
job position and job title are synonyms; full name = FirstName+MiddleName+LastName;
|
last receipt date is August 17, 2011 refers to LastReceiptDate> = '2011-08-17 00:00:00' and LastReceiptDate < '2011-08-18 00:00:00';
|
What was the first job position that the company needed, and who was hired? Indicate his/her full name.
|
job position and job title are synonyms; full name = FirstName+MiddleName+LastName;
|
more than 10 sick leave hours refers to SickLeaveHours>10; pay rate over 35 refers to Rate>35;
|
What was the first job position that the company needed, and who was hired? Indicate his/her full name.
|
job position and job title are synonyms; full name = FirstName+MiddleName+LastName;
|
Hex Nut 5 is name of a product
|
What was the first job position that the company needed, and who was hired? Indicate his/her full name.
|
job position and job title are synonyms; full name = FirstName+MiddleName+LastName;
|
High quality refers to the product's quality class, therefore Class = 'H'
|
What was the first job position that the company needed, and who was hired? Indicate his/her full name.
|
job position and job title are synonyms; full name = FirstName+MiddleName+LastName;
|
business id refers to BusinessEntityID
|
What was the first job position that the company needed, and who was hired? Indicate his/her full name.
|
job position and job title are synonyms; full name = FirstName+MiddleName+LastName;
|
Mauritius Rupee is name of currency
|
What was the first job position that the company needed, and who was hired? Indicate his/her full name.
|
job position and job title are synonyms; full name = FirstName+MiddleName+LastName;
|
lowest rating refers to Rating = 1
|
What was the first job position that the company needed, and who was hired? Indicate his/her full name.
|
job position and job title are synonyms; full name = FirstName+MiddleName+LastName;
|
business along with their IDs = BusinessEntityID; Cellphones refers to PhoneNumberType.name = ‘cell’
|
What was the first job position that the company needed, and who was hired? Indicate his/her full name.
|
job position and job title are synonyms; full name = FirstName+MiddleName+LastName;
|
cost refers to StandardCost;
|
What is the product that has the highest average rating from the mountain product line?
|
mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))
|
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 product that has the highest average rating from the mountain product line?
|
mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))
|
mountain product line refers to ProductLine = 'M'
|
What is the product that has the highest average rating from the mountain product line?
|
mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))
|
StartDate BETWEEN '2009-01-01' AND '2009-12-31';
|
What is the product that has the highest average rating from the mountain product line?
|
mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))
|
geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;
|
What is the product that has the highest average rating from the mountain product line?
|
mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))
|
product with large photo refers to LargePhoto NOT null;
|
What is the product that has the highest average rating from the mountain product line?
|
mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))
|
shelves refer to shelf; down tube is a product
|
What is the product that has the highest average rating from the mountain product line?
|
mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))
|
Vendor's selling price of a single product refers to UnitPrice;
|
What is the product that has the highest average rating from the mountain product line?
|
mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))
|
percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%
|
What is the product that has the highest average rating from the mountain product line?
|
mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))
|
year of credit card expiration refers to ExpYear;
|
What is the product that has the highest average rating from the mountain product line?
|
mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))
|
store contact refers to PersonType = 'SC';
|
What is the business ID of the person who has made the most sales total year to date?
|
business ID refers to BusinessEntityID; sales total year to date refers to SalesYTD; most sales total year to date refers to MAX(SalesYTD);
|
began work in 2009 or later refers to StartDate> = 2009;
|
What is the business ID of the person who has made the most sales total year to date?
|
business ID refers to BusinessEntityID; sales total year to date refers to SalesYTD; most sales total year to date refers to MAX(SalesYTD);
|
product with large photo refers to LargePhoto NOT null;
|
What is the business ID of the person who has made the most sales total year to date?
|
business ID refers to BusinessEntityID; sales total year to date refers to SalesYTD; most sales total year to date refers to MAX(SalesYTD);
|
Down Tube is a name of a product;
|
What is the business ID of the person who has made the most sales total year to date?
|
business ID refers to BusinessEntityID; sales total year to date refers to SalesYTD; most sales total year to date refers to MAX(SalesYTD);
|
projected sales quota refers to SalesQuota; projected sales quota in 2013 refers to year(QuotaDate) = 2013;
|
What is the business ID of the person who has made the most sales total year to date?
|
business ID refers to BusinessEntityID; sales total year to date refers to SalesYTD; most sales total year to date refers to MAX(SalesYTD);
|
price refers to ListPrice; highest price refers to MAX(ListPrice);
|
What is the business ID of the person who has made the most sales total year to date?
|
business ID refers to BusinessEntityID; sales total year to date refers to SalesYTD; most sales total year to date refers to MAX(SalesYTD);
|
cost refers to StandardCost;
|
What is the business ID of the person who has made the most sales total year to date?
|
business ID refers to BusinessEntityID; sales total year to date refers to SalesYTD; most sales total year to date refers to MAX(SalesYTD);
|
percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%
|
What is the business ID of the person who has made the most sales total year to date?
|
business ID refers to BusinessEntityID; sales total year to date refers to SalesYTD; most sales total year to date refers to MAX(SalesYTD);
|
Average cost = AVG(StandardCost)
|
What is the business ID of the person who has made the most sales total year to date?
|
business ID refers to BusinessEntityID; sales total year to date refers to SalesYTD; most sales total year to date refers to MAX(SalesYTD);
|
Located refers to the total address of the entity that comprises city, addressline1, addressline2
|
What is the business ID of the person who has made the most sales total year to date?
|
business ID refers to BusinessEntityID; sales total year to date refers to SalesYTD; most sales total year to date refers to MAX(SalesYTD);
|
product number = productID
|
List, by ProductID, all products whose profit, relative to the standard price, is negative.
|
Profit = SUBTRACT(StandardPrice, LastRecipeCost)
|
shipping address = AddressLine1+AddressLine2+City;
|
List, by ProductID, all products whose profit, relative to the standard price, is negative.
|
Profit = SUBTRACT(StandardPrice, LastRecipeCost)
|
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);
|
List, by ProductID, all products whose profit, relative to the standard price, is negative.
|
Profit = SUBTRACT(StandardPrice, LastRecipeCost)
|
Facilities Manager is a job title
|
List, by ProductID, all products whose profit, relative to the standard price, is negative.
|
Profit = SUBTRACT(StandardPrice, LastRecipeCost)
|
BirthDate<'1980-01-01'; single refers to MaritalStatus = 'S' or null;
|
List, by ProductID, all products whose profit, relative to the standard price, is negative.
|
Profit = SUBTRACT(StandardPrice, LastRecipeCost)
|
Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'
|
List, by ProductID, all products whose profit, relative to the standard price, is negative.
|
Profit = SUBTRACT(StandardPrice, LastRecipeCost)
|
amount to be paid refers to TotalDue;
|
List, by ProductID, all products whose profit, relative to the standard price, is negative.
|
Profit = SUBTRACT(StandardPrice, LastRecipeCost)
|
LL Road Frame Sale is a description of special offer
|
List, by ProductID, all products whose profit, relative to the standard price, is negative.
|
Profit = SUBTRACT(StandardPrice, LastRecipeCost)
|
ModifiedDate between'2014-09-12 00:00:00' and '2014-09-12 23:59:59';
|
List, by ProductID, all products whose profit, relative to the standard price, is negative.
|
Profit = SUBTRACT(StandardPrice, LastRecipeCost)
|
cost refers to StandardCost;
|
List, by ProductID, all products whose profit, relative to the standard price, is negative.
|
Profit = SUBTRACT(StandardPrice, LastRecipeCost)
|
Salespeople refers to PersonType = 'SP'
|
List the product name with more than 5 quantity in the shopping cart.
|
Product with more than 5 quantity refers to Quantity>5
|
Purchase order with order quantity of 5000 or more refers to OrderQty> = 5000
|
List the product name with more than 5 quantity in the shopping cart.
|
Product with more than 5 quantity refers to Quantity>5
|
product number = productID
|
List the product name with more than 5 quantity in the shopping cart.
|
Product with more than 5 quantity refers to Quantity>5
|
type of employee refers to PersonType;
|
List the product name with more than 5 quantity in the shopping cart.
|
Product with more than 5 quantity refers to Quantity>5
|
highest selling price refers to MAX(ListPrice);
|
List the product name with more than 5 quantity in the shopping cart.
|
Product with more than 5 quantity refers to Quantity>5
|
full name = FirstName+MiddleName+LastName;
|
List the product name with more than 5 quantity in the shopping cart.
|
Product with more than 5 quantity refers to Quantity>5
|
business id refers to BusinessEntityID
|
List the product name with more than 5 quantity in the shopping cart.
|
Product with more than 5 quantity refers to Quantity>5
|
customers' name refers to ReviewerName; best possible ratings means the highest rating = 5
|
List the product name with more than 5 quantity in the shopping cart.
|
Product with more than 5 quantity refers to Quantity>5
|
unmarried refers to MaritalStatus = 'S', male refers to Gender = 'M', Production Supervisors is a job title
|
List the product name with more than 5 quantity in the shopping cart.
|
Product with more than 5 quantity refers to Quantity>5
|
lowest rating refers to Rating = 1
|
List the product name with more than 5 quantity in the shopping cart.
|
Product with more than 5 quantity refers to Quantity>5
|
employee number 257 refers to EmployeeID = 257; pending shipment status refers to Status = 3
|
Please list any 3 vendors that are not recommended by Adventure Works.
|
not recommended refers to PreferredVendorStatus = 0;
|
Quantity more than 10,000 pieces refers to Quantity>10000; selling price refers to ListPrice
|
Please list any 3 vendors that are not recommended by Adventure Works.
|
not recommended refers to PreferredVendorStatus = 0;
|
salesperson that haven't met the quota refers to Bonus = 0;
|
Please list any 3 vendors that are not recommended by Adventure Works.
|
not recommended refers to PreferredVendorStatus = 0;
|
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 any 3 vendors that are not recommended by Adventure Works.
|
not recommended refers to PreferredVendorStatus = 0;
|
employee refers to PersonType = 'EM'; Male refers to Gender = 'M'; Average = Divide( SUM(VacationHours(PersonType = 'EM'& Gender = 'M')),Count(BusinessEntityID(PersonType = 'EM' & Gender = 'M')));
|
Please list any 3 vendors that are not recommended by Adventure Works.
|
not recommended refers to PreferredVendorStatus = 0;
|
profit = SUBTRACT(ListPrice, StandardCost);
|
Please list any 3 vendors that are not recommended by Adventure Works.
|
not recommended refers to PreferredVendorStatus = 0;
|
percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%
|
Please list any 3 vendors that are not recommended by Adventure Works.
|
not recommended refers to PreferredVendorStatus = 0;
|
proportion = DIVIDE(SUM(Name = 'UK')), (COUNT(SalesOrderID))) as count;
|
Please list any 3 vendors that are not recommended by Adventure Works.
|
not recommended refers to PreferredVendorStatus = 0;
|
products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';
|
Please list any 3 vendors that are not recommended by Adventure Works.
|
not recommended refers to PreferredVendorStatus = 0;
|
average age = AVG(subtract(year(now), year(HireDate)))
|
Please list any 3 vendors that are not recommended by Adventure Works.
|
not recommended refers to PreferredVendorStatus = 0;
|
assembly lines that are not finished refers to EndDate = null
|
What are the names of the top 6 products that has the biggest size in centimeter and what are its reorder point?
|
in centimeter refers to SizeUnitMeasureCode = 'CM';
|
SP is an abbreviation for Sales Person; PersonType = 'SP';
|
What are the names of the top 6 products that has the biggest size in centimeter and what are its reorder point?
|
in centimeter refers to SizeUnitMeasureCode = 'CM';
|
SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate;
|
What are the names of the top 6 products that has the biggest size in centimeter and what are its reorder point?
|
in centimeter refers to SizeUnitMeasureCode = 'CM';
|
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;
|
What are the names of the top 6 products that has the biggest size in centimeter and what are its reorder point?
|
in centimeter refers to SizeUnitMeasureCode = 'CM';
|
hired in 2009 refers to year(HireDate) = 2009
|
What are the names of the top 6 products that has the biggest size in centimeter and what are its reorder point?
|
in centimeter refers to SizeUnitMeasureCode = 'CM';
|
assembly lines that are not finished refers to EndDate = null
|
What are the names of the top 6 products that has the biggest size in centimeter and what are its reorder point?
|
in centimeter refers to SizeUnitMeasureCode = 'CM';
|
actual resource hours of 2 refers to ActualResourceHrs = 2
|
What are the names of the top 6 products that has the biggest size in centimeter and what are its reorder point?
|
in centimeter refers to SizeUnitMeasureCode = 'CM';
|
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 are the names of the top 6 products that has the biggest size in centimeter and what are its reorder point?
|
in centimeter refers to SizeUnitMeasureCode = 'CM';
|
mountain product line refers to ProductLine = 'M'
|
What are the names of the top 6 products that has the biggest size in centimeter and what are its reorder point?
|
in centimeter refers to SizeUnitMeasureCode = 'CM';
|
active status of employees refers to CurrentFlag = 1;
|
What are the names of the top 6 products that has the biggest size in centimeter and what are its reorder point?
|
in centimeter refers to SizeUnitMeasureCode = 'CM';
|
geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;
|
What is the full address of business number 24?
|
Full address refers to AddressLine1+AddressLine2; business number 24 refers to BusinessEntityID = '24'
|
current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100%
|
What is the full address of business number 24?
|
Full address refers to AddressLine1+AddressLine2; business number 24 refers to BusinessEntityID = '24'
|
over 3 price changes refers to count(ListPrice)>3
|
What is the full address of business number 24?
|
Full address refers to AddressLine1+AddressLine2; business number 24 refers to BusinessEntityID = '24'
|
take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null; manufactured in house refers to MakeFlag = 1
|
What is the full address of business number 24?
|
Full address refers to AddressLine1+AddressLine2; business number 24 refers to BusinessEntityID = '24'
|
employee refers to PersonType = 'EM'; Male refers to Gender = 'M'; Average = Divide( SUM(VacationHours(PersonType = 'EM'& Gender = 'M')),Count(BusinessEntityID(PersonType = 'EM' & Gender = 'M')));
|
What is the full address of business number 24?
|
Full address refers to AddressLine1+AddressLine2; business number 24 refers to BusinessEntityID = '24'
|
MOQ refers to minimum order quantity; MOQ of 1 refers to MinOrderQty = 1; standard cost more than 48 refers to StandardCost > 48;
|
What is the full address of business number 24?
|
Full address refers to AddressLine1+AddressLine2; business number 24 refers to BusinessEntityID = '24'
|
Canada is name of a sales territory
|
What is the full address of business number 24?
|
Full address refers to AddressLine1+AddressLine2; business number 24 refers to BusinessEntityID = '24'
|
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 is the full address of business number 24?
|
Full address refers to AddressLine1+AddressLine2; business number 24 refers to BusinessEntityID = '24'
|
ModifiedDate between'2014-09-12 00:00:00' and '2014-09-12 23:59:59';
|
What is the full address of business number 24?
|
Full address refers to AddressLine1+AddressLine2; business number 24 refers to BusinessEntityID = '24'
|
female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;
|
What is the full address of business number 24?
|
Full address refers to AddressLine1+AddressLine2; business number 24 refers to BusinessEntityID = '24'
|
vendor's selling price refers to StandardPrice
|
For all the employees that have left the Engineering Department, what is the average time of their stay?
|
employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));
|
goods refers to products
|
For all the employees that have left the Engineering Department, what is the average time of their stay?
|
employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));
|
Bike refers to the name of the product category, therefore ProductCategoryID = 1
|
For all the employees that have left the Engineering Department, what is the average time of their stay?
|
employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));
|
percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;
|
For all the employees that have left the Engineering Department, what is the average time of their stay?
|
employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));
|
Salespeople refers to PersonType = 'SP'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.