text
stringlengths
0
220
LIMIT 5
Natural Query: What are the top 9 products by customers for Taylor, Parks and Rivera last quarter?
SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Taylor, Parks and Rivera' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9
Natural Query: How many orders were placed for Little, Brown and Garcia between 2024-01-13 and 2024-08-23?
SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Little, Brown and Garcia' AND order_date BETWEEN '2024-01-13' AND '2024-08-23'
Natural Query: What are the top 8 products by sales for Wright, Kramer and Grimes last quarter?
SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Wright, Kramer and Grimes' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8
Natural Query: List all customers and their total order value for Carroll, Hill and Mendoza.
SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Carroll, Hill and Mendoza' GROUP BY c.customer_id
Natural Query: List all customers and their total order value for Martin, Hicks and Martinez.
SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Martin, Hicks and Martinez' GROUP BY c.customer_id
Natural Query: List all products of Cline-Dickerson ordered by price from highest to lowest.
SQL Query: SELECT * FROM products WHERE company_name = 'Cline-Dickerson' ORDER BY price DESC
Natural Query: What is the average price of all products for Thompson-Mcdaniel?
SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Thompson-Mcdaniel'
Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Green Ltd for the last quarter?
SQL Query: SELECT p.category, SUM(s.sales) as total_sales
FROM sales s
JOIN products p ON s.product_id = p.product_id
JOIN customers c ON s.customer_id = c.customer_id
WHERE c.age BETWEEN 25 AND 35
AND s.company_name = 'Green Ltd'
AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)
GROUP BY p.category
ORDER BY total_sales DESC
LIMIT 5
Natural Query: What is the total sales for each country in Smith-Young?
SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Smith-Young' GROUP BY country ORDER BY total_sales DESC
Natural Query: List all products of Leon, Chapman and Marquez ordered by rating from lowest to highest.
SQL Query: SELECT * FROM products WHERE company_name = 'Leon, Chapman and Marquez' ORDER BY rating ASC
Natural Query: What are the top 9 products by customers for Boyle LLC this year?
SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Boyle LLC' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9
Natural Query: Show me all products in the model category with a price over $27.26.
SQL Query: SELECT * FROM products WHERE category = 'model' AND price > 27.26
Natural Query: What is the minimum quantity of all products for Allen Ltd?
SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Allen Ltd'
Natural Query: What are the top 5 products by sales for Rodriguez, Rasmussen and Perry this month?
SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Rodriguez, Rasmussen and Perry' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5
Natural Query: List all customers and their total order value for Butler Inc.
SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Butler Inc' GROUP BY c.customer_id
Natural Query: Show me all products in the main category with a price over $42.11.
SQL Query: SELECT * FROM products WHERE category = 'main' AND price > 42.11
Natural Query: How many orders were placed for Brown LLC between 2024-05-05 and 2024-07-27?
SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Brown LLC' AND order_date BETWEEN '2024-05-05' AND '2024-07-27'
Natural Query: Show me all products in the increase category with a price over $676.39.
SQL Query: SELECT * FROM products WHERE category = 'increase' AND price > 676.39
Natural Query: Show me all products in the model category with a price over $808.6.
SQL Query: SELECT * FROM products WHERE category = 'model' AND price > 808.6
Natural Query: How many orders were placed for Travis and Sons between 2023-12-16 and 2024-06-13?
SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Travis and Sons' AND order_date BETWEEN '2023-12-16' AND '2024-06-13'
Natural Query: What is the total sales for each country in Perry, Pearson and Schneider?
SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Perry, Pearson and Schneider' GROUP BY country ORDER BY total_sales DESC
Natural Query: What is the total quantity for each country in Williams PLC?
SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Williams PLC' GROUP BY country ORDER BY total_quantity DESC
Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lane-Allison for the last quarter?
SQL Query: SELECT p.category, SUM(s.sales) as total_sales
FROM sales s
JOIN products p ON s.product_id = p.product_id
JOIN customers c ON s.customer_id = c.customer_id
WHERE c.age BETWEEN 25 AND 35
AND s.company_name = 'Lane-Allison'
AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)
GROUP BY p.category
ORDER BY total_sales DESC
LIMIT 5
Natural Query: Show me all products in the marriage category with a price over $217.62.
SQL Query: SELECT * FROM products WHERE category = 'marriage' AND price > 217.62
Natural Query: List all customers and their total order value for Clark, Pearson and Humphrey.
SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Clark, Pearson and Humphrey' GROUP BY c.customer_id
Natural Query: List all products of Greer Ltd ordered by rating from lowest to highest.
SQL Query: SELECT * FROM products WHERE company_name = 'Greer Ltd' ORDER BY rating ASC
Natural Query: List all customers and their total order value for Morgan and Sons.
SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Morgan and Sons' GROUP BY c.customer_id