diff --git "a/val_data.txt" "b/val_data.txt" new file mode 100644--- /dev/null +++ "b/val_data.txt" @@ -0,0 +1,4151 @@ +Natural Query: What is the average price of all products for Murillo Group? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Murillo Group' + +Natural Query: What are the top 6 products by customers for Velez, Hughes and Robertson this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Velez, Hughes and Robertson' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: How many orders were placed for Wells Group between 2024-02-13 and 2024-09-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wells Group' AND order_date BETWEEN '2024-02-13' AND '2024-09-16' + +Natural Query: What is the total quantity of all products for Wright and Sons? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Wright and Sons' + +Natural Query: List all customers and their total order value for Escobar, Coleman and Lucas. +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 = 'Escobar, Coleman and Lucas' GROUP BY c.customer_id + +Natural Query: List all products of Romero-Kemp ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Romero-Kemp' ORDER BY stock_quantity ASC + +Natural Query: List all customers and their total order value for Torres-Reed. +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 = 'Torres-Reed' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Mitchell Ltd. +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 = 'Mitchell Ltd' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Phelps-Reynolds between 2023-11-01 and 2024-03-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Phelps-Reynolds' AND order_date BETWEEN '2023-11-01' AND '2024-03-05' + +Natural Query: What is the total sales for each supplier in Jones Ltd? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Jones Ltd' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Torres-Jones 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 = 'Torres-Jones' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all customers and their total order value for Aguilar-Jenkins. +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 = 'Aguilar-Jenkins' GROUP BY c.customer_id + +Natural Query: What is the maximum quantity of all products for Kelly-Baldwin? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Kelly-Baldwin' + +Natural Query: List all customers and their total order value for Bennett 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 = 'Bennett Inc' GROUP BY c.customer_id + +Natural Query: Show me all products in the list category with a price over $298.81. +SQL Query: SELECT * FROM products WHERE category = 'list' AND price > 298.81 + +Natural Query: Show me all products in the occur category with a price over $745.97. +SQL Query: SELECT * FROM products WHERE category = 'occur' AND price > 745.97 + +Natural Query: What is the total price of all products for Thompson, Lindsey and Marshall? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Thompson, Lindsey and Marshall' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Jarvis, Jones and Smith 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 = 'Jarvis, Jones and Smith' + 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 whom category with a price over $287.41. +SQL Query: SELECT * FROM products WHERE category = 'whom' AND price > 287.41 + +Natural Query: Show me all products in the effort category with a price over $968.11. +SQL Query: SELECT * FROM products WHERE category = 'effort' AND price > 968.11 + +Natural Query: What are the top 9 products by revenue for Rice-Taylor last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Rice-Taylor' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: What is the total quantity for each supplier in Davis-Medina? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Davis-Medina' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: Show me all products in the sometimes category with a price over $743.75. +SQL Query: SELECT * FROM products WHERE category = 'sometimes' AND price > 743.75 + +Natural Query: What is the total sales for each supplier in Ray-Pearson? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Ray-Pearson' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Davis, Brown and Edwards between 2024-06-16 and 2024-06-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Davis, Brown and Edwards' AND order_date BETWEEN '2024-06-16' AND '2024-06-27' + +Natural Query: List all products of Patton, West and Pena ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Patton, West and Pena' ORDER BY rating ASC + +Natural Query: What is the average quantity of all products for Gibson-Powers? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Gibson-Powers' + +Natural Query: List all customers and their total order value for Anderson 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 = 'Anderson and Sons' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Montes, Jenkins and Marquez. +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 = 'Montes, Jenkins and Marquez' GROUP BY c.customer_id + +Natural Query: List all products of Fleming, Thomas and Knight ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Fleming, Thomas and Knight' ORDER BY rating DESC + +Natural Query: List all customers and their total order value for Ray-Ritter. +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 = 'Ray-Ritter' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Schneider, Cantu and Weaver between 2024-01-28 and 2024-07-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Schneider, Cantu and Weaver' AND order_date BETWEEN '2024-01-28' AND '2024-07-29' + +Natural Query: What are the top 8 products by customers for Morales-Kaiser this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Morales-Kaiser' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: Show me all products in the themselves category with a price over $920.49. +SQL Query: SELECT * FROM products WHERE category = 'themselves' AND price > 920.49 + +Natural Query: What is the maximum quantity of all products for Hull-Garcia? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Hull-Garcia' + +Natural Query: How many orders were placed for Carlson-Flores between 2024-05-19 and 2024-06-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Carlson-Flores' AND order_date BETWEEN '2024-05-19' AND '2024-06-30' + +Natural Query: List all products of Price, Lee and Peters ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Price, Lee and Peters' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Weeks Inc 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 = 'Weeks Inc' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all products of Moore-Herman ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Moore-Herman' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Smith-Chapman. +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 = 'Smith-Chapman' GROUP BY c.customer_id + +Natural Query: What is the total sales for each country in Moreno LLC? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Moreno LLC' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the maximum quantity of all products for Franklin LLC? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Franklin LLC' + +Natural Query: List all customers and their total order value for Stone 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 = 'Stone Inc' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Henderson-Hunter between 2024-08-15 and 2024-08-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Henderson-Hunter' AND order_date BETWEEN '2024-08-15' AND '2024-08-16' + +Natural Query: How many orders were placed for Jenkins-Carter between 2024-03-22 and 2024-06-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jenkins-Carter' AND order_date BETWEEN '2024-03-22' AND '2024-06-17' + +Natural Query: What is the total quantity for each supplier in Cox Ltd? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Cox Ltd' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all products of Harrison PLC ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Harrison PLC' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Washington 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 = 'Washington Group' + 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 profit for each country in Barr, Sanchez and Johnson? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Barr, Sanchez and Johnson' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Phillips, Jackson and Wright 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 = 'Phillips, Jackson and Wright' + 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 sea category with a price over $944.36. +SQL Query: SELECT * FROM products WHERE category = 'sea' AND price > 944.36 + +Natural Query: What are the top 9 products by sales for Jones-Martinez this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Jones-Martinez' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: What are the top 8 products by customers for Stephenson, Smith and Myers all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Stephenson, Smith and Myers' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: List all products of Yang-Blanchard ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Yang-Blanchard' ORDER BY rating ASC + +Natural Query: Show me all products in the still category with a price over $742.9. +SQL Query: SELECT * FROM products WHERE category = 'still' AND price > 742.9 + +Natural Query: List all products of Foster-Pierce ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Foster-Pierce' ORDER BY stock_quantity DESC + +Natural Query: List all products of Burns-Nelson ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Burns-Nelson' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Smith, Rivera and Davis 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 = 'Smith, Rivera and Davis' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all customers and their total order value for Fleming-Norton. +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 = 'Fleming-Norton' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Baxter PLC 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 = 'Baxter PLC' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all products of Sullivan Inc ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Sullivan Inc' ORDER BY stock_quantity ASC + +Natural Query: Show me all products in the economic category with a price over $375.83. +SQL Query: SELECT * FROM products WHERE category = 'economic' AND price > 375.83 + +Natural Query: What are the top 6 products by revenue for Dorsey, Martin and Richmond this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Dorsey, Martin and Richmond' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: List all products of Oneal, Smith and Mccormick ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Oneal, Smith and Mccormick' ORDER BY price ASC + +Natural Query: List all products of Carrillo Ltd ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Carrillo Ltd' ORDER BY stock_quantity DESC + +Natural Query: What is the total profit for each country in Griffith LLC? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Griffith LLC' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lawson-Hicks 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 = 'Lawson-Hicks' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all products of Townsend, Williams and Wolf ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Townsend, Williams and Wolf' ORDER BY rating ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Walters-Ryan 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 = 'Walters-Ryan' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Snyder LLC 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 = 'Snyder LLC' + 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 profit for each category in Hudson, Adams and Yang? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Hudson, Adams and Yang' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Price, Lee and Baker 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 = 'Price, Lee and Baker' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What are the top 8 products by revenue for Dyer LLC this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Dyer LLC' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: List all customers and their total order value for Williams LLC. +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 = 'Williams LLC' GROUP BY c.customer_id + +Natural Query: What is the average rating of all products for Robinson Group? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Robinson Group' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Harmon-Franklin 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 = 'Harmon-Franklin' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all customers and their total order value for Fischer, Ortega and Fox. +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 = 'Fischer, Ortega and Fox' GROUP BY c.customer_id + +Natural Query: What is the total profit for each category in Patterson PLC? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Patterson PLC' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 9 products by customers for Patrick-Fischer all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Patrick-Fischer' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: List all customers and their total order value for Graham-Newton. +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 = 'Graham-Newton' GROUP BY c.customer_id + +Natural Query: What is the total profit for each supplier in Floyd, Conley and Stuart? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Floyd, Conley and Stuart' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Williams, Russell and Davenport 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, Russell and Davenport' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Rojas LLC 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 = 'Rojas LLC' + 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 price of all products for Turner LLC? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Turner LLC' + +Natural Query: What are the top 4 products by sales for Dalton, Sawyer and Burton this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Dalton, Sawyer and Burton' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: What is the average rating of all products for Shaw, Nicholson and Avila? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Shaw, Nicholson and Avila' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Wilson, Marks and Peterson 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 = 'Wilson, Marks and Peterson' + 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 sell category with a price over $830.98. +SQL Query: SELECT * FROM products WHERE category = 'sell' AND price > 830.98 + +Natural Query: How many orders were placed for Butler, Schmidt and Lane between 2023-12-21 and 2024-07-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Butler, Schmidt and Lane' AND order_date BETWEEN '2023-12-21' AND '2024-07-21' + +Natural Query: List all customers and their total order value for Figueroa LLC. +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 = 'Figueroa LLC' GROUP BY c.customer_id + +Natural Query: List all products of Hansen Group ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hansen Group' ORDER BY price DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Garza LLC 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 = 'Garza LLC' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Nguyen-Miller 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 = 'Nguyen-Miller' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all customers and their total order value for Wilson, Coleman and Nguyen. +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 = 'Wilson, Coleman and Nguyen' GROUP BY c.customer_id + +Natural Query: What are the top 8 products by customers for Logan, Davis and Long last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Logan, Davis and Long' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: What is the total profit for each country in Bruce, Harris and Morales? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Bruce, Harris and Morales' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all products of Hill-Brown ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hill-Brown' ORDER BY rating DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Santos-Webster 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 = 'Santos-Webster' + 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 price of all products for Moore Inc? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Moore Inc' + +Natural Query: List all products of Brown Inc ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Brown Inc' ORDER BY stock_quantity DESC + +Natural Query: Show me all products in the notice category with a price over $190.83. +SQL Query: SELECT * FROM products WHERE category = 'notice' AND price > 190.83 + +Natural Query: List all customers and their total order value for Gibson, Perry and Smith. +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 = 'Gibson, Perry and Smith' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each category in Hill-Wells? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Hill-Wells' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Boyd 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 = 'Boyd Group' + 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 Humphrey and Sons between 2024-02-22 and 2024-08-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Humphrey and Sons' AND order_date BETWEEN '2024-02-22' AND '2024-08-09' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Davila-Serrano 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 = 'Davila-Serrano' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Reid, Brown and Guerra 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 = 'Reid, Brown and Guerra' + 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 bag category with a price over $13.47. +SQL Query: SELECT * FROM products WHERE category = 'bag' AND price > 13.47 + +Natural Query: List all products of Carter, Berg and Ray ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Carter, Berg and Ray' ORDER BY stock_quantity DESC + +Natural Query: What are the top 7 products by revenue for Richardson Ltd all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Richardson Ltd' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: What is the average price of all products for Henderson, Williamson and Tucker? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Henderson, Williamson and Tucker' + +Natural Query: What are the top 8 products by revenue for Ramsey Ltd this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Ramsey Ltd' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: What are the top 4 products by sales for Reed-Kelley last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Reed-Kelley' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: What is the minimum price of all products for Cooper, Johnson and West? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Cooper, Johnson and West' + +Natural Query: List all products of Delgado, Hernandez and Adams ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Delgado, Hernandez and Adams' ORDER BY rating DESC + +Natural Query: How many orders were placed for Houston, Goodwin and Mcneil between 2023-11-01 and 2023-11-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Houston, Goodwin and Mcneil' AND order_date BETWEEN '2023-11-01' AND '2023-11-01' + +Natural Query: What is the total quantity for each category in Benton-Watson? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Benton-Watson' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the total sales for each country in Beard-Goodman? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Beard-Goodman' GROUP BY country ORDER BY total_sales DESC + +Natural Query: Show me all products in the marriage category with a price over $784.78. +SQL Query: SELECT * FROM products WHERE category = 'marriage' AND price > 784.78 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Stephens, Roberts and Shaffer 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 = 'Stephens, Roberts and Shaffer' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all products of Barnett Group ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Barnett Group' ORDER BY rating ASC + +Natural Query: What is the maximum quantity of all products for Thomas, Smith and Clark? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Thomas, Smith and Clark' + +Natural Query: What are the top 3 products by customers for Simpson, Perez and Moore this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Simpson, Perez and Moore' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: What are the top 7 products by sales for Chambers, Cruz and Moore this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Chambers, Cruz and Moore' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: Show me all products in the impact category with a price over $650.04. +SQL Query: SELECT * FROM products WHERE category = 'impact' AND price > 650.04 + +Natural Query: What are the top 9 products by orders for Morgan-Roth this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Morgan-Roth' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: List all customers and their total order value for Guerrero-Wilkinson. +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 = 'Guerrero-Wilkinson' GROUP BY c.customer_id + +Natural Query: What is the total profit for each country in Koch-Becker? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Koch-Becker' GROUP BY country ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Henry Inc between 2024-06-12 and 2024-08-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Henry Inc' AND order_date BETWEEN '2024-06-12' AND '2024-08-28' + +Natural Query: What are the top 8 products by sales for Brown-Gonzalez all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Brown-Gonzalez' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: What is the total quantity for each category in Blevins and Sons? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Blevins and Sons' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all products of Fernandez-Werner ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Fernandez-Werner' ORDER BY price DESC + +Natural Query: Show me all products in the still category with a price over $873.71. +SQL Query: SELECT * FROM products WHERE category = 'still' AND price > 873.71 + +Natural Query: List all products of Hartman and Sons ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hartman and Sons' ORDER BY stock_quantity ASC + +Natural Query: Show me all products in the store category with a price over $295.86. +SQL Query: SELECT * FROM products WHERE category = 'store' AND price > 295.86 + +Natural Query: What are the top 7 products by orders for Greene-Ward this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Greene-Ward' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: List all customers and their total order value for Henderson, Anderson and Cruz. +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 = 'Henderson, Anderson and Cruz' GROUP BY c.customer_id + +Natural Query: What are the top 8 products by customers for Duncan Ltd all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Duncan Ltd' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: What are the top 9 products by customers for Reed, Watkins and Adams this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Reed, Watkins and Adams' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: List all products of Bell-Russell ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Bell-Russell' ORDER BY stock_quantity ASC + +Natural Query: Show me all products in the bar category with a price over $970.63. +SQL Query: SELECT * FROM products WHERE category = 'bar' AND price > 970.63 + +Natural Query: List all customers and their total order value for Brown LLC. +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 = 'Brown LLC' GROUP BY c.customer_id + +Natural Query: What is the total price of all products for Calhoun PLC? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Calhoun PLC' + +Natural Query: List all products of Barnes LLC ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Barnes LLC' ORDER BY stock_quantity ASC + +Natural Query: What are the top 7 products by customers for Miller, Pennington and Stone this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Miller, Pennington and Stone' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: What is the total quantity for each country in Jones Inc? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Jones Inc' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 8 products by orders for Kelley-Castaneda this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Kelley-Castaneda' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: List all products of Hawkins-Miller ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hawkins-Miller' ORDER BY price ASC + +Natural Query: What are the top 10 products by revenue for Osborn-Smith this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Osborn-Smith' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: List all products of Lee, Guerrero and Fritz ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lee, Guerrero and Fritz' ORDER BY stock_quantity ASC + +Natural Query: How many orders were placed for Moreno-White between 2023-12-31 and 2024-02-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Moreno-White' AND order_date BETWEEN '2023-12-31' AND '2024-02-26' + +Natural Query: Show me all products in the both category with a price over $254.88. +SQL Query: SELECT * FROM products WHERE category = 'both' AND price > 254.88 + +Natural Query: How many orders were placed for Fleming-Silva between 2024-03-04 and 2024-08-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Fleming-Silva' AND order_date BETWEEN '2024-03-04' AND '2024-08-24' + +Natural Query: Show me all products in the have category with a price over $281.93. +SQL Query: SELECT * FROM products WHERE category = 'have' AND price > 281.93 + +Natural Query: How many orders were placed for Williams-David between 2024-05-17 and 2024-09-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Williams-David' AND order_date BETWEEN '2024-05-17' AND '2024-09-07' + +Natural Query: What are the top 10 products by revenue for Johnson-Williams this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Johnson-Williams' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: Show me all products in the significant category with a price over $301.35. +SQL Query: SELECT * FROM products WHERE category = 'significant' AND price > 301.35 + +Natural Query: List all customers and their total order value for Thomas-Brown. +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 = 'Thomas-Brown' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Burch, Torres and Mosley between 2024-07-27 and 2024-08-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Burch, Torres and Mosley' AND order_date BETWEEN '2024-07-27' AND '2024-08-09' + +Natural Query: How many orders were placed for Sellers-Hernandez between 2023-12-11 and 2024-08-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Sellers-Hernandez' AND order_date BETWEEN '2023-12-11' AND '2024-08-29' + +Natural Query: What is the minimum quantity of all products for Peterson-Rodriguez? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Peterson-Rodriguez' + +Natural Query: What is the minimum price of all products for Rodriguez LLC? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Rodriguez LLC' + +Natural Query: List all products of Hawkins Group ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hawkins Group' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Russell Ltd. +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 = 'Russell Ltd' GROUP BY c.customer_id + +Natural Query: Show me all products in the cultural category with a price over $700.47. +SQL Query: SELECT * FROM products WHERE category = 'cultural' AND price > 700.47 + +Natural Query: What is the total profit for each supplier in Rodriguez-Davis? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Rodriguez-Davis' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 10 products by sales for Wilson Inc all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Wilson Inc' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: What are the top 10 products by customers for Lopez-Peters this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Lopez-Peters' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10 + +Natural Query: What is the maximum price of all products for Stewart Ltd? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Stewart Ltd' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Walker-Butler 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 = 'Walker-Butler' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What are the top 3 products by orders for Rodriguez, Morgan and Smith this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Rodriguez, Morgan and Smith' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: How many orders were placed for Rodriguez, Moore and Tran between 2023-12-03 and 2023-12-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Rodriguez, Moore and Tran' AND order_date BETWEEN '2023-12-03' AND '2023-12-20' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Grant-Johnson 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 = 'Grant-Johnson' + 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 Oconnell-Barrett between 2024-02-25 and 2024-04-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Oconnell-Barrett' AND order_date BETWEEN '2024-02-25' AND '2024-04-09' + +Natural Query: List all customers and their total order value for Walker, Welch and Soto. +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 = 'Walker, Welch and Soto' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each category in Parrish, Yang and Zimmerman? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Parrish, Yang and Zimmerman' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Davis-Moore 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 = 'Davis-Moore' + 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 child category with a price over $692.25. +SQL Query: SELECT * FROM products WHERE category = 'child' AND price > 692.25 + +Natural Query: List all customers and their total order value for Miller LLC. +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 = 'Miller LLC' GROUP BY c.customer_id + +Natural Query: List all products of Garcia, Lawrence and Lozano ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Garcia, Lawrence and Lozano' ORDER BY stock_quantity DESC + +Natural Query: What is the total profit for each supplier in Yates-White? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Yates-White' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the minimum price of all products for Wells Group? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Wells Group' + +Natural Query: What is the minimum rating of all products for Foster-Nunez? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Foster-Nunez' + +Natural Query: What is the total sales for each country in Coleman, Clark and Cook? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Coleman, Clark and Cook' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the average quantity of all products for Ramirez Inc? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Ramirez Inc' + +Natural Query: List all customers and their total order value for Mclean-Sanders. +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 = 'Mclean-Sanders' GROUP BY c.customer_id + +Natural Query: Show me all products in the do category with a price over $423.81. +SQL Query: SELECT * FROM products WHERE category = 'do' AND price > 423.81 + +Natural Query: List all products of Gonzalez-Phillips ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gonzalez-Phillips' ORDER BY rating DESC + +Natural Query: List all products of Ayers-Dean ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ayers-Dean' ORDER BY rating DESC + +Natural Query: List all products of Baldwin-Rodriguez ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Baldwin-Rodriguez' ORDER BY rating DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Randolph 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 = 'Randolph Group' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all customers and their total order value for Bailey Ltd. +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 = 'Bailey Ltd' GROUP BY c.customer_id + +Natural Query: What is the average rating of all products for Smith PLC? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Smith PLC' + +Natural Query: What is the total quantity for each category in Allison-Ray? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Allison-Ray' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Brown, Espinoza and Hampton. +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 = 'Brown, Espinoza and Hampton' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Madden LLC. +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 = 'Madden LLC' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Aguilar-Williams between 2023-12-16 and 2024-05-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Aguilar-Williams' AND order_date BETWEEN '2023-12-16' AND '2024-05-04' + +Natural Query: List all customers and their total order value for Ball-Leach. +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 = 'Ball-Leach' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Woods-Williams. +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 = 'Woods-Williams' GROUP BY c.customer_id + +Natural Query: What is the total sales for each supplier in Ewing-Armstrong? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Ewing-Armstrong' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 5 products by sales for Bell, Parker and Sullivan last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Bell, Parker and Sullivan' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: List all customers and their total order value for Vargas, Rivera and Horton. +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 = 'Vargas, Rivera and Horton' GROUP BY c.customer_id + +Natural Query: Show me all products in the city category with a price over $576.2. +SQL Query: SELECT * FROM products WHERE category = 'city' AND price > 576.2 + +Natural Query: How many orders were placed for Davis Group between 2023-10-01 and 2024-09-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Davis Group' AND order_date BETWEEN '2023-10-01' AND '2024-09-12' + +Natural Query: List all products of Collins, Galloway and Simpson ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Collins, Galloway and Simpson' ORDER BY price DESC + +Natural Query: Show me all products in the than category with a price over $147.16. +SQL Query: SELECT * FROM products WHERE category = 'than' AND price > 147.16 + +Natural Query: What is the total quantity for each supplier in Cruz-Lee? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Cruz-Lee' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all products of Salazar-Perry ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Salazar-Perry' ORDER BY price DESC + +Natural Query: What is the minimum price of all products for Foster, Willis and Bennett? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Foster, Willis and Bennett' + +Natural Query: How many orders were placed for Cooke Ltd between 2023-09-19 and 2023-10-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cooke Ltd' AND order_date BETWEEN '2023-09-19' AND '2023-10-16' + +Natural Query: What is the total quantity for each category in Marsh-Brewer? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Marsh-Brewer' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the minimum quantity of all products for Robinson, Herrera and Jones? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Robinson, Herrera and Jones' + +Natural Query: List all customers and their total order value for Park-Rogers. +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 = 'Park-Rogers' GROUP BY c.customer_id + +Natural Query: Show me all products in the today category with a price over $275.45. +SQL Query: SELECT * FROM products WHERE category = 'today' AND price > 275.45 + +Natural Query: What are the top 3 products by orders for Mitchell, Olson and Thompson last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Mitchell, Olson and Thompson' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: What is the total quantity of all products for Wilson-Wallace? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Wilson-Wallace' + +Natural Query: What are the top 5 products by revenue for Christensen-Galloway all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Christensen-Galloway' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: List all products of Knight Ltd ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Knight Ltd' ORDER BY price DESC + +Natural Query: How many orders were placed for Roberts LLC between 2023-12-06 and 2024-05-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Roberts LLC' AND order_date BETWEEN '2023-12-06' AND '2024-05-12' + +Natural Query: How many orders were placed for Perry-Lee between 2024-05-25 and 2024-07-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Perry-Lee' AND order_date BETWEEN '2024-05-25' AND '2024-07-04' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Bradshaw-Richard 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 = 'Bradshaw-Richard' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lynch-Stuart 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 = 'Lynch-Stuart' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all customers and their total order value for May-Barajas. +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 = 'May-Barajas' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Bond, Carter and Parker between 2024-09-11 and 2024-09-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bond, Carter and Parker' AND order_date BETWEEN '2024-09-11' AND '2024-09-11' + +Natural Query: How many orders were placed for Bailey, Gonzalez and Rogers between 2024-04-01 and 2024-04-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bailey, Gonzalez and Rogers' AND order_date BETWEEN '2024-04-01' AND '2024-04-03' + +Natural Query: What is the total quantity for each category in Tucker, Zamora and Brown? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Tucker, Zamora and Brown' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the minimum quantity of all products for Jones-Hardin? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Jones-Hardin' + +Natural Query: List all customers and their total order value for Smith, Caldwell and Gill. +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 = 'Smith, Caldwell and Gill' GROUP BY c.customer_id + +Natural Query: What is the minimum price of all products for Mcclure and Sons? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Mcclure and Sons' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Smith, Randall and Torres 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 = 'Smith, Randall and Torres' + 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 profit for each category in Kane-Hendrix? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Kane-Hendrix' GROUP BY category ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Byrd, Sawyer and Nicholson between 2023-12-20 and 2024-02-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Byrd, Sawyer and Nicholson' AND order_date BETWEEN '2023-12-20' AND '2024-02-11' + +Natural Query: What is the total sales for each country in Munoz Inc? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Munoz Inc' GROUP BY country ORDER BY total_sales DESC + +Natural Query: Show me all products in the society category with a price over $804.53. +SQL Query: SELECT * FROM products WHERE category = 'society' AND price > 804.53 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Adams and Sons 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 = 'Adams and Sons' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Wilson, Hernandez and Schneider 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 = 'Wilson, Hernandez and Schneider' + 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 food category with a price over $66.98. +SQL Query: SELECT * FROM products WHERE category = 'food' AND price > 66.98 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Green, Wilcox and Perez 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, Wilcox and Perez' + 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 supplier in Owens-Morgan? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Owens-Morgan' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the maximum rating of all products for Hopkins Ltd? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Hopkins Ltd' + +Natural Query: What is the maximum price of all products for Jones Group? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Jones Group' + +Natural Query: What is the total rating of all products for Taylor and Sons? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Taylor and Sons' + +Natural Query: What is the average rating of all products for Andrews, Hall and Little? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Andrews, Hall and Little' + +Natural Query: List all products of Mathis, Hamilton and Davis ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mathis, Hamilton and Davis' ORDER BY price ASC + +Natural Query: List all products of Morse, Sawyer and Valencia ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Morse, Sawyer and Valencia' ORDER BY price ASC + +Natural Query: How many orders were placed for Reid, Lucas and Young between 2024-07-14 and 2024-09-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Reid, Lucas and Young' AND order_date BETWEEN '2024-07-14' AND '2024-09-16' + +Natural Query: What is the minimum quantity of all products for Jenkins Inc? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Jenkins Inc' + +Natural Query: List all customers and their total order value for Perkins-Fuller. +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 = 'Perkins-Fuller' GROUP BY c.customer_id + +Natural Query: What is the minimum rating of all products for Perez, Bernard and Kelly? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Perez, Bernard and Kelly' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Jones-Brooks 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 = 'Jones-Brooks' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all customers and their total order value for Brennan Group. +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 = 'Brennan Group' GROUP BY c.customer_id + +Natural Query: What is the total profit for each category in Bell-Edwards? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Bell-Edwards' GROUP BY category ORDER BY total_profit DESC + +Natural Query: Show me all products in the huge category with a price over $564.74. +SQL Query: SELECT * FROM products WHERE category = 'huge' AND price > 564.74 + +Natural Query: How many orders were placed for Perez LLC between 2024-07-25 and 2024-09-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Perez LLC' AND order_date BETWEEN '2024-07-25' AND '2024-09-09' + +Natural Query: List all customers and their total order value for Estes, Duarte and Yates. +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 = 'Estes, Duarte and Yates' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Roach-Blankenship 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 = 'Roach-Blankenship' + 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 institution category with a price over $100.49. +SQL Query: SELECT * FROM products WHERE category = 'institution' AND price > 100.49 + +Natural Query: How many orders were placed for Mitchell-Shields between 2024-02-28 and 2024-04-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mitchell-Shields' AND order_date BETWEEN '2024-02-28' AND '2024-04-16' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Martinez LLC 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 = 'Martinez LLC' + 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 Sandoval-Ferguson between 2024-05-18 and 2024-07-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Sandoval-Ferguson' AND order_date BETWEEN '2024-05-18' AND '2024-07-04' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Smith, Arnold and Watkins 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 = 'Smith, Arnold and Watkins' + 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 rating of all products for Hill, Nicholson and Wells? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Hill, Nicholson and Wells' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Duran LLC 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 = 'Duran LLC' + 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 profit for each country in Peters-Trujillo? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Peters-Trujillo' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 3 products by orders for Bradshaw LLC last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Bradshaw LLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: How many orders were placed for Jones Inc between 2024-06-21 and 2024-06-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jones Inc' AND order_date BETWEEN '2024-06-21' AND '2024-06-25' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Snow-Wright 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 = 'Snow-Wright' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all customers and their total order value for Reed-Woodward. +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 = 'Reed-Woodward' GROUP BY c.customer_id + +Natural Query: What are the top 10 products by sales for Garcia-Cain last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Garcia-Cain' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: What is the minimum rating of all products for Henderson, Mccann and Brooks? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Henderson, Mccann and Brooks' + +Natural Query: List all customers and their total order value for Costa PLC. +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 = 'Costa PLC' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Moore, Trujillo and Phillips between 2024-01-10 and 2024-08-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Moore, Trujillo and Phillips' AND order_date BETWEEN '2024-01-10' AND '2024-08-01' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Everett-Campbell 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 = 'Everett-Campbell' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all products of Hill LLC ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hill LLC' ORDER BY price ASC + +Natural Query: How many orders were placed for Norris-Wade between 2024-04-15 and 2024-06-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Norris-Wade' AND order_date BETWEEN '2024-04-15' AND '2024-06-03' + +Natural Query: What are the top 6 products by orders for Jackson Inc last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Jackson Inc' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lewis-Gardner 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 = 'Lewis-Gardner' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all products of Crawford-Weber ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Crawford-Weber' ORDER BY rating ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Jarvis, Brown and Miller 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 = 'Jarvis, Brown and Miller' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What are the top 6 products by revenue for Barnes PLC this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Barnes PLC' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: List all products of Zuniga-Richardson ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Zuniga-Richardson' ORDER BY rating DESC + +Natural Query: What is the total sales for each country in Rice, Hooper and Allison? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Rice, Hooper and Allison' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 6 products by sales for Mercer-Greene this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Mercer-Greene' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: What are the top 9 products by sales for Vargas, Werner and Knight this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Vargas, Werner and Knight' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: What is the total quantity for each category in Martinez, Hernandez and Kelly? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Martinez, Hernandez and Kelly' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: Show me all products in the music category with a price over $901.89. +SQL Query: SELECT * FROM products WHERE category = 'music' AND price > 901.89 + +Natural Query: What are the top 4 products by orders for Moran, Smith and Larson last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Moran, Smith and Larson' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mercer-Wall 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 = 'Mercer-Wall' + 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 Henderson LLC between 2024-08-08 and 2024-09-02? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Henderson LLC' AND order_date BETWEEN '2024-08-08' AND '2024-09-02' + +Natural Query: How many orders were placed for Mcconnell-Jones between 2023-10-21 and 2024-01-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mcconnell-Jones' AND order_date BETWEEN '2023-10-21' AND '2024-01-19' + +Natural Query: How many orders were placed for Moore-Powers between 2024-02-13 and 2024-05-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Moore-Powers' AND order_date BETWEEN '2024-02-13' AND '2024-05-30' + +Natural Query: What is the total profit for each category in Decker Ltd? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Decker Ltd' GROUP BY category ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Gilbert, Smith and Adams between 2024-07-17 and 2024-08-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gilbert, Smith and Adams' AND order_date BETWEEN '2024-07-17' AND '2024-08-13' + +Natural Query: How many orders were placed for Crawford-Whitney between 2024-04-28 and 2024-09-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Crawford-Whitney' AND order_date BETWEEN '2024-04-28' AND '2024-09-15' + +Natural Query: How many orders were placed for Hunter-Edwards between 2023-12-01 and 2024-05-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hunter-Edwards' AND order_date BETWEEN '2023-12-01' AND '2024-05-22' + +Natural Query: What is the total profit for each country in Brown-Davis? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Brown-Davis' GROUP BY country ORDER BY total_profit DESC + +Natural Query: Show me all products in the series category with a price over $918.21. +SQL Query: SELECT * FROM products WHERE category = 'series' AND price > 918.21 + +Natural Query: What is the total sales for each category in Kirk-Bryant? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Kirk-Bryant' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the total profit for each supplier in Young-Combs? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Young-Combs' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 3 products by sales for Coleman-Baker this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Coleman-Baker' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: What is the total quantity of all products for Chandler, Cook and Moore? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Chandler, Cook and Moore' + +Natural Query: List all customers and their total order value for Reynolds, Benton and Johnson. +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 = 'Reynolds, Benton and Johnson' GROUP BY c.customer_id + +Natural Query: What are the top 3 products by sales for Dodson and Sons last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Dodson and Sons' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: What is the total sales for each supplier in Martin, Scott and Mcintosh? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Martin, Scott and Mcintosh' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Carlson, Brock and Williams 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 = 'Carlson, Brock and Williams' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Solis, Turner and Reed 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 = 'Solis, Turner and Reed' + 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 average price of all products for Collins, English and Wright? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Collins, English and Wright' + +Natural Query: List all products of Powers-Mason ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Powers-Mason' ORDER BY rating ASC + +Natural Query: What is the total quantity for each category in Carr-Welch? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Carr-Welch' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the average quantity of all products for Baker Ltd? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Baker Ltd' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cunningham LLC 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 = 'Cunningham LLC' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What are the top 10 products by sales for Wilson, Casey and Baker this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Wilson, Casey and Baker' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: What is the total sales for each country in Hill PLC? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hill PLC' GROUP BY country ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Pineda-Morris between 2024-08-19 and 2024-09-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Pineda-Morris' AND order_date BETWEEN '2024-08-19' AND '2024-09-14' + +Natural Query: What are the top 8 products by customers for Burns-Rhodes this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Burns-Rhodes' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: What are the top 7 products by revenue for White Inc this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'White Inc' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: What are the top 6 products by revenue for Hampton and Sons this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Hampton and Sons' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: What is the total profit for each category in Butler-Daniels? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Butler-Daniels' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 7 products by customers for Torres PLC last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Torres PLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cooper PLC 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 = 'Cooper PLC' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What are the top 3 products by orders for Anderson, Turner and Mitchell last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Anderson, Turner and Mitchell' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Burns 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 = 'Burns Ltd' + 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 Moore Ltd between 2024-07-29 and 2024-09-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Moore Ltd' AND order_date BETWEEN '2024-07-29' AND '2024-09-10' + +Natural Query: List all products of Daniels Group ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Daniels Group' ORDER BY price ASC + +Natural Query: What is the total price of all products for Griffin-Owens? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Griffin-Owens' + +Natural Query: List all products of Brown Ltd ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Brown Ltd' ORDER BY rating DESC + +Natural Query: Show me all products in the than category with a price over $927.71. +SQL Query: SELECT * FROM products WHERE category = 'than' AND price > 927.71 + +Natural Query: How many orders were placed for Poole LLC between 2024-07-27 and 2024-08-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Poole LLC' AND order_date BETWEEN '2024-07-27' AND '2024-08-18' + +Natural Query: What is the average price of all products for Sullivan-Vaughn? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Sullivan-Vaughn' + +Natural Query: List all customers and their total order value for Levine PLC. +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 = 'Levine PLC' GROUP BY c.customer_id + +Natural Query: Show me all products in the sister category with a price over $182.99. +SQL Query: SELECT * FROM products WHERE category = 'sister' AND price > 182.99 + +Natural Query: How many orders were placed for Peck-Andrews between 2024-04-06 and 2024-05-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Peck-Andrews' AND order_date BETWEEN '2024-04-06' AND '2024-05-27' + +Natural Query: List all customers and their total order value for Huff, Mcdonald and Adams. +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 = 'Huff, Mcdonald and Adams' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Curtis PLC. +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 = 'Curtis PLC' GROUP BY c.customer_id + +Natural Query: What are the top 10 products by sales for Hobbs-Santiago this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hobbs-Santiago' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: How many orders were placed for Clark, Vazquez and Sullivan between 2024-01-01 and 2024-05-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Clark, Vazquez and Sullivan' AND order_date BETWEEN '2024-01-01' AND '2024-05-25' + +Natural Query: What are the top 4 products by sales for Burns Inc this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Burns Inc' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: Show me all products in the each category with a price over $292.21. +SQL Query: SELECT * FROM products WHERE category = 'each' AND price > 292.21 + +Natural Query: What is the maximum rating of all products for Davis, Owens and Baker? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Davis, Owens and Baker' + +Natural Query: List all customers and their total order value for Smith 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 = 'Smith Inc' GROUP BY c.customer_id + +Natural Query: Show me all products in the behavior category with a price over $308.1. +SQL Query: SELECT * FROM products WHERE category = 'behavior' AND price > 308.1 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lee, Curtis and Carpenter 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 = 'Lee, Curtis and Carpenter' + 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 maximum price of all products for Cooper PLC? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Cooper PLC' + +Natural Query: List all products of Clark, West and King ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Clark, West and King' ORDER BY rating DESC + +Natural Query: How many orders were placed for Sullivan-Johnson between 2024-07-04 and 2024-07-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Sullivan-Johnson' AND order_date BETWEEN '2024-07-04' AND '2024-07-13' + +Natural Query: What is the total price of all products for Romero-Hodges? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Romero-Hodges' + +Natural Query: What is the maximum price of all products for Pacheco Ltd? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Pacheco Ltd' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Nash-Campbell 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 = 'Nash-Campbell' + 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 Roberts, Wu and Hernandez between 2023-12-11 and 2024-01-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Roberts, Wu and Hernandez' AND order_date BETWEEN '2023-12-11' AND '2024-01-22' + +Natural Query: What is the maximum quantity of all products for Keller PLC? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Keller PLC' + +Natural Query: What is the maximum price of all products for Berry, Young and Stewart? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Berry, Young and Stewart' + +Natural Query: List all customers and their total order value for Ochoa 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 = 'Ochoa and Sons' GROUP BY c.customer_id + +Natural Query: List all products of Reid-Webb ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Reid-Webb' ORDER BY stock_quantity ASC + +Natural Query: What is the total sales for each country in Dennis, Woods and Smith? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Dennis, Woods and Smith' GROUP BY country ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Miller PLC between 2023-10-24 and 2024-06-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Miller PLC' AND order_date BETWEEN '2023-10-24' AND '2024-06-04' + +Natural Query: What is the total quantity for each country in Morales-Cohen? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Morales-Cohen' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 7 products by customers for Clay and Sons this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Clay and Sons' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Haynes LLC 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 = 'Haynes LLC' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all customers and their total order value for Wheeler-Rodriguez. +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 = 'Wheeler-Rodriguez' GROUP BY c.customer_id + +Natural Query: What is the total sales for each category in Smith LLC? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Smith LLC' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the total sales for each supplier in Brown, Pugh and Kim? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Brown, Pugh and Kim' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the minimum price of all products for Gonzalez, Brown and Mcintyre? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Gonzalez, Brown and Mcintyre' + +Natural Query: What is the total sales for each country in Myers Group? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Myers Group' GROUP BY country ORDER BY total_sales DESC + +Natural Query: Show me all products in the run category with a price over $373.52. +SQL Query: SELECT * FROM products WHERE category = 'run' AND price > 373.52 + +Natural Query: Show me all products in the political category with a price over $185.2. +SQL Query: SELECT * FROM products WHERE category = 'political' AND price > 185.2 + +Natural Query: What is the total quantity for each category in Briggs-Stout? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Briggs-Stout' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: Show me all products in the away category with a price over $114.3. +SQL Query: SELECT * FROM products WHERE category = 'away' AND price > 114.3 + +Natural Query: List all customers and their total order value for Rivera, Brown and Curtis. +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 = 'Rivera, Brown and Curtis' GROUP BY c.customer_id + +Natural Query: What are the top 8 products by orders for Daniel LLC this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Daniel LLC' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: What is the average price of all products for Allen Group? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Allen Group' + +Natural Query: List all customers and their total order value for Robinson Ltd. +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 = 'Robinson Ltd' GROUP BY c.customer_id + +Natural Query: Show me all products in the ground category with a price over $317.34. +SQL Query: SELECT * FROM products WHERE category = 'ground' AND price > 317.34 + +Natural Query: List all products of Velez, Fisher and Curry ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Velez, Fisher and Curry' ORDER BY rating DESC + +Natural Query: List all products of Thompson LLC ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Thompson LLC' ORDER BY rating ASC + +Natural Query: Show me all products in the project category with a price over $426.72. +SQL Query: SELECT * FROM products WHERE category = 'project' AND price > 426.72 + +Natural Query: List all customers and their total order value for Lewis, Edwards and Barrett. +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 = 'Lewis, Edwards and Barrett' GROUP BY c.customer_id + +Natural Query: What are the top 9 products by sales for Scott PLC this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Scott PLC' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: What is the total quantity of all products for Landry-Owen? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Landry-Owen' + +Natural Query: List all products of Alvarez, Mitchell and Perez ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Alvarez, Mitchell and Perez' ORDER BY rating DESC + +Natural Query: List all customers and their total order value for Romero, Kelley and Williams. +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 = 'Romero, Kelley and Williams' GROUP BY c.customer_id + +Natural Query: List all products of Adams, Curry and Turner ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Adams, Curry and Turner' ORDER BY price DESC + +Natural Query: What is the minimum rating of all products for Bailey-Smith? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Bailey-Smith' + +Natural Query: List all products of Gutierrez-Mitchell ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gutierrez-Mitchell' ORDER BY stock_quantity ASC + +Natural Query: List all products of Smith-Wells ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith-Wells' ORDER BY rating DESC + +Natural Query: How many orders were placed for Castro Ltd between 2024-03-17 and 2024-07-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Castro Ltd' AND order_date BETWEEN '2024-03-17' AND '2024-07-10' + +Natural Query: List all products of Phillips, Haynes and Bennett ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Phillips, Haynes and Bennett' ORDER BY rating DESC + +Natural Query: What is the total quantity of all products for Mckenzie-Fowler? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Mckenzie-Fowler' + +Natural Query: List all customers and their total order value for Vaughn 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 = 'Vaughn Inc' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Hayes-Hickman. +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 = 'Hayes-Hickman' GROUP BY c.customer_id + +Natural Query: What are the top 4 products by sales for Dean Group this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Dean Group' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: Show me all products in the natural category with a price over $688.82. +SQL Query: SELECT * FROM products WHERE category = 'natural' AND price > 688.82 + +Natural Query: What is the average price of all products for Hobbs-Peters? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Hobbs-Peters' + +Natural Query: What are the top 8 products by customers for Brooks-Henry this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Brooks-Henry' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Allen-Andrews 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 = 'Allen-Andrews' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What are the top 5 products by sales for Hall-Edwards this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hall-Edwards' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: What is the average quantity of all products for Espinoza PLC? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Espinoza PLC' + +Natural Query: List all customers and their total order value for Moore Group. +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 = 'Moore Group' GROUP BY c.customer_id + +Natural Query: What is the total sales for each supplier in Hanson Group? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hanson Group' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Washington-Johnson 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 = 'Washington-Johnson' + 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 Evans, Moore and Mclaughlin between 2023-11-10 and 2024-06-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Evans, Moore and Mclaughlin' AND order_date BETWEEN '2023-11-10' AND '2024-06-26' + +Natural Query: How many orders were placed for Schneider, Salazar and Elliott between 2024-03-26 and 2024-08-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Schneider, Salazar and Elliott' AND order_date BETWEEN '2024-03-26' AND '2024-08-15' + +Natural Query: List all customers and their total order value for Perez Ltd. +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 = 'Perez Ltd' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Phillips Group. +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 = 'Phillips Group' GROUP BY c.customer_id + +Natural Query: What are the top 5 products by orders for Johnson, Dunn and Davis last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Johnson, Dunn and Davis' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: List all products of Leach PLC ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Leach PLC' ORDER BY price ASC + +Natural Query: What is the total quantity of all products for Wiley-Robinson? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Wiley-Robinson' + +Natural Query: List all customers and their total order value for Johnson, Wagner and Williams. +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 = 'Johnson, Wagner and Williams' GROUP BY c.customer_id + +Natural Query: List all products of Steele-Howard ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Steele-Howard' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Dodson, Beck and Montes 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 = 'Dodson, Beck and Montes' + 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 minimum rating of all products for Saunders Ltd? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Saunders Ltd' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Bennett-Garner 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 = 'Bennett-Garner' + 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 understand category with a price over $74.87. +SQL Query: SELECT * FROM products WHERE category = 'understand' AND price > 74.87 + +Natural Query: Show me all products in the each category with a price over $624.72. +SQL Query: SELECT * FROM products WHERE category = 'each' AND price > 624.72 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Bender 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 = 'Bender 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 profit for each supplier in Bright, Taylor and Green? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Bright, Taylor and Green' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: Show me all products in the force category with a price over $22.14. +SQL Query: SELECT * FROM products WHERE category = 'force' AND price > 22.14 + +Natural Query: List all customers and their total order value for Ross, Johnson and Woods. +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 = 'Ross, Johnson and Woods' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Davis 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 = 'Davis 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 less category with a price over $415.89. +SQL Query: SELECT * FROM products WHERE category = 'less' AND price > 415.89 + +Natural Query: What are the top 3 products by customers for Sampson-Williamson this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Sampson-Williamson' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: Show me all products in the building category with a price over $595.08. +SQL Query: SELECT * FROM products WHERE category = 'building' AND price > 595.08 + +Natural Query: Show me all products in the direction category with a price over $815.23. +SQL Query: SELECT * FROM products WHERE category = 'direction' AND price > 815.23 + +Natural Query: What is the minimum rating of all products for Smith-Becker? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Smith-Becker' + +Natural Query: How many orders were placed for Barton-Brown between 2024-01-24 and 2024-03-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Barton-Brown' AND order_date BETWEEN '2024-01-24' AND '2024-03-11' + +Natural Query: What are the top 9 products by orders for Dunn-Smith last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Dunn-Smith' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: What is the minimum rating of all products for Lee, Johnson and Jones? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Lee, Johnson and Jones' + +Natural Query: List all customers and their total order value for Dixon, Wade and Davis. +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 = 'Dixon, Wade and Davis' GROUP BY c.customer_id + +Natural Query: What is the minimum price of all products for Berry PLC? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Berry PLC' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Edwards-Palmer 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 = 'Edwards-Palmer' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all products of Smith-Jones ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith-Jones' ORDER BY stock_quantity ASC + +Natural Query: What are the top 9 products by customers for Alvarez Ltd this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Alvarez Ltd' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: What is the total profit for each country in Harris-Peterson? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Harris-Peterson' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What is the maximum quantity of all products for Rivera-Hurley? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Rivera-Hurley' + +Natural Query: How many orders were placed for Smith, Jacobs and Erickson between 2024-06-26 and 2024-07-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Smith, Jacobs and Erickson' AND order_date BETWEEN '2024-06-26' AND '2024-07-26' + +Natural Query: What are the top 5 products by revenue for Martinez, Washington and Schmidt last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Martinez, Washington and Schmidt' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: List all products of Mann, Cooper and Thompson ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mann, Cooper and Thompson' ORDER BY rating DESC + +Natural Query: List all customers and their total order value for Hamilton-Parker. +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 = 'Hamilton-Parker' GROUP BY c.customer_id + +Natural Query: What are the top 9 products by sales for Mcneil, Zuniga and Kelly all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Mcneil, Zuniga and Kelly' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: How many orders were placed for Baker Ltd between 2023-10-23 and 2024-07-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Baker Ltd' AND order_date BETWEEN '2023-10-23' AND '2024-07-13' + +Natural Query: Show me all products in the throughout category with a price over $504.37. +SQL Query: SELECT * FROM products WHERE category = 'throughout' AND price > 504.37 + +Natural Query: What is the total profit for each country in White LLC? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'White LLC' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Guerra, Rangel and Harper. +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 = 'Guerra, Rangel and Harper' GROUP BY c.customer_id + +Natural Query: List all products of Wheeler Ltd ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wheeler Ltd' ORDER BY price ASC + +Natural Query: List all products of Manning LLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Manning LLC' ORDER BY rating DESC + +Natural Query: List all products of Salinas, Davis and Matthews ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Salinas, Davis and Matthews' ORDER BY price ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Jackson, Lam and Kim 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 = 'Jackson, Lam and Kim' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all customers and their total order value for Odom, Waller and Hartman. +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 = 'Odom, Waller and Hartman' GROUP BY c.customer_id + +Natural Query: What is the total sales for each country in Church Inc? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Church Inc' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 10 products by sales for Harris-Nelson this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Harris-Nelson' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Johnson PLC 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 = 'Johnson PLC' + 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 minimum price of all products for Mccullough-Rojas? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Mccullough-Rojas' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Woodward 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 = 'Woodward 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 minimum price of all products for Hall LLC? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Hall LLC' + +Natural Query: What is the maximum rating of all products for Moore, Rojas and Moore? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Moore, Rojas and Moore' + +Natural Query: What is the maximum quantity of all products for Colon, Anderson and Rogers? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Colon, Anderson and Rogers' + +Natural Query: List all products of Martinez PLC ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Martinez PLC' ORDER BY rating ASC + +Natural Query: List all products of Scott, Hicks and Lee ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Scott, Hicks and Lee' ORDER BY rating ASC + +Natural Query: What are the top 8 products by sales for Serrano and Sons this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Serrano and Sons' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Keller 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 = 'Keller Group' + 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 quantity of all products for Juarez Inc? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Juarez Inc' + +Natural Query: What is the total quantity for each supplier in Myers LLC? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Myers LLC' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Johnson-Ruiz. +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 = 'Johnson-Ruiz' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each supplier in Lang-Flores? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Lang-Flores' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 5 products by sales for Dennis, Fuentes and Leon this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Dennis, Fuentes and Leon' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: List all products of Kennedy PLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Kennedy PLC' ORDER BY stock_quantity DESC + +Natural Query: List all products of Thomas-Boyer ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Thomas-Boyer' ORDER BY price ASC + +Natural Query: What is the total sales for each supplier in Carlson, Weaver and Meyer? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Carlson, Weaver and Meyer' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 5 products by customers for Thomas, Mckee and Cooper this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Thomas, Mckee and Cooper' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lowery-Smith 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 = 'Lowery-Smith' + 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 profit for each supplier in Blackburn, Richardson and Bailey? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Blackburn, Richardson and Bailey' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Mendoza-Harris. +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 = 'Mendoza-Harris' GROUP BY c.customer_id + +Natural Query: Show me all products in the common category with a price over $942.9. +SQL Query: SELECT * FROM products WHERE category = 'common' AND price > 942.9 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Williams, Simmons and Mckinney 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, Simmons and Mckinney' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all customers and their total order value for Meadows-Ramirez. +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 = 'Meadows-Ramirez' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Ferguson Inc 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 = 'Ferguson Inc' + 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 Rogers-Bowers between 2024-01-13 and 2024-02-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Rogers-Bowers' AND order_date BETWEEN '2024-01-13' AND '2024-02-22' + +Natural Query: How many orders were placed for Lopez and Sons between 2024-03-14 and 2024-04-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lopez and Sons' AND order_date BETWEEN '2024-03-14' AND '2024-04-09' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Dyer-Ayers 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 = 'Dyer-Ayers' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all products of Carpenter and Sons ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Carpenter and Sons' ORDER BY rating DESC + +Natural Query: What is the minimum quantity of all products for Johnson LLC? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Johnson LLC' + +Natural Query: List all products of Patel, Travis and Gibson ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Patel, Travis and Gibson' ORDER BY stock_quantity ASC + +Natural Query: What are the top 4 products by orders for Garcia and Sons last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Garcia and Sons' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: What is the total quantity of all products for Arnold, Rocha and Ellis? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Arnold, Rocha and Ellis' + +Natural Query: How many orders were placed for Jones PLC between 2024-06-13 and 2024-08-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jones PLC' AND order_date BETWEEN '2024-06-13' AND '2024-08-20' + +Natural Query: What is the total quantity for each category in Conway, Baldwin and Taylor? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Conway, Baldwin and Taylor' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Carter-Lynch. +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 = 'Carter-Lynch' GROUP BY c.customer_id + +Natural Query: What is the total sales for each supplier in Olson Group? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Olson Group' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the total quantity for each country in Holloway-Perkins? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Holloway-Perkins' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the total sales for each supplier in Olson LLC? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Olson LLC' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Nguyen, Johnson and Obrien. +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 = 'Nguyen, Johnson and Obrien' GROUP BY c.customer_id + +Natural Query: Show me all products in the choice category with a price over $317.91. +SQL Query: SELECT * FROM products WHERE category = 'choice' AND price > 317.91 + +Natural Query: What is the total sales for each supplier in Medina-Yates? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Medina-Yates' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Pena LLC 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 = 'Pena LLC' + 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 profit for each category in Woods Ltd? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Woods Ltd' GROUP BY category ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Williams, Vargas and Perkins. +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 = 'Williams, Vargas and Perkins' GROUP BY c.customer_id + +Natural Query: What is the total sales for each supplier in Mcdowell Ltd? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Mcdowell Ltd' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: Show me all products in the develop category with a price over $23.52. +SQL Query: SELECT * FROM products WHERE category = 'develop' AND price > 23.52 + +Natural Query: What are the top 5 products by orders for Little Inc all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Little Inc' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: List all products of Jenkins-Crawford ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jenkins-Crawford' ORDER BY rating ASC + +Natural Query: What is the total profit for each supplier in Garza PLC? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Garza PLC' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: Show me all products in the star category with a price over $345.29. +SQL Query: SELECT * FROM products WHERE category = 'star' AND price > 345.29 + +Natural Query: List all customers and their total order value for Jones-Johnston. +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 = 'Jones-Johnston' GROUP BY c.customer_id + +Natural Query: What are the top 4 products by orders for Scott and Sons last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Scott and Sons' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: What is the average price of all products for Williams Inc? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Williams Inc' + +Natural Query: How many orders were placed for Harvey, Smith and Duran between 2024-01-17 and 2024-08-02? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Harvey, Smith and Duran' AND order_date BETWEEN '2024-01-17' AND '2024-08-02' + +Natural Query: What is the total quantity for each supplier in Haley and Sons? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Haley and Sons' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the total profit for each supplier in Ross, Greene and Hernandez? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Ross, Greene and Hernandez' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all products of Jimenez, Mcdaniel and Estes ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jimenez, Mcdaniel and Estes' ORDER BY price ASC + +Natural Query: Show me all products in the in category with a price over $991.76. +SQL Query: SELECT * FROM products WHERE category = 'in' AND price > 991.76 + +Natural Query: Show me all products in the writer category with a price over $645.21. +SQL Query: SELECT * FROM products WHERE category = 'writer' AND price > 645.21 + +Natural Query: List all products of Perez and Sons ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Perez and Sons' ORDER BY rating ASC + +Natural Query: List all products of Campbell-Flores ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Campbell-Flores' ORDER BY stock_quantity ASC + +Natural Query: Show me all products in the vote category with a price over $950.01. +SQL Query: SELECT * FROM products WHERE category = 'vote' AND price > 950.01 + +Natural Query: List all products of Alexander-Nash ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Alexander-Nash' ORDER BY price DESC + +Natural Query: Show me all products in the program category with a price over $145.96. +SQL Query: SELECT * FROM products WHERE category = 'program' AND price > 145.96 + +Natural Query: List all customers and their total order value for Wade 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 = 'Wade and Sons' GROUP BY c.customer_id + +Natural Query: List all products of Chen-Osborne ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Chen-Osborne' ORDER BY rating DESC + +Natural Query: List all products of Hunt Inc ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hunt Inc' ORDER BY price DESC + +Natural Query: How many orders were placed for Ramirez, Castillo and Luna between 2023-12-02 and 2024-04-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ramirez, Castillo and Luna' AND order_date BETWEEN '2023-12-02' AND '2024-04-10' + +Natural Query: What are the top 3 products by sales for Giles-Klein this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Giles-Klein' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: List all products of Bryant, Long and Fuentes ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Bryant, Long and Fuentes' ORDER BY stock_quantity ASC + +Natural Query: Show me all products in the yourself category with a price over $925.87. +SQL Query: SELECT * FROM products WHERE category = 'yourself' AND price > 925.87 + +Natural Query: What is the total quantity for each supplier in Mills Group? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Mills Group' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the total quantity for each country in Shelton, Miller and Smith? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Shelton, Miller and Smith' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Day Ltd. +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 = 'Day Ltd' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Anderson 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 = 'Anderson and Sons' GROUP BY c.customer_id + +Natural Query: List all products of Vaughn and Sons ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Vaughn and Sons' ORDER BY price ASC + +Natural Query: What is the total price of all products for Conner-Jackson? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Conner-Jackson' + +Natural Query: How many orders were placed for Wolfe-Higgins between 2024-01-21 and 2024-01-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wolfe-Higgins' AND order_date BETWEEN '2024-01-21' AND '2024-01-23' + +Natural Query: What are the top 10 products by sales for Johnson, Bailey and Grant this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Johnson, Bailey and Grant' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: What is the total quantity for each country in Cooper PLC? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Cooper PLC' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Porter 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 = 'Porter and Sons' GROUP BY c.customer_id + +Natural Query: List all products of Ellison, Lewis and Crosby ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ellison, Lewis and Crosby' ORDER BY price ASC + +Natural Query: What is the total quantity for each category in Kirby PLC? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Kirby PLC' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 7 products by orders for Myers and Sons last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Myers and Sons' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: What are the top 4 products by sales for White, Shaw and Hancock this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'White, Shaw and Hancock' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: What are the top 8 products by customers for Cooke, Hernandez and Hendricks this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Cooke, Hernandez and Hendricks' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: What are the top 6 products by revenue for Mitchell Ltd last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Mitchell Ltd' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mclaughlin-Henderson 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 = 'Mclaughlin-Henderson' + 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 Bennett-Ramos between 2024-05-15 and 2024-09-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bennett-Ramos' AND order_date BETWEEN '2024-05-15' AND '2024-09-05' + +Natural Query: List all products of Gomez, Edwards and Baldwin ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gomez, Edwards and Baldwin' ORDER BY price ASC + +Natural Query: Show me all products in the bill category with a price over $186.35. +SQL Query: SELECT * FROM products WHERE category = 'bill' AND price > 186.35 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Juarez PLC 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 = 'Juarez PLC' + 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 rating of all products for Miles Ltd? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Miles Ltd' + +Natural Query: What is the total quantity for each country in Skinner and Sons? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Skinner and Sons' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the total rating of all products for Adams, Russell and Luna? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Adams, Russell and Luna' + +Natural Query: What are the top 8 products by revenue for Lynch LLC this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Lynch LLC' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: List all products of Wilson Ltd ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wilson Ltd' ORDER BY price DESC + +Natural Query: What is the total sales for each country in Allen, Graham and Torres? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Allen, Graham and Torres' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all products of Walton Ltd ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Walton Ltd' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Jones, Lam and Evans 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 = 'Jones, Lam and Evans' + 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 not category with a price over $683.77. +SQL Query: SELECT * FROM products WHERE category = 'not' AND price > 683.77 + +Natural Query: Show me all products in the meeting category with a price over $661.24. +SQL Query: SELECT * FROM products WHERE category = 'meeting' AND price > 661.24 + +Natural Query: What is the minimum rating of all products for Yang, Flores and Townsend? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Yang, Flores and Townsend' + +Natural Query: What is the total quantity of all products for Andrews and Sons? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Andrews and Sons' + +Natural Query: What is the total sales for each country in Davis-Rowe? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Davis-Rowe' GROUP BY country ORDER BY total_sales DESC + +Natural Query: Show me all products in the window category with a price over $378.47. +SQL Query: SELECT * FROM products WHERE category = 'window' AND price > 378.47 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Campbell-Smith 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 = 'Campbell-Smith' + 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 profit for each country in Rogers-Clark? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Rogers-Clark' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What is the total quantity for each supplier in Robinson LLC? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Robinson LLC' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the total profit for each category in Shields-Franco? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Shields-Franco' GROUP BY category ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Miller, Thompson and Aguirre between 2023-12-27 and 2024-09-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Miller, Thompson and Aguirre' AND order_date BETWEEN '2023-12-27' AND '2024-09-06' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Brown-Young 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 = 'Brown-Young' + 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 average rating of all products for Martinez LLC? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Martinez LLC' + +Natural Query: List all products of Mills, Gomez and Clark ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mills, Gomez and Clark' ORDER BY rating DESC + +Natural Query: How many orders were placed for Ayala Group between 2023-12-28 and 2024-05-31? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ayala Group' AND order_date BETWEEN '2023-12-28' AND '2024-05-31' + +Natural Query: List all customers and their total order value for Howard, Henry and Moore. +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 = 'Howard, Henry and Moore' GROUP BY c.customer_id + +Natural Query: What are the top 6 products by orders for Robertson-Edwards all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Robertson-Edwards' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: Show me all products in the time category with a price over $806.06. +SQL Query: SELECT * FROM products WHERE category = 'time' AND price > 806.06 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Crawford-Carter 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 = 'Crawford-Carter' + 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 profit for each category in Thomas-Bailey? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Thomas-Bailey' GROUP BY category ORDER BY total_profit DESC + +Natural Query: Show me all products in the team category with a price over $912.4. +SQL Query: SELECT * FROM products WHERE category = 'team' AND price > 912.4 + +Natural Query: List all products of Walsh Group ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Walsh Group' ORDER BY price ASC + +Natural Query: What is the minimum quantity of all products for Potts Inc? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Potts Inc' + +Natural Query: List all customers and their total order value for Preston Ltd. +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 = 'Preston Ltd' GROUP BY c.customer_id + +Natural Query: List all products of Young, Zimmerman and Johnson ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Young, Zimmerman and Johnson' ORDER BY stock_quantity ASC + +Natural Query: Show me all products in the total category with a price over $809.69. +SQL Query: SELECT * FROM products WHERE category = 'total' AND price > 809.69 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Roberts-Hull 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 = 'Roberts-Hull' + 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 to category with a price over $220.4. +SQL Query: SELECT * FROM products WHERE category = 'to' AND price > 220.4 + +Natural Query: What are the top 4 products by customers for Huber Inc last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Huber Inc' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: How many orders were placed for Martin LLC between 2024-09-06 and 2024-09-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Martin LLC' AND order_date BETWEEN '2024-09-06' AND '2024-09-08' + +Natural Query: Show me all products in the hour category with a price over $250.37. +SQL Query: SELECT * FROM products WHERE category = 'hour' AND price > 250.37 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Richardson 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 = 'Richardson Ltd' + 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 Gonzalez and Sons between 2024-08-09 and 2024-08-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gonzalez and Sons' AND order_date BETWEEN '2024-08-09' AND '2024-08-30' + +Natural Query: What is the average rating of all products for Wright-Anderson? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Wright-Anderson' + +Natural Query: How many orders were placed for Hayes, Graham and Lee between 2024-01-20 and 2024-06-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hayes, Graham and Lee' AND order_date BETWEEN '2024-01-20' AND '2024-06-13' + +Natural Query: What is the average rating of all products for Martinez, Ford and Blanchard? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Martinez, Ford and Blanchard' + +Natural Query: How many orders were placed for Goodwin, Stevens and Gray between 2023-12-29 and 2024-07-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Goodwin, Stevens and Gray' AND order_date BETWEEN '2023-12-29' AND '2024-07-08' + +Natural Query: How many orders were placed for Williams-Robertson between 2024-01-19 and 2024-06-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Williams-Robertson' AND order_date BETWEEN '2024-01-19' AND '2024-06-25' + +Natural Query: What are the top 7 products by orders for Frey-Fuentes last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Frey-Fuentes' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: List all products of Morrow, Robinson and Ross ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Morrow, Robinson and Ross' ORDER BY price DESC + +Natural Query: List all products of Fuller Group ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Fuller Group' ORDER BY price ASC + +Natural Query: List all products of Rodgers Group ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rodgers Group' ORDER BY stock_quantity ASC + +Natural Query: What is the total quantity for each category in Brown, Barrera and Mccall? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Brown, Barrera and Mccall' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Macias, Foster and Perez. +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 = 'Macias, Foster and Perez' GROUP BY c.customer_id + +Natural Query: What is the minimum rating of all products for Bond-Padilla? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Bond-Padilla' + +Natural Query: List all customers and their total order value for Reynolds Ltd. +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 = 'Reynolds Ltd' GROUP BY c.customer_id + +Natural Query: Show me all products in the decade category with a price over $943.1. +SQL Query: SELECT * FROM products WHERE category = 'decade' AND price > 943.1 + +Natural Query: List all products of Wheeler and Sons ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wheeler and Sons' ORDER BY rating DESC + +Natural Query: What is the total quantity for each supplier in Berger-Cox? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Berger-Cox' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Beard 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 = 'Beard Group' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Morris, Tanner and Berry 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 = 'Morris, Tanner and Berry' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What are the top 8 products by revenue for Clark-Johnson all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Clark-Johnson' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: List all products of Kemp, Morris and Macdonald ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Kemp, Morris and Macdonald' ORDER BY stock_quantity ASC + +Natural Query: List all products of Thompson, Dennis and Miller ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Thompson, Dennis and Miller' ORDER BY stock_quantity DESC + +Natural Query: What is the average rating of all products for Medina-Brown? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Medina-Brown' + +Natural Query: Show me all products in the window category with a price over $500.51. +SQL Query: SELECT * FROM products WHERE category = 'window' AND price > 500.51 + +Natural Query: What is the maximum price of all products for Allen, Weaver and Harris? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Allen, Weaver and Harris' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Thompson-Hall 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 = 'Thompson-Hall' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all products of Fox Inc ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Fox Inc' ORDER BY price DESC + +Natural Query: What are the top 9 products by revenue for Mcmillan, Freeman and Doyle last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Mcmillan, Freeman and Doyle' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: What are the top 4 products by orders for Nelson-Skinner all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Nelson-Skinner' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: What is the average rating of all products for Robinson, Hughes and Brewer? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Robinson, Hughes and Brewer' + +Natural Query: How many orders were placed for Harding and Sons between 2024-02-19 and 2024-08-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Harding and Sons' AND order_date BETWEEN '2024-02-19' AND '2024-08-26' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Webb, Trujillo and Brown 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 = 'Webb, Trujillo and Brown' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Richards-Porter 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 = 'Richards-Porter' + 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 profit for each supplier in Contreras-Howe? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Contreras-Howe' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 7 products by orders for Flynn, Simpson and Coleman all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Flynn, Simpson and Coleman' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: How many orders were placed for Williams LLC between 2023-12-08 and 2024-01-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Williams LLC' AND order_date BETWEEN '2023-12-08' AND '2024-01-23' + +Natural Query: List all customers and their total order value for Harris-Meyer. +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 = 'Harris-Meyer' GROUP BY c.customer_id + +Natural Query: Show me all products in the peace category with a price over $641.25. +SQL Query: SELECT * FROM products WHERE category = 'peace' AND price > 641.25 + +Natural Query: What is the total sales for each supplier in Schmitt, Adams and Barker? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Schmitt, Adams and Barker' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Willis PLC. +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 = 'Willis PLC' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Meyer, Castro and Hudson. +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 = 'Meyer, Castro and Hudson' GROUP BY c.customer_id + +Natural Query: What is the total profit for each supplier in Harrison Ltd? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Harrison Ltd' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 8 products by customers for Gonzalez-Hall this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Gonzalez-Hall' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Stewart, Lynn and Anderson 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 = 'Stewart, Lynn and Anderson' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all products of Moyer-Peck ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Moyer-Peck' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Williams 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 = 'Williams and Sons' GROUP BY c.customer_id + +Natural Query: What is the total profit for each category in Rios, Stout and Campbell? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Rios, Stout and Campbell' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the minimum rating of all products for Burton LLC? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Burton LLC' + +Natural Query: List all customers and their total order value for Johnson-Shepherd. +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 = 'Johnson-Shepherd' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Walker, Key and Blackwell. +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 = 'Walker, Key and Blackwell' GROUP BY c.customer_id + +Natural Query: What is the maximum rating of all products for King PLC? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'King PLC' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Morales-Holmes 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 = 'Morales-Holmes' + 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 average quantity of all products for Hill Inc? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Hill Inc' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Oconnor and Sons 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 = 'Oconnor and Sons' + 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 Contreras, Phillips and Livingston between 2024-02-24 and 2024-09-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Contreras, Phillips and Livingston' AND order_date BETWEEN '2024-02-24' AND '2024-09-14' + +Natural Query: Show me all products in the physical category with a price over $432.15. +SQL Query: SELECT * FROM products WHERE category = 'physical' AND price > 432.15 + +Natural Query: Show me all products in the large category with a price over $105.14. +SQL Query: SELECT * FROM products WHERE category = 'large' AND price > 105.14 + +Natural Query: List all customers and their total order value for Evans, Herrera and Bailey. +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 = 'Evans, Herrera and Bailey' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Torres, Martin and Hayes between 2023-11-24 and 2024-07-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Torres, Martin and Hayes' AND order_date BETWEEN '2023-11-24' AND '2024-07-06' + +Natural Query: Show me all products in the fast category with a price over $588.27. +SQL Query: SELECT * FROM products WHERE category = 'fast' AND price > 588.27 + +Natural Query: List all customers and their total order value for Long PLC. +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 = 'Long PLC' GROUP BY c.customer_id + +Natural Query: List all products of Lopez Inc ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lopez Inc' ORDER BY stock_quantity DESC + +Natural Query: Show me all products in the drive category with a price over $525.44. +SQL Query: SELECT * FROM products WHERE category = 'drive' AND price > 525.44 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Dillon, Rice and West 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 = 'Dillon, Rice and West' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Andrews and Sons 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 = 'Andrews and Sons' + 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 minimum quantity of all products for Smith, Smith and Kennedy? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Smith, Smith and Kennedy' + +Natural Query: List all customers and their total order value for Thomas-Taylor. +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 = 'Thomas-Taylor' GROUP BY c.customer_id + +Natural Query: Show me all products in the leg category with a price over $994.78. +SQL Query: SELECT * FROM products WHERE category = 'leg' AND price > 994.78 + +Natural Query: List all products of Graham, Cook and Jackson ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Graham, Cook and Jackson' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 products by revenue for Deleon-Sampson all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Deleon-Sampson' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: What is the total sales for each supplier in Lewis, Morrison and Lane? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Lewis, Morrison and Lane' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: Show me all products in the soon category with a price over $303.21. +SQL Query: SELECT * FROM products WHERE category = 'soon' AND price > 303.21 + +Natural Query: What is the maximum price of all products for Jackson-Wilson? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Jackson-Wilson' + +Natural Query: Show me all products in the executive category with a price over $709.32. +SQL Query: SELECT * FROM products WHERE category = 'executive' AND price > 709.32 + +Natural Query: How many orders were placed for Reynolds-Foster between 2024-03-27 and 2024-09-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Reynolds-Foster' AND order_date BETWEEN '2024-03-27' AND '2024-09-07' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Watson-Johnson 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 = 'Watson-Johnson' + 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 push category with a price over $186.55. +SQL Query: SELECT * FROM products WHERE category = 'push' AND price > 186.55 + +Natural Query: List all products of Ray, Wells and Newman ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ray, Wells and Newman' ORDER BY price DESC + +Natural Query: List all products of Bailey LLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Bailey LLC' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for George, Palmer and Cox. +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 = 'George, Palmer and Cox' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Garza-Rice 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 = 'Garza-Rice' + 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 Dillon, Walker and Williams between 2024-01-16 and 2024-08-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Dillon, Walker and Williams' AND order_date BETWEEN '2024-01-16' AND '2024-08-13' + +Natural Query: Show me all products in the bad category with a price over $857.75. +SQL Query: SELECT * FROM products WHERE category = 'bad' AND price > 857.75 + +Natural Query: How many orders were placed for Cox-Silva between 2023-10-27 and 2024-04-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cox-Silva' AND order_date BETWEEN '2023-10-27' AND '2024-04-14' + +Natural Query: List all customers and their total order value for Ryan Ltd. +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 = 'Ryan Ltd' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each country in Baker Inc? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Baker Inc' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Patel 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 = 'Patel Inc' GROUP BY c.customer_id + +Natural Query: What is the total quantity of all products for Paul-Williams? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Paul-Williams' + +Natural Query: List all customers and their total order value for Perkins-Schaefer. +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 = 'Perkins-Schaefer' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Barron, Lopez and Mills 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 = 'Barron, Lopez and Mills' + 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 Moody LLC between 2024-04-05 and 2024-08-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Moody LLC' AND order_date BETWEEN '2024-04-05' AND '2024-08-28' + +Natural Query: What are the top 7 products by customers for Thompson, Harper and Richardson last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Thompson, Harper and Richardson' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: List all products of Carter, Pineda and Goodman ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Carter, Pineda and Goodman' ORDER BY price ASC + +Natural Query: What are the top 7 products by customers for Taylor PLC all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Taylor PLC' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: List all customers and their total order value for Ramirez-Barron. +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 = 'Ramirez-Barron' GROUP BY c.customer_id + +Natural Query: Show me all products in the first category with a price over $44.27. +SQL Query: SELECT * FROM products WHERE category = 'first' AND price > 44.27 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Chandler-Hartman 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 = 'Chandler-Hartman' + 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 quantity for each category in Hudson, Woods and Myers? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Hudson, Woods and Myers' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all products of Hernandez PLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hernandez PLC' ORDER BY rating DESC + +Natural Query: List all products of Murphy-Allen ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Murphy-Allen' ORDER BY price DESC + +Natural Query: Show me all products in the clearly category with a price over $95.42. +SQL Query: SELECT * FROM products WHERE category = 'clearly' AND price > 95.42 + +Natural Query: What are the top 5 products by customers for Powell Ltd last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Powell Ltd' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: What is the total quantity for each country in Frank Ltd? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Frank Ltd' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Powell, Fowler and Barnes between 2024-05-07 and 2024-07-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Powell, Fowler and Barnes' AND order_date BETWEEN '2024-05-07' AND '2024-07-27' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Houston PLC 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 = 'Houston PLC' + 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 minimum rating of all products for Nguyen, West and Cruz? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Nguyen, West and Cruz' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hunt, Dawson and Ross 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 = 'Hunt, Dawson and Ross' + 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 quantity for each supplier in Munoz-Hammond? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Munoz-Hammond' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Rivera LLC between 2024-05-13 and 2024-07-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Rivera LLC' AND order_date BETWEEN '2024-05-13' AND '2024-07-28' + +Natural Query: How many orders were placed for Willis, Zavala and Wilkins between 2023-12-09 and 2024-06-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Willis, Zavala and Wilkins' AND order_date BETWEEN '2023-12-09' AND '2024-06-21' + +Natural Query: How many orders were placed for Larson-Nolan between 2024-05-06 and 2024-07-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Larson-Nolan' AND order_date BETWEEN '2024-05-06' AND '2024-07-30' + +Natural Query: How many orders were placed for Savage Inc between 2024-01-11 and 2024-08-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Savage Inc' AND order_date BETWEEN '2024-01-11' AND '2024-08-12' + +Natural Query: Show me all products in the simple category with a price over $188.05. +SQL Query: SELECT * FROM products WHERE category = 'simple' AND price > 188.05 + +Natural Query: List all customers and their total order value for Roberts-Lopez. +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 = 'Roberts-Lopez' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Wu Group. +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 = 'Wu Group' GROUP BY c.customer_id + +Natural Query: What is the total quantity of all products for Pacheco, Perez and Wright? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Pacheco, Perez and Wright' + +Natural Query: What is the average price of all products for Koch-Carroll? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Koch-Carroll' + +Natural Query: What is the minimum price of all products for Anderson Group? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Anderson Group' + +Natural Query: List all products of Davis-Johnson ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Davis-Johnson' ORDER BY rating DESC + +Natural Query: What is the average quantity of all products for Carson-Young? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Carson-Young' + +Natural Query: Show me all products in the can category with a price over $104.2. +SQL Query: SELECT * FROM products WHERE category = 'can' AND price > 104.2 + +Natural Query: Show me all products in the similar category with a price over $587.58. +SQL Query: SELECT * FROM products WHERE category = 'similar' AND price > 587.58 + +Natural Query: List all products of Perez LLC ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Perez LLC' ORDER BY price ASC + +Natural Query: List all products of Mendez Ltd ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mendez Ltd' ORDER BY stock_quantity DESC + +Natural Query: What are the top 6 products by orders for Jones, White and Salazar this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Jones, White and Salazar' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: What is the average quantity of all products for Campbell-Fowler? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Campbell-Fowler' + +Natural Query: How many orders were placed for Williams-Parks between 2024-03-18 and 2024-08-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Williams-Parks' AND order_date BETWEEN '2024-03-18' AND '2024-08-05' + +Natural Query: What is the maximum quantity of all products for Nichols, Roberts and Clayton? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Nichols, Roberts and Clayton' + +Natural Query: List all products of Aguilar, Williams and Garcia ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Aguilar, Williams and Garcia' ORDER BY stock_quantity DESC + +Natural Query: Show me all products in the establish category with a price over $472.03. +SQL Query: SELECT * FROM products WHERE category = 'establish' AND price > 472.03 + +Natural Query: What are the top 3 products by orders for Anderson-Hampton this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Anderson-Hampton' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Moore-Smith 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 = 'Moore-Smith' + 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 profit for each supplier in May, Moore and Acosta? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'May, Moore and Acosta' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the total sales for each country in Ortega Ltd? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Ortega Ltd' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Owens-Washington. +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 = 'Owens-Washington' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hogan-Chang 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 = 'Hogan-Chang' + 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 Dunlap, Smith and Mendoza between 2024-07-29 and 2024-08-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Dunlap, Smith and Mendoza' AND order_date BETWEEN '2024-07-29' AND '2024-08-14' + +Natural Query: What are the top 7 products by revenue for Meza Ltd this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Meza Ltd' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: What are the top 6 products by customers for Livingston, Green and Harris this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Livingston, Green and Harris' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: List all products of Brennan, Butler and Davis ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Brennan, Butler and Davis' ORDER BY price DESC + +Natural Query: How many orders were placed for Porter-Daniel between 2024-09-03 and 2024-09-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Porter-Daniel' AND order_date BETWEEN '2024-09-03' AND '2024-09-15' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Rivas-Bryant 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 = 'Rivas-Bryant' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all products of Tucker, Burns and Brown ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Tucker, Burns and Brown' ORDER BY price ASC + +Natural Query: What are the top 7 products by sales for Buck-Reynolds this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Buck-Reynolds' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: List all products of Elliott Ltd ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Elliott Ltd' ORDER BY price ASC + +Natural Query: What is the total profit for each country in Hampton-Perry? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Hampton-Perry' GROUP BY country ORDER BY total_profit DESC + +Natural Query: Show me all products in the easy category with a price over $615.15. +SQL Query: SELECT * FROM products WHERE category = 'easy' AND price > 615.15 + +Natural Query: How many orders were placed for Taylor-Ford between 2024-07-05 and 2024-09-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Taylor-Ford' AND order_date BETWEEN '2024-07-05' AND '2024-09-16' + +Natural Query: List all customers and their total order value for Adams-Padilla. +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 = 'Adams-Padilla' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Mcbride-Johnson. +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 = 'Mcbride-Johnson' GROUP BY c.customer_id + +Natural Query: Show me all products in the TV category with a price over $797.43. +SQL Query: SELECT * FROM products WHERE category = 'TV' AND price > 797.43 + +Natural Query: What is the total profit for each country in Conner, Williams and Brown? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Conner, Williams and Brown' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What is the total quantity of all products for Pitts PLC? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Pitts PLC' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hernandez, Ray and Hudson 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 = 'Hernandez, Ray and Hudson' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Nielsen-Ramirez 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 = 'Nielsen-Ramirez' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all products of Sanford-Morris ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Sanford-Morris' ORDER BY rating DESC + +Natural Query: List all customers and their total order value for Fletcher-Green. +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 = 'Fletcher-Green' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Cook, Ramirez and Shaw between 2023-12-07 and 2024-02-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cook, Ramirez and Shaw' AND order_date BETWEEN '2023-12-07' AND '2024-02-18' + +Natural Query: List all customers and their total order value for Moore 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 = 'Moore and Sons' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Harper PLC between 2023-10-17 and 2024-04-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Harper PLC' AND order_date BETWEEN '2023-10-17' AND '2024-04-03' + +Natural Query: How many orders were placed for Stephenson LLC between 2023-10-26 and 2023-11-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Stephenson LLC' AND order_date BETWEEN '2023-10-26' AND '2023-11-30' + +Natural Query: What is the total quantity of all products for Greene and Sons? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Greene and Sons' + +Natural Query: List all customers and their total order value for Chang-Hudson. +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 = 'Chang-Hudson' GROUP BY c.customer_id + +Natural Query: Show me all products in the culture category with a price over $244.67. +SQL Query: SELECT * FROM products WHERE category = 'culture' AND price > 244.67 + +Natural Query: How many orders were placed for Hardy-Bauer between 2023-10-31 and 2024-08-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hardy-Bauer' AND order_date BETWEEN '2023-10-31' AND '2024-08-03' + +Natural Query: What are the top 7 products by orders for Moore Inc this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Moore Inc' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: Show me all products in the reach category with a price over $490.45. +SQL Query: SELECT * FROM products WHERE category = 'reach' AND price > 490.45 + +Natural Query: What are the top 8 products by orders for Carroll Group this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Carroll Group' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: Show me all products in the how category with a price over $803.65. +SQL Query: SELECT * FROM products WHERE category = 'how' AND price > 803.65 + +Natural Query: How many orders were placed for Delgado Inc between 2023-11-03 and 2024-07-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Delgado Inc' AND order_date BETWEEN '2023-11-03' AND '2024-07-05' + +Natural Query: What are the top 10 products by customers for Rodriguez, Stanley and Marks all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Rodriguez, Stanley and Marks' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10 + +Natural Query: List all customers and their total order value for Tanner-Ford. +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 = 'Tanner-Ford' GROUP BY c.customer_id + +Natural Query: What are the top 10 products by sales for Martinez and Sons last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Martinez and Sons' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: What is the total rating of all products for Austin Ltd? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Austin Ltd' + +Natural Query: What is the total rating of all products for Ramos, Peters and Wright? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Ramos, Peters and Wright' + +Natural Query: List all customers and their total order value for Miller Ltd. +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 = 'Miller Ltd' GROUP BY c.customer_id + +Natural Query: What is the average quantity of all products for Ramirez LLC? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Ramirez LLC' + +Natural Query: What is the total profit for each country in Holloway LLC? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Holloway LLC' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 6 products by sales for Shea and Sons all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Shea and Sons' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: List all customers and their total order value for Zamora-Newton. +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 = 'Zamora-Newton' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Campos, Bernard and Rogers between 2024-07-07 and 2024-09-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Campos, Bernard and Rogers' AND order_date BETWEEN '2024-07-07' AND '2024-09-01' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Baker-Romero 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 = 'Baker-Romero' + 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 young category with a price over $891.5. +SQL Query: SELECT * FROM products WHERE category = 'young' AND price > 891.5 + +Natural Query: What is the average rating of all products for Wilkins, Holmes and Mitchell? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Wilkins, Holmes and Mitchell' + +Natural Query: What are the top 6 products by revenue for Edwards, Roberts and Smith this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Edwards, Roberts and Smith' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: Show me all products in the happy category with a price over $974.72. +SQL Query: SELECT * FROM products WHERE category = 'happy' AND price > 974.72 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lara, Compton and Kim 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 = 'Lara, Compton and Kim' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all products of Simpson, Ruiz and Olson ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Simpson, Ruiz and Olson' ORDER BY rating DESC + +Natural Query: Show me all products in the current category with a price over $598.31. +SQL Query: SELECT * FROM products WHERE category = 'current' AND price > 598.31 + +Natural Query: What is the total sales for each country in Walker, Nguyen and Knox? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Walker, Nguyen and Knox' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 8 products by orders for Scott PLC last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Scott PLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: What are the top 3 products by revenue for Martinez-Owen all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Martinez-Owen' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: Show me all products in the us category with a price over $953.47. +SQL Query: SELECT * FROM products WHERE category = 'us' AND price > 953.47 + +Natural Query: List all customers and their total order value for Thomas, Mcconnell and Johnson. +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 = 'Thomas, Mcconnell and Johnson' GROUP BY c.customer_id + +Natural Query: What are the top 10 products by revenue for Shaw and Sons this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Shaw and Sons' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: Show me all products in the throughout category with a price over $656.64. +SQL Query: SELECT * FROM products WHERE category = 'throughout' AND price > 656.64 + +Natural Query: Show me all products in the despite category with a price over $954.62. +SQL Query: SELECT * FROM products WHERE category = 'despite' AND price > 954.62 + +Natural Query: How many orders were placed for Fields Inc between 2023-12-10 and 2024-07-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Fields Inc' AND order_date BETWEEN '2023-12-10' AND '2024-07-20' + +Natural Query: What is the total quantity of all products for Allen, Smith and Perez? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Allen, Smith and Perez' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in West-Marshall 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 = 'West-Marshall' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all customers and their total order value for Long-Barker. +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 = 'Long-Barker' GROUP BY c.customer_id + +Natural Query: List all products of Rios PLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rios PLC' ORDER BY stock_quantity DESC + +Natural Query: List all products of Bond-Hawkins ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Bond-Hawkins' ORDER BY rating ASC + +Natural Query: What is the average price of all products for Pratt, Watkins and Johnson? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Pratt, Watkins and Johnson' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lopez 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 = 'Lopez Group' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all products of Rodgers PLC ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rodgers PLC' ORDER BY rating ASC + +Natural Query: How many orders were placed for Logan, Johnson and Welch between 2023-12-21 and 2024-05-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Logan, Johnson and Welch' AND order_date BETWEEN '2023-12-21' AND '2024-05-01' + +Natural Query: Show me all products in the him category with a price over $106.58. +SQL Query: SELECT * FROM products WHERE category = 'him' AND price > 106.58 + +Natural Query: How many orders were placed for Moore-Floyd between 2024-04-03 and 2024-04-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Moore-Floyd' AND order_date BETWEEN '2024-04-03' AND '2024-04-08' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Phillips-Le 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 = 'Phillips-Le' + 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 process category with a price over $840.63. +SQL Query: SELECT * FROM products WHERE category = 'process' AND price > 840.63 + +Natural Query: What is the total quantity for each country in Howell LLC? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Howell LLC' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Ramirez-Smith. +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 = 'Ramirez-Smith' GROUP BY c.customer_id + +Natural Query: List all products of Vargas, Moore and Ross ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Vargas, Moore and Ross' ORDER BY stock_quantity DESC + +Natural Query: What is the total profit for each supplier in Ingram and Sons? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Ingram and Sons' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: Show me all products in the why category with a price over $839.0. +SQL Query: SELECT * FROM products WHERE category = 'why' AND price > 839.0 + +Natural Query: What is the minimum price of all products for Bruce, Sellers and Taylor? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Bruce, Sellers and Taylor' + +Natural Query: What are the top 7 products by customers for Watson LLC this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Watson LLC' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: What is the total profit for each supplier in Scott and Sons? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Scott and Sons' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the average rating of all products for Campbell-Harmon? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Campbell-Harmon' + +Natural Query: What are the top 5 products by orders for Ali, Barnett and Bailey this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Ali, Barnett and Bailey' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Yang and Sons 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 = 'Yang and Sons' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all customers and their total order value for Sandoval, Bennett and Hall. +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 = 'Sandoval, Bennett and Hall' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Smith, Serrano and Larson. +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 = 'Smith, Serrano and Larson' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Dickson Group. +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 = 'Dickson Group' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Wilson-Avery 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 = 'Wilson-Avery' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all customers and their total order value for Jones-Thomas. +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 = 'Jones-Thomas' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Ortiz 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 = 'Ortiz 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 minimum price of all products for Wright-Taylor? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Wright-Taylor' + +Natural Query: List all products of Alvarado and Sons ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Alvarado and Sons' ORDER BY price DESC + +Natural Query: What is the total quantity for each country in Hernandez, Silva and Warren? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Hernandez, Silva and Warren' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the minimum rating of all products for Johnson, Davidson and Johnson? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Johnson, Davidson and Johnson' + +Natural Query: List all products of Morales, Gutierrez and Taylor ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Morales, Gutierrez and Taylor' ORDER BY price ASC + +Natural Query: What is the maximum price of all products for Chang-Smith? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Chang-Smith' + +Natural Query: Show me all products in the happy category with a price over $165.9. +SQL Query: SELECT * FROM products WHERE category = 'happy' AND price > 165.9 + +Natural Query: How many orders were placed for Gould, Parrish and Garcia between 2024-09-10 and 2024-09-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gould, Parrish and Garcia' AND order_date BETWEEN '2024-09-10' AND '2024-09-12' + +Natural Query: How many orders were placed for Odom Inc between 2023-11-01 and 2024-08-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Odom Inc' AND order_date BETWEEN '2023-11-01' AND '2024-08-26' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Bush, Weeks and Collins 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 = 'Bush, Weeks and Collins' + 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 category in Hubbard-Cook? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hubbard-Cook' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all products of Martinez-Farrell ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Martinez-Farrell' ORDER BY stock_quantity DESC + +Natural Query: Show me all products in the artist category with a price over $262.62. +SQL Query: SELECT * FROM products WHERE category = 'artist' AND price > 262.62 + +Natural Query: List all products of Bean-Wong ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Bean-Wong' ORDER BY stock_quantity DESC + +Natural Query: Show me all products in the strategy category with a price over $63.52. +SQL Query: SELECT * FROM products WHERE category = 'strategy' AND price > 63.52 + +Natural Query: List all products of House-King ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'House-King' ORDER BY stock_quantity ASC + +Natural Query: List all products of Mcgee, Richards and Escobar ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mcgee, Richards and Escobar' ORDER BY rating DESC + +Natural Query: How many orders were placed for Reed PLC between 2024-08-13 and 2024-08-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Reed PLC' AND order_date BETWEEN '2024-08-13' AND '2024-08-13' + +Natural Query: List all products of Schneider, Johnson and Dunn ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Schneider, Johnson and Dunn' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Le 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 = 'Le Group' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Watson 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 = 'Watson Group' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Velasquez, Snyder and Jensen 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 = 'Velasquez, Snyder and Jensen' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all customers and their total order value for Ryan PLC. +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 = 'Ryan PLC' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Shepherd Inc 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 = 'Shepherd Inc' + 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 staff category with a price over $810.71. +SQL Query: SELECT * FROM products WHERE category = 'staff' AND price > 810.71 + +Natural Query: What is the total quantity for each supplier in Smith, Roberts and Butler? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Smith, Roberts and Butler' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 8 products by revenue for Quinn PLC last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Quinn PLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: List all customers and their total order value for Jones, Hanson and James. +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 = 'Jones, Hanson and James' GROUP BY c.customer_id + +Natural Query: Show me all products in the take category with a price over $967.86. +SQL Query: SELECT * FROM products WHERE category = 'take' AND price > 967.86 + +Natural Query: Show me all products in the person category with a price over $585.6. +SQL Query: SELECT * FROM products WHERE category = 'person' AND price > 585.6 + +Natural Query: What is the total profit for each supplier in Gray and Sons? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Gray and Sons' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 3 products by customers for Johnson Inc last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Johnson Inc' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: What is the total sales for each category in Salinas, Malone and Payne? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Salinas, Malone and Payne' GROUP BY category ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Vincent, Scott and Hall between 2024-01-03 and 2024-04-02? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Vincent, Scott and Hall' AND order_date BETWEEN '2024-01-03' AND '2024-04-02' + +Natural Query: What is the maximum price of all products for Snyder, Garcia and Daniel? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Snyder, Garcia and Daniel' + +Natural Query: What is the total profit for each country in Davis Group? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Davis Group' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 10 products by sales for Ferguson Group this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Ferguson Group' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: List all customers and their total order value for Walker, Rodriguez and Davis. +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 = 'Walker, Rodriguez and Davis' GROUP BY c.customer_id + +Natural Query: What are the top 7 products by revenue for Carter, Houston and Humphrey last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Carter, Houston and Humphrey' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: What are the top 9 products by revenue for Williams Group this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Williams Group' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Simon-Mcconnell 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 = 'Simon-Mcconnell' + 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 profit for each supplier in Hicks Group? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Hicks Group' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: Show me all products in the exactly category with a price over $707.77. +SQL Query: SELECT * FROM products WHERE category = 'exactly' AND price > 707.77 + +Natural Query: What are the top 7 products by revenue for Hayes, Miller and Gonzalez this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Hayes, Miller and Gonzalez' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: How many orders were placed for Moreno, Adams and Garcia between 2024-06-15 and 2024-06-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Moreno, Adams and Garcia' AND order_date BETWEEN '2024-06-15' AND '2024-06-21' + +Natural Query: List all customers and their total order value for Hernandez, Scott and Obrien. +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 = 'Hernandez, Scott and Obrien' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Hancock Inc between 2024-01-28 and 2024-06-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hancock Inc' AND order_date BETWEEN '2024-01-28' AND '2024-06-16' + +Natural Query: List all customers and their total order value for Patel, Washington and Barker. +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 = 'Patel, Washington and Barker' GROUP BY c.customer_id + +Natural Query: What are the top 6 products by customers for Holder-Tucker last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Holder-Tucker' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Freeman-Meyer 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 = 'Freeman-Meyer' + 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 quantity for each category in Olsen-Vasquez? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Olsen-Vasquez' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Garcia, Wagner and Bridges between 2024-06-26 and 2024-07-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Garcia, Wagner and Bridges' AND order_date BETWEEN '2024-06-26' AND '2024-07-18' + +Natural Query: How many orders were placed for Haas-Smith between 2024-08-05 and 2024-08-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Haas-Smith' AND order_date BETWEEN '2024-08-05' AND '2024-08-18' + +Natural Query: What are the top 9 products by orders for Lee, Smith and Stephenson last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Lee, Smith and Stephenson' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: What is the total quantity for each supplier in Bennett, Durham and Davis? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Bennett, Durham and Davis' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the average price of all products for Scott-Larsen? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Scott-Larsen' + +Natural Query: List all customers and their total order value for Soto-Reynolds. +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 = 'Soto-Reynolds' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Barrera and Sons 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 = 'Barrera and Sons' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Greene LLC 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 = 'Greene LLC' + 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 organization category with a price over $380.12. +SQL Query: SELECT * FROM products WHERE category = 'organization' AND price > 380.12 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Chapman and Sons 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 = 'Chapman and Sons' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all customers and their total order value for Young-Acosta. +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 = 'Young-Acosta' GROUP BY c.customer_id + +Natural Query: What are the top 4 products by customers for Miles-Miller last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Miles-Miller' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: What is the total profit for each country in Leach, Rivera and Valdez? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Leach, Rivera and Valdez' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Barnett, Hall and Little 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 = 'Barnett, Hall and Little' + 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 quantity for each supplier in Delgado, Hernandez and Beck? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Delgado, Hernandez and Beck' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the total quantity for each country in Weaver, Thornton and Williams? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Weaver, Thornton and Williams' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the total sales for each country in Bates-Boone? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Bates-Boone' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all products of Sosa-Ball ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Sosa-Ball' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Carter-Morgan. +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 = 'Carter-Morgan' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Sloan, Moore and Espinoza. +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 = 'Sloan, Moore and Espinoza' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Phillips-Johnson. +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 = 'Phillips-Johnson' GROUP BY c.customer_id + +Natural Query: Show me all products in the plan category with a price over $251.55. +SQL Query: SELECT * FROM products WHERE category = 'plan' AND price > 251.55 + +Natural Query: What is the average rating of all products for Robles, Mcdonald and Lynch? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Robles, Mcdonald and Lynch' + +Natural Query: Show me all products in the red category with a price over $597.97. +SQL Query: SELECT * FROM products WHERE category = 'red' AND price > 597.97 + +Natural Query: Show me all products in the game category with a price over $400.89. +SQL Query: SELECT * FROM products WHERE category = 'game' AND price > 400.89 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Molina-Webster 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 = 'Molina-Webster' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all products of Diaz-Wall ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Diaz-Wall' ORDER BY rating DESC + +Natural Query: What is the average quantity of all products for Swanson and Sons? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Swanson and Sons' + +Natural Query: List all products of Robinson-Berry ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Robinson-Berry' ORDER BY price ASC + +Natural Query: Show me all products in the reflect category with a price over $894.08. +SQL Query: SELECT * FROM products WHERE category = 'reflect' AND price > 894.08 + +Natural Query: List all products of Davis, Keith and Richardson ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Davis, Keith and Richardson' ORDER BY stock_quantity ASC + +Natural Query: What are the top 4 products by customers for Jones-Rodriguez last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Jones-Rodriguez' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: List all customers and their total order value for Ramos 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 = 'Ramos Inc' GROUP BY c.customer_id + +Natural Query: What are the top 10 products by customers for Wilson, Thomas and Davis all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Wilson, Thomas and Davis' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Reyes LLC 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 = 'Reyes LLC' + 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 maximum quantity of all products for Strickland, Miller and Bowen? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Strickland, Miller and Bowen' + +Natural Query: What is the average quantity of all products for Brown, Barron and Wright? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Brown, Barron and Wright' + +Natural Query: List all customers and their total order value for Pierce, Blackwell and Bishop. +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 = 'Pierce, Blackwell and Bishop' GROUP BY c.customer_id + +Natural Query: List all products of Palmer-Dixon ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Palmer-Dixon' ORDER BY rating ASC + +Natural Query: What is the total profit for each country in Crawford-Wells? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Crawford-Wells' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 6 products by customers for Hernandez, Harper and Cooley this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Hernandez, Harper and Cooley' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Tucker, Baldwin and Castillo 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 = 'Tucker, Baldwin and Castillo' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all products of Caldwell Group ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Caldwell Group' ORDER BY stock_quantity DESC + +Natural Query: What are the top 3 products by customers for Rodriguez Inc this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Rodriguez Inc' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: What is the total profit for each supplier in Herman-Ford? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Herman-Ford' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 10 products by revenue for Edwards Group this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Edwards Group' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: Show me all products in the read category with a price over $909.44. +SQL Query: SELECT * FROM products WHERE category = 'read' AND price > 909.44 + +Natural Query: What is the total sales for each category in Watts Group? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Watts Group' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 9 products by customers for Ryan, Rivera and Evans this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Ryan, Rivera and Evans' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in House-Kramer 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 = 'House-Kramer' + 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 Holder, Owen and George? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Holder, Owen and George' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the total sales for each supplier in Marshall Ltd? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Marshall Ltd' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Bradley, Washington and Berger. +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 = 'Bradley, Washington and Berger' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Frazier 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 = 'Frazier and Sons' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Estrada, Lopez and Dawson between 2023-12-03 and 2024-04-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Estrada, Lopez and Dawson' AND order_date BETWEEN '2023-12-03' AND '2024-04-08' + +Natural Query: Show me all products in the account category with a price over $334.92. +SQL Query: SELECT * FROM products WHERE category = 'account' AND price > 334.92 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Wallace, Cuevas and Adams 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 = 'Wallace, Cuevas and Adams' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Bender-Martin 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 = 'Bender-Martin' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all products of Frye Ltd ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Frye Ltd' ORDER BY rating ASC + +Natural Query: List all products of Gutierrez, Smith and Anderson ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gutierrez, Smith and Anderson' ORDER BY rating ASC + +Natural Query: What is the total rating of all products for Shaffer and Sons? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Shaffer and Sons' + +Natural Query: How many orders were placed for Hunter, Williams and Sullivan between 2024-08-21 and 2024-08-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hunter, Williams and Sullivan' AND order_date BETWEEN '2024-08-21' AND '2024-08-24' + +Natural Query: List all products of Dunn, Rivera and Curtis ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Dunn, Rivera and Curtis' ORDER BY rating ASC + +Natural Query: What are the top 5 products by orders for Anderson Ltd this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Anderson Ltd' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: List all customers and their total order value for Perez-Torres. +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 = 'Perez-Torres' GROUP BY c.customer_id + +Natural Query: List all products of Woods Ltd ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Woods Ltd' ORDER BY price DESC + +Natural Query: Show me all products in the pressure category with a price over $997.11. +SQL Query: SELECT * FROM products WHERE category = 'pressure' AND price > 997.11 + +Natural Query: What are the top 6 products by customers for Carter-Walker this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Carter-Walker' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: List all products of Lopez-Garcia ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lopez-Garcia' ORDER BY rating DESC + +Natural Query: What is the total sales for each supplier in Williams-Serrano? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Williams-Serrano' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: Show me all products in the soldier category with a price over $988.2. +SQL Query: SELECT * FROM products WHERE category = 'soldier' AND price > 988.2 + +Natural Query: What is the total rating of all products for Neal, Cooper and Vazquez? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Neal, Cooper and Vazquez' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Garcia and Sons 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 = 'Garcia and Sons' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Dennis and Sons 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 = 'Dennis and Sons' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Bailey Inc 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 = 'Bailey Inc' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: List all products of Jones-Montgomery ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jones-Montgomery' ORDER BY rating ASC + +Natural Query: What is the total quantity for each supplier in Wilcox-Fleming? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Wilcox-Fleming' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: Show me all products in the yes category with a price over $163.9. +SQL Query: SELECT * FROM products WHERE category = 'yes' AND price > 163.9 + +Natural Query: How many orders were placed for Franco, Hughes and Anderson between 2024-04-11 and 2024-04-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Franco, Hughes and Anderson' AND order_date BETWEEN '2024-04-11' AND '2024-04-26' + +Natural Query: What is the minimum rating of all products for Rich, Schmitt and Brown? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Rich, Schmitt and Brown' + +Natural Query: What are the top 9 products by customers for Stark Group all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Stark Group' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: What are the top 5 products by revenue for Vaughan, Daniels and Smith this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Vaughan, Daniels and Smith' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: List all products of Chambers Group ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Chambers Group' ORDER BY stock_quantity ASC + +Natural Query: List all products of Jefferson, Howell and Underwood ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jefferson, Howell and Underwood' ORDER BY rating DESC + +Natural Query: List all products of Alexander-Wells ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Alexander-Wells' ORDER BY price DESC + +Natural Query: How many orders were placed for Erickson PLC between 2024-01-20 and 2024-07-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Erickson PLC' AND order_date BETWEEN '2024-01-20' AND '2024-07-14' + +Natural Query: Show me all products in the second category with a price over $406.6. +SQL Query: SELECT * FROM products WHERE category = 'second' AND price > 406.6 + +Natural Query: What is the total quantity for each supplier in Hawkins, Cherry and Francis? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Hawkins, Cherry and Francis' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all products of Huynh Inc ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Huynh Inc' ORDER BY price ASC + +Natural Query: Show me all products in the change category with a price over $396.48. +SQL Query: SELECT * FROM products WHERE category = 'change' AND price > 396.48 + +Natural Query: How many orders were placed for Tate LLC between 2024-02-12 and 2024-09-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Tate LLC' AND order_date BETWEEN '2024-02-12' AND '2024-09-10' + +Natural Query: What is the total quantity for each category in Gamble-Thompson? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Gamble-Thompson' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Reese LLC 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 = 'Reese LLC' + 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 green category with a price over $814.62. +SQL Query: SELECT * FROM products WHERE category = 'green' AND price > 814.62 + +Natural Query: How many orders were placed for Moore-Andrews between 2024-07-27 and 2024-08-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Moore-Andrews' AND order_date BETWEEN '2024-07-27' AND '2024-08-01' + +Natural Query: List all products of Morse Ltd ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Morse Ltd' ORDER BY rating ASC + +Natural Query: List all products of Martinez, Nelson and Gomez ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Martinez, Nelson and Gomez' ORDER BY price DESC + +Natural Query: What are the top 5 products by sales for Valdez LLC all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Valdez LLC' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Saunders-Cunningham 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 = 'Saunders-Cunningham' + 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 profit for each supplier in White, Hicks and Hendricks? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'White, Hicks and Hendricks' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: Show me all products in the too category with a price over $75.39. +SQL Query: SELECT * FROM products WHERE category = 'too' AND price > 75.39 + +Natural Query: List all products of Jacobs, Morris and Smith ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jacobs, Morris and Smith' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Sutton Group. +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 = 'Sutton Group' GROUP BY c.customer_id + +Natural Query: What are the top 3 products by sales for Perez Ltd last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Perez Ltd' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: List all products of Ochoa, Smith and Patterson ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ochoa, Smith and Patterson' ORDER BY price ASC + +Natural Query: Show me all products in the play category with a price over $403.19. +SQL Query: SELECT * FROM products WHERE category = 'play' AND price > 403.19 + +Natural Query: List all customers and their total order value for Underwood-Jones. +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 = 'Underwood-Jones' GROUP BY c.customer_id + +Natural Query: Show me all products in the large category with a price over $982.26. +SQL Query: SELECT * FROM products WHERE category = 'large' AND price > 982.26 + +Natural Query: List all products of Petersen-Wilson ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Petersen-Wilson' ORDER BY rating ASC + +Natural Query: What is the maximum price of all products for Bishop-Moore? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Bishop-Moore' + +Natural Query: What is the maximum price of all products for Brooks, Roberts and Campbell? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Brooks, Roberts and Campbell' + +Natural Query: What is the total quantity of all products for Dodson, Edwards and Bell? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Dodson, Edwards and Bell' + +Natural Query: How many orders were placed for Clark, Kelly and Curry between 2023-11-27 and 2024-04-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Clark, Kelly and Curry' AND order_date BETWEEN '2023-11-27' AND '2024-04-22' + +Natural Query: List all customers and their total order value for Richardson, Sandoval and James. +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 = 'Richardson, Sandoval and James' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Garcia, Peterson 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 = 'Garcia, Peterson and Gordon' GROUP BY c.customer_id + +Natural Query: List all products of Logan, White and Gordon ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Logan, White and Gordon' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Robertson-Jones. +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 = 'Robertson-Jones' GROUP BY c.customer_id + +Natural Query: Show me all products in the most category with a price over $692.06. +SQL Query: SELECT * FROM products WHERE category = 'most' AND price > 692.06 + +Natural Query: What is the maximum price of all products for Young-Parker? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Young-Parker' + +Natural Query: What are the top 3 products by revenue for Torres and Sons this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Torres and Sons' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: What are the top 7 products by customers for Reed Inc this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Reed Inc' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: What is the total sales for each supplier in Johnson PLC? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Johnson PLC' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Garner Inc 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 = 'Garner Inc' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What are the top 7 products by customers for Blackwell, Williams and Ward last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Blackwell, Williams and Ward' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: Show me all products in the medical category with a price over $487.23. +SQL Query: SELECT * FROM products WHERE category = 'medical' AND price > 487.23 + +Natural Query: What are the top 5 products by customers for Freeman-Cruz all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Freeman-Cruz' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: How many orders were placed for Farmer, Martin and Johnson between 2023-12-24 and 2024-07-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Farmer, Martin and Johnson' AND order_date BETWEEN '2023-12-24' AND '2024-07-29' + +Natural Query: What is the total quantity for each country in Davis LLC? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Davis LLC' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 6 products by sales for Giles-Bishop this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Giles-Bishop' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Waters LLC 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 = 'Waters LLC' + 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 past category with a price over $832.44. +SQL Query: SELECT * FROM products WHERE category = 'past' AND price > 832.44 + +Natural Query: How many orders were placed for Martinez, Munoz and Hooper between 2024-05-06 and 2024-05-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Martinez, Munoz and Hooper' AND order_date BETWEEN '2024-05-06' AND '2024-05-14' + +Natural Query: What is the maximum price of all products for Green, Kerr and Romero? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Green, Kerr and Romero' + +Natural Query: How many orders were placed for Robles-Rodriguez between 2023-12-06 and 2024-06-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Robles-Rodriguez' AND order_date BETWEEN '2023-12-06' AND '2024-06-09' + +Natural Query: How many orders were placed for Bauer Inc between 2024-04-01 and 2024-06-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bauer Inc' AND order_date BETWEEN '2024-04-01' AND '2024-06-23' + +Natural Query: List all products of Bass, Gutierrez and Mcgee ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Bass, Gutierrez and Mcgee' ORDER BY stock_quantity ASC + +Natural Query: How many orders were placed for Lopez, Hoover and Bowen between 2024-01-07 and 2024-04-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lopez, Hoover and Bowen' AND order_date BETWEEN '2024-01-07' AND '2024-04-23' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Taylor-Young 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 = 'Taylor-Young' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 \ No newline at end of file