text
stringlengths
0
220
Natural Query: How many orders were placed for Watson Inc between 2023-10-02 and 2024-04-12?
SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Watson Inc' AND order_date BETWEEN '2023-10-02' AND '2024-04-12'
Natural Query: How many orders were placed for Daniels, White and Briggs between 2023-11-30 and 2024-03-25?
SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Daniels, White and Briggs' AND order_date BETWEEN '2023-11-30' AND '2024-03-25'
Natural Query: Show me all products in the hotel category with a price over $569.05.
SQL Query: SELECT * FROM products WHERE category = 'hotel' AND price > 569.05
Natural Query: Show me all products in the commercial category with a price over $580.06.
SQL Query: SELECT * FROM products WHERE category = 'commercial' AND price > 580.06
Natural Query: Show me all products in the return category with a price over $175.73.
SQL Query: SELECT * FROM products WHERE category = 'return' AND price > 175.73
Natural Query: How many orders were placed for Nichols-Holland between 2024-02-02 and 2024-03-27?
SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Nichols-Holland' AND order_date BETWEEN '2024-02-02' AND '2024-03-27'
Natural Query: What is the total price of all products for Coleman, Lee and James?
SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Coleman, Lee and James'
Natural Query: What is the total quantity for each supplier in Carter-Day?
SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Carter-Day' GROUP BY supplier ORDER BY total_quantity DESC
Natural Query: List all customers and their total order value for Dougherty-Cook.
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 = 'Dougherty-Cook' GROUP BY c.customer_id
Natural Query: What is the minimum price of all products for Miller, Cervantes and Harrison?
SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Miller, Cervantes and Harrison'
Natural Query: What is the minimum quantity of all products for Kim-Thomas?
SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Kim-Thomas'
Natural Query: Show me all products in the manage category with a price over $957.84.
SQL Query: SELECT * FROM products WHERE category = 'manage' AND price > 957.84
Natural Query: List all customers and their total order value for Murphy, Parker and Gordon.
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 = 'Murphy, Parker and Gordon' GROUP BY c.customer_id
Natural Query: List all products of Murray Ltd ordered by price from highest to lowest.
SQL Query: SELECT * FROM products WHERE company_name = 'Murray Ltd' ORDER BY price DESC
Natural Query: What is the maximum price of all products for Norman, Diaz and Davies?
SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Norman, Diaz and Davies'
Natural Query: Show me all products in the style category with a price over $83.01.
SQL Query: SELECT * FROM products WHERE category = 'style' AND price > 83.01
Natural Query: What are the top 5 products by customers for Williams PLC last quarter?
SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Williams PLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5
Natural Query: How many orders were placed for Andrade Inc between 2024-09-06 and 2024-09-09?
SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Andrade Inc' AND order_date BETWEEN '2024-09-06' AND '2024-09-09'
Natural Query: How many orders were placed for Short LLC between 2024-08-23 and 2024-09-09?
SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Short LLC' AND order_date BETWEEN '2024-08-23' AND '2024-09-09'
Natural Query: List all products of Snyder-Joyce ordered by rating from lowest to highest.
SQL Query: SELECT * FROM products WHERE company_name = 'Snyder-Joyce' ORDER BY rating ASC
Natural Query: What is the minimum rating of all products for Peterson, Marshall and Harrison?
SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Peterson, Marshall and Harrison'
Natural Query: What are the top 6 products by customers for Castro and Sons all time?
SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Castro and Sons' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6
Natural Query: What is the minimum price of all products for King-Johnson?
SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'King-Johnson'
Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Williams Group 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 = 'Williams Group'
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 concern category with a price over $768.69.
SQL Query: SELECT * FROM products WHERE category = 'concern' AND price > 768.69
Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Nelson, Carter and Grant 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 = 'Nelson, Carter and Grant'
AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)
GROUP BY p.category
ORDER BY total_sales DESC
LIMIT 5
Natural Query: How many orders were placed for Williams, Leblanc and Perez between 2024-09-03 and 2024-09-09?
SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Williams, Leblanc and Perez' AND order_date BETWEEN '2024-09-03' AND '2024-09-09'