query
stringlengths 24
325
| positive
stringlengths 1
580
| negative
stringlengths 1
580
|
---|---|---|
How many customers have an employee who reports to William Patterson as their sales representitive?
|
reportsTO' is the leader of the 'employeeNumber';
|
Gerakd Hermandez is an employee; French customer refers to customer from France where country = 'France'
|
How many customers have an employee who reports to William Patterson as their sales representitive?
|
reportsTO' is the leader of the 'employeeNumber';
|
orderDate between '2005-01-01' and '2005-12-31'; full address = addressLine1+addressLine2;
|
How many customers have an employee who reports to William Patterson as their sales representitive?
|
reportsTO' is the leader of the 'employeeNumber';
|
Australia is a country; creditLimit < 20000;
|
How many customers have an employee who reports to William Patterson as their sales representitive?
|
reportsTO' is the leader of the 'employeeNumber';
|
E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';
|
How many customers have an employee who reports to William Patterson as their sales representitive?
|
reportsTO' is the leader of the 'employeeNumber';
|
full address = addressLine1+addressLine2; shippedDate = '2005-04-04';
|
How many customers have an employee who reports to William Patterson as their sales representitive?
|
reportsTO' is the leader of the 'employeeNumber';
|
paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;
|
How many customers have an employee who reports to William Patterson as their sales representitive?
|
reportsTO' is the leader of the 'employeeNumber';
|
code of employee refers to employeeNumber; United States of America refers to country = 'USA';
|
How many customers have an employee who reports to William Patterson as their sales representitive?
|
reportsTO' is the leader of the 'employeeNumber';
|
Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered).
|
How many customers have an employee who reports to William Patterson as their sales representitive?
|
reportsTO' is the leader of the 'employeeNumber';
|
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));
|
How many customers have an employee who reports to William Patterson as their sales representitive?
|
reportsTO' is the leader of the 'employeeNumber';
|
The largest order in terms of total price refers to MAX(SUM(MULTIPLY(quantityOrdered, priceEach)).
|
List all customer names with orders that are disputed.
|
Orders that are disputed refer to status = 'Disputed'; the sales representative means employees; names refers to firstName, lastName.
|
Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered).
|
List all customer names with orders that are disputed.
|
Orders that are disputed refer to status = 'Disputed'; the sales representative means employees; names refers to firstName, lastName.
|
Sales representative refers to jobTitle = 'Sales Rep'; country = 'USA';
|
List all customer names with orders that are disputed.
|
Orders that are disputed refer to status = 'Disputed'; the sales representative means employees; names refers to firstName, lastName.
|
Employee 1370 refers to employeeNumber = '1370';
|
List all customer names with orders that are disputed.
|
Orders that are disputed refer to status = 'Disputed'; the sales representative means employees; names refers to firstName, lastName.
|
shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;
|
List all customer names with orders that are disputed.
|
Orders that are disputed refer to status = 'Disputed'; the sales representative means employees; names refers to firstName, lastName.
|
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 customer names with orders that are disputed.
|
Orders that are disputed refer to status = 'Disputed'; the sales representative means employees; names refers to firstName, lastName.
|
full address = addressLine1+addressLine2; Sales Manager is a job title;
|
List all customer names with orders that are disputed.
|
Orders that are disputed refer to status = 'Disputed'; the sales representative means employees; names refers to firstName, lastName.
|
average actual profit = AVG(SUBTRACT(priceEach, buyPrice)); 1937 Lincoln Berline is a product name;
|
List all customer names with orders that are disputed.
|
Orders that are disputed refer to status = 'Disputed'; the sales representative means employees; names refers to firstName, lastName.
|
The lowest amount of orders refers to MIN(quantityOrdered);
|
List all customer names with orders that are disputed.
|
Orders that are disputed refer to status = 'Disputed'; the sales representative means employees; names refers to firstName, lastName.
|
reportsTO' is the leader of the 'employeeNumber';
|
List all customer names with orders that are disputed.
|
Orders that are disputed refer to status = 'Disputed'; the sales representative means employees; names refers to firstName, lastName.
|
SUM(MULTIPLY(quantityOrdered, priceEach)) where productLine = 'Classic Cars'; status = 'Shipped'; customername = 'Land of Toys Inc';
|
What is the full address of the office where the employee who is a sales representative for the customer whose business is located in the city of New York works?
|
full address = addressLine1 + addressLine2; NYC is a shortname of New York City.
|
average total price = DIVIDE(SUM(MULTIPLY(quantityOrdered, priceEach))), COUNT(orderNumber)); year(orderDate) = '2005';
|
What is the full address of the office where the employee who is a sales representative for the customer whose business is located in the city of New York works?
|
full address = addressLine1 + addressLine2; NYC is a shortname of New York City.
|
inform refers to reportsTo; 'reportsTO' is the leader of the 'employeeNumber'; France is a country; country = 'France';
|
What is the full address of the office where the employee who is a sales representative for the customer whose business is located in the city of New York works?
|
full address = addressLine1 + addressLine2; NYC is a shortname of New York City.
|
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;
|
What is the full address of the office where the employee who is a sales representative for the customer whose business is located in the city of New York works?
|
full address = addressLine1 + addressLine2; NYC is a shortname of New York City.
|
Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered).
|
What is the full address of the office where the employee who is a sales representative for the customer whose business is located in the city of New York works?
|
full address = addressLine1 + addressLine2; NYC is a shortname of New York City.
|
Planes is a product line;
|
What is the full address of the office where the employee who is a sales representative for the customer whose business is located in the city of New York works?
|
full address = addressLine1 + addressLine2; NYC is a shortname of New York City.
|
The lowest amount of orders refers to MIN(quantityOrdered);
|
What is the full address of the office where the employee who is a sales representative for the customer whose business is located in the city of New York works?
|
full address = addressLine1 + addressLine2; NYC is a shortname of New York City.
|
code of employee refers to employeeNumber; United States of America refers to country = 'USA';
|
What is the full address of the office where the employee who is a sales representative for the customer whose business is located in the city of New York works?
|
full address = addressLine1 + addressLine2; NYC is a shortname of New York City.
|
President refers to the jobTitle;
|
What is the full address of the office where the employee who is a sales representative for the customer whose business is located in the city of New York works?
|
full address = addressLine1 + addressLine2; NYC is a shortname of New York City.
|
Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;
|
What is the full address of the office where the employee who is a sales representative for the customer whose business is located in the city of New York works?
|
full address = addressLine1 + addressLine2; NYC is a shortname of New York City.
|
Euro+ Shopping Channel is a customer name; year(paymentDate) = '2004';
|
How many Planes orders were there?
|
Planes is a product line;
|
country = 'USA'
|
How many Planes orders were there?
|
Planes is a product line;
|
Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;
|
How many Planes orders were there?
|
Planes is a product line;
|
DIVIDE(SUM(amount) where customerName = 'Atelier graphique'), (SUM(amount)) as percentage where year(paymentDate) = 2004;
|
How many Planes orders were there?
|
Planes is a product line;
|
paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;
|
How many Planes orders were there?
|
Planes is a product line;
|
inform refers to reportsTo; 'reportsTO' is the leader of the 'employeeNumber'; France is a country; country = 'France';
|
How many Planes orders were there?
|
Planes is a product line;
|
payment refers to amount; full name = firstName+lastName; supervisor refers to reportsTO; 'reportsTO' is the leader of the 'employeeNumber';
|
How many Planes orders were there?
|
Planes is a product line;
|
Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered).
|
How many Planes orders were there?
|
Planes is a product line;
|
average total price = DIVIDE(SUM(MULTIPLY(quantityOrdered, priceEach))), COUNT(orderNumber)); year(orderDate) = '2005';
|
How many Planes orders were there?
|
Planes is a product line;
|
staff of refers to reportsTO; San Francisco is a city;
|
How many Planes orders were there?
|
Planes is a product line;
|
Credit card does not have a limit refers to creditLimit = 45300;
|
How do I contact the President of the company?
|
President refers to the jobTitle;
|
Motorcycles refer to productLine = 'motorcycles'; ordered in 2004 refers to year(orderDate) = 2004;
|
How do I contact the President of the company?
|
President refers to the jobTitle;
|
1939 'Chevrolet Deluxe Coupe' refers to productName; the highest price refers to MAX(priceEach)
|
How do I contact the President of the company?
|
President refers to the jobTitle;
|
full address = addressLine1+addressLine2; Sales Manager is a job title;
|
How do I contact the President of the company?
|
President refers to the jobTitle;
|
average amount payment = AVG(amount);
|
How do I contact the President of the company?
|
President refers to the jobTitle;
|
Pay in total refers to SUM(amount);
|
How do I contact the President of the company?
|
President refers to the jobTitle;
|
full name = firstName+LastName; Paris is a city;
|
How do I contact the President of the company?
|
President refers to the jobTitle;
|
country = 'USA'
|
How do I contact the President of the company?
|
President refers to the jobTitle;
|
Gerakd Hermandez is an employee; French customer refers to customer from France where country = 'France'
|
How do I contact the President of the company?
|
President refers to the jobTitle;
|
Steve Patterson is an employee;
|
How do I contact the President of the company?
|
President refers to the jobTitle;
|
SUM(MULTIPLY(quantityOrdered, priceEach)
|
What's the postal code of the office the VP Sales is at?
|
VP Sales refers to jobTitle
|
President refers to the jobTitle;
|
What's the postal code of the office the VP Sales is at?
|
VP Sales refers to jobTitle
|
shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;
|
What's the postal code of the office the VP Sales is at?
|
VP Sales refers to jobTitle
|
Pay in total refers to SUM(amount);
|
What's the postal code of the office the VP Sales is at?
|
VP Sales refers to jobTitle
|
Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered).
|
What's the postal code of the office the VP Sales is at?
|
VP Sales refers to jobTitle
|
The lowest amount of orders refers to MIN(quantityOrdered);
|
What's the postal code of the office the VP Sales is at?
|
VP Sales refers to jobTitle
|
paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;
|
What's the postal code of the office the VP Sales is at?
|
VP Sales refers to jobTitle
|
The largest order in terms of total price refers to MAX(SUM(MULTIPLY(quantityOrdered, priceEach)).
|
What's the postal code of the office the VP Sales is at?
|
VP Sales refers to jobTitle
|
Euro+ Shopping Channel is a customer name; year(paymentDate) = '2004';
|
What's the postal code of the office the VP Sales is at?
|
VP Sales refers to jobTitle
|
Orders that are disputed refer to status = 'Disputed'; the sales representative means employees; names refers to firstName, lastName.
|
What's the postal code of the office the VP Sales is at?
|
VP Sales refers to jobTitle
|
cancelled shipment refers to status = 'cancelled'; creditLimit > 115000;
|
List out sale rep that has sold 1969 Harley Davidson Ultimate Chopper. List out their names and quantity sold throughout the year.
|
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;
|
payment refers to amount; full name = firstName+lastName; supervisor refers to reportsTO; 'reportsTO' is the leader of the 'employeeNumber';
|
List out sale rep that has sold 1969 Harley Davidson Ultimate Chopper. List out their names and quantity sold throughout the year.
|
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;
|
E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';
|
List out sale rep that has sold 1969 Harley Davidson Ultimate Chopper. List out their names and quantity sold throughout the year.
|
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;
|
DIVIDE(SUM(amount) where customerName = 'Atelier graphique'), (SUM(amount)) as percentage where year(paymentDate) = 2004;
|
List out sale rep that has sold 1969 Harley Davidson Ultimate Chopper. List out their names and quantity sold throughout the year.
|
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;
|
Products refer to productCode; Expected profits = SUBTRACT(MSRP, buyPrice);
|
List out sale rep that has sold 1969 Harley Davidson Ultimate Chopper. List out their names and quantity sold throughout the year.
|
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;
|
1939 'Chevrolet Deluxe Coupe' refers to productName; the highest price refers to MAX(priceEach)
|
List out sale rep that has sold 1969 Harley Davidson Ultimate Chopper. List out their names and quantity sold throughout the year.
|
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;
|
full address = addressLine1+addressLine2; shippedDate = '2005-04-04';
|
List out sale rep that has sold 1969 Harley Davidson Ultimate Chopper. List out their names and quantity sold throughout the year.
|
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;
|
Address comprises addressLine1 and addressLine2;
|
List out sale rep that has sold 1969 Harley Davidson Ultimate Chopper. List out their names and quantity sold throughout the year.
|
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;
|
average amount payment = AVG(amount);
|
List out sale rep that has sold 1969 Harley Davidson Ultimate Chopper. List out their names and quantity sold throughout the year.
|
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;
|
Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;
|
List out sale rep that has sold 1969 Harley Davidson Ultimate Chopper. List out their names and quantity sold throughout the year.
|
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;
|
Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered).
|
How many French customers does Gerard Hernandez take care of?
|
Gerakd Hermandez is an employee; French customer refers to customer from France where country = 'France'
|
SUM(MULTIPLY(quantityOrdered, priceEach)) where productLine = 'Classic Cars'; status = 'Shipped'; customername = 'Land of Toys Inc';
|
How many French customers does Gerard Hernandez take care of?
|
Gerakd Hermandez is an employee; French customer refers to customer from France where country = 'France'
|
full address = addressLine1+addressLine2; Sales Manager is a job title;
|
How many French customers does Gerard Hernandez take care of?
|
Gerakd Hermandez is an employee; French customer refers to customer from France where country = 'France'
|
DIVIDE(SUM(amount) where customerName = 'Atelier graphique'), (SUM(amount)) as percentage where year(paymentDate) = 2004;
|
How many French customers does Gerard Hernandez take care of?
|
Gerakd Hermandez is an employee; French customer refers to customer from France where country = 'France'
|
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;
|
How many French customers does Gerard Hernandez take care of?
|
Gerakd Hermandez is an employee; French customer refers to customer from France where country = 'France'
|
full name = firstName+LastName; Paris is a city;
|
How many French customers does Gerard Hernandez take care of?
|
Gerakd Hermandez is an employee; French customer refers to customer from France where country = 'France'
|
Sales Manager is a job title; Sydney is a city;
|
How many French customers does Gerard Hernandez take care of?
|
Gerakd Hermandez is an employee; French customer refers to customer from France where country = 'France'
|
DIVIDE(COUNT(employeeNumber) when city = 'Paris'), (COUNT(employeeNumber)) as percentage;
|
How many French customers does Gerard Hernandez take care of?
|
Gerakd Hermandez is an employee; French customer refers to customer from France where country = 'France'
|
full address = addressLine1 + addressLine2; NYC is a shortname of New York City.
|
How many French customers does Gerard Hernandez take care of?
|
Gerakd Hermandez is an employee; French customer refers to customer from France where country = 'France'
|
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);
|
How many French customers does Gerard Hernandez take care of?
|
Gerakd Hermandez is an employee; French customer refers to customer from France where country = 'France'
|
average amount of payments = DIVIDE(SUM(amount), COUNT(customerNumber); first half of 2014 refers to paymentDate > = '2004-01-01' AND paymentDate < '2004-07-01;
|
When were the products ordered by Cruz & Sons Co. on 2003-03-03 shipped?
|
Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;
|
Steve Patterson is an employee;
|
When were the products ordered by Cruz & Sons Co. on 2003-03-03 shipped?
|
Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;
|
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));
|
When were the products ordered by Cruz & Sons Co. on 2003-03-03 shipped?
|
Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;
|
full address = addressLine1+addressLine2; shippedDate = '2005-04-04';
|
When were the products ordered by Cruz & Sons Co. on 2003-03-03 shipped?
|
Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;
|
The most ordered quantity product refers to productName where Max(quantityOrdered); SUBTRACT(MSRP, buyPrice);
|
When were the products ordered by Cruz & Sons Co. on 2003-03-03 shipped?
|
Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;
|
Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;
|
When were the products ordered by Cruz & Sons Co. on 2003-03-03 shipped?
|
Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;
|
Still processing refers to status = 'In Process';
|
When were the products ordered by Cruz & Sons Co. on 2003-03-03 shipped?
|
Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;
|
UK is a country; Sales Rep is a job title;
|
When were the products ordered by Cruz & Sons Co. on 2003-03-03 shipped?
|
Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;
|
Products refer to productCode; Expected profits = SUBTRACT(MSRP, buyPrice);
|
When were the products ordered by Cruz & Sons Co. on 2003-03-03 shipped?
|
Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;
|
Best selling products refer to products with MAX(quantityOrdered); 2003 refers to year(orderDate) = 2003;
|
When were the products ordered by Cruz & Sons Co. on 2003-03-03 shipped?
|
Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;
|
1939 'Chevrolet Deluxe Coupe' refers to productName; the highest price refers to MAX(priceEach)
|
For the order has the most product ordered, name the customer who placed the order.
|
The largest order in terms of total price refers to MAX(SUM(MULTIPLY(quantityOrdered, priceEach)).
|
paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;
|
For the order has the most product ordered, name the customer who placed the order.
|
The largest order in terms of total price refers to MAX(SUM(MULTIPLY(quantityOrdered, priceEach)).
|
amount of payment refers to amount;
|
For the order has the most product ordered, name the customer who placed the order.
|
The largest order in terms of total price refers to MAX(SUM(MULTIPLY(quantityOrdered, priceEach)).
|
full address = addressLine1 + addressLine2; NYC is a shortname of New York City.
|
For the order has the most product ordered, name the customer who placed the order.
|
The largest order in terms of total price refers to MAX(SUM(MULTIPLY(quantityOrdered, priceEach)).
|
payment refers to amount; full name = firstName+lastName; supervisor refers to reportsTO; 'reportsTO' is the leader of the 'employeeNumber';
|
For the order has the most product ordered, name the customer who placed the order.
|
The largest order in terms of total price refers to MAX(SUM(MULTIPLY(quantityOrdered, priceEach)).
|
VP Sales refers to jobTitle
|
For the order has the most product ordered, name the customer who placed the order.
|
The largest order in terms of total price refers to MAX(SUM(MULTIPLY(quantityOrdered, priceEach)).
|
Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;
|
For the order has the most product ordered, name the customer who placed the order.
|
The largest order in terms of total price refers to MAX(SUM(MULTIPLY(quantityOrdered, priceEach)).
|
code of employee refers to employeeNumber; United States of America refers to country = 'USA';
|
For the order has the most product ordered, name the customer who placed the order.
|
The largest order in terms of total price refers to MAX(SUM(MULTIPLY(quantityOrdered, priceEach)).
|
average total price = DIVIDE(MULTIPLY(quantityOrdered, priceEach)), COUNT(orderNumber)); German is a nationality of country = 'Germany'; shipped orders refers to status = 'Shipped';
|
For the order has the most product ordered, name the customer who placed the order.
|
The largest order in terms of total price refers to MAX(SUM(MULTIPLY(quantityOrdered, priceEach)).
|
Sales representative refers to jobTitle = 'Sales Rep'; country = 'USA';
|
For the order has the most product ordered, name the customer who placed the order.
|
The largest order in terms of total price refers to MAX(SUM(MULTIPLY(quantityOrdered, priceEach)).
|
reportsTO' is the leader of the 'employeeNumber';
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.