query
stringlengths 24
325
| positive
stringlengths 1
580
| negative
stringlengths 1
580
|
---|---|---|
Among the active employees, how many of them have a courtesy title of "Mr"?
|
active status of employees refers to CurrentFlag = 1;
|
most reviews refers to MAX(count(ProductID))
|
Among the active employees, how many of them have a courtesy title of "Mr"?
|
active status of employees refers to CurrentFlag = 1;
|
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;
|
Among the active employees, how many of them have a courtesy title of "Mr"?
|
active status of employees refers to CurrentFlag = 1;
|
married refers to MaritalStatus = M; highest pay frequency refers to PayFrequency = 2
|
Among the active employees, how many of them have a courtesy title of "Mr"?
|
active status of employees refers to CurrentFlag = 1;
|
approved refers to Status = 2; confidential document refers to DocumentSummary is null;
|
Among the active employees, how many of them have a courtesy title of "Mr"?
|
active status of employees refers to CurrentFlag = 1;
|
proportion = DIVIDE(SUM(Name = 'UK')), (COUNT(SalesOrderID))) as count;
|
Among the active employees, how many of them have a courtesy title of "Mr"?
|
active status of employees refers to CurrentFlag = 1;
|
Stocked quantity refers to StockedQty
|
Which sales areas are expected to have the highest yearly sales quota?
|
highest yearly sales quota refers to Max(SalesQuota);
|
fewest online orders refer to MIN(Quantity);
|
Which sales areas are expected to have the highest yearly sales quota?
|
highest yearly sales quota refers to Max(SalesQuota);
|
Product with more than 5 quantity refers to Quantity>5
|
Which sales areas are expected to have the highest yearly sales quota?
|
highest yearly sales quota refers to Max(SalesQuota);
|
most review refers to MAX(count(comments)); high class refers to Class = 'H'; medium class refers to Class = 'M'; low class refers to Class = 'L'
|
Which sales areas are expected to have the highest yearly sales quota?
|
highest yearly sales quota refers to Max(SalesQuota);
|
type of employee refers to PersonType;
|
Which sales areas are expected to have the highest yearly sales quota?
|
highest yearly sales quota refers to Max(SalesQuota);
|
Low quality refers to the product's quality class, therefore Class = 'L'
|
Which sales areas are expected to have the highest yearly sales quota?
|
highest yearly sales quota refers to Max(SalesQuota);
|
Oldest employee refers to Max ( Subtract((now())-BirthDate));
|
Which sales areas are expected to have the highest yearly sales quota?
|
highest yearly sales quota refers to Max(SalesQuota);
|
Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;
|
Which sales areas are expected to have the highest yearly sales quota?
|
highest yearly sales quota refers to Max(SalesQuota);
|
job position and job title are synonyms; full name = FirstName+MiddleName+LastName;
|
Which sales areas are expected to have the highest yearly sales quota?
|
highest yearly sales quota refers to Max(SalesQuota);
|
number of products refers to OrderQty
|
Which sales areas are expected to have the highest yearly sales quota?
|
highest yearly sales quota refers to Max(SalesQuota);
|
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
|
What is the person's business ID with a vista credit card number "11113366963373"?
|
business id refers to BusinessEntityID
|
percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%
|
What is the person's business ID with a vista credit card number "11113366963373"?
|
business id refers to BusinessEntityID
|
average age = AVG(subtract(year(now), year(HireDate)))
|
What is the person's business ID with a vista credit card number "11113366963373"?
|
business id refers to BusinessEntityID
|
business id refers to BusinessEntityID
|
What is the person's business ID with a vista credit card number "11113366963373"?
|
business id refers to BusinessEntityID
|
price refers to ListPrice; price of 3 products = MULTIPLY(ListPrice, 3); Lock Washer 6 is a name of a product;
|
What is the person's business ID with a vista credit card number "11113366963373"?
|
business id refers to BusinessEntityID
|
Oldest employee refers to Max ( Subtract((now())-BirthDate));
|
What is the person's business ID with a vista credit card number "11113366963373"?
|
business id refers to BusinessEntityID
|
discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);
|
What is the person's business ID with a vista credit card number "11113366963373"?
|
business id refers to BusinessEntityID
|
full name = FirstName+MiddleName+LastName;
|
What is the person's business ID with a vista credit card number "11113366963373"?
|
business id refers to BusinessEntityID
|
Down Tube is a name of a product;
|
What is the person's business ID with a vista credit card number "11113366963373"?
|
business id refers to BusinessEntityID
|
High quality refers to the product's quality class, therefore Class = 'H'; the lowest transacted quantity refers to Quantity = 1
|
What is the person's business ID with a vista credit card number "11113366963373"?
|
business id refers to BusinessEntityID
|
Product without any rejected quantity refers to RejectedQty = 0
|
Provide all the transactions whereby the quantiy is more than 10,000 pieces. State the product name and the selling price.
|
Quantity more than 10,000 pieces refers to Quantity>10000; selling price refers to ListPrice
|
least number of sick leave refers to min(SickLeaveHours); PayFrequency = 1 means ‘Salary received monthly’; PayFrequency = 2 means ‘Salary received biweekly';
|
Provide all the transactions whereby the quantiy is more than 10,000 pieces. State the product name and the selling price.
|
Quantity more than 10,000 pieces refers to Quantity>10000; selling price refers to ListPrice
|
mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5
|
Provide all the transactions whereby the quantiy is more than 10,000 pieces. State the product name and the selling price.
|
Quantity more than 10,000 pieces refers to Quantity>10000; selling price refers to ListPrice
|
profit = SUBTRACT(ListPrice, StandardCost);
|
Provide all the transactions whereby the quantiy is more than 10,000 pieces. State the product name and the selling price.
|
Quantity more than 10,000 pieces refers to Quantity>10000; selling price refers to ListPrice
|
married refers to MaritalStatus = M; highest pay frequency refers to PayFrequency = 2
|
Provide all the transactions whereby the quantiy is more than 10,000 pieces. State the product name and the selling price.
|
Quantity more than 10,000 pieces refers to Quantity>10000; selling price refers to ListPrice
|
take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null
|
Provide all the transactions whereby the quantiy is more than 10,000 pieces. State the product name and the selling price.
|
Quantity more than 10,000 pieces refers to Quantity>10000; selling price refers to ListPrice
|
profit = SUBTRACT(ListPrice, StandardCost);
|
Provide all the transactions whereby the quantiy is more than 10,000 pieces. State the product name and the selling price.
|
Quantity more than 10,000 pieces refers to Quantity>10000; selling price refers to ListPrice
|
order refers to SalesOrderID
|
Provide all the transactions whereby the quantiy is more than 10,000 pieces. State the product name and the selling price.
|
Quantity more than 10,000 pieces refers to Quantity>10000; selling price refers to ListPrice
|
over 3 price changes refers to count(ListPrice)>3
|
Provide all the transactions whereby the quantiy is more than 10,000 pieces. State the product name and the selling price.
|
Quantity more than 10,000 pieces refers to Quantity>10000; selling price refers to ListPrice
|
active status of employees refers to CurrentFlag = 1; Male refers to Gender = 'M'; highest frequency refers to PayFrequency = 2;
|
Provide all the transactions whereby the quantiy is more than 10,000 pieces. State the product name and the selling price.
|
Quantity more than 10,000 pieces refers to Quantity>10000; selling price refers to ListPrice
|
percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%
|
How many location IDs have actual resource hours of 2?
|
actual resource hours of 2 refers to ActualResourceHrs = 2
|
Male refers to Gender = 'M'; married refers to MaritalStatus = 'M'; oldest refers to Min(BirthDate);
|
How many location IDs have actual resource hours of 2?
|
actual resource hours of 2 refers to ActualResourceHrs = 2
|
profit on net = subtract(LastReceiptCost, StandardPrice); best profit on net refers to max(subtract(LastReceiptCost, StandardPrice))
|
How many location IDs have actual resource hours of 2?
|
actual resource hours of 2 refers to ActualResourceHrs = 2
|
number of products refers to OrderQty
|
How many location IDs have actual resource hours of 2?
|
actual resource hours of 2 refers to ActualResourceHrs = 2
|
products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';
|
How many location IDs have actual resource hours of 2?
|
actual resource hours of 2 refers to ActualResourceHrs = 2
|
High quality refers to the product's quality class, therefore Class = 'H'
|
How many location IDs have actual resource hours of 2?
|
actual resource hours of 2 refers to ActualResourceHrs = 2
|
LL Road Frame Sale is a description of special offer
|
How many location IDs have actual resource hours of 2?
|
actual resource hours of 2 refers to ActualResourceHrs = 2
|
handling damage is descrription of manufacturing failure which refers to ScrapReason.Name
|
How many location IDs have actual resource hours of 2?
|
actual resource hours of 2 refers to ActualResourceHrs = 2
|
number of product rejected refers to ScrapedQty; trim length that is too long refers to scrap reason where Name = 'Trim length too long'
|
How many location IDs have actual resource hours of 2?
|
actual resource hours of 2 refers to ActualResourceHrs = 2
|
shelves refer to shelf; down tube is a product
|
How many location IDs have actual resource hours of 2?
|
actual resource hours of 2 refers to ActualResourceHrs = 2
|
mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))
|
Where is the address 15873 located, in what city and state? Does that city belong to a province where the code exists?
|
Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;
|
Alex refers to FirstName = 'Alex'; single refers to MaritalStatus = 'S'
|
Where is the address 15873 located, in what city and state? Does that city belong to a province where the code exists?
|
Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;
|
thumbnail photo file refers to ThumbnailPhotoFileName;
|
Where is the address 15873 located, in what city and state? Does that city belong to a province where the code exists?
|
Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;
|
mountain product line refers to ProductLine = 'M'
|
Where is the address 15873 located, in what city and state? Does that city belong to a province where the code exists?
|
Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;
|
assembly lines that are not finished refers to EndDate = null
|
Where is the address 15873 located, in what city and state? Does that city belong to a province where the code exists?
|
Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;
|
highest selling price refers to MAX(ListPrice);
|
Where is the address 15873 located, in what city and state? Does that city belong to a province where the code exists?
|
Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;
|
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;
|
Where is the address 15873 located, in what city and state? Does that city belong to a province where the code exists?
|
Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;
|
PreferredVendorStatus = 1 means 'Do not use if another vendor is available'; CreditRating = 2 means 'Preferred over other vendors supplying the same product'
|
Where is the address 15873 located, in what city and state? Does that city belong to a province where the code exists?
|
Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;
|
cost refers to StandardCost;
|
Where is the address 15873 located, in what city and state? Does that city belong to a province where the code exists?
|
Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;
|
Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0
|
Where is the address 15873 located, in what city and state? Does that city belong to a province where the code exists?
|
Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;
|
Married refers to MaritalStatus = 'M'; non-sales employees refer to PersonType = 'EM'
|
Please list the top 3 house-manufactured products with the highest average rating.
|
home manufactured refers to MakeFlag = 1; average rating = divide(sum(Rating), count(ProductReview))
|
documents pending approval refers to Status = 1
|
Please list the top 3 house-manufactured products with the highest average rating.
|
home manufactured refers to MakeFlag = 1; average rating = divide(sum(Rating), count(ProductReview))
|
Department refers to Name where GroupName = 'Executive General and Administration'
|
Please list the top 3 house-manufactured products with the highest average rating.
|
home manufactured refers to MakeFlag = 1; average rating = divide(sum(Rating), count(ProductReview))
|
year of credit card expiration refers to ExpYear;
|
Please list the top 3 house-manufactured products with the highest average rating.
|
home manufactured refers to MakeFlag = 1; average rating = divide(sum(Rating), count(ProductReview))
|
assembly lines that are not finished refers to EndDate = null
|
Please list the top 3 house-manufactured products with the highest average rating.
|
home manufactured refers to MakeFlag = 1; average rating = divide(sum(Rating), count(ProductReview))
|
BirthDate<'1980-01-01'; single refers to MaritalStatus = 'S' or null;
|
Please list the top 3 house-manufactured products with the highest average rating.
|
home manufactured refers to MakeFlag = 1; average rating = divide(sum(Rating), count(ProductReview))
|
maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
|
Please list the top 3 house-manufactured products with the highest average rating.
|
home manufactured refers to MakeFlag = 1; average rating = divide(sum(Rating), count(ProductReview))
|
Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'
|
Please list the top 3 house-manufactured products with the highest average rating.
|
home manufactured refers to MakeFlag = 1; average rating = divide(sum(Rating), count(ProductReview))
|
Saved in English refers to product description written in English where Culture.name = 'English'
|
Please list the top 3 house-manufactured products with the highest average rating.
|
home manufactured refers to MakeFlag = 1; average rating = divide(sum(Rating), count(ProductReview))
|
began work in 2009 or later refers to StartDate> = 2009;
|
Please list the top 3 house-manufactured products with the highest average rating.
|
home manufactured refers to MakeFlag = 1; average rating = divide(sum(Rating), count(ProductReview))
|
Pre assembly quantity refers to PerAssemblyQty
|
What is the average selling price of different vendors of the product Hex Nut 5?
|
average selling price = divide(sum(StandardPrice), count(BusinessEntityID))
|
Rejected refers rejected product in which to RejectedQty = 1
|
What is the average selling price of different vendors of the product Hex Nut 5?
|
average selling price = divide(sum(StandardPrice), count(BusinessEntityID))
|
sales order for 32 units refers to OrderQty = 32
|
What is the average selling price of different vendors of the product Hex Nut 5?
|
average selling price = divide(sum(StandardPrice), count(BusinessEntityID))
|
Canada is name of a sales territory
|
What is the average selling price of different vendors of the product Hex Nut 5?
|
average selling price = divide(sum(StandardPrice), count(BusinessEntityID))
|
profit on net = SUBTRACT(LastReceiptCost, StandardPrice);
|
What is the average selling price of different vendors of the product Hex Nut 5?
|
average selling price = divide(sum(StandardPrice), count(BusinessEntityID))
|
business along with their IDs = BusinessEntityID; Cellphones refers to PhoneNumberType.name = ‘cell’
|
What is the average selling price of different vendors of the product Hex Nut 5?
|
average selling price = divide(sum(StandardPrice), count(BusinessEntityID))
|
most reviews refers to MAX(count(ProductID))
|
What is the average selling price of different vendors of the product Hex Nut 5?
|
average selling price = divide(sum(StandardPrice), count(BusinessEntityID))
|
profit on net = subtract(LastReceiptCost, StandardPrice); best profit on net refers to max(subtract(LastReceiptCost, StandardPrice))
|
What is the average selling price of different vendors of the product Hex Nut 5?
|
average selling price = divide(sum(StandardPrice), count(BusinessEntityID))
|
Profit = SUBTRACT(ListPrice, StandardCost); the highest rating in review refers to Rating = 5
|
What is the average selling price of different vendors of the product Hex Nut 5?
|
average selling price = divide(sum(StandardPrice), count(BusinessEntityID))
|
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 is the average selling price of different vendors of the product Hex Nut 5?
|
average selling price = divide(sum(StandardPrice), count(BusinessEntityID))
|
goods refers to products
|
Among the salable products from the mountain product line, how many of them have the most reviews?
|
salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'
|
Oldest employee refers to Max ( Subtract((now())-BirthDate));
|
Among the salable products from the mountain product line, how many of them have the most reviews?
|
salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'
|
cost refers to StandardCost;
|
Among the salable products from the mountain product line, how many of them have the most reviews?
|
salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'
|
assembly lines that are not finished refers to EndDate = null
|
Among the salable products from the mountain product line, how many of them have the most reviews?
|
salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'
|
Lightest product refers to Min(Weight); profit if they sell 10 items refers to Subtract (ListPrice , StandardCost) *10;
|
Among the salable products from the mountain product line, how many of them have the most reviews?
|
salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'
|
CurrentFlag = 1 refers to the active status of employees; Percentage = Divide (Count (BusinessEntityID (CurrentFlag = 1 & VacationHours >20 & SickLeaveHours > 10)), Count (BusinessEntityID (CurrentFlag = 1 & SickLeaveHours>10))) * 100;
|
Among the salable products from the mountain product line, how many of them have the most reviews?
|
salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'
|
store contact refers to PersonType = 'SC'; year(EndDate)>2007 and year(StartDate)<2007;
|
Among the salable products from the mountain product line, how many of them have the most reviews?
|
salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'
|
take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null
|
Among the salable products from the mountain product line, how many of them have the most reviews?
|
salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'
|
order refers to SalesOrderID
|
Among the salable products from the mountain product line, how many of them have the most reviews?
|
salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'
|
Sales and Marketing is group name of a department
|
Among the salable products from the mountain product line, how many of them have the most reviews?
|
salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'
|
business id refers to BusinessEntityID;
|
What is the product description of Headset Ball Bearings?
|
Headset Ball Bearings is name of a product
|
ModifiedDate between'2014-09-12 00:00:00' and '2014-09-12 23:59:59';
|
What is the product description of Headset Ball Bearings?
|
Headset Ball Bearings is name of a product
|
product is manufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;
|
What is the product description of Headset Ball Bearings?
|
Headset Ball Bearings is name of a product
|
Started selling in 2013 refers to year(SellStartDate) = 2013;
|
What is the product description of Headset Ball Bearings?
|
Headset Ball Bearings is name of a product
|
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 product description of Headset Ball Bearings?
|
Headset Ball Bearings is name of a product
|
percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%
|
What is the product description of Headset Ball Bearings?
|
Headset Ball Bearings is name of a product
|
seasonal discount is a type of special offer; discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);
|
What is the product description of Headset Ball Bearings?
|
Headset Ball Bearings is name of a product
|
days to end a work order = SUBTRACT(ActualEndDate, ActualStartDate);
|
What is the product description of Headset Ball Bearings?
|
Headset Ball Bearings is name of a product
|
geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;
|
What is the product description of Headset Ball Bearings?
|
Headset Ball Bearings is name of a product
|
type of employee refers to PersonType;
|
What is the product description of Headset Ball Bearings?
|
Headset Ball Bearings is name of a product
|
Information Service is a name of department;
|
State the product name, product line, rating and the selling price of product with the lowest rating.
|
Product with the lowest rating refers to the rating
given by the
reviewer where Rating = 1
|
price refers to ListPrice;
|
State the product name, product line, rating and the selling price of product with the lowest rating.
|
Product with the lowest rating refers to the rating
given by the
reviewer where Rating = 1
|
average age = AVG(subtract(year(now), year(HireDate)))
|
State the product name, product line, rating and the selling price of product with the lowest rating.
|
Product with the lowest rating refers to the rating
given by the
reviewer where Rating = 1
|
days to end a work order = SUBTRACT(ActualEndDate, ActualStartDate);
|
State the product name, product line, rating and the selling price of product with the lowest rating.
|
Product with the lowest rating refers to the rating
given by the
reviewer where Rating = 1
|
employees refers to BusinessEntityID; most unused sick leave refers to MAX(SickLeaveHours); position title refers to JobTitle
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.