query
stringlengths 24
325
| positive
stringlengths 1
580
| negative
stringlengths 1
580
|
---|---|---|
From 2003 to 2004, how many customers have paid more than three times?
|
paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);
|
Muscle Machine Inc is name of customer; superior refers to 'reportsTO', who is the leader of the 'employeeNumber'
|
From 2003 to 2004, how many customers have paid more than three times?
|
paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);
|
USA is a country; total amount payment refers to SUM(amount);
|
From 2003 to 2004, how many customers have paid more than three times?
|
paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);
|
Still processing refers to status = 'In Process';
|
From 2003 to 2004, how many customers have paid more than three times?
|
paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);
|
E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';
|
From 2003 to 2004, how many customers have paid more than three times?
|
paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);
|
Steve Patterson is an employee;
|
From 2003 to 2004, how many customers have paid more than three times?
|
paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);
|
payment refers to amount; full name = firstName+lastName; supervisor refers to reportsTO; 'reportsTO' is the leader of the 'employeeNumber';
|
From 2003 to 2004, how many customers have paid more than three times?
|
paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);
|
Address comprises addressLine1 and addressLine2;
|
From 2003 to 2004, how many customers have paid more than three times?
|
paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);
|
Best selling products refer to products with MAX(quantityOrdered); 2003 refers to year(orderDate) = 2003;
|
From 2003 to 2004, how many customers have paid more than three times?
|
paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);
|
Most profitable order can be computed as MAX(MULTIPLY(quantityOrdered, SUBTRACT(priceEach, buyPrice)).
|
From 2003 to 2004, how many customers have paid more than three times?
|
paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);
|
1969 Harley Davidson Ultimate Chopper refers to the name of the product; sale rep refers to employee; 2003 refers to year(orderDate) = 2003; quantity sold refers to quantityOrdered; their names refer to the name of customers;
|
Please list the order number of the customer whose credit card has a limit of 45300.
|
Credit card does not have a limit refers to creditLimit = 45300;
|
The highest unit price refers to MAX(priceEach); when shipped refers to shippedDate;
|
Please list the order number of the customer whose credit card has a limit of 45300.
|
Credit card does not have a limit refers to creditLimit = 45300;
|
E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';
|
Please list the order number of the customer whose credit card has a limit of 45300.
|
Credit card does not have a limit refers to creditLimit = 45300;
|
The greatest expected profit refers to MAX(SUBTRACT(MSRP, buyPrice);
|
Please list the order number of the customer whose credit card has a limit of 45300.
|
Credit card does not have a limit refers to creditLimit = 45300;
|
average total price = DIVIDE(MULTIPLY(quantityOrdered, priceEach)), COUNT(orderNumber)); German is a nationality of country = 'Germany'; shipped orders refers to status = 'Shipped';
|
Please list the order number of the customer whose credit card has a limit of 45300.
|
Credit card does not have a limit refers to creditLimit = 45300;
|
The highest unit price refers to MAX(priceEach)
|
Please list the order number of the customer whose credit card has a limit of 45300.
|
Credit card does not have a limit refers to creditLimit = 45300;
|
Products refer to productCode; Expected profits = SUBTRACT(MSRP, buyPrice);
|
Please list the order number of the customer whose credit card has a limit of 45300.
|
Credit card does not have a limit refers to creditLimit = 45300;
|
Sales representative refers to jobTitle = 'Sales Rep'; country = 'USA';
|
Please list the order number of the customer whose credit card has a limit of 45300.
|
Credit card does not have a limit refers to creditLimit = 45300;
|
The most ordered quantity product refers to productName where Max(quantityOrdered); SUBTRACT(MSRP, buyPrice);
|
Please list the order number of the customer whose credit card has a limit of 45300.
|
Credit card does not have a limit refers to creditLimit = 45300;
|
Employee 1370 refers to employeeNumber = '1370';
|
Please list the order number of the customer whose credit card has a limit of 45300.
|
Credit card does not have a limit refers to creditLimit = 45300;
|
UK is a country; Sales Rep is a job title;
|
Which sales representatives in New York city whose leader is Anthony Bow with the employee number is 1143? Indicate their employee numbers.
|
reportsTO' is the leader of the 'employeeNumber';
|
Orders that are disputed refer to status = 'Disputed'; the sales representative means employees; names refers to firstName, lastName.
|
Which sales representatives in New York city whose leader is Anthony Bow with the employee number is 1143? Indicate their employee numbers.
|
reportsTO' is the leader of the 'employeeNumber';
|
UK is a country; Sales Rep is a job title;
|
Which sales representatives in New York city whose leader is Anthony Bow with the employee number is 1143? Indicate their employee numbers.
|
reportsTO' is the leader of the 'employeeNumber';
|
full address = addressLine1+addressLine2; Sales Manager is a job title;
|
Which sales representatives in New York city whose leader is Anthony Bow with the employee number is 1143? Indicate their employee numbers.
|
reportsTO' is the leader of the 'employeeNumber';
|
full address = addressLine1+addressLine2; shippedDate = '2005-04-04';
|
Which sales representatives in New York city whose leader is Anthony Bow with the employee number is 1143? Indicate their employee numbers.
|
reportsTO' is the leader of the 'employeeNumber';
|
shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;
|
Which sales representatives in New York city whose leader is Anthony Bow with the employee number is 1143? Indicate their employee numbers.
|
reportsTO' is the leader of the 'employeeNumber';
|
staff of refers to reportsTO; San Francisco is a city;
|
Which sales representatives in New York city whose leader is Anthony Bow with the employee number is 1143? Indicate their employee numbers.
|
reportsTO' is the leader of the 'employeeNumber';
|
Steve Patterson is an employee;
|
Which sales representatives in New York city whose leader is Anthony Bow with the employee number is 1143? Indicate their employee numbers.
|
reportsTO' is the leader of the 'employeeNumber';
|
reportsTO' is the leader of the 'employeeNumber';
|
Which sales representatives in New York city whose leader is Anthony Bow with the employee number is 1143? Indicate their employee numbers.
|
reportsTO' is the leader of the 'employeeNumber';
|
Sales representative refers to jobTitle = 'Sales Rep'; country = 'USA';
|
Which sales representatives in New York city whose leader is Anthony Bow with the employee number is 1143? Indicate their employee numbers.
|
reportsTO' is the leader of the 'employeeNumber';
|
E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';
|
Which is the most ordered quantity product? What is its expected profit margin per piece?
|
The most ordered quantity product refers to productName where Max(quantityOrdered); SUBTRACT(MSRP, buyPrice);
|
shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;
|
Which is the most ordered quantity product? What is its expected profit margin per piece?
|
The most ordered quantity product refers to productName where Max(quantityOrdered); SUBTRACT(MSRP, buyPrice);
|
Transactions payment lower than 10000 refer to COUNT(amount) < 1000; by year refers to YEAR(paymentDate)
|
Which is the most ordered quantity product? What is its expected profit margin per piece?
|
The most ordered quantity product refers to productName where Max(quantityOrdered); SUBTRACT(MSRP, buyPrice);
|
average amount payment = AVG(amount);
|
Which is the most ordered quantity product? What is its expected profit margin per piece?
|
The most ordered quantity product refers to productName where Max(quantityOrdered); SUBTRACT(MSRP, buyPrice);
|
Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;
|
Which is the most ordered quantity product? What is its expected profit margin per piece?
|
The most ordered quantity product refers to productName where Max(quantityOrdered); SUBTRACT(MSRP, buyPrice);
|
average actual profit = AVG(SUBTRACT(priceEach, buyPrice)); 1937 Lincoln Berline is a product name;
|
Which is the most ordered quantity product? What is its expected profit margin per piece?
|
The most ordered quantity product refers to productName where Max(quantityOrdered); SUBTRACT(MSRP, buyPrice);
|
paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;
|
Which is the most ordered quantity product? What is its expected profit margin per piece?
|
The most ordered quantity product refers to productName where Max(quantityOrdered); SUBTRACT(MSRP, buyPrice);
|
The highest unit price refers to MAX(priceEach); when shipped refers to shippedDate;
|
Which is the most ordered quantity product? What is its expected profit margin per piece?
|
The most ordered quantity product refers to productName where Max(quantityOrdered); SUBTRACT(MSRP, buyPrice);
|
UK is a country; Sales Rep is a job title;
|
Which is the most ordered quantity product? What is its expected profit margin per piece?
|
The most ordered quantity product refers to productName where Max(quantityOrdered); SUBTRACT(MSRP, buyPrice);
|
paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);
|
Which is the most ordered quantity product? What is its expected profit margin per piece?
|
The most ordered quantity product refers to productName where Max(quantityOrdered); SUBTRACT(MSRP, buyPrice);
|
Australia is a country; creditLimit < 20000;
|
Who is the sales agent of the customer who has made the highest payment? Include the full names of employee and his/her supervisor.
|
payment refers to amount; full name = firstName+lastName; supervisor refers to reportsTO; 'reportsTO' is the leader of the 'employeeNumber';
|
German is a nationality of country = 'Germany'; CREDITLIMIT = 0
|
Who is the sales agent of the customer who has made the highest payment? Include the full names of employee and his/her supervisor.
|
payment refers to amount; full name = firstName+lastName; supervisor refers to reportsTO; 'reportsTO' is the leader of the 'employeeNumber';
|
Australia is a country; creditLimit < 20000;
|
Who is the sales agent of the customer who has made the highest payment? Include the full names of employee and his/her supervisor.
|
payment refers to amount; full name = firstName+lastName; supervisor refers to reportsTO; 'reportsTO' is the leader of the 'employeeNumber';
|
The highest unit price refers to MAX(priceEach)
|
Who is the sales agent of the customer who has made the highest payment? Include the full names of employee and his/her supervisor.
|
payment refers to amount; full name = firstName+lastName; supervisor refers to reportsTO; 'reportsTO' is the leader of the 'employeeNumber';
|
USA is a country; total amount payment refers to SUM(amount);
|
Who is the sales agent of the customer who has made the highest payment? Include the full names of employee and his/her supervisor.
|
payment refers to amount; full name = firstName+lastName; supervisor refers to reportsTO; 'reportsTO' is the leader of the 'employeeNumber';
|
paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);
|
Who is the sales agent of the customer who has made the highest payment? Include the full names of employee and his/her supervisor.
|
payment refers to amount; full name = firstName+lastName; supervisor refers to reportsTO; 'reportsTO' is the leader of the 'employeeNumber';
|
Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered).
|
Who is the sales agent of the customer who has made the highest payment? Include the full names of employee and his/her supervisor.
|
payment refers to amount; full name = firstName+lastName; supervisor refers to reportsTO; 'reportsTO' is the leader of the 'employeeNumber';
|
reportsTO' is the leader of the 'employeeNumber';
|
Who is the sales agent of the customer who has made the highest payment? Include the full names of employee and his/her supervisor.
|
payment refers to amount; full name = firstName+lastName; supervisor refers to reportsTO; 'reportsTO' is the leader of the 'employeeNumber';
|
shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;
|
Who is the sales agent of the customer who has made the highest payment? Include the full names of employee and his/her supervisor.
|
payment refers to amount; full name = firstName+lastName; supervisor refers to reportsTO; 'reportsTO' is the leader of the 'employeeNumber';
|
Sales Manager is a job title; Sydney is a city;
|
Who is the sales agent of the customer who has made the highest payment? Include the full names of employee and his/her supervisor.
|
payment refers to amount; full name = firstName+lastName; supervisor refers to reportsTO; 'reportsTO' is the leader of the 'employeeNumber';
|
E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';
|
How many checks were issued by Euro+ Shopping Channel in the year 2004?
|
Euro+ Shopping Channel is a customer name; year(paymentDate) = '2004';
|
Credit card does not have a limit refers to creditLimit = 45300;
|
How many checks were issued by Euro+ Shopping Channel in the year 2004?
|
Euro+ Shopping Channel is a customer name; year(paymentDate) = '2004';
|
Address comprises addressLine1 and addressLine2;
|
How many checks were issued by Euro+ Shopping Channel in the year 2004?
|
Euro+ Shopping Channel is a customer name; year(paymentDate) = '2004';
|
1939 'Chevrolet Deluxe Coupe' refers to productName; the highest price refers to MAX(priceEach)
|
How many checks were issued by Euro+ Shopping Channel in the year 2004?
|
Euro+ Shopping Channel is a customer name; year(paymentDate) = '2004';
|
Most profitable order can be computed as MAX(MULTIPLY(quantityOrdered, SUBTRACT(priceEach, buyPrice)).
|
How many checks were issued by Euro+ Shopping Channel in the year 2004?
|
Euro+ Shopping Channel is a customer name; year(paymentDate) = '2004';
|
full address = addressLine1 + addressLine2; NYC is a shortname of New York City.
|
How many checks were issued by Euro+ Shopping Channel in the year 2004?
|
Euro+ Shopping Channel is a customer name; year(paymentDate) = '2004';
|
The greatest expected profit refers to MAX(SUBTRACT(MSRP, buyPrice);
|
How many checks were issued by Euro+ Shopping Channel in the year 2004?
|
Euro+ Shopping Channel is a customer name; year(paymentDate) = '2004';
|
Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;
|
How many checks were issued by Euro+ Shopping Channel in the year 2004?
|
Euro+ Shopping Channel is a customer name; year(paymentDate) = '2004';
|
The highest unit price refers to MAX(priceEach)
|
How many checks were issued by Euro+ Shopping Channel in the year 2004?
|
Euro+ Shopping Channel is a customer name; year(paymentDate) = '2004';
|
SUM(MULTIPLY(quantityOrdered, priceEach)) where productLine = 'Classic Cars'; status = 'Shipped'; customername = 'Land of Toys Inc';
|
How many checks were issued by Euro+ Shopping Channel in the year 2004?
|
Euro+ Shopping Channel is a customer name; year(paymentDate) = '2004';
|
The lowest amount of orders refers to MIN(quantityOrdered);
|
Of all the orders placed and shipped throughout the year 2005, what percentage of those orders corresponds to customer number 186?
|
shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;
|
DIVIDE(SUBTRACT(MSRP, priceEach)), MSRP); product No. S18_3482 refers to productCode = 'S18_3482'
|
Of all the orders placed and shipped throughout the year 2005, what percentage of those orders corresponds to customer number 186?
|
shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;
|
paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);
|
Of all the orders placed and shipped throughout the year 2005, what percentage of those orders corresponds to customer number 186?
|
shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;
|
paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;
|
Of all the orders placed and shipped throughout the year 2005, what percentage of those orders corresponds to customer number 186?
|
shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;
|
DIVIDE(COUNT(employeeNumber) when city = 'Paris'), (COUNT(employeeNumber)) as percentage;
|
Of all the orders placed and shipped throughout the year 2005, what percentage of those orders corresponds to customer number 186?
|
shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;
|
code of employee refers to employeeNumber; United States of America refers to country = 'USA';
|
Of all the orders placed and shipped throughout the year 2005, what percentage of those orders corresponds to customer number 186?
|
shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;
|
reportsTO' is the leader of the 'employeeNumber';
|
Of all the orders placed and shipped throughout the year 2005, what percentage of those orders corresponds to customer number 186?
|
shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;
|
USA is a country; total amount payment refers to SUM(amount);
|
Of all the orders placed and shipped throughout the year 2005, what percentage of those orders corresponds to customer number 186?
|
shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;
|
orderDate between '2005-01-01' and '2005-12-31'; full address = addressLine1+addressLine2;
|
Of all the orders placed and shipped throughout the year 2005, what percentage of those orders corresponds to customer number 186?
|
shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;
|
Employee 1370 refers to employeeNumber = '1370';
|
Of all the orders placed and shipped throughout the year 2005, what percentage of those orders corresponds to customer number 186?
|
shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;
|
full address = addressLine1 + addressLine2; NYC is a shortname of New York City.
|
How many employees who are living in Australia and have the credit limit under 200000? State their email address and countries where they are working.
|
Australia is a country; creditLimit < 20000;
|
cancelled shipment refers to status = 'cancelled'; creditLimit > 115000;
|
How many employees who are living in Australia and have the credit limit under 200000? State their email address and countries where they are working.
|
Australia is a country; creditLimit < 20000;
|
The most ordered quantity product refers to productName where Max(quantityOrdered); SUBTRACT(MSRP, buyPrice);
|
How many employees who are living in Australia and have the credit limit under 200000? State their email address and countries where they are working.
|
Australia is a country; creditLimit < 20000;
|
full address = addressLine1+addressLine2; shippedDate = '2005-04-04';
|
How many employees who are living in Australia and have the credit limit under 200000? State their email address and countries where they are working.
|
Australia is a country; creditLimit < 20000;
|
President refers to the jobTitle;
|
How many employees who are living in Australia and have the credit limit under 200000? State their email address and countries where they are working.
|
Australia is a country; creditLimit < 20000;
|
Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;
|
How many employees who are living in Australia and have the credit limit under 200000? State their email address and countries where they are working.
|
Australia is a country; creditLimit < 20000;
|
Sales representative refers to jobTitle = 'Sales Rep'; country = 'USA';
|
How many employees who are living in Australia and have the credit limit under 200000? State their email address and countries where they are working.
|
Australia is a country; creditLimit < 20000;
|
full address = addressLine1+addressLine2; Sales Manager is a job title;
|
How many employees who are living in Australia and have the credit limit under 200000? State their email address and countries where they are working.
|
Australia is a country; creditLimit < 20000;
|
Planes is a product line;
|
How many employees who are living in Australia and have the credit limit under 200000? State their email address and countries where they are working.
|
Australia is a country; creditLimit < 20000;
|
full name = firstName+LastName; Paris is a city;
|
How many employees who are living in Australia and have the credit limit under 200000? State their email address and countries where they are working.
|
Australia is a country; creditLimit < 20000;
|
country = 'USA'
|
Of the clients whose businesses are located in the city of Boston, calculate which of them has a higher average amount of payment.
|
average amount payment = AVG(amount);
|
The highest unit price refers to MAX(priceEach); when shipped refers to shippedDate;
|
Of the clients whose businesses are located in the city of Boston, calculate which of them has a higher average amount of payment.
|
average amount payment = AVG(amount);
|
DIVIDE(SUBTRACT(MSRP, priceEach)), MSRP); product No. S18_3482 refers to productCode = 'S18_3482'
|
Of the clients whose businesses are located in the city of Boston, calculate which of them has a higher average amount of payment.
|
average amount payment = AVG(amount);
|
Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;
|
Of the clients whose businesses are located in the city of Boston, calculate which of them has a higher average amount of payment.
|
average amount payment = AVG(amount);
|
E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';
|
Of the clients whose businesses are located in the city of Boston, calculate which of them has a higher average amount of payment.
|
average amount payment = AVG(amount);
|
DIVIDE(SUM(amount) where customerName = 'Atelier graphique'), (SUM(amount)) as percentage where year(paymentDate) = 2004;
|
Of the clients whose businesses are located in the city of Boston, calculate which of them has a higher average amount of payment.
|
average amount payment = AVG(amount);
|
Products refer to productCode; Expected profits = SUBTRACT(MSRP, buyPrice);
|
Of the clients whose businesses are located in the city of Boston, calculate which of them has a higher average amount of payment.
|
average amount payment = AVG(amount);
|
Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered).
|
Of the clients whose businesses are located in the city of Boston, calculate which of them has a higher average amount of payment.
|
average amount payment = AVG(amount);
|
Best selling products refer to products with MAX(quantityOrdered); 2003 refers to year(orderDate) = 2003;
|
Of the clients whose businesses are located in the city of Boston, calculate which of them has a higher average amount of payment.
|
average amount payment = AVG(amount);
|
USA is a country; total amount payment refers to SUM(amount);
|
Of the clients whose businesses are located in the city of Boston, calculate which of them has a higher average amount of payment.
|
average amount payment = AVG(amount);
|
full address = addressLine1 + addressLine2; NYC is a shortname of New York City.
|
List all the name of customers who have orders that are still processing.
|
Still processing refers to status = 'In Process';
|
SUM(MULTIPLY(quantityOrdered, priceEach)) where productLine = 'Classic Cars'; status = 'Shipped'; customername = 'Land of Toys Inc';
|
List all the name of customers who have orders that are still processing.
|
Still processing refers to status = 'In Process';
|
paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);
|
List all the name of customers who have orders that are still processing.
|
Still processing refers to status = 'In Process';
|
2005-04-08 and two days later refer to orderDate = '2005-04-08' and orderDate = '2005-04-10'; order with a higher value refers to MAX(Total price) = MULTIPLY(quantityOrdered, priceEach);
|
List all the name of customers who have orders that are still processing.
|
Still processing refers to status = 'In Process';
|
Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;
|
List all the name of customers who have orders that are still processing.
|
Still processing refers to status = 'In Process';
|
average total price = DIVIDE(SUM(MULTIPLY(quantityOrdered, priceEach))), COUNT(orderNumber)); year(orderDate) = '2005';
|
List all the name of customers who have orders that are still processing.
|
Still processing refers to status = 'In Process';
|
plane is a product line; total price = MULTIPLY(quantityOrdered, priceEach); how much the total price exceeds the average = SUBTRACT(MAX(MULTIPLY(quantityOrdered, priceEach))), AVG(priceEach));
|
List all the name of customers who have orders that are still processing.
|
Still processing refers to status = 'In Process';
|
last name of contact person starts with M refers to lastName LIKE 'M%'; Germany is a country; not from Germany refers to country<>'Germany';
|
List all the name of customers who have orders that are still processing.
|
Still processing refers to status = 'In Process';
|
Sales representative refers to jobTitle = 'Sales Rep'; country = 'USA';
|
List all the name of customers who have orders that are still processing.
|
Still processing refers to status = 'In Process';
|
average total price = DIVIDE(MULTIPLY(quantityOrdered, priceEach)), COUNT(orderNumber)); German is a nationality of country = 'Germany'; shipped orders refers to status = 'Shipped';
|
List all the name of customers who have orders that are still processing.
|
Still processing refers to status = 'In Process';
|
Steve Patterson is an employee;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.