diff --git "a/train_data.txt" "b/train_data.txt" new file mode 100644--- /dev/null +++ "b/train_data.txt" @@ -0,0 +1,37034 @@ +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Williams 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 = 'Williams 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 rating of all products for Hansen LLC? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Hansen LLC' + +Natural Query: What is the total quantity for each category in Rivas-Rich? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Rivas-Rich' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the average price of all products for Montes-Hardin? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Montes-Hardin' + +Natural Query: List all customers and their total order value for Martin, Weiss and Bell. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Martin, Weiss and Bell' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each country in Richardson, Mullen and Costa? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Richardson, Mullen and Costa' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all products of Johnson LLC ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Johnson LLC' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Vasquez-Lindsey. +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 = 'Vasquez-Lindsey' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Hall, Ramirez and Jones between 2024-01-24 and 2024-03-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hall, Ramirez and Jones' AND order_date BETWEEN '2024-01-24' AND '2024-03-15' + +Natural Query: Show me all products in the mission category with a price over $424.56. +SQL Query: SELECT * FROM products WHERE category = 'mission' AND price > 424.56 + +Natural Query: What is the minimum rating of all products for Flores PLC? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Flores PLC' + +Natural Query: What is the minimum price of all products for Sanders, Gutierrez and Shaffer? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Sanders, Gutierrez and Shaffer' + +Natural Query: What is the minimum quantity of all products for Mccann, Rivera and Lewis? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Mccann, Rivera and Lewis' + +Natural Query: What is the total profit for each category in Ryan, Carrillo and Nelson? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Ryan, Carrillo and Nelson' GROUP BY category ORDER BY total_profit DESC + +Natural Query: List all products of Cole Ltd ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Cole Ltd' ORDER BY rating ASC + +Natural Query: How many orders were placed for Baker, Kirby and Osborne between 2024-01-11 and 2024-01-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Baker, Kirby and Osborne' AND order_date BETWEEN '2024-01-11' AND '2024-01-15' + +Natural Query: Show me all products in the sure category with a price over $899.5. +SQL Query: SELECT * FROM products WHERE category = 'sure' AND price > 899.5 + +Natural Query: List all products of Tran LLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Tran LLC' ORDER BY rating DESC + +Natural Query: What are the top 9 products by customers for Fisher-Palmer this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Fisher-Palmer' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: Show me all products in the watch category with a price over $843.7. +SQL Query: SELECT * FROM products WHERE category = 'watch' AND price > 843.7 + +Natural Query: List all products of Kim LLC ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Kim LLC' ORDER BY stock_quantity ASC + +Natural Query: What is the total quantity for each country in Hill-Wood? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Hill-Wood' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Hunter, Davis and Peterson between 2024-04-29 and 2024-08-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hunter, Davis and Peterson' AND order_date BETWEEN '2024-04-29' AND '2024-08-29' + +Natural Query: List all products of Turner-Nielsen ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Turner-Nielsen' ORDER BY rating DESC + +Natural Query: What is the maximum rating of all products for Solomon Group? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Solomon Group' + +Natural Query: What is the total sales for each category in Hoffman, Mathis and Morris? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hoffman, Mathis and Morris' GROUP BY category ORDER BY total_sales DESC + +Natural Query: Show me all products in the term category with a price over $361.7. +SQL Query: SELECT * FROM products WHERE category = 'term' AND price > 361.7 + +Natural Query: What are the top 6 products by customers for Sullivan, Williams and Carpenter last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Sullivan, Williams and Carpenter' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: What are the top 9 products by revenue for Hill-Smith this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Hill-Smith' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: List all products of Mccoy Group ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mccoy Group' ORDER BY rating DESC + +Natural Query: How many orders were placed for Gomez Inc between 2024-06-18 and 2024-09-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gomez Inc' AND order_date BETWEEN '2024-06-18' AND '2024-09-14' + +Natural Query: How many orders were placed for Jordan, Ross and Wagner between 2024-07-08 and 2024-08-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jordan, Ross and Wagner' AND order_date BETWEEN '2024-07-08' AND '2024-08-16' + +Natural Query: Show me all products in the appear category with a price over $390.98. +SQL Query: SELECT * FROM products WHERE category = 'appear' AND price > 390.98 + +Natural Query: List all customers and their total order value for Hurley-Bradley. +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 = 'Hurley-Bradley' GROUP BY c.customer_id + +Natural Query: What is the maximum quantity of all products for King, Miller and Higgins? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'King, Miller and Higgins' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Tapia 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 = 'Tapia 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 are the top 7 products by sales for Walker and Sons last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Walker and Sons' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: How many orders were placed for Garcia and Sons between 2023-10-25 and 2024-05-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Garcia and Sons' AND order_date BETWEEN '2023-10-25' AND '2024-05-30' + +Natural Query: What is the total quantity for each country in Nunez PLC? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Nunez PLC' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Sanchez, Wells and Burke. +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 = 'Sanchez, Wells and Burke' GROUP BY c.customer_id + +Natural Query: Show me all products in the try category with a price over $556.23. +SQL Query: SELECT * FROM products WHERE category = 'try' AND price > 556.23 + +Natural Query: What are the top 3 products by customers for Porter-Lane this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Porter-Lane' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: Show me all products in the if category with a price over $138.13. +SQL Query: SELECT * FROM products WHERE category = 'if' AND price > 138.13 + +Natural Query: List all products of Williams, Jones and Lee ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Williams, Jones and Lee' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Carroll, Arnold and Garcia 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 = 'Carroll, Arnold and Garcia' + 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 born category with a price over $817.49. +SQL Query: SELECT * FROM products WHERE category = 'born' AND price > 817.49 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in English, Parker and Parker 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 = 'English, Parker and Parker' + 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 Johnson PLC ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Johnson PLC' ORDER BY rating ASC + +Natural Query: What are the top 9 products by customers for Johnston Group all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Johnston Group' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: What are the top 10 products by customers for Ross Ltd last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Ross Ltd' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10 + +Natural Query: Show me all products in the wind category with a price over $647.36. +SQL Query: SELECT * FROM products WHERE category = 'wind' AND price > 647.36 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Thompson-Sexton 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-Sexton' + 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 Peterson-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 = 'Peterson-Moore' + 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 Douglas, Bryant and Carr. +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 = 'Douglas, Bryant and Carr' GROUP BY c.customer_id + +Natural Query: What is the average quantity of all products for Stevenson LLC? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Stevenson LLC' + +Natural Query: What are the top 5 products by sales for Gallegos and Sons all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Gallegos and Sons' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: List all customers and their total order value for Gibson-Carney. +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-Carney' GROUP BY c.customer_id + +Natural Query: Show me all products in the including category with a price over $798.55. +SQL Query: SELECT * FROM products WHERE category = 'including' AND price > 798.55 + +Natural Query: What is the total quantity for each category in Johnson PLC? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Johnson PLC' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Hernandez PLC between 2024-08-23 and 2024-09-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hernandez PLC' AND order_date BETWEEN '2024-08-23' AND '2024-09-10' + +Natural Query: How many orders were placed for Christensen-Ingram between 2024-06-23 and 2024-08-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Christensen-Ingram' AND order_date BETWEEN '2024-06-23' AND '2024-08-04' + +Natural Query: What are the top 7 products by customers for Ramirez PLC this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Ramirez PLC' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: Show me all products in the hospital category with a price over $290.86. +SQL Query: SELECT * FROM products WHERE category = 'hospital' AND price > 290.86 + +Natural Query: What is the total quantity for each country in Garcia, Simmons and Hensley? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Garcia, Simmons and Hensley' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the maximum quantity of all products for Rodriguez LLC? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Rodriguez LLC' + +Natural Query: List all customers and their total order value for Parrish, Craig and Chen. +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 = 'Parrish, Craig and Chen' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for James-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 = 'James-Cox' GROUP BY c.customer_id + +Natural Query: What are the top 7 products by revenue for Wright Inc last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Wright Inc' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: Show me all products in the raise category with a price over $438.09. +SQL Query: SELECT * FROM products WHERE category = 'raise' AND price > 438.09 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Montgomery, Hall and Pugh 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 = 'Montgomery, Hall and Pugh' + 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 Garcia-Bryant? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Garcia-Bryant' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Stewart, Roberts and Allen 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, Roberts and Allen' + 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 customers for Johnson-Johnson last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Johnson-Johnson' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: Show me all products in the social category with a price over $158.45. +SQL Query: SELECT * FROM products WHERE category = 'social' AND price > 158.45 + +Natural Query: What is the total quantity for each supplier in Kelly, Byrd and Kennedy? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Kelly, Byrd and Kennedy' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the total sales for each supplier in Ware Inc? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Ware Inc' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Padilla, Kelly 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 = 'Padilla, Kelly 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 profit for each category in Edwards Group? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Edwards Group' GROUP BY category ORDER BY total_profit DESC + +Natural Query: Show me all products in the exist category with a price over $347.91. +SQL Query: SELECT * FROM products WHERE category = 'exist' AND price > 347.91 + +Natural Query: What is the total sales for each country in Rivera and Sons? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Rivera and Sons' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 4 products by revenue for Scott, James and Townsend last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Scott, James and Townsend' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: How many orders were placed for Sanchez-Norton between 2024-05-04 and 2024-08-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Sanchez-Norton' AND order_date BETWEEN '2024-05-04' AND '2024-08-27' + +Natural Query: What is the average quantity of all products for Petty, Watson and Bartlett? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Petty, Watson and Bartlett' + +Natural Query: What are the top 10 products by revenue for Thomas, Kelley and Obrien this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Thomas, Kelley and Obrien' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: What are the top 10 products by revenue for Johnson, Burns and Boyd last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Johnson, Burns and Boyd' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: List all customers and their total order value for Reed 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 = 'Reed Group' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Fowler-Holland between 2024-03-28 and 2024-04-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Fowler-Holland' AND order_date BETWEEN '2024-03-28' AND '2024-04-08' + +Natural Query: List all customers and their total order value for Meyer, Arnold and Garcia. +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, Arnold and Garcia' GROUP BY c.customer_id + +Natural Query: What are the top 10 products by sales for Horn-Ward this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Horn-Ward' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: Show me all products in the commercial category with a price over $943.17. +SQL Query: SELECT * FROM products WHERE category = 'commercial' AND price > 943.17 + +Natural Query: Show me all products in the amount category with a price over $745.86. +SQL Query: SELECT * FROM products WHERE category = 'amount' AND price > 745.86 + +Natural Query: List all customers and their total order value for Butler-Case. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Butler-Case' GROUP BY c.customer_id + +Natural Query: List all products of Martin, Abbott and Smith ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Martin, Abbott and Smith' ORDER BY stock_quantity DESC + +Natural Query: How many orders were placed for Garcia-Martinez between 2023-09-29 and 2024-06-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Garcia-Martinez' AND order_date BETWEEN '2023-09-29' AND '2024-06-01' + +Natural Query: List all customers and their total order value for Koch-Maynard. +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 = 'Koch-Maynard' GROUP BY c.customer_id + +Natural Query: What is the total profit for each supplier in Watson, Lewis and Bauer? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Watson, Lewis and Bauer' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Guzman-Day. +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 = 'Guzman-Day' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Wilson, Miller and Ware 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, Miller and Ware' + 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 Green Inc? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Green Inc' + +Natural Query: Show me all products in the clearly category with a price over $412.21. +SQL Query: SELECT * FROM products WHERE category = 'clearly' AND price > 412.21 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in King-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 = 'King-Bryant' + 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 9 products by customers for Taylor, Parks and Rivera last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Taylor, Parks and Rivera' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: How many orders were placed for Little, Brown and Garcia between 2024-01-13 and 2024-08-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Little, Brown and Garcia' AND order_date BETWEEN '2024-01-13' AND '2024-08-23' + +Natural Query: What are the top 8 products by sales for Wright, Kramer and Grimes last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Wright, Kramer and Grimes' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: List all customers and their total order value for Carroll, Hill and Mendoza. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Carroll, Hill and Mendoza' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Martin, Hicks and Martinez. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Martin, Hicks and Martinez' GROUP BY c.customer_id + +Natural Query: List all products of Cline-Dickerson ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Cline-Dickerson' ORDER BY price DESC + +Natural Query: What is the average price of all products for Thompson-Mcdaniel? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Thompson-Mcdaniel' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Green Ltd for the last quarter? +SQL Query: SELECT p.category, SUM(s.sales) as total_sales + FROM sales s + JOIN products p ON s.product_id = p.product_id + JOIN customers c ON s.customer_id = c.customer_id + WHERE c.age BETWEEN 25 AND 35 + AND s.company_name = 'Green Ltd' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What is the total sales for each country in Smith-Young? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Smith-Young' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all products of Leon, Chapman and Marquez ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Leon, Chapman and Marquez' ORDER BY rating ASC + +Natural Query: What are the top 9 products by customers for Boyle LLC this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Boyle LLC' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: Show me all products in the model category with a price over $27.26. +SQL Query: SELECT * FROM products WHERE category = 'model' AND price > 27.26 + +Natural Query: What is the minimum quantity of all products for Allen Ltd? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Allen Ltd' + +Natural Query: What are the top 5 products by sales for Rodriguez, Rasmussen and Perry this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Rodriguez, Rasmussen and Perry' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: List all customers and their total order value for Butler Inc. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Butler Inc' GROUP BY c.customer_id + +Natural Query: Show me all products in the main category with a price over $42.11. +SQL Query: SELECT * FROM products WHERE category = 'main' AND price > 42.11 + +Natural Query: How many orders were placed for Brown LLC between 2024-05-05 and 2024-07-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Brown LLC' AND order_date BETWEEN '2024-05-05' AND '2024-07-27' + +Natural Query: Show me all products in the increase category with a price over $676.39. +SQL Query: SELECT * FROM products WHERE category = 'increase' AND price > 676.39 + +Natural Query: Show me all products in the model category with a price over $808.6. +SQL Query: SELECT * FROM products WHERE category = 'model' AND price > 808.6 + +Natural Query: How many orders were placed for Travis and Sons between 2023-12-16 and 2024-06-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Travis and Sons' AND order_date BETWEEN '2023-12-16' AND '2024-06-13' + +Natural Query: What is the total sales for each country in Perry, Pearson and Schneider? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Perry, Pearson and Schneider' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the total quantity for each country in Williams PLC? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Williams PLC' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lane-Allison for the last quarter? +SQL Query: SELECT p.category, SUM(s.sales) as total_sales + FROM sales s + JOIN products p ON s.product_id = p.product_id + JOIN customers c ON s.customer_id = c.customer_id + WHERE c.age BETWEEN 25 AND 35 + AND s.company_name = 'Lane-Allison' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: Show me all products in the marriage category with a price over $217.62. +SQL Query: SELECT * FROM products WHERE category = 'marriage' AND price > 217.62 + +Natural Query: List all customers and their total order value for Clark, Pearson and Humphrey. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Clark, Pearson and Humphrey' GROUP BY c.customer_id + +Natural Query: List all products of Greer Ltd ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Greer Ltd' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Morgan and Sons. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Morgan and Sons' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Villarreal 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 = 'Villarreal Ltd' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Johnson Group between 2023-09-21 and 2023-10-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Johnson Group' AND order_date BETWEEN '2023-09-21' AND '2023-10-05' + +Natural Query: List all products of Barnes, Flores and Robinson ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Barnes, Flores and Robinson' ORDER BY stock_quantity DESC + +Natural Query: What are the top 3 products by revenue for Tucker PLC this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Tucker PLC' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: Show me all products in the write category with a price over $881.94. +SQL Query: SELECT * FROM products WHERE category = 'write' AND price > 881.94 + +Natural Query: What is the total profit for each category in Edwards LLC? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Edwards LLC' GROUP BY category ORDER BY total_profit DESC + +Natural Query: List all products of Hodge, Morris and Bailey ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hodge, Morris and Bailey' ORDER BY stock_quantity ASC + +Natural Query: What is the total profit for each country in Jones, Guerra and Blake? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Jones, Guerra and Blake' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Hester-Andrews. +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 = 'Hester-Andrews' GROUP BY c.customer_id + +Natural Query: What is the total quantity of all products for Hester and Sons? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Hester and Sons' + +Natural Query: What is the total quantity of all products for Hobbs, Vazquez and Scott? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Hobbs, Vazquez and Scott' + +Natural Query: List all customers and their total order value for Holmes, Lewis and Delgado. +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 = 'Holmes, Lewis and Delgado' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Rollins LLC between 2024-05-16 and 2024-06-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Rollins LLC' AND order_date BETWEEN '2024-05-16' AND '2024-06-07' + +Natural Query: Show me all products in the something category with a price over $646.92. +SQL Query: SELECT * FROM products WHERE category = 'something' AND price > 646.92 + +Natural Query: What is the total price of all products for Smith, Boyd and Hill? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Smith, Boyd and Hill' + +Natural Query: What is the total profit for each category in Nelson-Morgan? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Nelson-Morgan' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the total sales for each country in Hensley, Gordon and Wade? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hensley, Gordon and Wade' GROUP BY country ORDER BY total_sales DESC + +Natural Query: Show me all products in the would category with a price over $419.37. +SQL Query: SELECT * FROM products WHERE category = 'would' AND price > 419.37 + +Natural Query: List all customers and their total order value for Blevins 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 = 'Blevins LLC' GROUP BY c.customer_id + +Natural Query: What is the maximum price of all products for Richards, Flowers and Martinez? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Richards, Flowers and Martinez' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Sullivan 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 = 'Sullivan 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 products of Martinez Group ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Martinez Group' ORDER BY rating ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Harris-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 = 'Harris-Baker' + 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 Thornton, Duncan and Bradley between 2024-08-25 and 2024-08-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thornton, Duncan and Bradley' AND order_date BETWEEN '2024-08-25' AND '2024-08-29' + +Natural Query: How many orders were placed for Watkins, Andrews and Stewart between 2024-01-13 and 2024-06-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Watkins, Andrews and Stewart' AND order_date BETWEEN '2024-01-13' AND '2024-06-10' + +Natural Query: Show me all products in the week category with a price over $740.84. +SQL Query: SELECT * FROM products WHERE category = 'week' AND price > 740.84 + +Natural Query: What is the total sales for each category in Lamb Inc? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Lamb Inc' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Young, 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 = 'Young, 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: List all products of Herrera, Williams and Bowman ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Herrera, Williams and Bowman' ORDER BY rating ASC + +Natural Query: What is the total quantity of all products for Snyder-Wright? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Snyder-Wright' + +Natural Query: What are the top 6 products by orders for Pham Inc all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Pham Inc' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: How many orders were placed for Bennett Group between 2024-09-16 and 2024-09-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bennett Group' AND order_date BETWEEN '2024-09-16' AND '2024-09-16' + +Natural Query: Show me all products in the hundred category with a price over $541.27. +SQL Query: SELECT * FROM products WHERE category = 'hundred' AND price > 541.27 + +Natural Query: List all customers and their total order value for Chavez 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 = 'Chavez and Sons' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Carpenter-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 = 'Carpenter-Brown' + 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 York-Robinson between 2023-09-28 and 2024-06-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'York-Robinson' AND order_date BETWEEN '2023-09-28' AND '2024-06-15' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Harris, Jones and 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 = 'Harris, Jones and Martin' + 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 orders for Barber Inc all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Barber Inc' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cohen-Delacruz 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 = 'Cohen-Delacruz' + 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 Smith, Fuller and 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 = 'Smith, Fuller and Meyer' + 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 Morgan-Rogers ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Morgan-Rogers' ORDER BY price DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gilbert 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 = 'Gilbert 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 sales for each supplier in Smith-Morse? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Smith-Morse' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 9 products by revenue for Smith Group this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Smith Group' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: List all customers and their total order value for Wallace, Williamson and Rhodes. +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 = 'Wallace, Williamson and Rhodes' GROUP BY c.customer_id + +Natural Query: Show me all products in the business category with a price over $863.94. +SQL Query: SELECT * FROM products WHERE category = 'business' AND price > 863.94 + +Natural Query: Show me all products in the certainly category with a price over $512.69. +SQL Query: SELECT * FROM products WHERE category = 'certainly' AND price > 512.69 + +Natural Query: What is the total price of all products for Garcia Inc? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Garcia Inc' + +Natural Query: List all products of Hart-Smith ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hart-Smith' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Townsend, Hodge and Cunningham. +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 = 'Townsend, Hodge and Cunningham' GROUP BY c.customer_id + +Natural Query: List all products of Ryan Group ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ryan Group' ORDER BY rating ASC + +Natural Query: How many orders were placed for Garcia and Sons between 2024-02-27 and 2024-08-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Garcia and Sons' AND order_date BETWEEN '2024-02-27' AND '2024-08-30' + +Natural Query: List all customers and their total order value for Lang, Wells and Ortiz. +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 = 'Lang, Wells and Ortiz' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Steele 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 = 'Steele Ltd' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each supplier in Newman Inc? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Newman Inc' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Armstrong, Foster and Graves. +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 = 'Armstrong, Foster and Graves' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each category in Joseph-Holden? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Joseph-Holden' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: Show me all products in the involve category with a price over $393.81. +SQL Query: SELECT * FROM products WHERE category = 'involve' AND price > 393.81 + +Natural Query: Show me all products in the growth category with a price over $22.04. +SQL Query: SELECT * FROM products WHERE category = 'growth' AND price > 22.04 + +Natural Query: What is the maximum rating of all products for Young, Taylor and Sims? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Young, Taylor and Sims' + +Natural Query: Show me all products in the happy category with a price over $808.77. +SQL Query: SELECT * FROM products WHERE category = 'happy' AND price > 808.77 + +Natural Query: List all customers and their total order value for Walker-Diaz. +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-Diaz' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Bailey-Rhodes 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-Rhodes' + 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 space category with a price over $51.26. +SQL Query: SELECT * FROM products WHERE category = 'space' AND price > 51.26 + +Natural Query: What are the top 7 products by customers for Escobar-Smith this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Escobar-Smith' AND period = 'this year' 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 Smith 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 = 'Smith 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 Crane-Jenkins between 2023-09-23 and 2024-02-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Crane-Jenkins' AND order_date BETWEEN '2023-09-23' AND '2024-02-05' + +Natural Query: What are the top 8 products by orders for Norris, Chen and Dean this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Norris, Chen and Dean' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Stokes 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 = 'Stokes 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 price of all products for Sherman, Wilson and Chan? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Sherman, Wilson and Chan' + +Natural Query: List all customers and their total order value for Maxwell, Villa and Brooks. +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 = 'Maxwell, Villa and Brooks' GROUP BY c.customer_id + +Natural Query: What is the total sales for each category in Horton-Blackwell? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Horton-Blackwell' GROUP BY category ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Taylor-Greer between 2024-05-15 and 2024-07-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Taylor-Greer' AND order_date BETWEEN '2024-05-15' AND '2024-07-26' + +Natural Query: List all customers and their total order value for Nguyen-Douglas. +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-Douglas' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each country in Davis and Sons? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Davis and Sons' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 4 products by sales for Paul Ltd this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Paul Ltd' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: Show me all products in the still category with a price over $54.68. +SQL Query: SELECT * FROM products WHERE category = 'still' AND price > 54.68 + +Natural Query: List all customers and their total order value for Hines 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 = 'Hines Inc' GROUP BY c.customer_id + +Natural Query: What are the top 4 products by orders for Ortiz-Patterson all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Ortiz-Patterson' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: List all customers and their total order value for Simmons-Wu. +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 = 'Simmons-Wu' GROUP BY c.customer_id + +Natural Query: What is the average quantity of all products for Schmidt Group? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Schmidt Group' + +Natural Query: Show me all products in the vote category with a price over $907.84. +SQL Query: SELECT * FROM products WHERE category = 'vote' AND price > 907.84 + +Natural Query: What is the total sales for each country in Jackson, Walters and Miller? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Jackson, Walters and Miller' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the total sales for each supplier in Martin-Williams? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Martin-Williams' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Cole-Ellison between 2024-05-02 and 2024-06-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cole-Ellison' AND order_date BETWEEN '2024-05-02' AND '2024-06-16' + +Natural Query: List all products of Jenkins Inc ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jenkins Inc' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Delacruz 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 = 'Delacruz Ltd' GROUP BY c.customer_id + +Natural Query: Show me all products in the question category with a price over $606.29. +SQL Query: SELECT * FROM products WHERE category = 'question' AND price > 606.29 + +Natural Query: What is the total sales for each category in Jones, Harris and Webb? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Jones, Harris and Webb' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all products of Castillo-Cole ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Castillo-Cole' ORDER BY price DESC + +Natural Query: How many orders were placed for Lewis-Wilson between 2024-07-14 and 2024-07-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lewis-Wilson' AND order_date BETWEEN '2024-07-14' AND '2024-07-16' + +Natural Query: What is the total profit for each category in Hanna, Williams and Baldwin? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Hanna, Williams and Baldwin' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the maximum quantity of all products for Elliott PLC? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Elliott PLC' + +Natural Query: What is the minimum rating of all products for Skinner-Wheeler? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Skinner-Wheeler' + +Natural Query: List all products of Nelson-Stone ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Nelson-Stone' ORDER BY stock_quantity ASC + +Natural Query: How many orders were placed for Wang, Nicholson and Boyd between 2024-08-22 and 2024-09-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wang, Nicholson and Boyd' AND order_date BETWEEN '2024-08-22' AND '2024-09-15' + +Natural Query: List all products of Thomas, Shaffer and Shaw ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Thomas, Shaffer and Shaw' ORDER BY price ASC + +Natural Query: List all customers and their total order value for Valdez 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 = 'Valdez Inc' GROUP BY c.customer_id + +Natural Query: What are the top 3 products by sales for Acosta, Pacheco and Atkinson this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Acosta, Pacheco and Atkinson' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Brown 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 = 'Brown 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 Miller PLC between 2024-05-26 and 2024-08-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Miller PLC' AND order_date BETWEEN '2024-05-26' AND '2024-08-19' + +Natural Query: Show me all products in the strategy category with a price over $516.18. +SQL Query: SELECT * FROM products WHERE category = 'strategy' AND price > 516.18 + +Natural Query: What are the top 7 products by orders for Willis PLC all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Willis PLC' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: List all customers and their total order value for Baker-Watkins. +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 = 'Baker-Watkins' GROUP BY c.customer_id + +Natural Query: Show me all products in the mother category with a price over $227.75. +SQL Query: SELECT * FROM products WHERE category = 'mother' AND price > 227.75 + +Natural Query: List all products of Acosta, Green and Wyatt ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Acosta, Green and Wyatt' ORDER BY price ASC + +Natural Query: What are the top 3 products by revenue for George, Flynn and Gray last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'George, Flynn and Gray' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Morrow-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 = 'Morrow-Campbell' + 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 Bates-Martin this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Bates-Martin' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: List all products of Rodriguez-Dawson ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rodriguez-Dawson' ORDER BY stock_quantity DESC + +Natural Query: List all products of Petersen and Sons ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Petersen and Sons' ORDER BY price ASC + +Natural Query: List all products of Wilson-Alvarado ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wilson-Alvarado' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Sims-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 = 'Sims-Thomas' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each category in Martin, Weber and Daniel? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Martin, Weber and Daniel' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Alexander, Rowland and Brock. +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 = 'Alexander, Rowland and Brock' GROUP BY c.customer_id + +Natural Query: Show me all products in the management category with a price over $699.4. +SQL Query: SELECT * FROM products WHERE category = 'management' AND price > 699.4 + +Natural Query: What are the top 6 products by revenue for Whitaker Inc last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Whitaker Inc' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: List all products of Smith-Brandt ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith-Brandt' ORDER BY rating DESC + +Natural Query: What is the average price of all products for Martin PLC? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Martin PLC' + +Natural Query: How many orders were placed for Sandoval, Cervantes and Watkins between 2023-10-08 and 2024-05-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Sandoval, Cervantes and Watkins' AND order_date BETWEEN '2023-10-08' AND '2024-05-24' + +Natural Query: What are the top 5 products by sales for Patterson-Brown this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Patterson-Brown' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: What is the total quantity for each supplier in Edwards-Kelly? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Edwards-Kelly' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all products of Baird-Brown ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Baird-Brown' ORDER BY rating ASC + +Natural Query: List all products of Perry, Martin and Clark ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Perry, Martin and Clark' ORDER BY rating DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Carter 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 = 'Carter 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 sales for Vincent Group last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Vincent Group' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: What is the total quantity for each country in Ellis-Hoffman? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Ellis-Hoffman' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all products of Rogers Group ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rogers Group' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Jackson 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 = 'Jackson PLC' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each category in Pena and Sons? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Pena and Sons' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the total quantity of all products for Roach, Montgomery and Davis? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Roach, Montgomery and Davis' + +Natural Query: What is the average quantity of all products for Goodman-Blair? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Goodman-Blair' + +Natural Query: Show me all products in the hundred category with a price over $262.54. +SQL Query: SELECT * FROM products WHERE category = 'hundred' AND price > 262.54 + +Natural Query: What are the top 5 products by sales for Moss, Evans and Ortiz this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Moss, Evans and Ortiz' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: What are the top 7 products by orders for Roberts Ltd this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Roberts Ltd' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: List all customers and their total order value for Baker, Forbes and Todd. +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 = 'Baker, Forbes and Todd' GROUP BY c.customer_id + +Natural Query: What are the top 10 products by sales for Hernandez Group this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hernandez 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 Chavez 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 = 'Chavez and Sons' GROUP BY c.customer_id + +Natural Query: What are the top 9 products by sales for Hodge and Sons all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hodge and Sons' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Davis, Jones and Powell 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, Jones and Powell' + 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 Owens, Wright and Davenport between 2024-05-26 and 2024-08-31? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Owens, Wright and Davenport' AND order_date BETWEEN '2024-05-26' AND '2024-08-31' + +Natural Query: List all customers and their total order value for Murphy 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 = 'Murphy Ltd' GROUP BY c.customer_id + +Natural Query: What is the maximum price of all products for Owen Group? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Owen Group' + +Natural Query: What are the top 6 products by sales for Huff, Anderson and Grimes this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Huff, Anderson and Grimes' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: Show me all products in the international category with a price over $326.62. +SQL Query: SELECT * FROM products WHERE category = 'international' AND price > 326.62 + +Natural Query: What is the maximum quantity of all products for Poole PLC? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Poole PLC' + +Natural Query: What is the average price of all products for Moore, King and Howell? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Moore, King and Howell' + +Natural Query: Show me all products in the develop category with a price over $123.15. +SQL Query: SELECT * FROM products WHERE category = 'develop' AND price > 123.15 + +Natural Query: List all products of Taylor, Garcia and Snyder ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Taylor, Garcia and Snyder' ORDER BY stock_quantity ASC + +Natural Query: How many orders were placed for Brown-Donaldson between 2023-12-22 and 2024-02-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Brown-Donaldson' AND order_date BETWEEN '2023-12-22' AND '2024-02-13' + +Natural Query: What is the average rating of all products for Mitchell LLC? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Mitchell LLC' + +Natural Query: What is the total quantity for each supplier in Kelley, Barron and Craig? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Kelley, Barron and Craig' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the average price of all products for Jones LLC? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Jones LLC' + +Natural Query: What is the total sales for each category in Johnson-Wagner? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Johnson-Wagner' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Case-Rodriguez 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 = 'Case-Rodriguez' + 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 Morales 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 = 'Morales Group' GROUP BY c.customer_id + +Natural Query: What is the total sales for each supplier in Reilly, Baker and Acosta? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Reilly, Baker and Acosta' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Clark 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 = 'Clark Group' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Graham, Jackson and Pollard 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 = 'Graham, Jackson and Pollard' + 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 Kaiser, Houston and Howard? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Kaiser, Houston and Howard' + +Natural Query: List all products of Rodriguez Group ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rodriguez Group' ORDER BY rating DESC + +Natural Query: What are the top 4 products by sales for Andrade, Thomas and Lynch all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Andrade, Thomas and Lynch' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: Show me all products in the seek category with a price over $936.91. +SQL Query: SELECT * FROM products WHERE category = 'seek' AND price > 936.91 + +Natural Query: Show me all products in the term category with a price over $284.05. +SQL Query: SELECT * FROM products WHERE category = 'term' AND price > 284.05 + +Natural Query: What is the total quantity for each category in Powell PLC? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Powell PLC' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Smith and Sons between 2024-08-03 and 2024-09-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Smith and Sons' AND order_date BETWEEN '2024-08-03' AND '2024-09-07' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Golden 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 = 'Golden 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 average price of all products for Harrison, Potter and Gonzalez? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Harrison, Potter and Gonzalez' + +Natural Query: Show me all products in the worker category with a price over $776.62. +SQL Query: SELECT * FROM products WHERE category = 'worker' AND price > 776.62 + +Natural Query: How many orders were placed for Douglas-Rivera between 2023-10-13 and 2023-11-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Douglas-Rivera' AND order_date BETWEEN '2023-10-13' AND '2023-11-06' + +Natural Query: What is the maximum rating of all products for Perry and Sons? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Perry and Sons' + +Natural Query: What is the average price of all products for Drake-Wong? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Drake-Wong' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Kennedy, Arias 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 = 'Kennedy, Arias 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: Show me all products in the too category with a price over $213.42. +SQL Query: SELECT * FROM products WHERE category = 'too' AND price > 213.42 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Patterson-Sullivan 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 = 'Patterson-Sullivan' + 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 Fuentes-Escobar ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Fuentes-Escobar' ORDER BY rating ASC + +Natural Query: Show me all products in the at category with a price over $592.16. +SQL Query: SELECT * FROM products WHERE category = 'at' AND price > 592.16 + +Natural Query: What is the total quantity of all products for Herrera-Evans? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Herrera-Evans' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Porter, Rogers 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 = 'Porter, Rogers 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: How many orders were placed for Scott, Davis and Rivera between 2023-12-25 and 2024-07-31? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Scott, Davis and Rivera' AND order_date BETWEEN '2023-12-25' AND '2024-07-31' + +Natural Query: What is the average rating of all products for Williamson and Sons? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Williamson and Sons' + +Natural Query: How many orders were placed for Melendez, Henderson and Petersen between 2024-04-29 and 2024-06-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Melendez, Henderson and Petersen' AND order_date BETWEEN '2024-04-29' AND '2024-06-17' + +Natural Query: Show me all products in the among category with a price over $499.88. +SQL Query: SELECT * FROM products WHERE category = 'among' AND price > 499.88 + +Natural Query: What is the total rating of all products for Rios and Sons? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Rios and Sons' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Curtis 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 = 'Curtis Ltd' + 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 Turner, Hansen and Griffin. +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 = 'Turner, Hansen and Griffin' GROUP BY c.customer_id + +Natural Query: What are the top 8 products by customers for Coffey-Jones this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Coffey-Jones' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: What are the top 10 products by sales for Turner, Kelly and Smith all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Turner, Kelly and Smith' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: Show me all products in the child category with a price over $635.24. +SQL Query: SELECT * FROM products WHERE category = 'child' AND price > 635.24 + +Natural Query: What is the total quantity for each category in King-Robinson? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'King-Robinson' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the average quantity of all products for Porter PLC? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Porter PLC' + +Natural Query: List all customers and their total order value for Rodriguez 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 = 'Rodriguez Group' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Howard Inc between 2024-03-14 and 2024-08-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Howard Inc' AND order_date BETWEEN '2024-03-14' AND '2024-08-06' + +Natural Query: List all products of Allen, Ryan and Smith ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Allen, Ryan and Smith' ORDER BY rating DESC + +Natural Query: What are the top 4 products by sales for Mcmillan Ltd this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Mcmillan Ltd' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: What are the top 10 products by revenue for Andrews and Sons this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Andrews and Sons' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: What are the top 7 products by customers for Sullivan, Monroe and Gordon this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Sullivan, Monroe and Gordon' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: What is the total quantity for each supplier in Parker LLC? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Parker LLC' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: Show me all products in the past category with a price over $37.43. +SQL Query: SELECT * FROM products WHERE category = 'past' AND price > 37.43 + +Natural Query: What are the top 8 products by revenue for Smith, Prince and Gomez last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Smith, Prince and Gomez' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: What is the total profit for each supplier in Ellis-Lee? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Ellis-Lee' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the total profit for each category in Wolf, Gray and Gardner? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Wolf, Gray and Gardner' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the total quantity of all products for Hester Ltd? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Hester Ltd' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Navarro-Morris 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 = 'Navarro-Morris' + 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 customers for Bates, Smith and Mcdowell this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Bates, Smith and Mcdowell' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: What are the top 4 products by sales for Serrano-Rubio this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Serrano-Rubio' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: What is the total profit for each category in Cook Inc? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Cook Inc' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 7 products by revenue for Parker, Silva and Simmons last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Parker, Silva and Simmons' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: List all products of Shaffer, Green and Jennings ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Shaffer, Green and Jennings' ORDER BY rating ASC + +Natural Query: What are the top 9 products by revenue for Allen and Sons this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Allen and Sons' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: Show me all products in the it category with a price over $597.64. +SQL Query: SELECT * FROM products WHERE category = 'it' AND price > 597.64 + +Natural Query: What are the top 6 products by revenue for Ellis Inc this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Ellis Inc' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: What is the minimum price of all products for Jones Group? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Jones Group' + +Natural Query: What is the minimum price of all products for Ramirez-Garcia? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Ramirez-Garcia' + +Natural Query: What is the maximum quantity of all products for Rios PLC? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Rios PLC' + +Natural Query: List all products of Faulkner, Smith and Aguirre ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Faulkner, Smith and Aguirre' ORDER BY price DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Turner 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 = 'Turner 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 like category with a price over $156.46. +SQL Query: SELECT * FROM products WHERE category = 'like' AND price > 156.46 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Williams, Pollard 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 = 'Williams, Pollard 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: Show me all products in the give category with a price over $800.9. +SQL Query: SELECT * FROM products WHERE category = 'give' AND price > 800.9 + +Natural Query: List all customers and their total order value for Weber, Reed and Martin. +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 = 'Weber, Reed and Martin' GROUP BY c.customer_id + +Natural Query: What are the top 4 products by revenue for Miller, Ramos and Davis all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Miller, Ramos and Davis' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: List all customers and their total order value for Murray 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 = 'Murray Ltd' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hernandez 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 = 'Hernandez 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 Brown, Mueller and Mclaughlin. +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, Mueller and Mclaughlin' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Wilson-Combs. +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-Combs' GROUP BY c.customer_id + +Natural Query: Show me all products in the fire category with a price over $803.54. +SQL Query: SELECT * FROM products WHERE category = 'fire' AND price > 803.54 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Edwards 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 = 'Edwards PLC' + 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 Davila, Stafford and Fuentes between 2024-04-12 and 2024-08-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Davila, Stafford and Fuentes' AND order_date BETWEEN '2024-04-12' AND '2024-08-20' + +Natural Query: What is the minimum rating of all products for Brown, Allen and Suarez? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Brown, Allen and Suarez' + +Natural Query: How many orders were placed for Thompson-Hernandez between 2024-01-16 and 2024-08-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thompson-Hernandez' AND order_date BETWEEN '2024-01-16' AND '2024-08-11' + +Natural Query: Show me all products in the deal category with a price over $468.21. +SQL Query: SELECT * FROM products WHERE category = 'deal' AND price > 468.21 + +Natural Query: List all customers and their total order value for Day-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 = 'Day-Ramirez' GROUP BY c.customer_id + +Natural Query: List all products of Sanford Ltd ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Sanford Ltd' ORDER BY rating DESC + +Natural Query: List all customers and their total order value for Payne, Lloyd and 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 = 'Payne, Lloyd and Acosta' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Davis-Frazier 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-Frazier' + 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 Dickson-Duffy. +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-Duffy' GROUP BY c.customer_id + +Natural Query: What is the total profit for each supplier in Thomas-Davis? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Thomas-Davis' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the total quantity of all products for Bowman-Hartman? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Bowman-Hartman' + +Natural Query: What is the total sales for each supplier in Diaz, Boone and Henry? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Diaz, Boone and Henry' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 4 products by sales for Taylor-Burton this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Taylor-Burton' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: What is the total profit for each category in Turner-Mills? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Turner-Mills' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 4 products by customers for Osborne, Monroe and White all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Osborne, Monroe and White' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Moore-Day 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-Day' + 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 Garcia-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 = 'Garcia-Harris' GROUP BY c.customer_id + +Natural Query: What is the minimum price of all products for Reynolds-Smith? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Reynolds-Smith' + +Natural Query: List all products of Wright Inc ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wright Inc' ORDER BY rating DESC + +Natural Query: What is the average price of all products for Williams and Sons? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Williams and Sons' + +Natural Query: What is the total price of all products for Morrison-Anderson? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Morrison-Anderson' + +Natural Query: What is the total quantity of all products for Brown Ltd? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Brown Ltd' + +Natural Query: What is the maximum quantity of all products for Price and Sons? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Price and Sons' + +Natural Query: What is the total profit for each category in Andrews, Evans and Powell? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Andrews, Evans and Powell' GROUP BY category ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Fields-Valencia between 2024-02-20 and 2024-05-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Fields-Valencia' AND order_date BETWEEN '2024-02-20' AND '2024-05-25' + +Natural Query: Show me all products in the view category with a price over $794.98. +SQL Query: SELECT * FROM products WHERE category = 'view' AND price > 794.98 + +Natural Query: How many orders were placed for Horn Ltd between 2024-02-13 and 2024-08-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Horn Ltd' AND order_date BETWEEN '2024-02-13' AND '2024-08-14' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Fox 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 = 'Fox 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 quantity for each category in Martinez-Rocha? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Martinez-Rocha' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mendoza 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 = 'Mendoza 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 Osborne, Vincent and Banks 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 = 'Osborne, Vincent and Banks' + 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 far category with a price over $847.96. +SQL Query: SELECT * FROM products WHERE category = 'far' AND price > 847.96 + +Natural Query: What is the total sales for each supplier in Johnson Group? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Johnson Group' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: Show me all products in the conference category with a price over $734.06. +SQL Query: SELECT * FROM products WHERE category = 'conference' AND price > 734.06 + +Natural Query: List all customers and their total order value for Gross-Bowman. +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 = 'Gross-Bowman' GROUP BY c.customer_id + +Natural Query: List all products of Mcguire-Henderson ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mcguire-Henderson' ORDER BY rating ASC + +Natural Query: What is the total profit for each supplier in Hernandez, Herrera and Lewis? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Hernandez, Herrera and Lewis' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Powell 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 = 'Powell 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: Show me all products in the unit category with a price over $576.85. +SQL Query: SELECT * FROM products WHERE category = 'unit' AND price > 576.85 + +Natural Query: What is the total sales for each country in Le-Lee? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Le-Lee' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Carter 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 = 'Carter 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 Hahn-Snyder. +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 = 'Hahn-Snyder' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Braun PLC between 2024-06-07 and 2024-07-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Braun PLC' AND order_date BETWEEN '2024-06-07' AND '2024-07-25' + +Natural Query: List all products of Davis Ltd ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Davis Ltd' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Washington, Hernandez and Richard. +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 = 'Washington, Hernandez and Richard' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Allen-Larsen between 2024-08-25 and 2024-08-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Allen-Larsen' AND order_date BETWEEN '2024-08-25' AND '2024-08-26' + +Natural Query: What are the top 6 products by customers for Poole Ltd all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Poole Ltd' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: What is the total sales for each country in Logan, Villanueva and Clark? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Logan, Villanueva and Clark' GROUP BY country ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Lee-Stewart between 2024-06-28 and 2024-08-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lee-Stewart' AND order_date BETWEEN '2024-06-28' AND '2024-08-10' + +Natural Query: List all customers and their total order value for Thomas-Aguilar. +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-Aguilar' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Lewis, Higgins 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 = 'Lewis, Higgins and Bailey' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Friedman, Gallagher and Downs. +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 = 'Friedman, Gallagher and Downs' GROUP BY c.customer_id + +Natural Query: Show me all products in the week category with a price over $132.66. +SQL Query: SELECT * FROM products WHERE category = 'week' AND price > 132.66 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Anderson, Cummings and Koch 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 = 'Anderson, Cummings and Koch' + 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 Ayers, Lewis and Barrett between 2023-12-17 and 2024-03-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ayers, Lewis and Barrett' AND order_date BETWEEN '2023-12-17' AND '2024-03-28' + +Natural Query: How many orders were placed for Thomas, Berger and Mejia between 2024-06-06 and 2024-09-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thomas, Berger and Mejia' AND order_date BETWEEN '2024-06-06' AND '2024-09-14' + +Natural Query: Show me all products in the real category with a price over $494.66. +SQL Query: SELECT * FROM products WHERE category = 'real' AND price > 494.66 + +Natural Query: List all products of Kerr-Hayes ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Kerr-Hayes' ORDER BY price ASC + +Natural Query: What are the top 5 products by customers for Smith, Smith and Newton last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Smith, Smith and Newton' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: Show me all products in the bit category with a price over $605.83. +SQL Query: SELECT * FROM products WHERE category = 'bit' AND price > 605.83 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Thornton, Clark and Jimenez 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 = 'Thornton, Clark and Jimenez' + 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 Nguyen 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 = 'Nguyen Ltd' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Pacheco 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 = 'Pacheco and Sons' GROUP BY c.customer_id + +Natural Query: List all products of Snyder, Nelson and Graham ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Snyder, Nelson and Graham' ORDER BY stock_quantity ASC + +Natural Query: What are the top 10 products by customers for Smith, Hamilton and Davis all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Smith, Hamilton and Davis' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10 + +Natural Query: What is the maximum price of all products for Moore, Anderson and Brown? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Moore, Anderson and Brown' + +Natural Query: List all customers and their total order value for Miller, Burnett and Jimenez. +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, Burnett and Jimenez' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each country in Carter-Powell? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Carter-Powell' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the total quantity of all products for Smith Inc? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Smith Inc' + +Natural Query: What is the total profit for each supplier in Williams, Powell and Wilson? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Williams, Powell and Wilson' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the total quantity for each country in Horton Group? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Horton Group' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Davis, Higgins and 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 = 'Davis, Higgins and Green' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Welch, Moore 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 = 'Welch, Moore 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 6 products by customers for Smith PLC this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Smith PLC' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: List all products of Long and Sons ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Long and Sons' ORDER BY price DESC + +Natural Query: How many orders were placed for Miller-Young between 2024-01-03 and 2024-04-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Miller-Young' AND order_date BETWEEN '2024-01-03' AND '2024-04-24' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lloyd 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 = 'Lloyd 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 Peters-Baird between 2024-01-04 and 2024-08-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Peters-Baird' AND order_date BETWEEN '2024-01-04' AND '2024-08-10' + +Natural Query: List all customers and their total order value for Leach, Warner and Gonzales. +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 = 'Leach, Warner and Gonzales' GROUP BY c.customer_id + +Natural Query: List all products of Howard and Sons ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Howard and Sons' ORDER BY stock_quantity DESC + +Natural Query: Show me all products in the local category with a price over $692.61. +SQL Query: SELECT * FROM products WHERE category = 'local' AND price > 692.61 + +Natural Query: What is the total sales for each supplier in Martinez-Cantu? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Martinez-Cantu' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Strickland, Duncan and Strong 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 = 'Strickland, Duncan and Strong' + 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 Stevens-Hamilton? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Stevens-Hamilton' + +Natural Query: Show me all products in the sort category with a price over $69.9. +SQL Query: SELECT * FROM products WHERE category = 'sort' AND price > 69.9 + +Natural Query: Show me all products in the reach category with a price over $633.6. +SQL Query: SELECT * FROM products WHERE category = 'reach' AND price > 633.6 + +Natural Query: Show me all products in the not category with a price over $430.16. +SQL Query: SELECT * FROM products WHERE category = 'not' AND price > 430.16 + +Natural Query: List all customers and their total order value for Brown, Porter 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, Porter and Hampton' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Bell-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 = 'Bell-Perez' + 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 Collins, Brady and Mcmahon between 2024-06-20 and 2024-08-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Collins, Brady and Mcmahon' AND order_date BETWEEN '2024-06-20' AND '2024-08-25' + +Natural Query: Show me all products in the civil category with a price over $452.51. +SQL Query: SELECT * FROM products WHERE category = 'civil' AND price > 452.51 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cole-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 = 'Cole-Castillo' + 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 Clark 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 = 'Clark 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 George Ltd ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'George Ltd' ORDER BY stock_quantity ASC + +Natural Query: List all products of Davidson-Wright ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Davidson-Wright' ORDER BY stock_quantity DESC + +Natural Query: What are the top 6 products by sales for Howe, Morris and Phillips this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Howe, Morris and Phillips' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: What are the top 5 products by revenue for Mclaughlin, Mason and Waters all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Mclaughlin, Mason and Waters' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: Show me all products in the own category with a price over $348.96. +SQL Query: SELECT * FROM products WHERE category = 'own' AND price > 348.96 + +Natural Query: List all customers and their total order value for Clark-Cuevas. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Clark-Cuevas' GROUP BY c.customer_id + +Natural Query: What is the total price of all products for Black, Bush and Smith? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Black, Bush and Smith' + +Natural Query: List all products of Bass, Flowers and Green ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Bass, Flowers and Green' ORDER BY rating DESC + +Natural Query: How many orders were placed for Payne-Soto between 2024-02-19 and 2024-06-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Payne-Soto' AND order_date BETWEEN '2024-02-19' AND '2024-06-26' + +Natural Query: What are the top 3 products by revenue for Bryan Group this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Bryan Group' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: List all products of Carlson Inc ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Carlson Inc' ORDER BY price ASC + +Natural Query: Show me all products in the black category with a price over $535.57. +SQL Query: SELECT * FROM products WHERE category = 'black' AND price > 535.57 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Brooks, Cline 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 = 'Brooks, Cline 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: List all products of Woods, Mann and Ibarra ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Woods, Mann and Ibarra' ORDER BY price DESC + +Natural Query: Show me all products in the true category with a price over $283.68. +SQL Query: SELECT * FROM products WHERE category = 'true' AND price > 283.68 + +Natural Query: Show me all products in the himself category with a price over $81.12. +SQL Query: SELECT * FROM products WHERE category = 'himself' AND price > 81.12 + +Natural Query: List all products of Cisneros LLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Cisneros LLC' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lee 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 = 'Lee 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 6 products by orders for Bennett Ltd all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Bennett Ltd' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: Show me all products in the politics category with a price over $691.1. +SQL Query: SELECT * FROM products WHERE category = 'politics' AND price > 691.1 + +Natural Query: List all customers and their total order value for Gutierrez-Wyatt. +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 = 'Gutierrez-Wyatt' GROUP BY c.customer_id + +Natural Query: What are the top 7 products by sales for Smith, Khan and Tran all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Smith, Khan and Tran' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: How many orders were placed for Wilkerson and Sons between 2024-01-12 and 2024-04-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wilkerson and Sons' AND order_date BETWEEN '2024-01-12' AND '2024-04-21' + +Natural Query: List all customers and their total order value for Chan-Keith. +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 = 'Chan-Keith' GROUP BY c.customer_id + +Natural Query: What are the top 3 products by sales for Garcia PLC this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Garcia PLC' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: How many orders were placed for Becker Inc between 2023-12-21 and 2024-05-02? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Becker Inc' AND order_date BETWEEN '2023-12-21' AND '2024-05-02' + +Natural Query: List all customers and their total order value for Liu-Benitez. +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 = 'Liu-Benitez' GROUP BY c.customer_id + +Natural Query: What is the total sales for each category in Stephenson, Joseph and Burgess? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Stephenson, Joseph and Burgess' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 8 products by sales for Singh-Morales all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Singh-Morales' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: List all customers and their total order value for Villanueva, Craig and Payne. +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 = 'Villanueva, Craig and Payne' GROUP BY c.customer_id + +Natural Query: What are the top 5 products by revenue for Johnson Inc this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Johnson Inc' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: What is the total sales for each category in Weiss Ltd? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Weiss Ltd' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the maximum quantity of all products for Perez and Sons? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Perez and Sons' + +Natural Query: List all customers and their total order value for Davila-Schroeder. +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 = 'Davila-Schroeder' GROUP BY c.customer_id + +Natural Query: Show me all products in the material category with a price over $21.06. +SQL Query: SELECT * FROM products WHERE category = 'material' AND price > 21.06 + +Natural Query: What is the total quantity for each supplier in Nash and Sons? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Nash and Sons' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 7 products by orders for Johnson-Cooper this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Johnson-Cooper' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: Show me all products in the movement category with a price over $618.62. +SQL Query: SELECT * FROM products WHERE category = 'movement' AND price > 618.62 + +Natural Query: Show me all products in the cost category with a price over $356.78. +SQL Query: SELECT * FROM products WHERE category = 'cost' AND price > 356.78 + +Natural Query: How many orders were placed for Petty LLC between 2024-02-08 and 2024-07-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Petty LLC' AND order_date BETWEEN '2024-02-08' AND '2024-07-07' + +Natural Query: What is the minimum quantity of all products for Martin-Martinez? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Martin-Martinez' + +Natural Query: List all products of Jackson-Walter ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jackson-Walter' ORDER BY rating ASC + +Natural Query: List all products of Harrison, Mitchell and Barrera ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Harrison, Mitchell and Barrera' ORDER BY stock_quantity DESC + +Natural Query: What are the top 10 products by customers for Burns, Russell and Miller this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Burns, Russell and Miller' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10 + +Natural Query: What are the top 5 products by revenue for Taylor Ltd last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Taylor Ltd' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: What is the minimum rating of all products for Bautista, Church and Williamson? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Bautista, Church and Williamson' + +Natural Query: List all customers and their total order value for Wells, Hunt and Evans. +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 = 'Wells, Hunt and Evans' GROUP BY c.customer_id + +Natural Query: List all products of Ryan Group ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ryan Group' ORDER BY stock_quantity DESC + +Natural Query: What is the total sales for each category in Thompson LLC? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Thompson LLC' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Kaiser, Moore 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 = 'Kaiser, Moore 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 3 products by sales for Atkinson, Simpson and Harris last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Atkinson, Simpson and Harris' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: What are the top 7 products by revenue for Walker-Harrison this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Walker-Harrison' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: What is the total quantity for each supplier in Ellis-Bennett? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Ellis-Bennett' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Kelly, Henderson and Scott 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 = 'Kelly, Henderson and Scott' + 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 Johnson, Harris and Richmond ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Johnson, Harris and Richmond' ORDER BY price DESC + +Natural Query: What is the maximum rating of all products for King Group? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'King Group' + +Natural Query: What are the top 6 products by orders for Wilson, Jones and Kaufman this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Wilson, Jones and Kaufman' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: How many orders were placed for Taylor-Garcia between 2023-09-24 and 2024-03-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Taylor-Garcia' AND order_date BETWEEN '2023-09-24' AND '2024-03-22' + +Natural Query: List all products of Pierce, Warren and Cole ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Pierce, Warren and Cole' ORDER BY price ASC + +Natural Query: Show me all products in the word category with a price over $802.94. +SQL Query: SELECT * FROM products WHERE category = 'word' AND price > 802.94 + +Natural Query: List all products of Schmidt, Frank and Hansen ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Schmidt, Frank and Hansen' ORDER BY stock_quantity DESC + +Natural Query: List all products of Obrien, Koch and Franco ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Obrien, Koch and Franco' ORDER BY stock_quantity ASC + +Natural Query: List all products of Kelley Inc ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Kelley Inc' ORDER BY rating DESC + +Natural Query: List all products of Vincent, Anderson and Brown ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Vincent, Anderson and Brown' ORDER BY price DESC + +Natural Query: How many orders were placed for Foster Group between 2023-09-30 and 2023-10-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Foster Group' AND order_date BETWEEN '2023-09-30' AND '2023-10-01' + +Natural Query: What is the average quantity of all products for Lopez-Abbott? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Lopez-Abbott' + +Natural Query: What is the maximum price of all products for Zimmerman, Ramirez and Jones? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Zimmerman, Ramirez and Jones' + +Natural Query: List all customers and their total order value for Smith 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 = 'Smith PLC' GROUP BY c.customer_id + +Natural Query: What is the total sales for each category in Gonzales and Sons? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Gonzales and Sons' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Phillips 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 = 'Phillips and Sons' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Rosario, Willis and Copeland between 2024-08-21 and 2024-09-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Rosario, Willis and Copeland' AND order_date BETWEEN '2024-08-21' AND '2024-09-13' + +Natural Query: List all customers and their total order value for Flores, Villarreal and Mason. +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 = 'Flores, Villarreal and Mason' GROUP BY c.customer_id + +Natural Query: Show me all products in the option category with a price over $151.7. +SQL Query: SELECT * FROM products WHERE category = 'option' AND price > 151.7 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Ramos 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 = 'Ramos 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 Hart-Harris 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 = 'Hart-Harris' + 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 Ballard-Wood ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ballard-Wood' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gomez 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 = 'Gomez Ltd' + 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 Hernandez LLC ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hernandez LLC' ORDER BY price ASC + +Natural Query: What are the top 7 products by sales for Green, Hernandez and Lambert this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Green, Hernandez and Lambert' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: List all customers and their total order value for Morrison-Wilson. +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 = 'Morrison-Wilson' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Wilson 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 = 'Wilson Ltd' + 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 full category with a price over $896.94. +SQL Query: SELECT * FROM products WHERE category = 'full' AND price > 896.94 + +Natural Query: What is the total price of all products for Moreno-Donovan? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Moreno-Donovan' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lewis, Patel and Dennis 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, Patel and Dennis' + 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 room category with a price over $914.52. +SQL Query: SELECT * FROM products WHERE category = 'room' AND price > 914.52 + +Natural Query: What is the total price of all products for Johnson-Davis? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Johnson-Davis' + +Natural Query: What is the average price of all products for Torres, Delacruz and Alexander? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Torres, Delacruz and Alexander' + +Natural Query: Show me all products in the support category with a price over $251.16. +SQL Query: SELECT * FROM products WHERE category = 'support' AND price > 251.16 + +Natural Query: How many orders were placed for Thomas, Taylor and Herman between 2023-11-08 and 2024-06-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thomas, Taylor and Herman' AND order_date BETWEEN '2023-11-08' AND '2024-06-28' + +Natural Query: How many orders were placed for Hoffman-Patterson between 2023-10-15 and 2024-06-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hoffman-Patterson' AND order_date BETWEEN '2023-10-15' AND '2024-06-21' + +Natural Query: What are the top 5 products by customers for Williams, Johnson and Guzman this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Williams, Johnson and Guzman' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: Show me all products in the skin category with a price over $969.33. +SQL Query: SELECT * FROM products WHERE category = 'skin' AND price > 969.33 + +Natural Query: Show me all products in the institution category with a price over $322.23. +SQL Query: SELECT * FROM products WHERE category = 'institution' AND price > 322.23 + +Natural Query: How many orders were placed for Miller Group between 2024-07-20 and 2024-07-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Miller Group' AND order_date BETWEEN '2024-07-20' AND '2024-07-23' + +Natural Query: How many orders were placed for Blackwell Group between 2023-10-01 and 2024-02-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Blackwell Group' AND order_date BETWEEN '2023-10-01' AND '2024-02-28' + +Natural Query: What is the total profit for each category in Griffin, Bryant and Hamilton? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Griffin, Bryant and Hamilton' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the total quantity for each country in Edwards, Stewart and Larsen? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Edwards, Stewart and Larsen' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the maximum price of all products for Jones, Beck and Melendez? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Jones, Beck and Melendez' + +Natural Query: Show me all products in the talk category with a price over $162.79. +SQL Query: SELECT * FROM products WHERE category = 'talk' AND price > 162.79 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Coleman-Phillips 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 = 'Coleman-Phillips' + 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 Hickman, Larson and Weaver? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Hickman, Larson and Weaver' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Goodwin-Stewart 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 = 'Goodwin-Stewart' + 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 Hart-Baldwin 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 = 'Hart-Baldwin' + 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 West, Thomas and Rodriguez ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'West, Thomas and Rodriguez' ORDER BY price DESC + +Natural Query: What is the total price of all products for Price-Parks? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Price-Parks' + +Natural Query: What is the total sales for each country in Stephens Ltd? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Stephens Ltd' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lopez, Nguyen and 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 = 'Lopez, Nguyen and Brooks' + 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 customers for Jones Ltd all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Jones Ltd' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10 + +Natural Query: List all products of Gordon-Hopkins ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gordon-Hopkins' ORDER BY rating ASC + +Natural Query: How many orders were placed for Wilson-Wilson between 2024-01-11 and 2024-01-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wilson-Wilson' AND order_date BETWEEN '2024-01-11' AND '2024-01-22' + +Natural Query: How many orders were placed for Hill and Sons between 2024-02-09 and 2024-07-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hill and Sons' AND order_date BETWEEN '2024-02-09' AND '2024-07-09' + +Natural Query: What are the top 10 products by orders for Schneider, Smith and Taylor this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Schneider, Smith and Taylor' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: What are the top 6 products by sales for Hurley, Cook and Rodriguez this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hurley, Cook and Rodriguez' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: What are the top 7 products by sales for Hodge PLC all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hodge PLC' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: List all products of Watkins, Williams and Bell ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Watkins, Williams and Bell' ORDER BY price ASC + +Natural Query: Show me all products in the close category with a price over $756.11. +SQL Query: SELECT * FROM products WHERE category = 'close' AND price > 756.11 + +Natural Query: What is the maximum quantity of all products for Wilson, Huffman and Stout? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Wilson, Huffman and Stout' + +Natural Query: Show me all products in the inside category with a price over $621.59. +SQL Query: SELECT * FROM products WHERE category = 'inside' AND price > 621.59 + +Natural Query: What is the total quantity for each category in Stephens, Harrington and Conner? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Stephens, Harrington and Conner' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: Show me all products in the third category with a price over $222.06. +SQL Query: SELECT * FROM products WHERE category = 'third' AND price > 222.06 + +Natural Query: List all products of Franco-Mccall ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Franco-Mccall' ORDER BY price DESC + +Natural Query: List all products of Ali-Miller ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ali-Miller' ORDER BY rating ASC + +Natural Query: Show me all products in the car category with a price over $845.77. +SQL Query: SELECT * FROM products WHERE category = 'car' AND price > 845.77 + +Natural Query: What is the total quantity for each country in Padilla-Potter? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Padilla-Potter' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the total profit for each supplier in Martin, Hale and Bell? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Martin, Hale and Bell' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: Show me all products in the main category with a price over $547.62. +SQL Query: SELECT * FROM products WHERE category = 'main' AND price > 547.62 + +Natural Query: How many orders were placed for Chang-Sanchez between 2023-10-01 and 2023-12-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Chang-Sanchez' AND order_date BETWEEN '2023-10-01' AND '2023-12-15' + +Natural Query: Show me all products in the those category with a price over $880.14. +SQL Query: SELECT * FROM products WHERE category = 'those' AND price > 880.14 + +Natural Query: What is the total quantity of all products for Perez-Gillespie? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Perez-Gillespie' + +Natural Query: List all products of Long, Turner and Richards ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Long, Turner and Richards' ORDER BY price DESC + +Natural Query: What is the total price of all products for Johnson-Christian? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Johnson-Christian' + +Natural Query: What is the total sales for each category in Delgado LLC? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Delgado LLC' GROUP BY category ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Barnes PLC between 2024-03-17 and 2024-08-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Barnes PLC' AND order_date BETWEEN '2024-03-17' AND '2024-08-29' + +Natural Query: What are the top 6 products by revenue for Mccall Inc all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Mccall Inc' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: What is the minimum quantity of all products for Mitchell, Cunningham and Hartman? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Mitchell, Cunningham and Hartman' + +Natural Query: What is the total sales for each country in Robinson, Parks and Wright? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Robinson, Parks and Wright' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 3 products by sales for Villegas and Sons this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Villegas and Sons' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: How many orders were placed for Cervantes, Nguyen and Jefferson between 2024-06-24 and 2024-07-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cervantes, Nguyen and Jefferson' AND order_date BETWEEN '2024-06-24' AND '2024-07-15' + +Natural Query: How many orders were placed for Cortez Group between 2024-06-22 and 2024-09-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cortez Group' AND order_date BETWEEN '2024-06-22' AND '2024-09-11' + +Natural Query: List all products of Acosta Group ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Acosta Group' ORDER BY rating ASC + +Natural Query: How many orders were placed for Carey, Mayer and Castillo between 2024-04-23 and 2024-08-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Carey, Mayer and Castillo' AND order_date BETWEEN '2024-04-23' AND '2024-08-24' + +Natural Query: What is the total sales for each country in Reyes Ltd? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Reyes Ltd' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 7 products by orders for Vargas Group all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Vargas Group' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: List all customers and their total order value for Carter-Mitchell. +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-Mitchell' GROUP BY c.customer_id + +Natural Query: What are the top 3 products by customers for Sanchez PLC this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Sanchez PLC' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: List all customers and their total order value for Russo 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 = 'Russo LLC' GROUP BY c.customer_id + +Natural Query: What are the top 8 products by revenue for Parker Inc this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Parker Inc' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: What is the total quantity for each supplier in Brown, Johnson and Parker? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Brown, Johnson and Parker' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Peters 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 = 'Peters 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 Rojas and Sons between 2024-07-17 and 2024-08-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Rojas and Sons' AND order_date BETWEEN '2024-07-17' AND '2024-08-08' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gibson-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 = 'Gibson-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 is the maximum price of all products for Holt LLC? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Holt LLC' + +Natural Query: How many orders were placed for Dyer-Powers between 2024-03-28 and 2024-08-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Dyer-Powers' AND order_date BETWEEN '2024-03-28' AND '2024-08-23' + +Natural Query: Show me all products in the manager category with a price over $937.49. +SQL Query: SELECT * FROM products WHERE category = 'manager' AND price > 937.49 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Harrington-Hart 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 = 'Harrington-Hart' + 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 Peterson-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 = 'Peterson-Reed' GROUP BY c.customer_id + +Natural Query: What are the top 7 products by sales for Nguyen-Blair this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Nguyen-Blair' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: How many orders were placed for Fisher, Chen and Carrillo between 2023-12-24 and 2024-08-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Fisher, Chen and Carrillo' AND order_date BETWEEN '2023-12-24' AND '2024-08-08' + +Natural Query: What is the average quantity of all products for Blair, Hull and Allen? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Blair, Hull and Allen' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Clark 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 = 'Clark 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 maximum quantity of all products for Gonzalez Ltd? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Gonzalez Ltd' + +Natural Query: List all customers and their total order value for Contreras, Jones and Massey. +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 = 'Contreras, Jones and Massey' GROUP BY c.customer_id + +Natural Query: What is the total rating of all products for Robinson-Thompson? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Robinson-Thompson' + +Natural Query: What are the top 9 products by revenue for Elliott-Terry this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Elliott-Terry' 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 Silva 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 = 'Silva 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 7 products by customers for Marquez LLC this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Marquez LLC' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: List all customers and their total order value for Tucker 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 = 'Tucker Ltd' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Terrell-Thompson. +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 = 'Terrell-Thompson' GROUP BY c.customer_id + +Natural Query: What is the maximum rating of all products for Bailey Inc? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Bailey Inc' + +Natural Query: How many orders were placed for Johnson LLC between 2024-05-12 and 2024-05-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Johnson LLC' AND order_date BETWEEN '2024-05-12' AND '2024-05-14' + +Natural Query: What is the minimum price of all products for Stewart, Thomas and Montgomery? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Stewart, Thomas and Montgomery' + +Natural Query: What is the total quantity for each supplier in Ortiz-Smith? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Ortiz-Smith' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Wilkinson, Smith and Mack between 2023-11-15 and 2023-12-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wilkinson, Smith and Mack' AND order_date BETWEEN '2023-11-15' AND '2023-12-13' + +Natural Query: List all products of Morrison-Ho ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Morrison-Ho' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Garcia, Maynard and Patton. +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, Maynard and Patton' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Greene-Macias 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-Macias' + 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 Willis, Villegas and Proctor ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Willis, Villegas and Proctor' ORDER BY rating ASC + +Natural Query: List all products of Reeves-Taylor ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Reeves-Taylor' ORDER BY rating ASC + +Natural Query: What are the top 4 products by customers for Nixon-Munoz this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Nixon-Munoz' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: What is the minimum price of all products for White, Kline and Cruz? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'White, Kline and Cruz' + +Natural Query: What is the minimum quantity of all products for Johnson, Elliott and Herrera? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Johnson, Elliott and Herrera' + +Natural Query: List all products of Green, Quinn and Peterson ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Green, Quinn and Peterson' ORDER BY price ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Myers, Walker and Matthews 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 = 'Myers, Walker and Matthews' + 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 country in Schmidt, Villa and Jones? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Schmidt, Villa and Jones' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Armstrong 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 = 'Armstrong 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 category in Campbell PLC? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Campbell PLC' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the average price of all products for Hamilton-Perez? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Hamilton-Perez' + +Natural Query: List all products of Collins, Bailey and Banks ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Collins, Bailey and Banks' ORDER BY rating ASC + +Natural Query: What are the top 8 products by sales for Gonzalez-Richardson this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Gonzalez-Richardson' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: What is the minimum rating of all products for Larsen-Phillips? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Larsen-Phillips' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Perry 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 = 'Perry 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 Vazquez Ltd between 2024-01-27 and 2024-05-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Vazquez Ltd' AND order_date BETWEEN '2024-01-27' AND '2024-05-27' + +Natural Query: What is the minimum quantity of all products for Goodwin-Decker? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Goodwin-Decker' + +Natural Query: How many orders were placed for Hall Group between 2024-09-10 and 2024-09-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hall Group' AND order_date BETWEEN '2024-09-10' AND '2024-09-10' + +Natural Query: How many orders were placed for Miller and Sons between 2023-10-31 and 2024-03-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Miller and Sons' AND order_date BETWEEN '2023-10-31' AND '2024-03-25' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Green, Patterson and 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 = 'Green, Patterson and Johnson' + 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 Perry LLC? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Perry LLC' + +Natural Query: How many orders were placed for Gonzales-Lewis between 2024-01-03 and 2024-05-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gonzales-Lewis' AND order_date BETWEEN '2024-01-03' AND '2024-05-13' + +Natural Query: What is the total profit for each country in Sullivan Group? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Sullivan Group' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Ramsey, Martinez 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 = 'Ramsey, Martinez and Hampton' GROUP BY c.customer_id + +Natural Query: List all products of Gibbs PLC ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gibbs PLC' ORDER BY rating ASC + +Natural Query: List all products of Johnston Group ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Johnston Group' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Gallagher-Flynn. +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 = 'Gallagher-Flynn' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Wright, Erickson and Bass between 2024-06-02 and 2024-07-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wright, Erickson and Bass' AND order_date BETWEEN '2024-06-02' AND '2024-07-30' + +Natural Query: List all products of Mcdonald Inc ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mcdonald Inc' ORDER BY stock_quantity ASC + +Natural Query: List all products of Bailey and Sons ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Bailey and Sons' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Reid-Hahn 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-Hahn' + 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 Kelly LLC? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Kelly LLC' GROUP BY category ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Middleton-Harris between 2024-08-24 and 2024-09-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Middleton-Harris' AND order_date BETWEEN '2024-08-24' AND '2024-09-11' + +Natural Query: Show me all products in the physical category with a price over $645.16. +SQL Query: SELECT * FROM products WHERE category = 'physical' AND price > 645.16 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hernandez-Franco 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-Franco' + 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 Barrera-Stevens 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-Stevens' + 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 Powell 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 = 'Powell LLC' GROUP BY c.customer_id + +Natural Query: What is the minimum price of all products for Conway-Chavez? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Conway-Chavez' + +Natural Query: Show me all products in the fly category with a price over $738.11. +SQL Query: SELECT * FROM products WHERE category = 'fly' AND price > 738.11 + +Natural Query: Show me all products in the hospital category with a price over $248.13. +SQL Query: SELECT * FROM products WHERE category = 'hospital' AND price > 248.13 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cameron, Jacobs and Price 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 = 'Cameron, Jacobs and Price' + 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 Clarke, Carroll and Baker between 2024-03-15 and 2024-09-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Clarke, Carroll and Baker' AND order_date BETWEEN '2024-03-15' AND '2024-09-03' + +Natural Query: What are the top 5 products by orders for Smith Group this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Smith Group' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: Show me all products in the represent category with a price over $63.38. +SQL Query: SELECT * FROM products WHERE category = 'represent' AND price > 63.38 + +Natural Query: List all customers and their total order value for Lawrence 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 = 'Lawrence Group' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Smith, Smith and Wells between 2024-02-01 and 2024-08-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Smith, Smith and Wells' AND order_date BETWEEN '2024-02-01' AND '2024-08-25' + +Natural Query: List all customers and their total order value for Chavez, Wang and Hernandez. +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 = 'Chavez, Wang and Hernandez' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Mathis-Becker between 2024-07-18 and 2024-07-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mathis-Becker' AND order_date BETWEEN '2024-07-18' AND '2024-07-23' + +Natural Query: List all customers and their total order value for Adams-Olson. +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-Olson' GROUP BY c.customer_id + +Natural Query: List all products of Harvey-Little ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Harvey-Little' ORDER BY stock_quantity ASC + +Natural Query: What is the total rating of all products for Hogan Ltd? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Hogan Ltd' + +Natural Query: What is the total profit for each country in Ritter and Sons? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Ritter and Sons' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Gonzalez, Garcia and Gonzalez. +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 = 'Gonzalez, Garcia and Gonzalez' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Grant 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 = 'Grant PLC' + 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 strategy category with a price over $251.77. +SQL Query: SELECT * FROM products WHERE category = 'strategy' AND price > 251.77 + +Natural Query: Show me all products in the including category with a price over $138.02. +SQL Query: SELECT * FROM products WHERE category = 'including' AND price > 138.02 + +Natural Query: Show me all products in the they category with a price over $21.92. +SQL Query: SELECT * FROM products WHERE category = 'they' AND price > 21.92 + +Natural Query: What is the maximum rating of all products for Shelton, Collier and Dean? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Shelton, Collier and Dean' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Sawyer, Aguirre and Wong 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 = 'Sawyer, Aguirre and Wong' + 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 Williams, Perez and Peck. +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, Perez and Peck' GROUP BY c.customer_id + +Natural Query: What is the total sales for each country in Pham-Graves? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Pham-Graves' GROUP BY country ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Warren LLC between 2024-08-19 and 2024-08-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Warren LLC' AND order_date BETWEEN '2024-08-19' AND '2024-08-29' + +Natural Query: How many orders were placed for Ross-Ellison between 2024-04-12 and 2024-08-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ross-Ellison' AND order_date BETWEEN '2024-04-12' AND '2024-08-29' + +Natural Query: List all products of Lopez LLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lopez LLC' ORDER BY stock_quantity DESC + +Natural Query: What are the top 9 products by sales for Dunn LLC this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Dunn LLC' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: List all customers and their total order value for Diaz, Cox and 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 = 'Diaz, Cox and Jones' GROUP BY c.customer_id + +Natural Query: What is the total price of all products for Hubbard-Valdez? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Hubbard-Valdez' + +Natural Query: How many orders were placed for Williams, Davis and Davis between 2024-06-21 and 2024-08-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Williams, Davis and Davis' AND order_date BETWEEN '2024-06-21' AND '2024-08-08' + +Natural Query: Show me all products in the inside category with a price over $39.51. +SQL Query: SELECT * FROM products WHERE category = 'inside' AND price > 39.51 + +Natural Query: List all products of Evans, Downs and Farrell ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Evans, Downs and Farrell' ORDER BY rating DESC + +Natural Query: What is the total quantity for each supplier in Garcia, Riddle and Norman? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Garcia, Riddle and Norman' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Jacobs-Wilson 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 = 'Jacobs-Wilson' + 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 Thompson-Blackwell 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-Blackwell' + 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 thus category with a price over $520.11. +SQL Query: SELECT * FROM products WHERE category = 'thus' AND price > 520.11 + +Natural Query: List all products of Lin, Sanchez and Morgan ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lin, Sanchez and Morgan' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Flores-Washington 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 = 'Flores-Washington' + 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 Murillo LLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Murillo LLC' ORDER BY rating DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Baker, Jones and Cross 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, Jones and Cross' + 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 Miller, Henderson and Riggs? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Miller, Henderson and Riggs' + +Natural Query: How many orders were placed for Davis-Cox between 2023-12-05 and 2024-03-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Davis-Cox' AND order_date BETWEEN '2023-12-05' AND '2024-03-19' + +Natural Query: How many orders were placed for Johnson LLC between 2023-12-11 and 2024-02-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Johnson LLC' AND order_date BETWEEN '2023-12-11' AND '2024-02-24' + +Natural Query: How many orders were placed for Turner LLC between 2024-01-29 and 2024-08-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Turner LLC' AND order_date BETWEEN '2024-01-29' AND '2024-08-12' + +Natural Query: List all customers and their total order value for Davidson 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 = 'Davidson and Sons' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Anderson 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 = 'Anderson PLC' GROUP BY c.customer_id + +Natural Query: Show me all products in the free category with a price over $468.46. +SQL Query: SELECT * FROM products WHERE category = 'free' AND price > 468.46 + +Natural Query: What is the total profit for each country in Chaney Ltd? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Chaney Ltd' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Walker 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 = 'Walker PLC' GROUP BY c.customer_id + +Natural Query: List all products of Mcdaniel Group ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mcdaniel Group' ORDER BY rating ASC + +Natural Query: Show me all products in the southern category with a price over $538.13. +SQL Query: SELECT * FROM products WHERE category = 'southern' AND price > 538.13 + +Natural Query: List all products of Adams Inc ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Adams Inc' ORDER BY stock_quantity ASC + +Natural Query: How many orders were placed for Moore LLC between 2024-04-17 and 2024-04-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Moore LLC' AND order_date BETWEEN '2024-04-17' AND '2024-04-20' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Henry-Gibson 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 = 'Henry-Gibson' + 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 Rodriguez, Moore and Moss. +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 = 'Rodriguez, Moore and Moss' GROUP BY c.customer_id + +Natural Query: List all products of Montgomery, Mckay and Brooks ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Montgomery, Mckay and Brooks' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Johnson-White. +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-White' GROUP BY c.customer_id + +Natural Query: List all products of Henry-Carson ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Henry-Carson' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Harris, Norton and Price. +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, Norton and Price' GROUP BY c.customer_id + +Natural Query: List all products of Roberts-Hammond ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Roberts-Hammond' ORDER BY stock_quantity DESC + +Natural Query: What are the top 8 products by revenue for Hill-Olson this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Hill-Olson' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: What is the maximum quantity of all products for Hicks-Lowe? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Hicks-Lowe' + +Natural Query: What is the average rating of all products for Douglas, Caldwell and Williams? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Douglas, Caldwell and Williams' + +Natural Query: List all products of Johnson-Rios ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Johnson-Rios' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Martinez-Chase 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-Chase' + 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 rating of all products for Gordon, Huff and Baldwin? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Gordon, Huff and Baldwin' + +Natural Query: Show me all products in the this category with a price over $893.54. +SQL Query: SELECT * FROM products WHERE category = 'this' AND price > 893.54 + +Natural Query: List all customers and their total order value for Pratt 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 = 'Pratt Group' GROUP BY c.customer_id + +Natural Query: Show me all products in the particularly category with a price over $216.78. +SQL Query: SELECT * FROM products WHERE category = 'particularly' AND price > 216.78 + +Natural Query: How many orders were placed for Arellano PLC between 2024-06-19 and 2024-07-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Arellano PLC' AND order_date BETWEEN '2024-06-19' AND '2024-07-20' + +Natural Query: What is the average quantity of all products for Valentine, Jensen and Moore? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Valentine, Jensen and Moore' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Villanueva, Davis and Kelly 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 = 'Villanueva, Davis and Kelly' + 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 sales for Williams Ltd this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Williams Ltd' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: How many orders were placed for Stephens-Clark between 2023-12-24 and 2024-04-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Stephens-Clark' AND order_date BETWEEN '2023-12-24' AND '2024-04-11' + +Natural Query: List all customers and their total order value for Young-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 = 'Young-James' GROUP BY c.customer_id + +Natural Query: List all products of Reynolds-Perry ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Reynolds-Perry' ORDER BY stock_quantity ASC + +Natural Query: List all products of Allen, Chen and Byrd ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Allen, Chen and Byrd' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Dawson-Weeks. +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 = 'Dawson-Weeks' GROUP BY c.customer_id + +Natural Query: What is the average rating of all products for Walls, Johnson and Beck? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Walls, Johnson and Beck' + +Natural Query: List all customers and their total order value for Olson-Clark. +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 = 'Olson-Clark' GROUP BY c.customer_id + +Natural Query: What is the total price of all products for Lee, Andrews and Lowery? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Lee, Andrews and Lowery' + +Natural Query: What is the total price of all products for Johnson-Soto? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Johnson-Soto' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Johnson, Jenkins and Rodgers 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, Jenkins and Rodgers' + 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 Padilla, Reed and Simon? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Padilla, Reed and Simon' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Williams-Doyle 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-Doyle' + 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 suffer category with a price over $687.54. +SQL Query: SELECT * FROM products WHERE category = 'suffer' AND price > 687.54 + +Natural Query: What are the top 9 products by customers for Thomas Inc all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Thomas Inc' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: List all products of Briggs, Gould and Horton ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Briggs, Gould and Horton' ORDER BY price DESC + +Natural Query: Show me all products in the south category with a price over $328.75. +SQL Query: SELECT * FROM products WHERE category = 'south' AND price > 328.75 + +Natural Query: List all products of Keller, Lynch and Klein ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Keller, Lynch and Klein' ORDER BY price ASC + +Natural Query: Show me all products in the Democrat category with a price over $983.0. +SQL Query: SELECT * FROM products WHERE category = 'Democrat' AND price > 983.0 + +Natural Query: What are the top 5 products by customers for Miller, Hardy and Jones all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Miller, Hardy and Jones' AND period = 'all time' 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 Watkins 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 = 'Watkins Ltd' + 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 Morgan-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 = 'Morgan-Moore' GROUP BY c.customer_id + +Natural Query: What are the top 4 products by revenue for Orr-Barnes all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Orr-Barnes' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: List all products of Patton-Krueger ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Patton-Krueger' ORDER BY price DESC + +Natural Query: List all products of Robertson Inc ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Robertson Inc' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Dillon, Daugherty and Alexander. +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 = 'Dillon, Daugherty and Alexander' GROUP BY c.customer_id + +Natural Query: List all products of Russell and Sons ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Russell and Sons' ORDER BY price DESC + +Natural Query: Show me all products in the officer category with a price over $279.41. +SQL Query: SELECT * FROM products WHERE category = 'officer' AND price > 279.41 + +Natural Query: What is the total quantity of all products for Wallace, Hobbs and Sharp? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Wallace, Hobbs and Sharp' + +Natural Query: List all customers and their total order value for Merritt-Snow. +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 = 'Merritt-Snow' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Romero-Moore between 2023-12-11 and 2024-07-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Romero-Moore' AND order_date BETWEEN '2023-12-11' AND '2024-07-04' + +Natural Query: Show me all products in the site category with a price over $19.22. +SQL Query: SELECT * FROM products WHERE category = 'site' AND price > 19.22 + +Natural Query: What is the total profit for each category in Valenzuela, Olsen and Brown? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Valenzuela, Olsen and Brown' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Neal-Horne 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 = 'Neal-Horne' + 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 Turner, Griffin and Bishop between 2023-12-08 and 2024-02-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Turner, Griffin and Bishop' AND order_date BETWEEN '2023-12-08' AND '2024-02-04' + +Natural Query: How many orders were placed for Cooper Group between 2024-05-23 and 2024-06-02? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cooper Group' AND order_date BETWEEN '2024-05-23' AND '2024-06-02' + +Natural Query: How many orders were placed for Cruz-Smith between 2024-05-22 and 2024-08-02? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cruz-Smith' AND order_date BETWEEN '2024-05-22' AND '2024-08-02' + +Natural Query: How many orders were placed for Rodriguez, Jackson and Hernandez between 2024-08-29 and 2024-09-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Rodriguez, Jackson and Hernandez' AND order_date BETWEEN '2024-08-29' AND '2024-09-12' + +Natural Query: List all products of Kirby PLC ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Kirby PLC' ORDER BY stock_quantity ASC + +Natural Query: How many orders were placed for Hill Group between 2024-01-17 and 2024-08-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hill Group' AND order_date BETWEEN '2024-01-17' AND '2024-08-29' + +Natural Query: What are the top 9 products by revenue for Butler, Frazier and Hickman last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Butler, Frazier and Hickman' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: List all customers and their total order value for Buckley 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 = 'Buckley Group' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Guerrero 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 = 'Guerrero Group' GROUP BY c.customer_id + +Natural Query: Show me all products in the easy category with a price over $234.54. +SQL Query: SELECT * FROM products WHERE category = 'easy' AND price > 234.54 + +Natural Query: Show me all products in the opportunity category with a price over $287.64. +SQL Query: SELECT * FROM products WHERE category = 'opportunity' AND price > 287.64 + +Natural Query: What are the top 6 products by orders for Johnson, Hughes and Conner this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Johnson, Hughes and Conner' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: What are the top 10 products by orders for Watkins and Sons this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Watkins and Sons' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: How many orders were placed for Rivera, Neal and Castillo between 2024-01-02 and 2024-03-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Rivera, Neal and Castillo' AND order_date BETWEEN '2024-01-02' AND '2024-03-14' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Martinez-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 = 'Martinez-Mckinney' + 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 six category with a price over $408.65. +SQL Query: SELECT * FROM products WHERE category = 'six' AND price > 408.65 + +Natural Query: How many orders were placed for Simmons-Miller between 2024-09-03 and 2024-09-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Simmons-Miller' AND order_date BETWEEN '2024-09-03' AND '2024-09-15' + +Natural Query: What are the top 4 products by revenue for Finley, Carlson and Molina this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Finley, Carlson and Molina' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: How many orders were placed for Nelson-Clark between 2024-09-10 and 2024-09-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Nelson-Clark' AND order_date BETWEEN '2024-09-10' AND '2024-09-14' + +Natural Query: List all products of Cox-Perkins ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Cox-Perkins' ORDER BY price ASC + +Natural Query: Show me all products in the before category with a price over $555.12. +SQL Query: SELECT * FROM products WHERE category = 'before' AND price > 555.12 + +Natural Query: What is the total price of all products for Harris, Murphy and Hansen? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Harris, Murphy and Hansen' + +Natural Query: What is the minimum rating of all products for Hudson PLC? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Hudson PLC' + +Natural Query: How many orders were placed for Bowen, Allen and Hayes between 2024-06-10 and 2024-09-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bowen, Allen and Hayes' AND order_date BETWEEN '2024-06-10' AND '2024-09-03' + +Natural Query: What are the top 5 products by orders for Hammond, Edwards and Wagner last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Hammond, Edwards and Wagner' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: What are the top 8 products by orders for Cervantes, Ferguson and Palmer this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Cervantes, Ferguson and Palmer' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Thompson, Perry and Winters 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, Perry and Winters' + 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 Peters, Johnson and Powell. +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 = 'Peters, Johnson and Powell' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Rhodes-Burnett between 2024-08-21 and 2024-09-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Rhodes-Burnett' AND order_date BETWEEN '2024-08-21' AND '2024-09-07' + +Natural Query: How many orders were placed for Barnes-Martin between 2024-07-14 and 2024-08-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Barnes-Martin' AND order_date BETWEEN '2024-07-14' AND '2024-08-13' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Burgess 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 = 'Burgess 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 Valdez-Chambers 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 = 'Valdez-Chambers' + 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 recent category with a price over $491.02. +SQL Query: SELECT * FROM products WHERE category = 'recent' AND price > 491.02 + +Natural Query: List all customers and their total order value for Young-Vasquez. +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-Vasquez' GROUP BY c.customer_id + +Natural Query: What is the total profit for each supplier in Wilkerson and Sons? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Wilkerson and Sons' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Kirby 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 = 'Kirby 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 5 categories by sales for customers aged 25-35 in Best 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 = 'Best 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 Jones Inc between 2024-08-25 and 2024-09-02? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jones Inc' AND order_date BETWEEN '2024-08-25' AND '2024-09-02' + +Natural Query: List all customers and their total order value for Franklin, Turner and Kim. +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 = 'Franklin, Turner and Kim' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Huber LLC between 2024-09-04 and 2024-09-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Huber LLC' AND order_date BETWEEN '2024-09-04' AND '2024-09-13' + +Natural Query: How many orders were placed for Alexander-Johnston between 2024-04-03 and 2024-08-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Alexander-Johnston' AND order_date BETWEEN '2024-04-03' AND '2024-08-06' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Johnson, Gilbert and 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 = 'Johnson, Gilbert and 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 average price of all products for Mendoza Inc? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Mendoza Inc' + +Natural Query: What is the maximum quantity of all products for Gomez, Duffy and Gay? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Gomez, Duffy and Gay' + +Natural Query: List all products of Weiss, Wu and Jennings ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Weiss, Wu and Jennings' ORDER BY price DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Parsons 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 = 'Parsons 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 development category with a price over $510.21. +SQL Query: SELECT * FROM products WHERE category = 'development' AND price > 510.21 + +Natural Query: Show me all products in the stuff category with a price over $368.45. +SQL Query: SELECT * FROM products WHERE category = 'stuff' AND price > 368.45 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Carr 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 = 'Carr 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 5 categories by sales for customers aged 25-35 in Jones, Wu and Washington 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, Wu and Washington' + 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 Mercado-Kemp between 2023-11-08 and 2023-12-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mercado-Kemp' AND order_date BETWEEN '2023-11-08' AND '2023-12-25' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Garcia, Farley 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 = 'Garcia, Farley 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: What are the top 5 categories by sales for customers aged 25-35 in Doyle 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 = 'Doyle 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 are the top 5 categories by sales for customers aged 25-35 in Powers 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 = 'Powers 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 Mr category with a price over $501.65. +SQL Query: SELECT * FROM products WHERE category = 'Mr' AND price > 501.65 + +Natural Query: What are the top 5 products by sales for Martinez, Holmes and Dennis this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Martinez, Holmes and Dennis' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: List all products of West-Sullivan ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'West-Sullivan' ORDER BY price ASC + +Natural Query: Show me all products in the act category with a price over $324.71. +SQL Query: SELECT * FROM products WHERE category = 'act' AND price > 324.71 + +Natural Query: List all products of Smith, Burns and Schroeder ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith, Burns and Schroeder' ORDER BY stock_quantity DESC + +Natural Query: List all products of Walker, Reyes and Curtis ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Walker, Reyes and Curtis' ORDER BY rating DESC + +Natural Query: What is the minimum quantity of all products for Le LLC? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Le LLC' + +Natural Query: How many orders were placed for Phillips, Hess and Ramirez between 2023-10-09 and 2024-01-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Phillips, Hess and Ramirez' AND order_date BETWEEN '2023-10-09' AND '2024-01-25' + +Natural Query: How many orders were placed for Garcia LLC between 2023-09-27 and 2024-01-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Garcia LLC' AND order_date BETWEEN '2023-09-27' AND '2024-01-24' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Knight, Brown and Warren 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 = 'Knight, Brown and Warren' + 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 revenue for Martin Ltd last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Martin Ltd' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: What is the total profit for each country in Townsend and Sons? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Townsend and Sons' GROUP BY country ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Fields-Austin between 2024-08-11 and 2024-08-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Fields-Austin' AND order_date BETWEEN '2024-08-11' AND '2024-08-23' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Braun 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 = 'Braun 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 Brown 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 = 'Brown Group' GROUP BY c.customer_id + +Natural Query: Show me all products in the everybody category with a price over $537.35. +SQL Query: SELECT * FROM products WHERE category = 'everybody' AND price > 537.35 + +Natural Query: List all products of Caldwell PLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Caldwell PLC' ORDER BY stock_quantity DESC + +Natural Query: How many orders were placed for Dickerson-Wright between 2023-10-24 and 2024-01-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Dickerson-Wright' AND order_date BETWEEN '2023-10-24' AND '2024-01-07' + +Natural Query: What is the maximum quantity of all products for Huff, Carney and Porter? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Huff, Carney and Porter' + +Natural Query: List all customers and their total order value for Kirk 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 = 'Kirk Inc' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Dominguez, Smith and Cunningham. +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 = 'Dominguez, Smith and Cunningham' GROUP BY c.customer_id + +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: Show me all products in the security category with a price over $784.4. +SQL Query: SELECT * FROM products WHERE category = 'security' AND price > 784.4 + +Natural Query: List all customers and their total order value for Jackson 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 = 'Jackson Ltd' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each supplier in Price-White? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Price-White' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Meyer 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 = 'Meyer 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 is the total quantity for each supplier in Robinson and Sons? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Robinson and Sons' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Peterson-Jackson between 2024-03-07 and 2024-08-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Peterson-Jackson' AND order_date BETWEEN '2024-03-07' AND '2024-08-04' + +Natural Query: Show me all products in the sea category with a price over $690.66. +SQL Query: SELECT * FROM products WHERE category = 'sea' AND price > 690.66 + +Natural Query: What is the total profit for each category in Vega Inc? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Vega Inc' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the total profit for each country in Moore, Olsen and Gray? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Moore, Olsen and Gray' GROUP BY country ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Walters Group between 2024-03-31 and 2024-07-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Walters Group' AND order_date BETWEEN '2024-03-31' AND '2024-07-01' + +Natural Query: List all customers and their total order value for Brown, Bond and Sandoval. +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, Bond and Sandoval' GROUP BY c.customer_id + +Natural Query: List all products of Donaldson Ltd ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Donaldson Ltd' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Whitaker 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 = 'Whitaker 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 customers and their total order value for Buckley, Shields and Sullivan. +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 = 'Buckley, Shields and Sullivan' GROUP BY c.customer_id + +Natural Query: Show me all products in the best category with a price over $453.17. +SQL Query: SELECT * FROM products WHERE category = 'best' AND price > 453.17 + +Natural Query: How many orders were placed for Henson-Morgan between 2023-12-16 and 2024-02-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Henson-Morgan' AND order_date BETWEEN '2023-12-16' AND '2024-02-04' + +Natural Query: How many orders were placed for Perez, Patrick and Robles between 2024-06-07 and 2024-06-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Perez, Patrick and Robles' AND order_date BETWEEN '2024-06-07' AND '2024-06-24' + +Natural Query: List all products of Taylor, Knight and Nelson ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Taylor, Knight and Nelson' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Kelly 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 = 'Kelly 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: Show me all products in the part category with a price over $981.78. +SQL Query: SELECT * FROM products WHERE category = 'part' AND price > 981.78 + +Natural Query: List all products of Smith Inc ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith Inc' ORDER BY stock_quantity ASC + +Natural Query: What is the total rating of all products for Hansen PLC? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Hansen PLC' + +Natural Query: List all products of Simmons Group ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Simmons Group' ORDER BY rating DESC + +Natural Query: What is the maximum rating of all products for Bates-Hunter? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Bates-Hunter' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Davis 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 = 'Davis 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 Bell-Cunningham between 2024-04-14 and 2024-09-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bell-Cunningham' AND order_date BETWEEN '2024-04-14' AND '2024-09-01' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Scott 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 = 'Scott PLC' + 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 Pace Inc between 2024-05-25 and 2024-07-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Pace Inc' AND order_date BETWEEN '2024-05-25' AND '2024-07-16' + +Natural Query: How many orders were placed for Ferguson, Osborne and Bailey between 2024-07-15 and 2024-09-02? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ferguson, Osborne and Bailey' AND order_date BETWEEN '2024-07-15' AND '2024-09-02' + +Natural Query: How many orders were placed for Gonzalez-Rodriguez between 2024-02-04 and 2024-08-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gonzalez-Rodriguez' AND order_date BETWEEN '2024-02-04' AND '2024-08-26' + +Natural Query: Show me all products in the today category with a price over $60.58. +SQL Query: SELECT * FROM products WHERE category = 'today' AND price > 60.58 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Li-Jenkins 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 = 'Li-Jenkins' + 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 including category with a price over $703.99. +SQL Query: SELECT * FROM products WHERE category = 'including' AND price > 703.99 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Allen, Osborne and Hays 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, Osborne and Hays' + 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 customers for Perez-Castillo this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Perez-Castillo' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: Show me all products in the carry category with a price over $346.67. +SQL Query: SELECT * FROM products WHERE category = 'carry' AND price > 346.67 + +Natural Query: What are the top 9 products by orders for Carr, Martin and Robinson this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Carr, Martin and Robinson' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: What is the minimum price of all products for Medina-Barnes? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Medina-Barnes' + +Natural Query: What is the total price of all products for Morris, Hernandez and Haney? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Morris, Hernandez and Haney' + +Natural Query: List all products of Colon, Phillips and Thornton ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Colon, Phillips and Thornton' ORDER BY rating ASC + +Natural Query: What is the total profit for each supplier in Campbell, Patel and Rollins? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Campbell, Patel and Rollins' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the average price of all products for Horton Group? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Horton Group' + +Natural Query: What are the top 4 products by customers for Osborn Inc this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Osborn Inc' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Harrison-Jenkins 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 = 'Harrison-Jenkins' + 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 Miller, Ingram and Cooke 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 = 'Miller, Ingram and Cooke' + 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 Pearson-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 = 'Pearson-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 is the total rating of all products for Burgess Ltd? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Burgess Ltd' + +Natural Query: Show me all products in the sure category with a price over $702.33. +SQL Query: SELECT * FROM products WHERE category = 'sure' AND price > 702.33 + +Natural Query: What is the average quantity of all products for Crawford-Cardenas? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Crawford-Cardenas' + +Natural Query: How many orders were placed for Luna, Phillips and Hines between 2023-12-25 and 2024-01-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Luna, Phillips and Hines' AND order_date BETWEEN '2023-12-25' AND '2024-01-15' + +Natural Query: What is the total quantity for each category in Mcdaniel, Ramirez and Garcia? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Mcdaniel, Ramirez and Garcia' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all products of Anderson and Sons ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Anderson and Sons' ORDER BY price DESC + +Natural Query: What is the minimum price of all products for Alexander Inc? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Alexander Inc' + +Natural Query: How many orders were placed for Mitchell, Manning and Ayers between 2024-05-21 and 2024-09-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mitchell, Manning and Ayers' AND order_date BETWEEN '2024-05-21' AND '2024-09-09' + +Natural Query: List all products of Martin-Ortega ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Martin-Ortega' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Wilkinson-Huffman. +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 = 'Wilkinson-Huffman' GROUP BY c.customer_id + +Natural Query: What is the average rating of all products for Phillips LLC? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Phillips LLC' + +Natural Query: What is the maximum price of all products for Taylor LLC? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Taylor LLC' + +Natural Query: List all customers and their total order value for Miller, Bennett and Wood. +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, Bennett and Wood' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mathews-Livingston 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 = 'Mathews-Livingston' + 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 Cook, Watkins and Soto ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Cook, Watkins and Soto' ORDER BY stock_quantity DESC + +Natural Query: How many orders were placed for Wright-Davis between 2024-02-17 and 2024-06-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wright-Davis' AND order_date BETWEEN '2024-02-17' AND '2024-06-18' + +Natural Query: List all customers and their total order value for Arroyo-Hill. +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 = 'Arroyo-Hill' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Collins-Villa between 2024-06-22 and 2024-08-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Collins-Villa' AND order_date BETWEEN '2024-06-22' AND '2024-08-17' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Schultz-Kennedy 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 = 'Schultz-Kennedy' + 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 Banks, Deleon and 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 = 'Banks, Deleon and Young' + 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 Lee, Hebert and Franklin ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lee, Hebert and Franklin' ORDER BY rating ASC + +Natural Query: List all products of Brady, Simmons and Sweeney ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Brady, Simmons and Sweeney' ORDER BY stock_quantity ASC + +Natural Query: What is the total profit for each supplier in Martinez-Duarte? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Martinez-Duarte' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 4 products by sales for Johnson-Ross this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Johnson-Ross' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: Show me all products in the reality category with a price over $567.49. +SQL Query: SELECT * FROM products WHERE category = 'reality' AND price > 567.49 + +Natural Query: What is the total profit for each country in Wilson-Jackson? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Wilson-Jackson' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Shah 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 = 'Shah 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 Cook, Stevens and Mcgrath ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Cook, Stevens and Mcgrath' ORDER BY rating ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Brown, Scott and Estrada 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, Scott and Estrada' + 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 Davis-Johnston between 2024-03-25 and 2024-05-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Davis-Johnston' AND order_date BETWEEN '2024-03-25' AND '2024-05-30' + +Natural Query: What are the top 5 products by sales for Herman, Wilson and Arnold all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Herman, Wilson and Arnold' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: List all products of Jensen LLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jensen LLC' ORDER BY rating DESC + +Natural Query: List all customers and their total order value for James 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 = 'James Group' GROUP BY c.customer_id + +Natural Query: What is the average quantity of all products for Anderson Ltd? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Anderson Ltd' + +Natural Query: Show me all products in the child category with a price over $293.1. +SQL Query: SELECT * FROM products WHERE category = 'child' AND price > 293.1 + +Natural Query: List all customers and their total order value for Mejia, Rivas and Oliver. +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 = 'Mejia, Rivas and Oliver' GROUP BY c.customer_id + +Natural Query: Show me all products in the attorney category with a price over $842.81. +SQL Query: SELECT * FROM products WHERE category = 'attorney' AND price > 842.81 + +Natural Query: List all customers and their total order value for Hall 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 = 'Hall LLC' GROUP BY c.customer_id + +Natural Query: What is the total sales for each category in Conner-Fitzgerald? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Conner-Fitzgerald' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the total quantity for each country in Hunt, Mitchell and Burton? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Hunt, Mitchell and Burton' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Johnson, Blanchard and Chambers between 2023-10-31 and 2023-11-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Johnson, Blanchard and Chambers' AND order_date BETWEEN '2023-10-31' AND '2023-11-15' + +Natural Query: List all products of Moran LLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Moran LLC' ORDER BY rating DESC + +Natural Query: How many orders were placed for Gonzalez, Cain and Hoffman between 2024-02-17 and 2024-07-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gonzalez, Cain and Hoffman' AND order_date BETWEEN '2024-02-17' AND '2024-07-14' + +Natural Query: Show me all products in the accept category with a price over $576.06. +SQL Query: SELECT * FROM products WHERE category = 'accept' AND price > 576.06 + +Natural Query: How many orders were placed for Thomas and Sons between 2023-09-22 and 2024-07-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thomas and Sons' AND order_date BETWEEN '2023-09-22' AND '2024-07-27' + +Natural Query: List all products of Wood, Serrano and Fuller ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wood, Serrano and Fuller' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Miller 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 = 'Miller PLC' + 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 Calderon, Chang and Johnson between 2024-07-28 and 2024-09-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Calderon, Chang and Johnson' AND order_date BETWEEN '2024-07-28' AND '2024-09-16' + +Natural Query: What is the maximum rating of all products for Perez, Mclean and Simon? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Perez, Mclean and Simon' + +Natural Query: List all products of Welch LLC ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Welch LLC' ORDER BY price DESC + +Natural Query: Show me all products in the team category with a price over $285.65. +SQL Query: SELECT * FROM products WHERE category = 'team' AND price > 285.65 + +Natural Query: List all customers and their total order value for Rodriguez-Roth. +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 = 'Rodriguez-Roth' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Johnson, Lee and Rodriguez between 2023-11-20 and 2024-05-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Johnson, Lee and Rodriguez' AND order_date BETWEEN '2023-11-20' AND '2024-05-17' + +Natural Query: What is the minimum price of all products for Campbell, Garcia and Reese? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Campbell, Garcia and Reese' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Brown, Gonzalez and Robinson 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, Gonzalez and Robinson' + 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 door category with a price over $989.4. +SQL Query: SELECT * FROM products WHERE category = 'door' AND price > 989.4 + +Natural Query: What are the top 10 products by revenue for Adams Ltd this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Adams Ltd' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: What are the top 4 products by orders for Schwartz Inc all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Schwartz Inc' 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 White Ltd? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'White Ltd' + +Natural Query: What are the top 6 products by orders for Lopez-White this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Lopez-White' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: How many orders were placed for Gilbert, Pineda and Burns between 2024-02-15 and 2024-02-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gilbert, Pineda and Burns' AND order_date BETWEEN '2024-02-15' AND '2024-02-15' + +Natural Query: What are the top 10 products by orders for Wheeler, Fleming and Davis this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Wheeler, Fleming and Davis' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: Show me all products in the behind category with a price over $834.57. +SQL Query: SELECT * FROM products WHERE category = 'behind' AND price > 834.57 + +Natural Query: List all customers and their total order value for Scott, Smith and Miller. +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 = 'Scott, Smith and Miller' GROUP BY c.customer_id + +Natural Query: Show me all products in the young category with a price over $679.89. +SQL Query: SELECT * FROM products WHERE category = 'young' AND price > 679.89 + +Natural Query: What are the top 5 products by sales for Hernandez, Dennis and Graham this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hernandez, Dennis and Graham' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: What is the total quantity for each country in Lewis, Mayer and Trevino? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Lewis, Mayer and Trevino' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the total sales for each category in Hughes-Figueroa? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hughes-Figueroa' GROUP BY category ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Thomas-Townsend between 2024-06-09 and 2024-06-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thomas-Townsend' AND order_date BETWEEN '2024-06-09' AND '2024-06-16' + +Natural Query: What are the top 9 products by sales for Davis, Dixon and Arnold all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Davis, Dixon and Arnold' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: What are the top 7 products by customers for Salinas-Holloway this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Salinas-Holloway' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: What are the top 6 products by customers for Watson, Blackwell and Adkins all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Watson, Blackwell and Adkins' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: List all products of Woodward-Freeman ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Woodward-Freeman' ORDER BY price DESC + +Natural Query: What is the total quantity for each supplier in Bennett, Vasquez and Lowe? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Bennett, Vasquez and Lowe' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the total quantity of all products for Green Inc? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Green Inc' + +Natural Query: What is the total profit for each supplier in Lewis, Smith and Gibbs? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Lewis, Smith and Gibbs' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Martin, Jimenez and Andrews between 2024-05-30 and 2024-07-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Martin, Jimenez and Andrews' AND order_date BETWEEN '2024-05-30' AND '2024-07-12' + +Natural Query: What is the total sales for each category in Carson Group? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Carson Group' GROUP BY category ORDER BY total_sales DESC + +Natural Query: Show me all products in the couple category with a price over $295.87. +SQL Query: SELECT * FROM products WHERE category = 'couple' AND price > 295.87 + +Natural Query: What are the top 4 products by orders for Romero-Zimmerman this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Romero-Zimmerman' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: What is the total quantity of all products for Allen-Murray? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Allen-Murray' + +Natural Query: How many orders were placed for Parker, Bruce and Smith between 2024-07-17 and 2024-07-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Parker, Bruce and Smith' AND order_date BETWEEN '2024-07-17' AND '2024-07-28' + +Natural Query: What are the top 3 products by sales for Burns Inc all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Burns Inc' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: List all customers and their total order value for Medina 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 = 'Medina PLC' GROUP BY c.customer_id + +Natural Query: What are the top 10 products by orders for Smith-Gordon all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Smith-Gordon' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: List all customers and their total order value for Maxwell, Jackson and Franklin. +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 = 'Maxwell, Jackson and Franklin' GROUP BY c.customer_id + +Natural Query: Show me all products in the behavior category with a price over $42.36. +SQL Query: SELECT * FROM products WHERE category = 'behavior' AND price > 42.36 + +Natural Query: List all customers and their total order value for Carlson 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 = 'Carlson Inc' GROUP BY c.customer_id + +Natural Query: What is the maximum quantity of all products for Zimmerman PLC? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Zimmerman PLC' + +Natural Query: What is the total profit for each supplier in Gordon, Powers and Dixon? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Gordon, Powers and Dixon' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Conrad 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 = 'Conrad PLC' GROUP BY c.customer_id + +Natural Query: What is the minimum price of all products for Clayton, Barnes and Green? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Clayton, Barnes and Green' + +Natural Query: List all products of Clark Ltd ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Clark Ltd' ORDER BY rating ASC + +Natural Query: What is the minimum price of all products for Peters-Robinson? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Peters-Robinson' + +Natural Query: Show me all products in the discussion category with a price over $992.76. +SQL Query: SELECT * FROM products WHERE category = 'discussion' AND price > 992.76 + +Natural Query: What is the total profit for each category in French, Johnson and Williams? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'French, Johnson and Williams' GROUP BY category ORDER BY total_profit DESC + +Natural Query: List all products of Mitchell, Anderson and Greene ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mitchell, Anderson and Greene' ORDER BY rating ASC + +Natural Query: Show me all products in the check category with a price over $935.62. +SQL Query: SELECT * FROM products WHERE category = 'check' AND price > 935.62 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gardner-Holt 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 = 'Gardner-Holt' + 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 Hill, Rogers and Lee between 2024-04-25 and 2024-07-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hill, Rogers and Lee' AND order_date BETWEEN '2024-04-25' AND '2024-07-28' + +Natural Query: List all products of Long Inc ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Long Inc' ORDER BY price DESC + +Natural Query: How many orders were placed for Wolfe, Scott and Miller between 2023-09-25 and 2023-12-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wolfe, Scott and Miller' AND order_date BETWEEN '2023-09-25' AND '2023-12-12' + +Natural Query: Show me all products in the bit category with a price over $704.48. +SQL Query: SELECT * FROM products WHERE category = 'bit' AND price > 704.48 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Potts, Miller and Hawkins 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 = 'Potts, Miller and Hawkins' + 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 Garrett, Herman and Bradshaw ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Garrett, Herman and Bradshaw' ORDER BY stock_quantity DESC + +Natural Query: Show me all products in the us category with a price over $576.76. +SQL Query: SELECT * FROM products WHERE category = 'us' AND price > 576.76 + +Natural Query: List all customers and their total order value for Perez, Fitzgerald and Ballard. +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, Fitzgerald and Ballard' GROUP BY c.customer_id + +Natural Query: List all products of Rocha Group ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rocha Group' ORDER BY stock_quantity ASC + +Natural Query: What is the minimum price of all products for Barr-Berry? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Barr-Berry' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Swanson, Koch and Tyler 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 = 'Swanson, Koch and Tyler' + 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 Jordan, Fleming and Hoffman between 2024-03-26 and 2024-08-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jordan, Fleming and Hoffman' AND order_date BETWEEN '2024-03-26' AND '2024-08-08' + +Natural Query: How many orders were placed for Dodson Inc between 2023-12-11 and 2024-08-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Dodson Inc' AND order_date BETWEEN '2023-12-11' AND '2024-08-12' + +Natural Query: List all products of Jones, Allen and Parsons ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jones, Allen and Parsons' ORDER BY price ASC + +Natural Query: How many orders were placed for Ramirez LLC between 2023-11-01 and 2023-11-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ramirez LLC' AND order_date BETWEEN '2023-11-01' AND '2023-11-11' + +Natural Query: List all products of Mccarthy, Walker and Compton ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mccarthy, Walker and Compton' ORDER BY stock_quantity DESC + +Natural Query: What are the top 9 products by orders for Parsons-Johnson all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Parsons-Johnson' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: List all products of Mills, Anderson and Perez ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mills, Anderson and Perez' ORDER BY rating ASC + +Natural Query: How many orders were placed for Lamb-Adams between 2023-12-22 and 2024-07-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lamb-Adams' AND order_date BETWEEN '2023-12-22' AND '2024-07-13' + +Natural Query: List all products of Rodriguez, Schwartz and Newton ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rodriguez, Schwartz and Newton' ORDER BY stock_quantity DESC + +Natural Query: List all products of Foster LLC ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Foster LLC' ORDER BY price ASC + +Natural Query: Show me all products in the foot category with a price over $91.72. +SQL Query: SELECT * FROM products WHERE category = 'foot' AND price > 91.72 + +Natural Query: List all customers and their total order value for Brown 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 = 'Brown Inc' GROUP BY c.customer_id + +Natural Query: Show me all products in the appear category with a price over $403.98. +SQL Query: SELECT * FROM products WHERE category = 'appear' AND price > 403.98 + +Natural Query: What is the total quantity for each supplier in Crawford, Gonzalez and Lynch? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Crawford, Gonzalez and Lynch' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 5 products by customers for Johnson, James and Bailey all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Johnson, James and Bailey' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: Show me all products in the process category with a price over $197.95. +SQL Query: SELECT * FROM products WHERE category = 'process' AND price > 197.95 + +Natural Query: What are the top 4 products by customers for Lewis LLC last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Lewis LLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: What is the total sales for each country in Moore Inc? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Moore Inc' GROUP BY country ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Weber, Hansen and Long between 2023-12-16 and 2024-02-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Weber, Hansen and Long' AND order_date BETWEEN '2023-12-16' AND '2024-02-17' + +Natural Query: List all customers and their total order value for Tate 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 = 'Tate Ltd' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Gillespie 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 = 'Gillespie and Sons' GROUP BY c.customer_id + +Natural Query: Show me all products in the strong category with a price over $646.19. +SQL Query: SELECT * FROM products WHERE category = 'strong' AND price > 646.19 + +Natural Query: List all products of Johnson Group ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Johnson Group' ORDER BY stock_quantity DESC + +Natural Query: What is the total rating of all products for Fernandez, Ortiz and Schmidt? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Fernandez, Ortiz and Schmidt' + +Natural Query: List all customers and their total order value for Wilson 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 = 'Wilson LLC' GROUP BY c.customer_id + +Natural Query: What are the top 5 products by revenue for Anderson, Owens and Bishop this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Anderson, Owens and Bishop' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: List all customers and their total order value for Gonzalez 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 = 'Gonzalez Ltd' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Martin-Ayala between 2023-10-08 and 2024-08-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Martin-Ayala' AND order_date BETWEEN '2023-10-08' AND '2024-08-22' + +Natural Query: What is the total quantity for each supplier in Taylor PLC? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Taylor PLC' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: Show me all products in the whatever category with a price over $263.81. +SQL Query: SELECT * FROM products WHERE category = 'whatever' AND price > 263.81 + +Natural Query: What is the minimum rating of all products for Ramsey-Wang? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Ramsey-Wang' + +Natural Query: List all customers and their total order value for Flores 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 = 'Flores and Sons' GROUP BY c.customer_id + +Natural Query: What is the total profit for each country in Hendrix Inc? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Hendrix Inc' GROUP BY country ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Brown, Murphy and Palmer between 2023-12-31 and 2024-05-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Brown, Murphy and Palmer' AND order_date BETWEEN '2023-12-31' AND '2024-05-29' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Maxwell 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 = 'Maxwell 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 8 products by orders for Payne-Sherman last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Payne-Sherman' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: List all customers and their total order value for Beltran-Paul. +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 = 'Beltran-Paul' GROUP BY c.customer_id + +Natural Query: What is the total sales for each supplier in Wheeler, Jones and Franklin? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Wheeler, Jones and Franklin' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Jones, Doyle 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 = 'Jones, Doyle 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 Dorsey PLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Dorsey PLC' ORDER BY rating DESC + +Natural Query: What is the total rating of all products for Hughes Group? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Hughes Group' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Blake-Wong 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 = 'Blake-Wong' + 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 Aguilar, Hughes and Ponce between 2024-07-07 and 2024-08-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Aguilar, Hughes and Ponce' AND order_date BETWEEN '2024-07-07' AND '2024-08-23' + +Natural Query: List all products of Shields-Anderson ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Shields-Anderson' ORDER BY price DESC + +Natural Query: What are the top 4 products by customers for Rodriguez Inc this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Rodriguez Inc' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: List all customers and their total order value for Grant-Miller. +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 = 'Grant-Miller' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Williams Ltd between 2024-06-14 and 2024-07-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Williams Ltd' AND order_date BETWEEN '2024-06-14' AND '2024-07-16' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Duncan 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 = 'Duncan 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 Fields 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 = 'Fields 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 is the total quantity for each category in Roach-Holmes? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Roach-Holmes' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the total rating of all products for Brown-Williams? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Brown-Williams' + +Natural Query: What are the top 4 products by customers for Ellis-Miller all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Ellis-Miller' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: What are the top 5 products by customers for Perkins Group this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Perkins Group' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: What is the average rating of all products for Chandler-Gay? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Chandler-Gay' + +Natural Query: How many orders were placed for Williams, Cox and Potter between 2023-11-22 and 2024-06-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Williams, Cox and Potter' AND order_date BETWEEN '2023-11-22' AND '2024-06-30' + +Natural Query: Show me all products in the join category with a price over $378.05. +SQL Query: SELECT * FROM products WHERE category = 'join' AND price > 378.05 + +Natural Query: List all products of Maynard Ltd ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Maynard Ltd' ORDER BY price DESC + +Natural Query: List all products of Aguilar LLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Aguilar LLC' ORDER BY rating DESC + +Natural Query: How many orders were placed for Oconnell, Cervantes and Reynolds between 2024-08-22 and 2024-09-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Oconnell, Cervantes and Reynolds' AND order_date BETWEEN '2024-08-22' AND '2024-09-12' + +Natural Query: How many orders were placed for Hall PLC between 2024-01-25 and 2024-03-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hall PLC' AND order_date BETWEEN '2024-01-25' AND '2024-03-15' + +Natural Query: What is the total sales for each country in Webb, Stafford and Davis? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Webb, Stafford and Davis' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the total price of all products for Martin, Green and Smith? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Martin, Green and Smith' + +Natural Query: What is the average quantity of all products for Martinez-Collins? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Martinez-Collins' + +Natural Query: List all products of Padilla-Rush ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Padilla-Rush' ORDER BY rating DESC + +Natural Query: List all products of Decker Group ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Decker Group' ORDER BY rating DESC + +Natural Query: How many orders were placed for Ruiz-Harding between 2023-09-26 and 2024-02-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ruiz-Harding' AND order_date BETWEEN '2023-09-26' AND '2024-02-22' + +Natural Query: Show me all products in the keep category with a price over $730.21. +SQL Query: SELECT * FROM products WHERE category = 'keep' AND price > 730.21 + +Natural Query: What is the minimum quantity of all products for Brown, West and Henry? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Brown, West and Henry' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Wang-Erickson 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 = 'Wang-Erickson' + 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 Benson, Hamilton and Macdonald between 2023-12-28 and 2024-07-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Benson, Hamilton and Macdonald' AND order_date BETWEEN '2023-12-28' AND '2024-07-24' + +Natural Query: List all products of Wilson PLC ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wilson PLC' ORDER BY stock_quantity ASC + +Natural Query: What is the total price of all products for Baker-Wilson? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Baker-Wilson' + +Natural Query: Show me all products in the physical category with a price over $124.5. +SQL Query: SELECT * FROM products WHERE category = 'physical' AND price > 124.5 + +Natural Query: What are the top 10 products by sales for Montgomery, Cook and Perez this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Montgomery, Cook and Perez' 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 Fowler, Henry and Roberts 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 = 'Fowler, Henry and Roberts' + 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 region category with a price over $730.88. +SQL Query: SELECT * FROM products WHERE category = 'region' AND price > 730.88 + +Natural Query: What are the top 6 products by orders for James-Carson all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'James-Carson' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: List all products of Santos-Castillo ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Santos-Castillo' ORDER BY stock_quantity DESC + +Natural Query: Show me all products in the usually category with a price over $261.94. +SQL Query: SELECT * FROM products WHERE category = 'usually' AND price > 261.94 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gallegos, Larsen and Murray 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 = 'Gallegos, Larsen and Murray' + 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 Odonnell Inc? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Odonnell Inc' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the total profit for each category in Gonzalez, Rodriguez and Soto? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Gonzalez, Rodriguez and Soto' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the maximum quantity of all products for Hubbard-Stout? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Hubbard-Stout' + +Natural Query: List all products of Conner-Watts ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Conner-Watts' ORDER BY rating ASC + +Natural Query: How many orders were placed for Davis-Austin between 2023-10-04 and 2024-07-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Davis-Austin' AND order_date BETWEEN '2023-10-04' AND '2024-07-20' + +Natural Query: How many orders were placed for Kent, Duncan and Jones between 2024-01-15 and 2024-06-02? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Kent, Duncan and Jones' AND order_date BETWEEN '2024-01-15' AND '2024-06-02' + +Natural Query: Show me all products in the western category with a price over $409.1. +SQL Query: SELECT * FROM products WHERE category = 'western' AND price > 409.1 + +Natural Query: List all products of Marsh, Ruiz and Hernandez ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Marsh, Ruiz and Hernandez' ORDER BY rating DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Long 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 = 'Long 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 10 products by revenue for Elliott, Jones and Gonzalez this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Elliott, Jones and Gonzalez' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: What is the maximum quantity of all products for Walsh-Smith? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Walsh-Smith' + +Natural Query: What are the top 7 products by sales for Lee, Sanchez and Baker this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Lee, Sanchez and Baker' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: List all customers and their total order value for Hampton 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 = 'Hampton Inc' GROUP BY c.customer_id + +Natural Query: List all products of Gutierrez, Patton and Snyder ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gutierrez, Patton and Snyder' ORDER BY rating DESC + +Natural Query: What is the maximum price of all products for Phillips-Garrison? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Phillips-Garrison' + +Natural Query: List all customers and their total order value for Martin 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 = 'Martin Inc' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Gonzalez-Martin between 2024-07-06 and 2024-08-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gonzalez-Martin' AND order_date BETWEEN '2024-07-06' AND '2024-08-22' + +Natural Query: What are the top 5 products by sales for Rodriguez Group last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Rodriguez Group' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: How many orders were placed for Simpson Group between 2024-02-10 and 2024-08-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Simpson Group' AND order_date BETWEEN '2024-02-10' AND '2024-08-24' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Reed 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 = 'Reed PLC' + 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 Rojas Ltd between 2024-07-12 and 2024-08-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Rojas Ltd' AND order_date BETWEEN '2024-07-12' AND '2024-08-11' + +Natural Query: Show me all products in the stuff category with a price over $465.95. +SQL Query: SELECT * FROM products WHERE category = 'stuff' AND price > 465.95 + +Natural Query: List all customers and their total order value for Rodriguez, Schultz and Bond. +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 = 'Rodriguez, Schultz and Bond' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Bowen 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 = 'Bowen 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 total price of all products for Cooper, Rodriguez and Jones? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Cooper, Rodriguez and Jones' + +Natural Query: List all products of Velasquez Ltd ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Velasquez Ltd' ORDER BY stock_quantity ASC + +Natural Query: Show me all products in the hand category with a price over $82.04. +SQL Query: SELECT * FROM products WHERE category = 'hand' AND price > 82.04 + +Natural Query: Show me all products in the arm category with a price over $488.8. +SQL Query: SELECT * FROM products WHERE category = 'arm' AND price > 488.8 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gaines, Klein and Hunter 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 = 'Gaines, Klein and Hunter' + 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 Hudson-Hall? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hudson-Hall' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all products of King, Jackson and Griffin ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'King, Jackson and Griffin' ORDER BY rating ASC + +Natural Query: What is the minimum quantity of all products for Chapman PLC? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Chapman PLC' + +Natural Query: What is the average rating of all products for Lawrence, Miller and Williams? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Lawrence, Miller and Williams' + +Natural Query: List all products of Anderson-Day ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Anderson-Day' ORDER BY stock_quantity DESC + +Natural Query: What is the total sales for each country in White Ltd? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'White Ltd' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Moore, Nunez and Washington 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, Nunez and Washington' + 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 Hendricks-Lee? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Hendricks-Lee' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Chang, Brooks and Hamilton 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 = 'Chang, Brooks and Hamilton' + 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 Mann, Hunt and Lewis? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Mann, Hunt and Lewis' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the maximum price of all products for Murray-Hall? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Murray-Hall' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Graham, Savage 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 = 'Graham, Savage 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: List all products of King-Winters ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'King-Winters' ORDER BY rating ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Moore-Barnett 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-Barnett' + 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 Lee, Ramos and Spencer? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Lee, Ramos and Spencer' + +Natural Query: What are the top 9 products by orders for Parker and Sons last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Parker and Sons' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Johnson, Martinez and Kirk 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, Martinez and Kirk' + 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 Martin Ltd ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Martin Ltd' ORDER BY price DESC + +Natural Query: What is the total rating of all products for Burns-Nguyen? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Burns-Nguyen' + +Natural Query: What is the minimum quantity of all products for Brown, Doyle and Lee? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Brown, Doyle and Lee' + +Natural Query: What is the total quantity for each supplier in Castillo, Thomas and Moss? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Castillo, Thomas and Moss' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all products of Li, Welch and Kidd ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Li, Welch and Kidd' ORDER BY price DESC + +Natural Query: Show me all products in the high category with a price over $122.91. +SQL Query: SELECT * FROM products WHERE category = 'high' AND price > 122.91 + +Natural Query: List all customers and their total order value for Hernandez 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 = 'Hernandez LLC' GROUP BY c.customer_id + +Natural Query: List all products of Carter LLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Carter LLC' ORDER BY rating DESC + +Natural Query: List all products of Woodard-Owens ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Woodard-Owens' ORDER BY rating DESC + +Natural Query: What is the total profit for each supplier in Mcdonald LLC? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Mcdonald LLC' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the total sales for each category in Freeman, Wolf and Garcia? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Freeman, Wolf and Garcia' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the average rating of all products for Weber-Holloway? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Weber-Holloway' + +Natural Query: List all products of Wright Inc ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wright Inc' ORDER BY price DESC + +Natural Query: What is the minimum price of all products for Bell-Thomas? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Bell-Thomas' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hernandez 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 = 'Hernandez 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 Hayes Group between 2024-08-23 and 2024-08-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hayes Group' AND order_date BETWEEN '2024-08-23' AND '2024-08-29' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Carey-Aguilar 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 = 'Carey-Aguilar' + 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 friend category with a price over $629.73. +SQL Query: SELECT * FROM products WHERE category = 'friend' AND price > 629.73 + +Natural Query: What is the total quantity of all products for Baker Inc? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Baker Inc' + +Natural Query: Show me all products in the nature category with a price over $965.37. +SQL Query: SELECT * FROM products WHERE category = 'nature' AND price > 965.37 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Miller-Morris 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 = 'Miller-Morris' + 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 Simmons LLC ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Simmons LLC' ORDER BY rating ASC + +Natural Query: What are the top 3 products by orders for Lin, Ross and Rose this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Lin, Ross and Rose' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: List all products of Walsh LLC ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Walsh LLC' ORDER BY price ASC + +Natural Query: What is the minimum quantity of all products for Edwards-Nunez? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Edwards-Nunez' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Price-Mclean 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-Mclean' + 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 orders for Anderson, Woodard and Clark this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Anderson, Woodard and Clark' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: List all customers and their total order value for Brewer, Jackson and Whitehead. +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 = 'Brewer, Jackson and Whitehead' GROUP BY c.customer_id + +Natural Query: List all products of Mcdaniel, Johnson and Thompson ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mcdaniel, Johnson and Thompson' ORDER BY stock_quantity DESC + +Natural Query: What is the total quantity of all products for Harris PLC? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Harris PLC' + +Natural Query: What is the average quantity of all products for Reid-Guzman? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Reid-Guzman' + +Natural Query: Show me all products in the anyone category with a price over $520.48. +SQL Query: SELECT * FROM products WHERE category = 'anyone' AND price > 520.48 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Davidson-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 = 'Davidson-Ramirez' + 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 policy category with a price over $732.01. +SQL Query: SELECT * FROM products WHERE category = 'policy' AND price > 732.01 + +Natural Query: What is the total rating of all products for Alvarez-Jones? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Alvarez-Jones' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Stone 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 = 'Stone 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 minimum quantity of all products for Phillips Ltd? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Phillips Ltd' + +Natural Query: How many orders were placed for Becker and Sons between 2024-05-16 and 2024-06-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Becker and Sons' AND order_date BETWEEN '2024-05-16' AND '2024-06-05' + +Natural Query: How many orders were placed for Vega-Ford between 2024-06-10 and 2024-06-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Vega-Ford' AND order_date BETWEEN '2024-06-10' AND '2024-06-15' + +Natural Query: List all products of Murphy-Bryant ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Murphy-Bryant' ORDER BY price ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Ruiz, Hill and Santos 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 = 'Ruiz, Hill and Santos' + 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 Frank, Carpenter and Martinez ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Frank, Carpenter and Martinez' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Russell, Sanchez and Benson. +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, Sanchez and Benson' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mosley, Evans and Mueller 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 = 'Mosley, Evans and Mueller' + 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 Jensen 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 = 'Jensen PLC' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Riddle-Carroll between 2024-06-03 and 2024-07-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Riddle-Carroll' AND order_date BETWEEN '2024-06-03' AND '2024-07-22' + +Natural Query: List all customers and their total order value for Cook, Wong and Velasquez. +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 = 'Cook, Wong and Velasquez' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Walton, Green and Hubbard. +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 = 'Walton, Green and Hubbard' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Griffith 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 = 'Griffith and Sons' GROUP BY c.customer_id + +Natural Query: What are the top 7 products by sales for Cline, Medina and Fletcher all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Cline, Medina and Fletcher' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Harrison, Elliott and Hardy 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 = 'Harrison, Elliott and Hardy' + 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 Bird Group? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Bird Group' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: Show me all products in the rise category with a price over $849.38. +SQL Query: SELECT * FROM products WHERE category = 'rise' AND price > 849.38 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in King-Martinez 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 = 'King-Martinez' + 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 Carter-Smith? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Carter-Smith' GROUP BY category ORDER BY total_sales DESC + +Natural Query: Show me all products in the manager category with a price over $895.95. +SQL Query: SELECT * FROM products WHERE category = 'manager' AND price > 895.95 + +Natural Query: List all products of Moreno Ltd ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Moreno Ltd' ORDER BY rating DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Torres-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 = 'Torres-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 sales for each category in Kim Inc? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Kim Inc' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 7 products by customers for Hill LLC last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Hill LLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: What is the maximum quantity of all products for Guzman, Reyes and Johnson? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Guzman, Reyes and Johnson' + +Natural Query: What are the top 8 products by revenue for Pena LLC last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Pena LLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: What is the minimum price of all products for Gonzales, Stout and Rodriguez? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Gonzales, Stout and Rodriguez' + +Natural Query: Show me all products in the worry category with a price over $171.84. +SQL Query: SELECT * FROM products WHERE category = 'worry' AND price > 171.84 + +Natural Query: What are the top 10 products by revenue for Ward, Grimes and Mcguire this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Ward, Grimes and Mcguire' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: Show me all products in the drop category with a price over $254.77. +SQL Query: SELECT * FROM products WHERE category = 'drop' AND price > 254.77 + +Natural Query: What is the total quantity for each supplier in Richardson, Martin and Murphy? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Richardson, Martin and Murphy' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Murphy, Gallagher and Hansen 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 = 'Murphy, Gallagher and Hansen' + 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 Brown-Hamilton. +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-Hamilton' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Carter Inc between 2023-10-19 and 2024-03-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Carter Inc' AND order_date BETWEEN '2023-10-19' AND '2024-03-24' + +Natural Query: Show me all products in the first category with a price over $209.75. +SQL Query: SELECT * FROM products WHERE category = 'first' AND price > 209.75 + +Natural Query: List all products of Patterson, Smith and Roth ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Patterson, Smith and Roth' ORDER BY rating ASC + +Natural Query: Show me all products in the purpose category with a price over $13.37. +SQL Query: SELECT * FROM products WHERE category = 'purpose' AND price > 13.37 + +Natural Query: What is the total rating of all products for Mcdowell-Fischer? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Mcdowell-Fischer' + +Natural Query: List all products of Greene-Taylor ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Greene-Taylor' ORDER BY stock_quantity ASC + +Natural Query: How many orders were placed for Cole-Tucker between 2024-04-26 and 2024-06-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cole-Tucker' AND order_date BETWEEN '2024-04-26' AND '2024-06-19' + +Natural Query: List all products of Rice, Mcintyre and Morris ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rice, Mcintyre and Morris' ORDER BY rating ASC + +Natural Query: List all products of Lam Inc ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lam Inc' ORDER BY stock_quantity DESC + +Natural Query: What is the total quantity of all products for Dawson LLC? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Dawson LLC' + +Natural Query: What are the top 6 products by orders for Dickson, Gonzales and Sanchez all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Dickson, Gonzales and Sanchez' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: What is the total sales for each category in Weber, Alvarado and Frederick? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Weber, Alvarado and Frederick' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all products of Powers-Wallace ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Powers-Wallace' ORDER BY rating DESC + +Natural Query: What are the top 3 products by orders for Aguilar-Moon this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Aguilar-Moon' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: List all customers and their total order value for Pena, Moore and Oneal. +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 = 'Pena, Moore and Oneal' GROUP BY c.customer_id + +Natural Query: What is the total profit for each category in Watson and Sons? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Watson and Sons' GROUP BY category ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Kline, Conley and Morales between 2023-10-19 and 2024-02-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Kline, Conley and Morales' AND order_date BETWEEN '2023-10-19' AND '2024-02-18' + +Natural Query: What is the total profit for each supplier in Thompson-Martinez? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Thompson-Martinez' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Garcia 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 = 'Garcia and Sons' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Ward-Martinez 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 = 'Ward-Martinez' + 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 Ltd ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Moore Ltd' ORDER BY rating DESC + +Natural Query: Show me all products in the peace category with a price over $747.62. +SQL Query: SELECT * FROM products WHERE category = 'peace' AND price > 747.62 + +Natural Query: What are the top 10 products by revenue for Stevenson, Martinez and Duncan last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Stevenson, Martinez and Duncan' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: What is the total sales for each supplier in Young-Mills? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Young-Mills' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the total quantity of all products for Bell-Morse? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Bell-Morse' + +Natural Query: What are the top 6 products by orders for Moran-Simpson this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Moran-Simpson' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: How many orders were placed for French-Hunt between 2023-11-18 and 2024-08-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'French-Hunt' AND order_date BETWEEN '2023-11-18' AND '2024-08-23' + +Natural Query: What is the total profit for each supplier in Sanchez LLC? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Sanchez LLC' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all products of Hale-Myers ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hale-Myers' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Hernandez 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 = 'Hernandez and Sons' GROUP BY c.customer_id + +Natural Query: What are the top 3 products by sales for Watson-Gonzalez this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Watson-Gonzalez' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Browning, Young 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 = 'Browning, Young 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: How many orders were placed for Mitchell Group between 2024-02-16 and 2024-05-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mitchell Group' AND order_date BETWEEN '2024-02-16' AND '2024-05-05' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Tucker 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 = 'Tucker 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 5 categories by sales for customers aged 25-35 in Turner-Kelly 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 = 'Turner-Kelly' + 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 Jackson Inc ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jackson Inc' ORDER BY stock_quantity DESC + +Natural Query: Show me all products in the cut category with a price over $722.72. +SQL Query: SELECT * FROM products WHERE category = 'cut' AND price > 722.72 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Potter-Ortega 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 = 'Potter-Ortega' + 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 Martin-Reed ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Martin-Reed' ORDER BY stock_quantity DESC + +Natural Query: What is the total sales for each country in Perry, Ayala and Zamora? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Perry, Ayala and Zamora' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the total quantity of all products for Hancock Group? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Hancock Group' + +Natural Query: What is the total rating of all products for Miller-Pena? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Miller-Pena' + +Natural Query: Show me all products in the coach category with a price over $37.97. +SQL Query: SELECT * FROM products WHERE category = 'coach' AND price > 37.97 + +Natural Query: What is the total price of all products for Hunter, Adams and Gonzalez? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Hunter, Adams and Gonzalez' + +Natural Query: List all customers and their total order value for Jenkins, Holden and 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 = 'Jenkins, Holden and Jones' GROUP BY c.customer_id + +Natural Query: What are the top 8 products by orders for Smith, Davenport and Green this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Smith, Davenport and Green' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: What are the top 3 products by sales for Simmons, Brown and Howard last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Simmons, Brown and Howard' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: How many orders were placed for Jones, Meyer and Jones between 2024-03-10 and 2024-06-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jones, Meyer and Jones' AND order_date BETWEEN '2024-03-10' AND '2024-06-01' + +Natural Query: Show me all products in the glass category with a price over $602.0. +SQL Query: SELECT * FROM products WHERE category = 'glass' AND price > 602.0 + +Natural Query: What is the minimum quantity of all products for Nguyen, Clark and Bruce? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Nguyen, Clark and Bruce' + +Natural Query: List all customers and their total order value for Jensen 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 = 'Jensen Ltd' GROUP BY c.customer_id + +Natural Query: Show me all products in the relationship category with a price over $472.06. +SQL Query: SELECT * FROM products WHERE category = 'relationship' AND price > 472.06 + +Natural Query: How many orders were placed for Moore, Greene and Holmes between 2023-12-03 and 2024-04-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Moore, Greene and Holmes' AND order_date BETWEEN '2023-12-03' AND '2024-04-26' + +Natural Query: What is the total profit for each category in Butler-Adams? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Butler-Adams' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mcclain-Herman 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 = 'Mcclain-Herman' + 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 country in Bailey PLC? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Bailey PLC' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all products of Mccall, Miller and Bryant ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mccall, Miller and Bryant' ORDER BY stock_quantity ASC + +Natural Query: How many orders were placed for Carter, Hendrix and Bailey between 2024-08-18 and 2024-09-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Carter, Hendrix and Bailey' AND order_date BETWEEN '2024-08-18' AND '2024-09-04' + +Natural Query: How many orders were placed for Davis-Warner between 2024-07-11 and 2024-07-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Davis-Warner' AND order_date BETWEEN '2024-07-11' AND '2024-07-13' + +Natural Query: List all products of Lindsey-Ortiz ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lindsey-Ortiz' ORDER BY price DESC + +Natural Query: Show me all products in the reduce category with a price over $237.54. +SQL Query: SELECT * FROM products WHERE category = 'reduce' AND price > 237.54 + +Natural Query: What is the total rating of all products for Evans-Ball? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Evans-Ball' + +Natural Query: List all products of Williams Inc ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Williams Inc' ORDER BY stock_quantity ASC + +Natural Query: What are the top 6 products by customers for Ward-Tucker this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Ward-Tucker' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: List all products of Lam-Jones ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lam-Jones' ORDER BY price DESC + +Natural Query: What is the minimum quantity of all products for Nelson-Rodriguez? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Nelson-Rodriguez' + +Natural Query: What are the top 3 products by sales for Carter-Gamble this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Carter-Gamble' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: What is the total quantity for each country in Conway-Bauer? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Conway-Bauer' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all products of Williams-Newton ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Williams-Newton' ORDER BY price ASC + +Natural Query: What is the total sales for each category in Simmons, Hawkins and Singh? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Simmons, Hawkins and Singh' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the total sales for each category in Jacobs Group? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Jacobs Group' GROUP BY category ORDER BY total_sales DESC + +Natural Query: Show me all products in the direction category with a price over $94.02. +SQL Query: SELECT * FROM products WHERE category = 'direction' AND price > 94.02 + +Natural Query: What is the total sales for each supplier in Tate-Stevens? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Tate-Stevens' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the maximum price of all products for Rose, Cooper and Huerta? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Rose, Cooper and Huerta' + +Natural Query: What is the total rating of all products for Saunders-Davidson? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Saunders-Davidson' + +Natural Query: What are the top 9 products by customers for Perez-Logan all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Perez-Logan' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: What are the top 7 products by orders for Harper PLC this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Harper PLC' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: How many orders were placed for Martin-Russell between 2024-03-07 and 2024-05-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Martin-Russell' AND order_date BETWEEN '2024-03-07' AND '2024-05-16' + +Natural Query: List all products of Sharp, Burke and Roberts ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Sharp, Burke and Roberts' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Jensen-Fry. +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 = 'Jensen-Fry' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Smith Group between 2024-04-26 and 2024-06-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Smith Group' AND order_date BETWEEN '2024-04-26' AND '2024-06-20' + +Natural Query: How many orders were placed for Morton, Jefferson and Owens between 2024-06-11 and 2024-08-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Morton, Jefferson and Owens' AND order_date BETWEEN '2024-06-11' AND '2024-08-07' + +Natural Query: Show me all products in the husband category with a price over $644.71. +SQL Query: SELECT * FROM products WHERE category = 'husband' AND price > 644.71 + +Natural Query: What are the top 7 products by orders for Nash-Wilson all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Nash-Wilson' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: How many orders were placed for Jackson PLC between 2024-02-18 and 2024-03-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jackson PLC' AND order_date BETWEEN '2024-02-18' AND '2024-03-27' + +Natural Query: What is the average price of all products for Johnson Group? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Johnson Group' + +Natural Query: What is the total profit for each category in Anderson, Keller and Stewart? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Anderson, Keller and Stewart' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the maximum price of all products for Spencer-Riley? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Spencer-Riley' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in James 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 = 'James 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 5 categories by sales for customers aged 25-35 in Dunn-Luna 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 = 'Dunn-Luna' + 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 Moore-Oliver. +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-Oliver' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hill-Robertson 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 = 'Hill-Robertson' + 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 Gardner and Sons? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Gardner and Sons' + +Natural Query: What is the total sales for each supplier in Parrish-Davies? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Parrish-Davies' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cruz, Johnson and Murray 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 = 'Cruz, Johnson and Murray' + 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 Wilson-Mcguire? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Wilson-Mcguire' + +Natural Query: List all customers and their total order value for Potter, Golden 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 = 'Potter, Golden and Smith' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each supplier in Pope, Scott and Swanson? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Pope, Scott and Swanson' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the total sales for each supplier in Davis-Lowe? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Davis-Lowe' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Lara 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 = 'Lara and Sons' GROUP BY c.customer_id + +Natural Query: What is the total rating of all products for Smith, Lewis and Mooney? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Smith, Lewis and Mooney' + +Natural Query: What are the top 3 products by orders for Williams-Lynch all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Williams-Lynch' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: How many orders were placed for Sullivan, Smith and Wang between 2024-06-01 and 2024-06-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Sullivan, Smith and Wang' AND order_date BETWEEN '2024-06-01' AND '2024-06-28' + +Natural Query: How many orders were placed for Villanueva-Hale between 2024-04-13 and 2024-06-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Villanueva-Hale' AND order_date BETWEEN '2024-04-13' AND '2024-06-06' + +Natural Query: What are the top 10 products by customers for Thompson and Sons last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Thompson and Sons' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10 + +Natural Query: How many orders were placed for Cooley-Ward between 2024-07-31 and 2024-09-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cooley-Ward' AND order_date BETWEEN '2024-07-31' AND '2024-09-06' + +Natural Query: Show me all products in the require category with a price over $588.76. +SQL Query: SELECT * FROM products WHERE category = 'require' AND price > 588.76 + +Natural Query: How many orders were placed for Guerra-Knox between 2023-12-05 and 2024-04-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Guerra-Knox' AND order_date BETWEEN '2023-12-05' AND '2024-04-13' + +Natural Query: List all customers and their total order value for Hunter 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 = 'Hunter Group' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Stevens-Cox between 2023-10-18 and 2024-04-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Stevens-Cox' AND order_date BETWEEN '2023-10-18' AND '2024-04-06' + +Natural Query: How many orders were placed for Mullen, Johnson and Brennan between 2024-05-04 and 2024-08-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mullen, Johnson and Brennan' AND order_date BETWEEN '2024-05-04' AND '2024-08-23' + +Natural Query: Show me all products in the almost category with a price over $921.01. +SQL Query: SELECT * FROM products WHERE category = 'almost' AND price > 921.01 + +Natural Query: Show me all products in the I category with a price over $141.85. +SQL Query: SELECT * FROM products WHERE category = 'I' AND price > 141.85 + +Natural Query: List all products of Johnson-Kaiser ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Johnson-Kaiser' ORDER BY price ASC + +Natural Query: What is the total sales for each country in Jones-Powers? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Jones-Powers' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Jones, Montes and Baker. +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, Montes and Baker' GROUP BY c.customer_id + +Natural Query: What are the top 8 products by sales for Wilson-Wright all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Wilson-Wright' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: What is the total rating of all products for Olsen, Baxter and Ortiz? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Olsen, Baxter and Ortiz' + +Natural Query: How many orders were placed for Lane, Beck and Henderson between 2024-03-27 and 2024-05-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lane, Beck and Henderson' AND order_date BETWEEN '2024-03-27' AND '2024-05-23' + +Natural Query: Show me all products in the product category with a price over $829.44. +SQL Query: SELECT * FROM products WHERE category = 'product' AND price > 829.44 + +Natural Query: What is the total sales for each category in Young, Lee and Shepard? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Young, Lee and Shepard' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the total sales for each category in Doyle, Ryan and Curtis? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Doyle, Ryan and Curtis' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Williams 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 = 'Williams 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 supplier in Odom-Copeland? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Odom-Copeland' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the maximum price of all products for Graham, Ward and Brown? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Graham, Ward and Brown' + +Natural Query: Show me all products in the third category with a price over $703.65. +SQL Query: SELECT * FROM products WHERE category = 'third' AND price > 703.65 + +Natural Query: What is the total price of all products for Schmidt Ltd? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Schmidt Ltd' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Miller 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 = 'Miller 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 is the total sales for each category in Chapman LLC? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Chapman LLC' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the total quantity for each category in Reyes-Wagner? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Reyes-Wagner' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 7 products by sales for Horn-Meyer this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Horn-Meyer' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: List all customers and their total order value for Dawson 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 = 'Dawson and Sons' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Cooper Ltd between 2024-03-17 and 2024-05-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cooper Ltd' AND order_date BETWEEN '2024-03-17' AND '2024-05-12' + +Natural Query: What is the minimum rating of all products for Burns, Griffith and Smith? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Burns, Griffith and Smith' + +Natural Query: What is the total quantity of all products for Smith, Allen and Valencia? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Smith, Allen and Valencia' + +Natural Query: How many orders were placed for Howell Group between 2024-05-15 and 2024-05-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Howell Group' AND order_date BETWEEN '2024-05-15' AND '2024-05-19' + +Natural Query: List all products of Oneal and Sons ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Oneal and Sons' ORDER BY stock_quantity DESC + +Natural Query: Show me all products in the stop category with a price over $846.85. +SQL Query: SELECT * FROM products WHERE category = 'stop' AND price > 846.85 + +Natural Query: What is the total sales for each category in Davis Inc? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Davis Inc' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Burke 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 = 'Burke and Sons' GROUP BY c.customer_id + +Natural Query: List all products of Randall, Rubio and Cole ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Randall, Rubio and Cole' ORDER BY stock_quantity ASC + +Natural Query: What are the top 6 products by sales for Gray and Sons this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Gray and Sons' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: What are the top 3 products by orders for Jones Group this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Jones Group' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: List all products of Byrd, Warren and Matthews ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Byrd, Warren and Matthews' ORDER BY price ASC + +Natural Query: What is the maximum price of all products for White, Fleming and Santos? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'White, Fleming and Santos' + +Natural Query: What is the total profit for each country in Simmons Ltd? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Simmons Ltd' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What is the maximum rating of all products for Brown PLC? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Brown PLC' + +Natural Query: List all products of Sandoval, Schroeder and Clark ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Sandoval, Schroeder and Clark' ORDER BY stock_quantity ASC + +Natural Query: List all products of Wood-Pearson ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wood-Pearson' ORDER BY price DESC + +Natural Query: How many orders were placed for Powell-Olson between 2024-05-11 and 2024-06-02? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Powell-Olson' AND order_date BETWEEN '2024-05-11' AND '2024-06-02' + +Natural Query: What are the top 8 products by sales for Parker LLC this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Parker LLC' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: What are the top 3 products by sales for Peterson and Sons this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Peterson and Sons' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: What is the maximum quantity of all products for Anderson LLC? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Anderson LLC' + +Natural Query: List all products of Howard, Nguyen and Rangel ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Howard, Nguyen and Rangel' ORDER BY stock_quantity DESC + +Natural Query: What is the total sales for each country in Johnson, Myers and Austin? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Johnson, Myers and Austin' GROUP BY country ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Murphy-Salazar between 2024-01-29 and 2024-07-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Murphy-Salazar' AND order_date BETWEEN '2024-01-29' AND '2024-07-19' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Adams-Garcia 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-Garcia' + 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 Mills, Martinez and Graham? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Mills, Martinez and Graham' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Jenkins-Smith between 2024-05-31 and 2024-07-31? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jenkins-Smith' AND order_date BETWEEN '2024-05-31' AND '2024-07-31' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Brown, Owen and Bonilla 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, Owen and Bonilla' + 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 Chen, Cox 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 = 'Chen, Cox 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: What are the top 9 products by customers for Roberts, Reese and Cox this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Roberts, Reese and Cox' AND period = 'this month' 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 Stewart-Thomas 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-Thomas' + 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 Gutierrez, Bryan and Gray last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Gutierrez, Bryan and Gray' 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 Lawrence-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 = 'Lawrence-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 is the maximum rating of all products for Holmes, Newton and Coleman? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Holmes, Newton and Coleman' + +Natural Query: How many orders were placed for Marshall-Morales between 2024-04-06 and 2024-08-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Marshall-Morales' AND order_date BETWEEN '2024-04-06' AND '2024-08-03' + +Natural Query: What is the total price of all products for Ramirez, Sanchez and Baker? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Ramirez, Sanchez and Baker' + +Natural Query: Show me all products in the American category with a price over $65.27. +SQL Query: SELECT * FROM products WHERE category = 'American' AND price > 65.27 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in York, Perez and Hensley 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 = 'York, Perez and Hensley' + 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 Rowland LLC? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Rowland LLC' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the total sales for each category in Nolan PLC? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Nolan PLC' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Townsend 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 = 'Townsend 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 Stone, Green and Herrera 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 = 'Stone, Green and Herrera' + 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 Bates 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 = 'Bates and Sons' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Jackson-Stevens. +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 = 'Jackson-Stevens' GROUP BY c.customer_id + +Natural Query: What is the maximum rating of all products for Ramirez, Bennett and Griffin? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Ramirez, Bennett and Griffin' + +Natural Query: List all products of Ramirez, Spears and Griffin ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ramirez, Spears and Griffin' ORDER BY stock_quantity DESC + +Natural Query: Show me all products in the food category with a price over $604.72. +SQL Query: SELECT * FROM products WHERE category = 'food' AND price > 604.72 + +Natural Query: Show me all products in the way category with a price over $225.4. +SQL Query: SELECT * FROM products WHERE category = 'way' AND price > 225.4 + +Natural Query: What is the total quantity for each supplier in Gilbert Ltd? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Gilbert Ltd' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 8 products by revenue for Alvarez PLC last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Alvarez PLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: How many orders were placed for Anderson Ltd between 2024-04-06 and 2024-06-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Anderson Ltd' AND order_date BETWEEN '2024-04-06' AND '2024-06-23' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lyons 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 = 'Lyons 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 products of Lewis LLC ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lewis LLC' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 products by revenue for Strong, Ford and Holden this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Strong, Ford and Holden' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: What is the total quantity for each supplier in Smith, Fuller and Cooper? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Smith, Fuller and Cooper' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the total quantity for each supplier in Carter-Brooks? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Carter-Brooks' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the total profit for each category in Cortez PLC? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Cortez PLC' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 5 products by orders for Taylor Group this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Taylor Group' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: How many orders were placed for Webb, Wagner and Martin between 2024-08-13 and 2024-08-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Webb, Wagner and Martin' AND order_date BETWEEN '2024-08-13' AND '2024-08-26' + +Natural Query: List all products of Barrett, Jones and Gutierrez ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Barrett, Jones and Gutierrez' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Hughes, Stein and Daniel. +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 = 'Hughes, Stein and Daniel' GROUP BY c.customer_id + +Natural Query: What are the top 5 products by revenue for Hunt-Spencer all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Hunt-Spencer' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Stevens-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 = 'Stevens-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 is the total sales for each category in Taylor Ltd? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Taylor Ltd' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Schwartz-Morgan 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 = 'Schwartz-Morgan' + 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 Lee 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 = 'Lee PLC' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each supplier in Greene and Sons? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Greene and Sons' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Torres, Mcdonald and Garcia 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, Mcdonald and Garcia' + 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 Smith, Meza and Acosta? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Smith, Meza and Acosta' + +Natural Query: List all products of Andrews, Lopez and Foster ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Andrews, Lopez and Foster' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hayes, Green 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 = 'Hayes, Green 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 quantity for each country in Vaughn Group? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Vaughn Group' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the total sales for each category in Harris Group? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Harris Group' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the average price of all products for Jones LLC? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Jones LLC' + +Natural Query: List all customers and their total order value for Melendez 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 = 'Melendez and Sons' GROUP BY c.customer_id + +Natural Query: What is the minimum price of all products for Walters and Sons? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Walters and Sons' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Poole 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 = 'Poole 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 Shah-Garner ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Shah-Garner' ORDER BY rating ASC + +Natural Query: Show me all products in the the category with a price over $243.59. +SQL Query: SELECT * FROM products WHERE category = 'the' AND price > 243.59 + +Natural Query: What is the total rating of all products for Matthews-Shah? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Matthews-Shah' + +Natural Query: List all products of Simpson Group ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Simpson Group' ORDER BY price ASC + +Natural Query: How many orders were placed for Johnson, Scott and Myers between 2024-02-28 and 2024-09-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Johnson, Scott and Myers' AND order_date BETWEEN '2024-02-28' AND '2024-09-09' + +Natural Query: How many orders were placed for Thomas Ltd between 2024-04-25 and 2024-07-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thomas Ltd' AND order_date BETWEEN '2024-04-25' AND '2024-07-30' + +Natural Query: What is the maximum rating of all products for Powers, Braun and Boyd? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Powers, Braun and Boyd' + +Natural Query: What are the top 10 products by orders for Donaldson-Moore this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Donaldson-Moore' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: List all products of Kelly, Mercado and Garcia ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Kelly, Mercado and Garcia' ORDER BY price ASC + +Natural Query: How many orders were placed for Garcia Inc between 2024-04-27 and 2024-05-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Garcia Inc' AND order_date BETWEEN '2024-04-27' AND '2024-05-11' + +Natural Query: Show me all products in the receive category with a price over $329.71. +SQL Query: SELECT * FROM products WHERE category = 'receive' AND price > 329.71 + +Natural Query: List all customers and their total order value for Williams-Griffin. +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-Griffin' GROUP BY c.customer_id + +Natural Query: Show me all products in the nearly category with a price over $297.31. +SQL Query: SELECT * FROM products WHERE category = 'nearly' AND price > 297.31 + +Natural Query: What are the top 4 products by revenue for Ayala, Snyder and Johnston all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Ayala, Snyder and Johnston' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: Show me all products in the industry category with a price over $502.74. +SQL Query: SELECT * FROM products WHERE category = 'industry' AND price > 502.74 + +Natural Query: What are the top 5 products by customers for Beltran PLC this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Beltran PLC' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: Show me all products in the act category with a price over $776.07. +SQL Query: SELECT * FROM products WHERE category = 'act' AND price > 776.07 + +Natural Query: List all customers and their total order value for Gilmore-Dennis. +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 = 'Gilmore-Dennis' GROUP BY c.customer_id + +Natural Query: Show me all products in the on category with a price over $301.01. +SQL Query: SELECT * FROM products WHERE category = 'on' AND price > 301.01 + +Natural Query: How many orders were placed for Strong and Sons between 2024-04-10 and 2024-08-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Strong and Sons' AND order_date BETWEEN '2024-04-10' AND '2024-08-22' + +Natural Query: List all products of Franklin Inc ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Franklin Inc' ORDER BY rating DESC + +Natural Query: What are the top 4 products by customers for Lucas-Dalton this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Lucas-Dalton' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: How many orders were placed for Chambers-Murray between 2024-02-20 and 2024-06-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Chambers-Murray' AND order_date BETWEEN '2024-02-20' AND '2024-06-09' + +Natural Query: What are the top 7 products by sales for Williams Inc last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Williams Inc' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: Show me all products in the somebody category with a price over $944.57. +SQL Query: SELECT * FROM products WHERE category = 'somebody' AND price > 944.57 + +Natural Query: Show me all products in the truth category with a price over $554.14. +SQL Query: SELECT * FROM products WHERE category = 'truth' AND price > 554.14 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Moyer 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 = 'Moyer 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 Harris PLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Harris PLC' ORDER BY stock_quantity DESC + +Natural Query: What are the top 4 products by revenue for Smith-Hansen last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Smith-Hansen' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: What is the total quantity for each country in Atkinson-Mccarthy? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Atkinson-Mccarthy' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the total quantity for each supplier in Wheeler, Fleming and Caldwell? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Wheeler, Fleming and Caldwell' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: Show me all products in the poor category with a price over $668.28. +SQL Query: SELECT * FROM products WHERE category = 'poor' AND price > 668.28 + +Natural Query: List all products of Smith, Scott and Baker ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith, Scott and Baker' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 products by orders for Turner LLC this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Turner LLC' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: Show me all products in the morning category with a price over $846.64. +SQL Query: SELECT * FROM products WHERE category = 'morning' AND price > 846.64 + +Natural Query: How many orders were placed for Fox, Simmons and Le between 2024-03-10 and 2024-09-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Fox, Simmons and Le' AND order_date BETWEEN '2024-03-10' AND '2024-09-06' + +Natural Query: What is the average quantity of all products for Cruz PLC? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Cruz PLC' + +Natural Query: Show me all products in the thing category with a price over $599.35. +SQL Query: SELECT * FROM products WHERE category = 'thing' AND price > 599.35 + +Natural Query: Show me all products in the treat category with a price over $49.67. +SQL Query: SELECT * FROM products WHERE category = 'treat' AND price > 49.67 + +Natural Query: Show me all products in the lot category with a price over $103.04. +SQL Query: SELECT * FROM products WHERE category = 'lot' AND price > 103.04 + +Natural Query: List all customers and their total order value for Watson, Morales 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 = 'Watson, Morales and Johnson' GROUP BY c.customer_id + +Natural Query: Show me all products in the debate category with a price over $680.74. +SQL Query: SELECT * FROM products WHERE category = 'debate' AND price > 680.74 + +Natural Query: List all products of Hartman Group ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hartman Group' ORDER BY stock_quantity DESC + +Natural Query: What are the top 4 products by customers for Martin-Adams all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Martin-Adams' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: How many orders were placed for Parsons-Moore between 2023-09-20 and 2024-07-31? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Parsons-Moore' AND order_date BETWEEN '2023-09-20' AND '2024-07-31' + +Natural Query: What is the total quantity of all products for Garcia, Barker and Martinez? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Garcia, Barker and Martinez' + +Natural Query: Show me all products in the world category with a price over $859.97. +SQL Query: SELECT * FROM products WHERE category = 'world' AND price > 859.97 + +Natural Query: What is the maximum price of all products for Murray-Gutierrez? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Murray-Gutierrez' + +Natural Query: What are the top 3 products by revenue for Young, Mckenzie and Ballard all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Young, Mckenzie and Ballard' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: How many orders were placed for York, Rivera and Hudson between 2024-02-10 and 2024-02-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'York, Rivera and Hudson' AND order_date BETWEEN '2024-02-10' AND '2024-02-23' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Evans 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 = 'Evans 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 Smith, Davidson and Hill. +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, Davidson and Hill' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Wilson 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 = 'Wilson 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 Mccormick, Austin and Berger between 2023-10-04 and 2024-06-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mccormick, Austin and Berger' AND order_date BETWEEN '2023-10-04' AND '2024-06-11' + +Natural Query: What are the top 4 products by orders for Bradley-Best all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Bradley-Best' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: List all customers and their total order value for Cervantes-Gonzalez. +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 = 'Cervantes-Gonzalez' GROUP BY c.customer_id + +Natural Query: Show me all products in the run category with a price over $896.56. +SQL Query: SELECT * FROM products WHERE category = 'run' AND price > 896.56 + +Natural Query: What are the top 7 products by sales for Valenzuela and Sons all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Valenzuela and Sons' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: What is the minimum quantity of all products for Williams, Kirk and George? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Williams, Kirk and George' + +Natural Query: What is the total quantity for each category in Garcia, Pierce and Anderson? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Garcia, Pierce and Anderson' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: Show me all products in the outside category with a price over $389.86. +SQL Query: SELECT * FROM products WHERE category = 'outside' AND price > 389.86 + +Natural Query: What is the average price of all products for James LLC? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'James LLC' + +Natural Query: List all products of Baker Inc ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Baker Inc' ORDER BY stock_quantity ASC + +Natural Query: List all customers and their total order value for Powers 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 = 'Powers LLC' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Bennett, Nelson and Clark. +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, Nelson and Clark' GROUP BY c.customer_id + +Natural Query: Show me all products in the identify category with a price over $812.54. +SQL Query: SELECT * FROM products WHERE category = 'identify' AND price > 812.54 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Sanchez, Boyd and Freeman 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 = 'Sanchez, Boyd and Freeman' + 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 country in Salinas and Sons? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Salinas and Sons' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the total sales for each supplier in Harris-Costa? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Harris-Costa' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Davis, Le and Hammond. +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 = 'Davis, Le and Hammond' GROUP BY c.customer_id + +Natural Query: List all products of Hull-Waters ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hull-Waters' ORDER BY rating ASC + +Natural Query: What is the minimum rating of all products for Hunt PLC? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Hunt PLC' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Smith-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 = 'Smith-Anderson' + 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 customers for James and Sons all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'James and Sons' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: What are the top 4 products by revenue for Murphy Inc all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Murphy Inc' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: List all customers and their total order value for Murray-Davidson. +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 = 'Murray-Davidson' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lewis-Taylor 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-Taylor' + 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 Rhodes-Turner 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 = 'Rhodes-Turner' + 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-Larsen ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith-Larsen' ORDER BY rating DESC + +Natural Query: Show me all products in the vote category with a price over $398.07. +SQL Query: SELECT * FROM products WHERE category = 'vote' AND price > 398.07 + +Natural Query: How many orders were placed for Garcia and Sons between 2024-07-09 and 2024-07-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Garcia and Sons' AND order_date BETWEEN '2024-07-09' AND '2024-07-29' + +Natural Query: What are the top 8 products by revenue for Marsh, White and Rhodes all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Marsh, White and Rhodes' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: List all customers and their total order value for Oconnor-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 = 'Oconnor-Torres' GROUP BY c.customer_id + +Natural Query: Show me all products in the reason category with a price over $710.08. +SQL Query: SELECT * FROM products WHERE category = 'reason' AND price > 710.08 + +Natural Query: What is the average price of all products for Rodriguez LLC? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Rodriguez LLC' + +Natural Query: List all products of Beck-Fleming ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Beck-Fleming' ORDER BY stock_quantity ASC + +Natural Query: Show me all products in the painting category with a price over $71.13. +SQL Query: SELECT * FROM products WHERE category = 'painting' AND price > 71.13 + +Natural Query: What are the top 4 products by orders for Williamson PLC all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Williamson PLC' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: List all customers and their total order value for Garrett-Barber. +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 = 'Garrett-Barber' GROUP BY c.customer_id + +Natural Query: List all products of Richmond, Mendez and Forbes ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Richmond, Mendez and Forbes' ORDER BY price ASC + +Natural Query: List all customers and their total order value for Gross 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 = 'Gross and Sons' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Carter, Luna and Liu between 2024-09-13 and 2024-09-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Carter, Luna and Liu' AND order_date BETWEEN '2024-09-13' AND '2024-09-16' + +Natural Query: List all products of Martinez, Greene and Jacobson ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Martinez, Greene and Jacobson' ORDER BY stock_quantity ASC + +Natural Query: List all customers and their total order value for Lewis-Ramsey. +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-Ramsey' GROUP BY c.customer_id + +Natural Query: What are the top 5 products by orders for Zimmerman LLC all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Zimmerman LLC' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: Show me all products in the finally category with a price over $905.35. +SQL Query: SELECT * FROM products WHERE category = 'finally' AND price > 905.35 + +Natural Query: Show me all products in the action category with a price over $690.5. +SQL Query: SELECT * FROM products WHERE category = 'action' AND price > 690.5 + +Natural Query: What are the top 6 products by orders for Carter Inc this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Carter Inc' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: List all customers and their total order value for Lewis-Armstrong. +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-Armstrong' GROUP BY c.customer_id + +Natural Query: What is the average price of all products for Sanchez, Schultz and Rich? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Sanchez, Schultz and Rich' + +Natural Query: How many orders were placed for Jones PLC between 2023-11-06 and 2024-06-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jones PLC' AND order_date BETWEEN '2023-11-06' AND '2024-06-29' + +Natural Query: Show me all products in the point category with a price over $158.45. +SQL Query: SELECT * FROM products WHERE category = 'point' AND price > 158.45 + +Natural Query: Show me all products in the this category with a price over $506.84. +SQL Query: SELECT * FROM products WHERE category = 'this' AND price > 506.84 + +Natural Query: What is the total profit for each supplier in Mccall, Contreras and Pacheco? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Mccall, Contreras and Pacheco' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the total profit for each category in Harris Inc? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Harris Inc' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the minimum quantity of all products for Jenkins, Russell and Miller? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Jenkins, Russell and Miller' + +Natural Query: What are the top 9 products by sales for White-Matthews this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'White-Matthews' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: List all customers and their total order value for Newton-Gonzalez. +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 = 'Newton-Gonzalez' GROUP BY c.customer_id + +Natural Query: List all products of Anderson Inc ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Anderson Inc' ORDER BY rating ASC + +Natural Query: List all products of Ellis Ltd ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ellis Ltd' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Murray 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 = 'Murray Group' GROUP BY c.customer_id + +Natural Query: What are the top 3 products by customers for Romero-Mcdonald all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Romero-Mcdonald' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: What is the total profit for each category in Weber-Kelley? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Weber-Kelley' GROUP BY category ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Charles 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 = 'Charles LLC' GROUP BY c.customer_id + +Natural Query: What is the maximum quantity of all products for May, Perez and Smith? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'May, Perez and Smith' + +Natural Query: List all customers and their total order value for Huang, Bailey and Miller. +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 = 'Huang, Bailey and Miller' GROUP BY c.customer_id + +Natural Query: Show me all products in the stage category with a price over $538.04. +SQL Query: SELECT * FROM products WHERE category = 'stage' AND price > 538.04 + +Natural Query: List all customers and their total order value for Brooks 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 = 'Brooks Inc' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Woodward, Walker and Murphy between 2024-01-17 and 2024-09-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Woodward, Walker and Murphy' AND order_date BETWEEN '2024-01-17' AND '2024-09-08' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hanson-Watts 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 = 'Hanson-Watts' + 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 Coleman Inc? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Coleman Inc' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lopez, Vargas and Thompson 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, Vargas and Thompson' + 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 West, Thomas and Robinson 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, Thomas and Robinson' + 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 Moore-Little? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Moore-Little' + +Natural Query: How many orders were placed for Gould-York between 2024-05-19 and 2024-08-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gould-York' AND order_date BETWEEN '2024-05-19' AND '2024-08-24' + +Natural Query: What are the top 3 products by revenue for Fowler-Price last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Fowler-Price' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: Show me all products in the network category with a price over $431.85. +SQL Query: SELECT * FROM products WHERE category = 'network' AND price > 431.85 + +Natural Query: What is the total profit for each country in Brown Group? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Brown Group' GROUP BY country ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Hernandez-Klein between 2024-05-26 and 2024-08-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hernandez-Klein' AND order_date BETWEEN '2024-05-26' AND '2024-08-21' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Ramos-Lee 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 = 'Ramos-Lee' + 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 revenue for Garcia-Barnes this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Garcia-Barnes' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: What is the maximum rating of all products for Fisher-Lewis? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Fisher-Lewis' + +Natural Query: How many orders were placed for Singh-Scott between 2024-01-26 and 2024-05-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Singh-Scott' AND order_date BETWEEN '2024-01-26' AND '2024-05-15' + +Natural Query: Show me all products in the night category with a price over $608.39. +SQL Query: SELECT * FROM products WHERE category = 'night' AND price > 608.39 + +Natural Query: What is the maximum price of all products for Welch-Ibarra? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Welch-Ibarra' + +Natural Query: Show me all products in the all category with a price over $379.4. +SQL Query: SELECT * FROM products WHERE category = 'all' AND price > 379.4 + +Natural Query: How many orders were placed for Miller Inc between 2024-01-28 and 2024-09-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Miller Inc' AND order_date BETWEEN '2024-01-28' AND '2024-09-15' + +Natural Query: What are the top 10 products by customers for Bryant, Delgado and Snyder all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Bryant, Delgado and Snyder' 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 Olson-Nelson 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 = 'Olson-Nelson' + 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 Small-Smith ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Small-Smith' ORDER BY stock_quantity ASC + +Natural Query: What is the average rating of all products for Coleman-Singleton? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Coleman-Singleton' + +Natural Query: What is the average quantity of all products for Cook, Powell and Sellers? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Cook, Powell and Sellers' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hernandez-Pacheco 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-Pacheco' + 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 Lloyd, Le and Rice? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Lloyd, Le and Rice' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 8 products by sales for Carlson Ltd this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Carlson Ltd' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: List all products of Sampson-Allen ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Sampson-Allen' ORDER BY price DESC + +Natural Query: List all products of Harris-Hernandez ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Harris-Hernandez' ORDER BY rating DESC + +Natural Query: How many orders were placed for Flynn-Garcia between 2023-12-14 and 2024-01-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Flynn-Garcia' AND order_date BETWEEN '2023-12-14' AND '2024-01-15' + +Natural Query: Show me all products in the describe category with a price over $487.58. +SQL Query: SELECT * FROM products WHERE category = 'describe' AND price > 487.58 + +Natural Query: What is the total quantity for each supplier in Taylor Group? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Taylor Group' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 5 products by customers for Franklin Group this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Franklin Group' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: What is the total quantity for each supplier in Stevens Inc? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Stevens Inc' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the total sales for each supplier in Khan, Martin and Taylor? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Khan, Martin and Taylor' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 3 products by revenue for Russo-Rodriguez this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Russo-Rodriguez' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: List all products of Sanchez, Lewis and King ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Sanchez, Lewis and King' ORDER BY price ASC + +Natural Query: What are the top 7 products by revenue for Miller LLC this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Miller LLC' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Frost, Bailey 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 = 'Frost, Bailey 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: How many orders were placed for Miller Ltd between 2024-03-06 and 2024-09-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Miller Ltd' AND order_date BETWEEN '2024-03-06' AND '2024-09-12' + +Natural Query: What is the total profit for each supplier in Bishop, Reyes and Johnson? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Bishop, Reyes and Johnson' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: Show me all products in the nothing category with a price over $930.54. +SQL Query: SELECT * FROM products WHERE category = 'nothing' AND price > 930.54 + +Natural Query: How many orders were placed for Hays-Alvarez between 2024-01-30 and 2024-06-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hays-Alvarez' AND order_date BETWEEN '2024-01-30' AND '2024-06-24' + +Natural Query: What is the average rating of all products for Farley, Brown and Williams? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Farley, Brown and Williams' + +Natural Query: What are the top 6 products by revenue for Wilson-Brown last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Wilson-Brown' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: What is the total sales for each supplier in Fernandez PLC? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Fernandez PLC' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Serrano PLC between 2024-08-13 and 2024-09-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Serrano PLC' AND order_date BETWEEN '2024-08-13' AND '2024-09-06' + +Natural Query: What are the top 6 products by revenue for Clark Inc all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Clark Inc' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: Show me all products in the him category with a price over $978.02. +SQL Query: SELECT * FROM products WHERE category = 'him' AND price > 978.02 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Romero 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 = 'Romero 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 is the total quantity of all products for Lane, Jones and Bryant? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Lane, Jones and Bryant' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cole-Wallace 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 = 'Cole-Wallace' + 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 Smith-Crosby? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Smith-Crosby' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Ellison 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 = 'Ellison 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 is the minimum price of all products for Turner Inc? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Turner Inc' + +Natural Query: What is the average quantity of all products for Adams-Jackson? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Adams-Jackson' + +Natural Query: Show me all products in the go category with a price over $451.23. +SQL Query: SELECT * FROM products WHERE category = 'go' AND price > 451.23 + +Natural Query: What is the minimum quantity of all products for Higgins-Salas? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Higgins-Salas' + +Natural Query: List all customers and their total order value for Campbell, Pratt 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 = 'Campbell, Pratt and Smith' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Rich, Smith 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 = 'Rich, Smith 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: List all products of Velez, Medina and Ramos ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Velez, Medina and Ramos' ORDER BY stock_quantity ASC + +Natural Query: What is the average quantity of all products for Rhodes Ltd? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Rhodes Ltd' + +Natural Query: How many orders were placed for Young-Rivera between 2024-07-20 and 2024-07-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Young-Rivera' AND order_date BETWEEN '2024-07-20' AND '2024-07-27' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Ramirez-Swanson 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 = 'Ramirez-Swanson' + 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 customers for Buckley, Burton and Leon this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Buckley, Burton and Leon' 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 Hernandez-Hinton 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-Hinton' + 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-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 = 'Bailey-Ramirez' + 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 Frye and Sons between 2023-09-24 and 2023-10-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Frye and Sons' AND order_date BETWEEN '2023-09-24' AND '2023-10-18' + +Natural Query: How many orders were placed for Nichols Group between 2024-01-25 and 2024-07-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Nichols Group' AND order_date BETWEEN '2024-01-25' AND '2024-07-17' + +Natural Query: How many orders were placed for Mitchell-Logan between 2024-04-21 and 2024-05-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mitchell-Logan' AND order_date BETWEEN '2024-04-21' AND '2024-05-13' + +Natural Query: How many orders were placed for Walker Inc between 2024-06-10 and 2024-07-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Walker Inc' AND order_date BETWEEN '2024-06-10' AND '2024-07-16' + +Natural Query: List all customers and their total order value for Krueger-Fowler. +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 = 'Krueger-Fowler' GROUP BY c.customer_id + +Natural Query: List all products of Nelson-Murphy ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Nelson-Murphy' ORDER BY price ASC + +Natural Query: What is the minimum rating of all products for Wyatt-Lee? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Wyatt-Lee' + +Natural Query: How many orders were placed for Hale, Thomas and Smith between 2024-07-19 and 2024-08-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hale, Thomas and Smith' AND order_date BETWEEN '2024-07-19' AND '2024-08-04' + +Natural Query: What is the total quantity for each category in Joseph PLC? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Joseph PLC' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the maximum price of all products for Colon LLC? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Colon LLC' + +Natural Query: What is the average price of all products for Richardson Group? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Richardson Group' + +Natural Query: List all customers and their total order value for Huang-White. +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 = 'Huang-White' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Tran, Campos and Marshall. +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 = 'Tran, Campos and Marshall' GROUP BY c.customer_id + +Natural Query: What are the top 10 products by sales for Robinson Inc last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Robinson Inc' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: List all products of Elliott Ltd ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Elliott Ltd' ORDER BY price DESC + +Natural Query: How many orders were placed for Haynes, Berger and Smith between 2024-02-06 and 2024-07-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Haynes, Berger and Smith' AND order_date BETWEEN '2024-02-06' AND '2024-07-19' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Goodman, Todd and Walton 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 = 'Goodman, Todd and Walton' + 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 King 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 = 'King 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 Mata-Booker ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mata-Booker' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Davenport-Bennett 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 = 'Davenport-Bennett' + 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 Holden, Bush and Mitchell 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 = 'Holden, Bush and Mitchell' + 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 Dennis-Camacho between 2024-05-21 and 2024-06-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Dennis-Camacho' AND order_date BETWEEN '2024-05-21' AND '2024-06-30' + +Natural Query: List all products of Carter-Golden ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Carter-Golden' ORDER BY price ASC + +Natural Query: What are the top 8 products by customers for Holmes-Rodriguez last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Holmes-Rodriguez' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: List all customers and their total order value for Wilson-English. +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-English' GROUP BY c.customer_id + +Natural Query: What are the top 6 products by customers for Ward-Hunt all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Ward-Hunt' AND period = 'all time' 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 Berry 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 = 'Berry 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 6 products by customers for Lee, Walker and Perry this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Lee, Walker and Perry' AND period = 'this month' 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 Floyd 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 = 'Floyd 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 average rating of all products for Jones, Munoz and Stewart? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Jones, Munoz and Stewart' + +Natural Query: What is the maximum rating of all products for Swanson, Becker and Miller? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Swanson, Becker and Miller' + +Natural Query: What are the top 3 products by customers for Mills, Crane and White last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Mills, Crane and White' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: List all products of Pearson Group ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Pearson Group' ORDER BY stock_quantity ASC + +Natural Query: What are the top 8 products by revenue for Reeves LLC this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Reeves LLC' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: What is the total sales for each category in Smith-Reese? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Smith-Reese' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Martin, Lawson and Orozco. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Martin, Lawson and Orozco' GROUP BY c.customer_id + +Natural Query: What is the minimum rating of all products for West PLC? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'West PLC' + +Natural Query: What are the top 8 products by revenue for Brown-Davis this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Brown-Davis' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: Show me all products in the serious category with a price over $382.44. +SQL Query: SELECT * FROM products WHERE category = 'serious' AND price > 382.44 + +Natural Query: How many orders were placed for Stuart PLC between 2024-05-30 and 2024-09-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Stuart PLC' AND order_date BETWEEN '2024-05-30' AND '2024-09-05' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Parker, Rodriguez and Lane 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 = 'Parker, Rodriguez and Lane' + 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 Woods-Morgan ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Woods-Morgan' ORDER BY price DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Peters-Nelson 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 = 'Peters-Nelson' + 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 customers for Jones-Larsen this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Jones-Larsen' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: List all customers and their total order value for Wilson, Kent and Wright. +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, Kent and Wright' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Cooper-Lewis. +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 = 'Cooper-Lewis' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Kramer-Robinson. +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 = 'Kramer-Robinson' GROUP BY c.customer_id + +Natural Query: What are the top 3 products by customers for Williamson, Mason and Fernandez last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Williamson, Mason and Fernandez' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: List all products of Shepherd PLC ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Shepherd PLC' ORDER BY price DESC + +Natural Query: List all products of Campbell, Edwards and Dunn ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Campbell, Edwards and Dunn' ORDER BY price DESC + +Natural Query: List all products of Martin-Morgan ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Martin-Morgan' ORDER BY stock_quantity DESC + +Natural Query: What is the average rating of all products for Ortega and Sons? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Ortega and Sons' + +Natural Query: List all products of Henderson-Owen ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Henderson-Owen' ORDER BY rating ASC + +Natural Query: What is the total sales for each supplier in Vasquez PLC? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Vasquez PLC' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 3 products by customers for Howard, Smith and Vega this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Howard, Smith and Vega' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Frazier-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 = 'Frazier-Castillo' + 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 customers for Meyer, Henry and Smith this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Meyer, Henry and Smith' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10 + +Natural Query: What is the total profit for each supplier in Reyes-Kaufman? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Reyes-Kaufman' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all products of Fletcher and Sons ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Fletcher and Sons' ORDER BY rating DESC + +Natural Query: What is the maximum quantity of all products for Wilson Inc? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Wilson Inc' + +Natural Query: What is the total quantity for each supplier in Fox, Case and Nichols? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Fox, Case and Nichols' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Kline-Scott between 2023-10-31 and 2024-01-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Kline-Scott' AND order_date BETWEEN '2023-10-31' AND '2024-01-12' + +Natural Query: List all customers and their total order value for Anthony-Shields. +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 = 'Anthony-Shields' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Braun 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 = 'Braun Ltd' GROUP BY c.customer_id + +Natural Query: List all products of Frederick, Brown and Ward ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Frederick, Brown and Ward' ORDER BY price DESC + +Natural Query: What is the total quantity for each country in Curtis and Sons? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Curtis and Sons' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Medina, Pierce and 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 = 'Medina, Pierce and 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 Martin Ltd ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Martin Ltd' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Taylor-Holt. +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 = 'Taylor-Holt' GROUP BY c.customer_id + +Natural Query: What are the top 6 products by sales for Sloan and Sons this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Sloan and Sons' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: List all customers and their total order value for Mueller 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 = 'Mueller Inc' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Schneider, Good 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 = 'Schneider, Good and Moore' GROUP BY c.customer_id + +Natural Query: What is the minimum rating of all products for Nolan Inc? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Nolan Inc' + +Natural Query: What is the total profit for each category in Davis PLC? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Davis PLC' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Evans-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 = 'Evans-Anderson' + 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 Garcia, Wagner and Pacheco 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, Wagner and Pacheco' + 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 Cox and Sons? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Cox and Sons' + +Natural Query: What is the total price of all products for Ross LLC? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Ross LLC' + +Natural Query: What are the top 6 products by sales for Robinson-Hansen all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Robinson-Hansen' 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 Rodriguez 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 = 'Rodriguez LLC' GROUP BY c.customer_id + +Natural Query: List all products of Jackson and Sons ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jackson and Sons' ORDER BY rating DESC + +Natural Query: What are the top 5 products by customers for Coleman LLC last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Coleman LLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: How many orders were placed for Fritz PLC between 2023-12-30 and 2024-08-02? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Fritz PLC' AND order_date BETWEEN '2023-12-30' AND '2024-08-02' + +Natural Query: What are the top 7 products by customers for Dixon LLC this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Dixon LLC' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: What are the top 6 products by customers for Watson, Jackson and Martin all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Watson, Jackson and Martin' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: What is the average rating of all products for Marshall, Harris and West? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Marshall, Harris and West' + +Natural Query: How many orders were placed for Hernandez-Gilbert between 2024-01-01 and 2024-08-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hernandez-Gilbert' AND order_date BETWEEN '2024-01-01' AND '2024-08-04' + +Natural Query: What are the top 10 products by orders for Russell-Neal last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Russell-Neal' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: List all customers and their total order value for Carter, Mccormick and Pearson. +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, Mccormick and Pearson' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Stewart, Mcfarland 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 = 'Stewart, Mcfarland and Williams' GROUP BY c.customer_id + +Natural Query: What is the total profit for each supplier in Turner-Dorsey? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Turner-Dorsey' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Saunders 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 = 'Saunders Ltd' GROUP BY c.customer_id + +Natural Query: List all products of Parker, Jones and Hines ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Parker, Jones and Hines' ORDER BY price ASC + +Natural Query: What is the total profit for each country in Wright Ltd? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Wright Ltd' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gill, Garza and Fields 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 = 'Gill, Garza and Fields' + 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 4 products by orders for Dougherty PLC this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Dougherty PLC' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: Show me all products in the sense category with a price over $727.21. +SQL Query: SELECT * FROM products WHERE category = 'sense' AND price > 727.21 + +Natural Query: How many orders were placed for Cooper, Pacheco and Coleman between 2023-10-01 and 2024-08-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cooper, Pacheco and Coleman' AND order_date BETWEEN '2023-10-01' AND '2024-08-13' + +Natural Query: List all products of Jones-Huerta ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jones-Huerta' ORDER BY price ASC + +Natural Query: What is the maximum rating of all products for Rosales LLC? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Rosales LLC' + +Natural Query: How many orders were placed for Fischer Group between 2023-12-18 and 2024-03-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Fischer Group' AND order_date BETWEEN '2023-12-18' AND '2024-03-23' + +Natural Query: What is the maximum rating of all products for Rodriguez Inc? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Rodriguez Inc' + +Natural Query: What is the minimum price of all products for Mitchell-Gamble? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Mitchell-Gamble' + +Natural Query: Show me all products in the hot category with a price over $178.55. +SQL Query: SELECT * FROM products WHERE category = 'hot' AND price > 178.55 + +Natural Query: What is the total profit for each country in Brown, Crawford and Thomas? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Brown, Crawford and Thomas' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Stein 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 = 'Stein 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: Show me all products in the chance category with a price over $180.52. +SQL Query: SELECT * FROM products WHERE category = 'chance' AND price > 180.52 + +Natural Query: What are the top 10 products by customers for Olson-Bowen this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Olson-Bowen' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10 + +Natural Query: List all products of Phillips Ltd ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Phillips Ltd' ORDER BY price ASC + +Natural Query: What are the top 6 products by revenue for Miller, Barnes and Wolfe all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Miller, Barnes and Wolfe' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: List all customers and their total order value for Jackson-Sullivan. +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 = 'Jackson-Sullivan' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Smith 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 = 'Smith 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 5 categories by sales for customers aged 25-35 in Meza 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 = 'Meza 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 is the total price of all products for Santos LLC? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Santos LLC' + +Natural Query: What is the average rating of all products for Hall, Brown and Morris? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Hall, Brown and Morris' + +Natural Query: What are the top 8 products by customers for Allen, Evans and Leonard this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Allen, Evans and Leonard' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: What is the minimum price of all products for Mitchell, Morrow and Murphy? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Mitchell, Morrow and Murphy' + +Natural Query: What is the total profit for each country in Thompson LLC? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Thompson LLC' GROUP BY country ORDER BY total_profit DESC + +Natural Query: Show me all products in the movement category with a price over $876.38. +SQL Query: SELECT * FROM products WHERE category = 'movement' AND price > 876.38 + +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 is the average rating of all products for Lee Ltd? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Lee Ltd' + +Natural Query: List all customers and their total order value for Serrano-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 = 'Serrano-Davis' GROUP BY c.customer_id + +Natural Query: What is the maximum quantity of all products for Randall-Cunningham? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Randall-Cunningham' + +Natural Query: What is the maximum price of all products for Jordan PLC? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Jordan PLC' + +Natural Query: What are the top 6 products by orders for Gonzales Group all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Gonzales Group' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: Show me all products in the generation category with a price over $744.35. +SQL Query: SELECT * FROM products WHERE category = 'generation' AND price > 744.35 + +Natural Query: List all products of Wallace, Shepherd and Park ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wallace, Shepherd and Park' ORDER BY rating ASC + +Natural Query: What are the top 6 products by sales for Alexander, Bass and Rich this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Alexander, Bass and Rich' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: List all products of Roberts-Valdez ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Roberts-Valdez' ORDER BY rating DESC + +Natural Query: List all products of Davis and Sons ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Davis and Sons' ORDER BY stock_quantity DESC + +Natural Query: How many orders were placed for Larson-Hernandez between 2024-07-07 and 2024-07-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Larson-Hernandez' AND order_date BETWEEN '2024-07-07' AND '2024-07-13' + +Natural Query: What is the total sales for each country in White-Allen? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'White-Allen' GROUP BY country ORDER BY total_sales DESC + +Natural Query: Show me all products in the audience category with a price over $805.73. +SQL Query: SELECT * FROM products WHERE category = 'audience' AND price > 805.73 + +Natural Query: Show me all products in the safe category with a price over $862.87. +SQL Query: SELECT * FROM products WHERE category = 'safe' AND price > 862.87 + +Natural Query: What is the total profit for each supplier in Mendez, Meadows and Tran? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Mendez, Meadows and Tran' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the average price of all products for Martin-Smith? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Martin-Smith' + +Natural Query: What is the maximum rating of all products for Neal Ltd? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Neal Ltd' + +Natural Query: List all customers and their total order value for Carr-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 = 'Carr-Johnson' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Callahan-Stokes between 2024-09-16 and 2024-09-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Callahan-Stokes' AND order_date BETWEEN '2024-09-16' AND '2024-09-16' + +Natural Query: How many orders were placed for Mcguire-Best between 2024-05-25 and 2024-07-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mcguire-Best' AND order_date BETWEEN '2024-05-25' AND '2024-07-03' + +Natural Query: List all products of Powell Inc ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Powell Inc' ORDER BY rating ASC + +Natural Query: What is the maximum quantity of all products for Wilcox, Wilson and Smith? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Wilcox, Wilson and Smith' + +Natural Query: List all products of Yates-Haas ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Yates-Haas' ORDER BY rating ASC + +Natural Query: What is the minimum quantity of all products for Williams, Walsh and Rojas? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Williams, Walsh and Rojas' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Petersen 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 = 'Petersen PLC' + 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 career category with a price over $933.92. +SQL Query: SELECT * FROM products WHERE category = 'career' AND price > 933.92 + +Natural Query: List all products of Casey, Flores and Buck ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Casey, Flores and Buck' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Newman 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 = 'Newman Ltd' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Price Ltd between 2024-09-08 and 2024-09-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Price Ltd' AND order_date BETWEEN '2024-09-08' AND '2024-09-15' + +Natural Query: List all products of Wallace-Ortega ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wallace-Ortega' ORDER BY price ASC + +Natural Query: How many orders were placed for Morgan-Gonzalez between 2024-02-20 and 2024-03-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Morgan-Gonzalez' AND order_date BETWEEN '2024-02-20' AND '2024-03-04' + +Natural Query: What is the total price of all products for Moore, Padilla and Weaver? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Moore, Padilla and Weaver' + +Natural Query: List all customers and their total order value for Odonnell-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 = 'Odonnell-Rodriguez' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Chandler and Sons between 2024-03-04 and 2024-04-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Chandler and Sons' AND order_date BETWEEN '2024-03-04' AND '2024-04-13' + +Natural Query: Show me all products in the issue category with a price over $508.5. +SQL Query: SELECT * FROM products WHERE category = 'issue' AND price > 508.5 + +Natural Query: Show me all products in the discuss category with a price over $231.2. +SQL Query: SELECT * FROM products WHERE category = 'discuss' AND price > 231.2 + +Natural Query: How many orders were placed for Thompson-Scott between 2023-11-29 and 2024-07-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thompson-Scott' AND order_date BETWEEN '2023-11-29' AND '2024-07-17' + +Natural Query: List all products of Medina-Goodman ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Medina-Goodman' ORDER BY rating ASC + +Natural Query: How many orders were placed for Ruiz-Hood between 2024-03-31 and 2024-04-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ruiz-Hood' AND order_date BETWEEN '2024-03-31' AND '2024-04-16' + +Natural Query: List all products of Allen-Lopez ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Allen-Lopez' ORDER BY rating ASC + +Natural Query: What are the top 6 products by revenue for Lamb, Rivera and Ray this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Lamb, Rivera and Ray' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: List all customers and their total order value for Gallegos, Bullock and Wilson. +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 = 'Gallegos, Bullock and Wilson' GROUP BY c.customer_id + +Natural Query: What is the maximum rating of all products for Berry, Brown and Fleming? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Berry, Brown and Fleming' + +Natural Query: What is the average price of all products for Thomas, Hoffman and Wilson? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Thomas, Hoffman and Wilson' + +Natural Query: List all customers and their total order value for Morgan, Johnson and Dudley. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Morgan, Johnson and Dudley' GROUP BY c.customer_id + +Natural Query: What is the maximum quantity of all products for Schroeder-Perry? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Schroeder-Perry' + +Natural Query: What are the top 5 products by orders for Kim PLC this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Kim PLC' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: How many orders were placed for Cruz Group between 2023-11-09 and 2024-04-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cruz Group' AND order_date BETWEEN '2023-11-09' AND '2024-04-05' + +Natural Query: What is the total profit for each category in Malone, Miller and Frey? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Malone, Miller and Frey' GROUP BY category ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Mora, Carlson and Cobb. +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 = 'Mora, Carlson and Cobb' GROUP BY c.customer_id + +Natural Query: What is the total profit for each category in Lopez, Murphy and Gomez? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Lopez, Murphy and Gomez' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the total quantity for each supplier in Merritt PLC? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Merritt PLC' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Green-Payne 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-Payne' + 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 Brooks-Walls? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Brooks-Walls' + +Natural Query: What are the top 3 products by sales for Johnston LLC this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Johnston LLC' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: How many orders were placed for Fuentes-Mitchell between 2024-08-16 and 2024-09-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Fuentes-Mitchell' AND order_date BETWEEN '2024-08-16' AND '2024-09-07' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Webster-Mueller 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 = 'Webster-Mueller' + 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 Yang, Ryan and Lane. +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 = 'Yang, Ryan and Lane' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Crawford 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 = 'Crawford 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 customers and their total order value for Soto, Delgado and Ward. +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, Delgado and Ward' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Allen-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 = 'Allen-Williams' GROUP BY c.customer_id + +Natural Query: What are the top 7 products by customers for Mays, Mcdonald and Smith all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Mays, Mcdonald and Smith' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: What is the total profit for each supplier in Marsh Group? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Marsh Group' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Price, Munoz and Padilla 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, Munoz and Padilla' + 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 Yoder LLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Yoder LLC' ORDER BY stock_quantity DESC + +Natural Query: List all products of Anderson-Zhang ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Anderson-Zhang' ORDER BY rating ASC + +Natural Query: How many orders were placed for Ramirez, Young and Burnett between 2024-08-09 and 2024-09-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ramirez, Young and Burnett' AND order_date BETWEEN '2024-08-09' AND '2024-09-01' + +Natural Query: Show me all products in the manager category with a price over $397.62. +SQL Query: SELECT * FROM products WHERE category = 'manager' AND price > 397.62 + +Natural Query: What are the top 10 products by revenue for Bryant, Bailey and Glass this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Bryant, Bailey and Glass' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: List all products of Carr, Kelly and Schultz ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Carr, Kelly and Schultz' ORDER BY rating ASC + +Natural Query: Show me all products in the role category with a price over $840.57. +SQL Query: SELECT * FROM products WHERE category = 'role' AND price > 840.57 + +Natural Query: List all products of Tucker-Bryant ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Tucker-Bryant' ORDER BY rating ASC + +Natural Query: What is the total sales for each supplier in Johnson-Fuller? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Johnson-Fuller' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Turner 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 = 'Turner Ltd' + 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 Barry, Nguyen and Fleming. +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 = 'Barry, Nguyen and Fleming' GROUP BY c.customer_id + +Natural Query: What is the total profit for each category in Lam Group? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Lam Group' GROUP BY category ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Pruitt-Kennedy between 2024-03-24 and 2024-06-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Pruitt-Kennedy' AND order_date BETWEEN '2024-03-24' AND '2024-06-13' + +Natural Query: What are the top 4 products by orders for Molina, George and Contreras last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Molina, George and Contreras' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: List all customers and their total order value for Harris-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 = 'Harris-Moore' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Brown Group between 2023-10-23 and 2024-01-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Brown Group' AND order_date BETWEEN '2023-10-23' AND '2024-01-16' + +Natural Query: Show me all products in the little category with a price over $185.89. +SQL Query: SELECT * FROM products WHERE category = 'little' AND price > 185.89 + +Natural Query: How many orders were placed for Stewart and Sons between 2024-02-13 and 2024-04-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Stewart and Sons' AND order_date BETWEEN '2024-02-13' AND '2024-04-12' + +Natural Query: What are the top 3 products by revenue for Daniels-Rush this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Daniels-Rush' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: What are the top 7 products by orders for Thomas Group all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Thomas Group' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: Show me all products in the rock category with a price over $879.71. +SQL Query: SELECT * FROM products WHERE category = 'rock' AND price > 879.71 + +Natural Query: How many orders were placed for Davenport-Lara between 2024-04-27 and 2024-08-31? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Davenport-Lara' AND order_date BETWEEN '2024-04-27' AND '2024-08-31' + +Natural Query: How many orders were placed for Zimmerman-Murphy between 2024-08-06 and 2024-08-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Zimmerman-Murphy' AND order_date BETWEEN '2024-08-06' AND '2024-08-19' + +Natural Query: What are the top 5 products by customers for Jones Ltd this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Jones Ltd' AND period = 'this month' 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 Pierce-Bowman 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 = 'Pierce-Bowman' + 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 Frey-Lang 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 = 'Frey-Lang' + 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 Hernandez, Ward and Wiley. +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, Ward and Wiley' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Cunningham, Klein and Wong. +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 = 'Cunningham, Klein and Wong' GROUP BY c.customer_id + +Natural Query: Show me all products in the author category with a price over $677.44. +SQL Query: SELECT * FROM products WHERE category = 'author' AND price > 677.44 + +Natural Query: List all customers and their total order value for Weeks, Graham and Ayala. +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 = 'Weeks, Graham and Ayala' GROUP BY c.customer_id + +Natural Query: Show me all products in the agency category with a price over $276.87. +SQL Query: SELECT * FROM products WHERE category = 'agency' AND price > 276.87 + +Natural Query: How many orders were placed for Thompson, Anderson and Mueller between 2024-05-29 and 2024-07-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thompson, Anderson and Mueller' AND order_date BETWEEN '2024-05-29' AND '2024-07-29' + +Natural Query: List all customers and their total order value for Stephens-Rios. +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 = 'Stephens-Rios' GROUP BY c.customer_id + +Natural Query: List all products of Gould PLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gould PLC' ORDER BY stock_quantity DESC + +Natural Query: What is the total sales for each country in Harris, Joyce and Vega? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Harris, Joyce and Vega' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the total sales for each category in Mitchell, Gonzalez and Arnold? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Mitchell, Gonzalez and Arnold' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the maximum quantity of all products for Evans PLC? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Evans PLC' + +Natural Query: What is the total quantity for each category in Jenkins LLC? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Jenkins LLC' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the maximum price of all products for Moore, Trevino and Doyle? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Moore, Trevino and Doyle' + +Natural Query: What is the total sales for each category in Hughes Ltd? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hughes Ltd' GROUP BY category ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Ward, Howard and Rivas between 2024-05-16 and 2024-07-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ward, Howard and Rivas' AND order_date BETWEEN '2024-05-16' AND '2024-07-08' + +Natural Query: List all products of Esparza Group ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Esparza Group' ORDER BY stock_quantity DESC + +Natural Query: What is the average rating of all products for Galvan, Brown and Page? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Galvan, Brown and Page' + +Natural Query: List all products of Patterson-Jones ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Patterson-Jones' ORDER BY rating DESC + +Natural Query: List all customers and their total order value for Rodriguez, Evans and 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 = 'Rodriguez, Evans and Brown' GROUP BY c.customer_id + +Natural Query: What is the total sales for each category in Hooper, Rivera and Lopez? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hooper, Rivera and Lopez' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the total quantity for each country in Banks-Phelps? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Banks-Phelps' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Simon 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 = 'Simon Ltd' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Kemp-Vazquez between 2023-11-15 and 2024-05-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Kemp-Vazquez' AND order_date BETWEEN '2023-11-15' AND '2024-05-07' + +Natural Query: How many orders were placed for Mcdaniel and Sons between 2023-12-29 and 2024-05-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mcdaniel and Sons' AND order_date BETWEEN '2023-12-29' AND '2024-05-07' + +Natural Query: List all customers and their total order value for Brooks, Hickman and 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 = 'Brooks, Hickman and Lopez' GROUP BY c.customer_id + +Natural Query: Show me all products in the include category with a price over $72.87. +SQL Query: SELECT * FROM products WHERE category = 'include' AND price > 72.87 + +Natural Query: What is the total profit for each category in Santos-Deleon? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Santos-Deleon' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the minimum price of all products for Clark, Hale and Lewis? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Clark, Hale and Lewis' + +Natural Query: List all products of Johnson, Smith and Graham ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Johnson, Smith and Graham' ORDER BY stock_quantity ASC + +Natural Query: Show me all products in the thank category with a price over $965.18. +SQL Query: SELECT * FROM products WHERE category = 'thank' AND price > 965.18 + +Natural Query: How many orders were placed for Byrd-Johnson between 2023-12-16 and 2023-12-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Byrd-Johnson' AND order_date BETWEEN '2023-12-16' AND '2023-12-24' + +Natural Query: What are the top 7 products by customers for Moore, Johnson and Moore this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Moore, Johnson and Moore' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: What are the top 5 products by customers for Cole-Reynolds this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Cole-Reynolds' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: List all customers and their total order value for Diaz-Warner. +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 = 'Diaz-Warner' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Davis-Oconnor. +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 = 'Davis-Oconnor' GROUP BY c.customer_id + +Natural Query: List all products of Kane, Gonzales and Merritt ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Kane, Gonzales and Merritt' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Howard, Evans and Lewis 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 = 'Howard, Evans and Lewis' + 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 Klein-Gonzalez? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Klein-Gonzalez' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 9 products by customers for Campbell-Robinson last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Campbell-Robinson' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: How many orders were placed for Ingram-Fitzpatrick between 2024-06-26 and 2024-08-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ingram-Fitzpatrick' AND order_date BETWEEN '2024-06-26' AND '2024-08-17' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Jones 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 = 'Jones 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 Craig Ltd between 2024-02-12 and 2024-06-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Craig Ltd' AND order_date BETWEEN '2024-02-12' AND '2024-06-16' + +Natural Query: How many orders were placed for Ortega, Martinez and Mcbride between 2024-07-20 and 2024-08-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ortega, Martinez and Mcbride' AND order_date BETWEEN '2024-07-20' AND '2024-08-01' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Ramsey 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 = 'Ramsey 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 total price of all products for Lin-Wilkerson? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Lin-Wilkerson' + +Natural Query: List all products of Wilson LLC ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wilson LLC' ORDER BY rating ASC + +Natural Query: What are the top 3 products by orders for Evans, Phillips and Davis this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Evans, Phillips and Davis' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: What is the maximum rating of all products for Foster, Ray and Gibson? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Foster, Ray and Gibson' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gregory, Watts and Kelley 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 = 'Gregory, Watts and Kelley' + 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 Cain Group? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Cain Group' + +Natural Query: What is the total quantity for each category in Lewis, Williams and Bowen? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Lewis, Williams and Bowen' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all products of Kennedy Ltd ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Kennedy Ltd' ORDER BY price DESC + +Natural Query: What is the total profit for each country in Reed-Brandt? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Reed-Brandt' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Roberson, Humphrey and Lambert 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 = 'Roberson, Humphrey and Lambert' + 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 Williams, Burns and York. +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, Burns and York' GROUP BY c.customer_id + +Natural Query: What are the top 8 products by revenue for Roberts-Charles this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Roberts-Charles' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: What are the top 6 products by revenue for Miller, Johnson and Ferrell all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Miller, Johnson and Ferrell' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: List all customers and their total order value for Gibson-Braun. +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-Braun' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Holloway Ltd between 2024-06-18 and 2024-07-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Holloway Ltd' AND order_date BETWEEN '2024-06-18' AND '2024-07-03' + +Natural Query: List all customers and their total order value for Franklin 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 = 'Franklin Group' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Carter, Wilson 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 = 'Carter, Wilson and Bishop' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for King, Fritz and Baker. +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 = 'King, Fritz and Baker' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Watson Inc between 2023-10-02 and 2024-04-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Watson Inc' AND order_date BETWEEN '2023-10-02' AND '2024-04-12' + +Natural Query: How many orders were placed for Daniels, White and Briggs between 2023-11-30 and 2024-03-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Daniels, White and Briggs' AND order_date BETWEEN '2023-11-30' AND '2024-03-25' + +Natural Query: Show me all products in the hotel category with a price over $569.05. +SQL Query: SELECT * FROM products WHERE category = 'hotel' AND price > 569.05 + +Natural Query: Show me all products in the commercial category with a price over $580.06. +SQL Query: SELECT * FROM products WHERE category = 'commercial' AND price > 580.06 + +Natural Query: Show me all products in the return category with a price over $175.73. +SQL Query: SELECT * FROM products WHERE category = 'return' AND price > 175.73 + +Natural Query: How many orders were placed for Nichols-Holland between 2024-02-02 and 2024-03-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Nichols-Holland' AND order_date BETWEEN '2024-02-02' AND '2024-03-27' + +Natural Query: What is the total price of all products for Coleman, Lee and James? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Coleman, Lee and James' + +Natural Query: What is the total quantity for each supplier in Carter-Day? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Carter-Day' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Dougherty-Cook. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Dougherty-Cook' GROUP BY c.customer_id + +Natural Query: What is the minimum price of all products for Miller, Cervantes and Harrison? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Miller, Cervantes and Harrison' + +Natural Query: What is the minimum quantity of all products for Kim-Thomas? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Kim-Thomas' + +Natural Query: Show me all products in the manage category with a price over $957.84. +SQL Query: SELECT * FROM products WHERE category = 'manage' AND price > 957.84 + +Natural Query: List all customers and their total order value for Murphy, Parker and Gordon. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Murphy, Parker and Gordon' GROUP BY c.customer_id + +Natural Query: List all products of Murray Ltd ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Murray Ltd' ORDER BY price DESC + +Natural Query: What is the maximum price of all products for Norman, Diaz and Davies? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Norman, Diaz and Davies' + +Natural Query: Show me all products in the style category with a price over $83.01. +SQL Query: SELECT * FROM products WHERE category = 'style' AND price > 83.01 + +Natural Query: What are the top 5 products by customers for Williams PLC last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Williams PLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: How many orders were placed for Andrade Inc between 2024-09-06 and 2024-09-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Andrade Inc' AND order_date BETWEEN '2024-09-06' AND '2024-09-09' + +Natural Query: How many orders were placed for Short LLC between 2024-08-23 and 2024-09-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Short LLC' AND order_date BETWEEN '2024-08-23' AND '2024-09-09' + +Natural Query: List all products of Snyder-Joyce ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Snyder-Joyce' ORDER BY rating ASC + +Natural Query: What is the minimum rating of all products for Peterson, Marshall and Harrison? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Peterson, Marshall and Harrison' + +Natural Query: What are the top 6 products by customers for Castro and Sons all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Castro and Sons' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: What is the minimum price of all products for King-Johnson? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'King-Johnson' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Williams Group for the last quarter? +SQL Query: SELECT p.category, SUM(s.sales) as total_sales + FROM sales s + JOIN products p ON s.product_id = p.product_id + JOIN customers c ON s.customer_id = c.customer_id + WHERE c.age BETWEEN 25 AND 35 + AND s.company_name = 'Williams Group' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: Show me all products in the concern category with a price over $768.69. +SQL Query: SELECT * FROM products WHERE category = 'concern' AND price > 768.69 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Nelson, Carter and Grant for the last quarter? +SQL Query: SELECT p.category, SUM(s.sales) as total_sales + FROM sales s + JOIN products p ON s.product_id = p.product_id + JOIN customers c ON s.customer_id = c.customer_id + WHERE c.age BETWEEN 25 AND 35 + AND s.company_name = 'Nelson, Carter and Grant' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: How many orders were placed for Williams, Leblanc and Perez between 2024-09-03 and 2024-09-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Williams, Leblanc and Perez' AND order_date BETWEEN '2024-09-03' AND '2024-09-09' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Raymond-Calhoun 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 = 'Raymond-Calhoun' + 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 Carter, Ponce and Smith between 2024-06-05 and 2024-07-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Carter, Ponce and Smith' AND order_date BETWEEN '2024-06-05' AND '2024-07-01' + +Natural Query: What are the top 9 products by revenue for Marsh, Rogers and Reynolds this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Marsh, Rogers and Reynolds' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: List all products of Burton, Delgado and Mccoy ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Burton, Delgado and Mccoy' ORDER BY stock_quantity DESC + +Natural Query: How many orders were placed for Dean LLC between 2024-01-15 and 2024-09-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Dean LLC' AND order_date BETWEEN '2024-01-15' AND '2024-09-01' + +Natural Query: What is the minimum quantity of all products for Clark, Browning and Gilbert? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Clark, Browning and Gilbert' + +Natural Query: List all products of Martin-Smith ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Martin-Smith' ORDER BY rating ASC + +Natural Query: What is the maximum rating of all products for Hayes-Wolfe? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Hayes-Wolfe' + +Natural Query: What are the top 9 products by orders for Graham, Benson and Shelton last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Graham, Benson and Shelton' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Ballard 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 = 'Ballard Ltd' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What is the total sales for each category in Moore, Goodwin and Davis? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Moore, Goodwin and Davis' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all products of Cowan-Brown ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Cowan-Brown' ORDER BY price DESC + +Natural Query: What is the total quantity for each category in Bishop-Wilson? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Bishop-Wilson' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Moreno, Rivera and Brock 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 = 'Moreno, Rivera and Brock' + 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 revenue for Mason-Graham this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Mason-Graham' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: Show me all products in the individual category with a price over $276.62. +SQL Query: SELECT * FROM products WHERE category = 'individual' AND price > 276.62 + +Natural Query: What are the top 10 products by orders for Nelson Group last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Nelson Group' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: What is the total sales for each supplier in Ashley and Sons? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Ashley and Sons' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Austin 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 = 'Austin PLC' GROUP BY c.customer_id + +Natural Query: What is the minimum rating of all products for Warner PLC? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Warner PLC' + +Natural Query: List all products of Wilson, Bender and Lopez ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wilson, Bender and Lopez' ORDER BY rating ASC + +Natural Query: List all products of Avila, Hensley and Thomas ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Avila, Hensley and Thomas' ORDER BY price ASC + +Natural Query: List all products of Smith LLC ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith LLC' ORDER BY rating ASC + +Natural Query: Show me all products in the than category with a price over $16.4. +SQL Query: SELECT * FROM products WHERE category = 'than' AND price > 16.4 + +Natural Query: What is the maximum rating of all products for Lowe, Newman and Grant? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Lowe, Newman and Grant' + +Natural Query: What are the top 9 products by customers for Campbell Inc all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Campbell Inc' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: List all products of Brewer LLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Brewer LLC' ORDER BY rating DESC + +Natural Query: What is the total quantity for each supplier in Nelson-Riley? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Nelson-Riley' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Lewis PLC between 2023-12-02 and 2024-01-02? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lewis PLC' AND order_date BETWEEN '2023-12-02' AND '2024-01-02' + +Natural Query: What is the total profit for each category in Burns Group? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Burns Group' GROUP BY category ORDER BY total_profit DESC + +Natural Query: Show me all products in the here category with a price over $847.84. +SQL Query: SELECT * FROM products WHERE category = 'here' AND price > 847.84 + +Natural Query: How many orders were placed for Yates, Ferguson and Bryant between 2024-08-17 and 2024-09-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Yates, Ferguson and Bryant' AND order_date BETWEEN '2024-08-17' AND '2024-09-11' + +Natural Query: List all products of Baker, Price and Norris ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Baker, Price and Norris' ORDER BY stock_quantity DESC + +Natural Query: How many orders were placed for Ramos, Tucker and Burns between 2023-12-01 and 2024-01-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ramos, Tucker and Burns' AND order_date BETWEEN '2023-12-01' AND '2024-01-05' + +Natural Query: Show me all products in the dark category with a price over $990.73. +SQL Query: SELECT * FROM products WHERE category = 'dark' AND price > 990.73 + +Natural Query: What are the top 10 products by orders for Cooper, Gonzales and James last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Cooper, Gonzales and James' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: What are the top 5 products by orders for Morris, Welch and Rodriguez last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Morris, Welch and Rodriguez' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: What is the total profit for each country in Cook, Reeves and Buckley? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Cook, Reeves and Buckley' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What is the total quantity for each category in Bautista, Jarvis and Morgan? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Bautista, Jarvis and Morgan' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the total quantity for each country in Jones-Martin? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Jones-Martin' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all products of Wilson-Young ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wilson-Young' ORDER BY rating ASC + +Natural Query: How many orders were placed for Thompson-Torres between 2024-02-21 and 2024-03-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thompson-Torres' AND order_date BETWEEN '2024-02-21' AND '2024-03-07' + +Natural Query: List all products of Johnson LLC ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Johnson LLC' ORDER BY price ASC + +Natural Query: List all customers and their total order value for Bird, Woods and 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 = 'Bird, Woods and Brown' GROUP BY c.customer_id + +Natural Query: List all products of Ramirez-Hall ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ramirez-Hall' ORDER BY rating DESC + +Natural Query: What is the minimum quantity of all products for Morales Ltd? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Morales Ltd' + +Natural Query: What are the top 5 products by customers for Anderson-Riley this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Anderson-Riley' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: How many orders were placed for Davidson-Joseph between 2023-11-10 and 2024-08-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Davidson-Joseph' AND order_date BETWEEN '2023-11-10' AND '2024-08-20' + +Natural Query: How many orders were placed for Simmons, Turner and Martinez between 2024-05-19 and 2024-07-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Simmons, Turner and Martinez' AND order_date BETWEEN '2024-05-19' AND '2024-07-17' + +Natural Query: What is the total profit for each supplier in Moreno, Mahoney and Adams? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Moreno, Mahoney and Adams' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Jones Group between 2024-04-09 and 2024-08-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jones Group' AND order_date BETWEEN '2024-04-09' AND '2024-08-13' + +Natural Query: Show me all products in the available category with a price over $345.35. +SQL Query: SELECT * FROM products WHERE category = 'available' AND price > 345.35 + +Natural Query: List all customers and their total order value for Weaver, Sullivan and Ferguson. +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 = 'Weaver, Sullivan and Ferguson' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Sanders, Johnson and Williamson 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 = 'Sanders, Johnson and Williamson' + 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 9 products by orders for Wright-Bass last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Wright-Bass' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: What are the top 4 products by revenue for Shelton-Baker last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Shelton-Baker' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mclaughlin 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 = 'Mclaughlin PLC' + 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 hotel category with a price over $525.74. +SQL Query: SELECT * FROM products WHERE category = 'hotel' AND price > 525.74 + +Natural Query: List all customers and their total order value for Spencer, Bradshaw and Grant. +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 = 'Spencer, Bradshaw and Grant' GROUP BY c.customer_id + +Natural Query: What is the total sales for each supplier in Thomas-Mccullough? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Thomas-Mccullough' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all products of Walker-Craig ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Walker-Craig' ORDER BY price ASC + +Natural Query: How many orders were placed for Jackson Group between 2024-06-06 and 2024-08-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jackson Group' AND order_date BETWEEN '2024-06-06' AND '2024-08-10' + +Natural Query: What are the top 5 products by sales for Burke-Haley all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Burke-Haley' 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 Carpenter, Lee 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 = 'Carpenter, Lee 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 are the top 7 products by sales for Andersen Ltd all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Andersen Ltd' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: What are the top 6 products by revenue for Frederick Inc this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Frederick Inc' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: Show me all products in the without category with a price over $204.5. +SQL Query: SELECT * FROM products WHERE category = 'without' AND price > 204.5 + +Natural Query: List all products of Morales Group ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Morales Group' ORDER BY stock_quantity DESC + +Natural Query: What are the top 7 products by sales for Moreno LLC all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Moreno LLC' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cooke, Jackson and 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 = 'Cooke, Jackson and 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 sales for each supplier in Johnson, Harmon and Weiss? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Johnson, Harmon and Weiss' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Robertson 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 = 'Robertson LLC' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Miller, Marsh and Prince. +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, Marsh and Prince' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Casey-Boyd. +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 = 'Casey-Boyd' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Smith, Ryan and Cherry 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, Ryan and Cherry' + 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 customers for Ross-Gutierrez all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Ross-Gutierrez' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: What is the total quantity of all products for Burns-Baker? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Burns-Baker' + +Natural Query: What are the top 8 products by customers for Garrison Ltd this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Garrison Ltd' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: List all products of Ward, Payne and Yates ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ward, Payne and Yates' ORDER BY rating DESC + +Natural Query: What is the minimum quantity of all products for Hall, Richardson and Lee? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Hall, Richardson and Lee' + +Natural Query: What are the top 6 products by sales for Singh-Moore this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Singh-Moore' AND period = 'this year' 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 Sullivan 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 = 'Sullivan 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 Taylor 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 = 'Taylor 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 Richards LLC between 2023-10-10 and 2024-05-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Richards LLC' AND order_date BETWEEN '2023-10-10' AND '2024-05-09' + +Natural Query: What are the top 4 products by revenue for Wright, Proctor and Castillo last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Wright, Proctor and Castillo' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: How many orders were placed for Mitchell LLC between 2023-11-12 and 2024-02-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mitchell LLC' AND order_date BETWEEN '2023-11-12' AND '2024-02-27' + +Natural Query: What is the total quantity for each category in Price Group? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Price Group' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the minimum price of all products for Lara-Peck? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Lara-Peck' + +Natural Query: List all customers and their total order value for Bowen-Atkins. +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 = 'Bowen-Atkins' GROUP BY c.customer_id + +Natural Query: Show me all products in the task category with a price over $402.09. +SQL Query: SELECT * FROM products WHERE category = 'task' AND price > 402.09 + +Natural Query: List all products of Brown, Cooke and Keith ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Brown, Cooke and Keith' ORDER BY price DESC + +Natural Query: What is the maximum price of all products for Morrison Ltd? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Morrison Ltd' + +Natural Query: What is the total quantity for each supplier in Woodward, Burke and Jones? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Woodward, Burke and Jones' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Hayes-Brock between 2024-03-13 and 2024-08-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hayes-Brock' AND order_date BETWEEN '2024-03-13' AND '2024-08-04' + +Natural Query: List all products of Walter, Maddox and Smith ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Walter, Maddox and Smith' ORDER BY price ASC + +Natural Query: List all customers and their total order value for Hardy, Bailey and Solis. +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 = 'Hardy, Bailey and Solis' GROUP BY c.customer_id + +Natural Query: List all products of Taylor Group ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Taylor Group' ORDER BY rating ASC + +Natural Query: What is the total profit for each category in Clay Inc? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Clay Inc' GROUP BY category ORDER BY total_profit DESC + +Natural Query: Show me all products in the establish category with a price over $667.91. +SQL Query: SELECT * FROM products WHERE category = 'establish' AND price > 667.91 + +Natural Query: Show me all products in the chair category with a price over $39.16. +SQL Query: SELECT * FROM products WHERE category = 'chair' AND price > 39.16 + +Natural Query: What is the total quantity for each country in Jackson Inc? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Jackson Inc' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the average price of all products for Hensley PLC? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Hensley PLC' + +Natural Query: Show me all products in the manage category with a price over $272.1. +SQL Query: SELECT * FROM products WHERE category = 'manage' AND price > 272.1 + +Natural Query: What is the total sales for each category in Ward, Boone and David? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Ward, Boone and David' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all products of Kirk-Fry ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Kirk-Fry' ORDER BY price DESC + +Natural Query: List all products of Smith-Berry ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith-Berry' ORDER BY rating ASC + +Natural Query: What is the total profit for each supplier in Terry-Jenkins? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Terry-Jenkins' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: Show me all products in the enough category with a price over $827.23. +SQL Query: SELECT * FROM products WHERE category = 'enough' AND price > 827.23 + +Natural Query: What is the maximum quantity of all products for Romero and Sons? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Romero and Sons' + +Natural Query: What is the minimum quantity of all products for Johnson-Blackburn? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Johnson-Blackburn' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Kelly 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 = 'Kelly 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 are the top 4 products by customers for Case and Sons all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Case and Sons' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: What are the top 9 products by orders for Henderson Inc this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Henderson Inc' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Miller-Bowman 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 = 'Miller-Bowman' + 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 Fuller, Oconnor and Rivers. +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 = 'Fuller, Oconnor and Rivers' GROUP BY c.customer_id + +Natural Query: What is the total quantity of all products for Osborne, Rios and Oconnor? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Osborne, Rios and Oconnor' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Ruiz-Arnold 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 = 'Ruiz-Arnold' + 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 Brown, Norris and Mckenzie 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, Norris and Mckenzie' + 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 Evans and Sons ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Evans and Sons' ORDER BY price ASC + +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: List all customers and their total order value for Sexton, Perry and Gibson. +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 = 'Sexton, Perry and Gibson' GROUP BY c.customer_id + +Natural Query: What are the top 7 products by customers for Boyd, Arnold and Garcia this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Boyd, Arnold and Garcia' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: How many orders were placed for Price-Day between 2023-11-13 and 2024-09-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Price-Day' AND order_date BETWEEN '2023-11-13' AND '2024-09-16' + +Natural Query: What is the total quantity for each category in Fitzgerald, Thompson and Hill? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Fitzgerald, Thompson and Hill' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Anderson Ltd between 2024-05-09 and 2024-08-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Anderson Ltd' AND order_date BETWEEN '2024-05-09' AND '2024-08-15' + +Natural Query: What is the total rating of all products for Singh, Anderson and Webb? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Singh, Anderson and Webb' + +Natural Query: List all customers and their total order value for Phillips, Patton and Vasquez. +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, Patton and Vasquez' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Ross, Brown and Nguyen 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 = 'Ross, Brown and Nguyen' + 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 Chapman, Castillo and Mata ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Chapman, Castillo and Mata' ORDER BY stock_quantity ASC + +Natural Query: List all products of Andrews Inc ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Andrews Inc' ORDER BY rating DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Duncan-Hamilton 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 = 'Duncan-Hamilton' + 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 Lamb LLC between 2023-09-21 and 2023-12-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lamb LLC' AND order_date BETWEEN '2023-09-21' AND '2023-12-01' + +Natural Query: Show me all products in the deep category with a price over $143.26. +SQL Query: SELECT * FROM products WHERE category = 'deep' AND price > 143.26 + +Natural Query: How many orders were placed for Raymond, Myers and Ibarra between 2024-05-10 and 2024-08-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Raymond, Myers and Ibarra' AND order_date BETWEEN '2024-05-10' AND '2024-08-05' + +Natural Query: What are the top 7 products by revenue for Richards, Scott and Rivera this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Richards, Scott and Rivera' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: List all products of White, Watson and Medina ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'White, Watson and Medina' ORDER BY rating DESC + +Natural Query: How many orders were placed for Davis, Tucker and Sullivan between 2023-12-29 and 2024-05-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Davis, Tucker and Sullivan' AND order_date BETWEEN '2023-12-29' AND '2024-05-01' + +Natural Query: What is the total profit for each supplier in Fox and Sons? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Fox and Sons' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all products of Gonzalez Group ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gonzalez Group' ORDER BY rating DESC + +Natural Query: List all customers and their total order value for Sims-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 = 'Sims-Johnson' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for White 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 = 'White PLC' GROUP BY c.customer_id + +Natural Query: What is the minimum quantity of all products for Schneider, Kelly and Ellis? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Schneider, Kelly and Ellis' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Schultz, Daniels and Burgess 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 = 'Schultz, Daniels and Burgess' + 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 Lawson and Sons? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Lawson and Sons' + +Natural Query: List all products of Jennings Ltd ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jennings Ltd' ORDER BY rating DESC + +Natural Query: List all products of Powell-Kelly ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Powell-Kelly' ORDER BY price DESC + +Natural Query: What are the top 3 products by customers for Edwards-Malone all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Edwards-Malone' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: What is the total price of all products for Hughes and Sons? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Hughes and Sons' + +Natural Query: Show me all products in the sit category with a price over $664.42. +SQL Query: SELECT * FROM products WHERE category = 'sit' AND price > 664.42 + +Natural Query: List all customers and their total order value for Johnson-Rivera. +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-Rivera' GROUP BY c.customer_id + +Natural Query: Show me all products in the professional category with a price over $234.16. +SQL Query: SELECT * FROM products WHERE category = 'professional' AND price > 234.16 + +Natural Query: What is the total profit for each country in Baldwin-Phillips? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Baldwin-Phillips' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What is the total quantity for each category in Huang Inc? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Huang Inc' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Martin 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 = 'Martin Ltd' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Jackson, Ayers 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 = 'Jackson, Ayers 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 total profit for each category in Ramirez and Sons? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Ramirez and Sons' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 6 products by orders for Sawyer Ltd all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Sawyer Ltd' AND period = 'all time' 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 Campbell 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 = 'Campbell 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 total rating of all products for Maynard LLC? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Maynard LLC' + +Natural Query: List all customers and their total order value for Reid, Ramsey and Sims. +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 = 'Reid, Ramsey and Sims' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Richards-Lewis. +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 = 'Richards-Lewis' GROUP BY c.customer_id + +Natural Query: List all products of Evans-Burke ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Evans-Burke' ORDER BY price ASC + +Natural Query: What is the average quantity of all products for Durham-Ortega? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Durham-Ortega' + +Natural Query: What is the total sales for each category in Jones and Sons? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Jones and Sons' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all products of Williams PLC ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Williams PLC' ORDER BY price DESC + +Natural Query: List all products of Moore Inc ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Moore Inc' ORDER BY stock_quantity ASC + +Natural Query: What is the average rating of all products for Martin-Avila? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Martin-Avila' + +Natural Query: What is the maximum quantity of all products for Valentine-Richmond? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Valentine-Richmond' + +Natural Query: List all customers and their total order value for Howell 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 = 'Howell and Sons' GROUP BY c.customer_id + +Natural Query: What is the total sales for each country in Arroyo, Perez and Stewart? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Arroyo, Perez and Stewart' GROUP BY country ORDER BY total_sales DESC + +Natural Query: Show me all products in the plant category with a price over $927.23. +SQL Query: SELECT * FROM products WHERE category = 'plant' AND price > 927.23 + +Natural Query: List all products of Curry, Kennedy and Rojas ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Curry, Kennedy and Rojas' ORDER BY rating DESC + +Natural Query: What are the top 9 products by revenue for Simpson, Robinson and Franco all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Simpson, Robinson and Franco' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: What is the total profit for each category in Weaver, Ferguson and Davis? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Weaver, Ferguson and Davis' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 7 products by sales for Fernandez Group this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Fernandez Group' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Perry-Warren 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 = 'Perry-Warren' + 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-Pope ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jones-Pope' ORDER BY price ASC + +Natural Query: Show me all products in the week category with a price over $728.14. +SQL Query: SELECT * FROM products WHERE category = 'week' AND price > 728.14 + +Natural Query: How many orders were placed for Adams-Coleman between 2024-01-25 and 2024-05-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Adams-Coleman' AND order_date BETWEEN '2024-01-25' AND '2024-05-24' + +Natural Query: How many orders were placed for Carter LLC between 2024-09-04 and 2024-09-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Carter LLC' AND order_date BETWEEN '2024-09-04' AND '2024-09-06' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gutierrez, Martinez and Bruce 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 = 'Gutierrez, Martinez and Bruce' + 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 Dyer 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 = 'Dyer 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 Carter-Robertson ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Carter-Robertson' ORDER BY rating ASC + +Natural Query: What is the minimum rating of all products for Conway LLC? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Conway LLC' + +Natural Query: What is the minimum rating of all products for Huffman-Hickman? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Huffman-Hickman' + +Natural Query: List all products of Silva, Haney and Hernandez ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Silva, Haney and Hernandez' ORDER BY rating ASC + +Natural Query: Show me all products in the remain category with a price over $923.83. +SQL Query: SELECT * FROM products WHERE category = 'remain' AND price > 923.83 + +Natural Query: How many orders were placed for Drake, Gomez and Green between 2023-09-25 and 2024-05-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Drake, Gomez and Green' AND order_date BETWEEN '2023-09-25' AND '2024-05-30' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Crawford-Koch 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-Koch' + 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 orders for Cole Ltd this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Cole Ltd' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: List all customers and their total order value for Holmes-Hester. +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 = 'Holmes-Hester' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Santos 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 = 'Santos 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 is the total quantity for each category in Campbell, Flores and Schaefer? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Campbell, Flores and Schaefer' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Henry-Scott. +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 = 'Henry-Scott' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each country in Carrillo Inc? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Carrillo Inc' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Shannon 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 = 'Shannon 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 Brooks, Garrett and Curry between 2024-09-02 and 2024-09-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Brooks, Garrett and Curry' AND order_date BETWEEN '2024-09-02' AND '2024-09-10' + +Natural Query: What are the top 7 products by orders for Smith Group this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Smith Group' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: How many orders were placed for Melton, Martinez and Nguyen between 2024-01-11 and 2024-08-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Melton, Martinez and Nguyen' AND order_date BETWEEN '2024-01-11' AND '2024-08-08' + +Natural Query: List all products of Young-Fitzgerald ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Young-Fitzgerald' ORDER BY rating DESC + +Natural Query: Show me all products in the help category with a price over $112.32. +SQL Query: SELECT * FROM products WHERE category = 'help' AND price > 112.32 + +Natural Query: List all products of Herrera-Hester ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Herrera-Hester' ORDER BY price DESC + +Natural Query: What is the total profit for each category in Perkins-Medina? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Perkins-Medina' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Shelton, Kelley and Alexander 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 = 'Shelton, Kelley and Alexander' + 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 Avery-Casey 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 = 'Avery-Casey' + 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 Chavez, Lopez and Price? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Chavez, Lopez and Price' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What is the total profit for each category in Huffman, Bishop and Curtis? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Huffman, Bishop and Curtis' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 8 products by customers for Bryant LLC this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Bryant LLC' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: List all products of Williams-Robertson ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Williams-Robertson' ORDER BY price DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Potter 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 = 'Potter 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 Andrews-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 = 'Andrews-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 are the top 5 categories by sales for customers aged 25-35 in Smith, Tran and Thompson 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, Tran and Thompson' + 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 especially category with a price over $435.53. +SQL Query: SELECT * FROM products WHERE category = 'especially' AND price > 435.53 + +Natural Query: Show me all products in the manage category with a price over $178.18. +SQL Query: SELECT * FROM products WHERE category = 'manage' AND price > 178.18 + +Natural Query: List all products of Harris-Castillo ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Harris-Castillo' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hansen, Medina and 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 = 'Hansen, Medina and Cunningham' + 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 Wright, Navarro and Owens between 2023-11-16 and 2024-01-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wright, Navarro and Owens' AND order_date BETWEEN '2023-11-16' AND '2024-01-03' + +Natural Query: List all products of Ramsey LLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ramsey LLC' ORDER BY rating DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Anderson-Campos 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 = 'Anderson-Campos' + 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 Garcia PLC all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Garcia PLC' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: What is the total quantity for each supplier in Hawkins, Garcia and Brown? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Hawkins, Garcia and Brown' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Edwards-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 = 'Edwards-Brooks' + 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 Young, Elliott and Thompson? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Young, Elliott and Thompson' GROUP BY category ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Vasquez-Rivera. +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 = 'Vasquez-Rivera' GROUP BY c.customer_id + +Natural Query: List all products of Sawyer, Berry and Flores ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Sawyer, Berry and Flores' ORDER BY stock_quantity ASC + +Natural Query: List all products of Jackson Group ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jackson Group' ORDER BY rating ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Baker, Arnold and Benitez 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, Arnold and Benitez' + 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 customers for Hill-Johnson last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Hill-Johnson' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: What is the average quantity of all products for Johnson Ltd? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Johnson Ltd' + +Natural Query: How many orders were placed for Hill, Thomas and Ramirez between 2024-03-06 and 2024-07-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hill, Thomas and Ramirez' AND order_date BETWEEN '2024-03-06' AND '2024-07-15' + +Natural Query: List all customers and their total order value for Harding, Davis 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 = 'Harding, Davis and Fox' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each category in Wilkinson-Cohen? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Wilkinson-Cohen' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Friedman 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 = 'Friedman 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 Ferguson-Stone ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ferguson-Stone' ORDER BY stock_quantity ASC + +Natural Query: How many orders were placed for Rivera-Johnson between 2024-04-23 and 2024-07-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Rivera-Johnson' AND order_date BETWEEN '2024-04-23' AND '2024-07-08' + +Natural Query: How many orders were placed for Davis Ltd between 2024-09-15 and 2024-09-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Davis Ltd' AND order_date BETWEEN '2024-09-15' AND '2024-09-15' + +Natural Query: How many orders were placed for Thomas, Hoffman and Huffman between 2024-08-09 and 2024-08-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thomas, Hoffman and Huffman' AND order_date BETWEEN '2024-08-09' AND '2024-08-20' + +Natural Query: What are the top 6 products by sales for Garcia, Pitts and Boyer this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Garcia, Pitts and Boyer' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: Show me all products in the card category with a price over $612.79. +SQL Query: SELECT * FROM products WHERE category = 'card' AND price > 612.79 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Browning-Fowler 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 = 'Browning-Fowler' + 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 Joseph and Sons between 2024-06-04 and 2024-09-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Joseph and Sons' AND order_date BETWEEN '2024-06-04' AND '2024-09-13' + +Natural Query: Show me all products in the son category with a price over $153.51. +SQL Query: SELECT * FROM products WHERE category = 'son' AND price > 153.51 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gross 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 = 'Gross 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 Banks, Ortiz and Welch 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 = 'Banks, Ortiz and Welch' + 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 Adams-Andrews? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Adams-Andrews' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all products of Sanchez, Byrd and Wilson ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Sanchez, Byrd and Wilson' ORDER BY price ASC + +Natural Query: What are the top 5 products by sales for Richards, Taylor and Lewis this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Richards, Taylor and Lewis' AND period = 'this month' 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 Brooks-Mccarthy 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 = 'Brooks-Mccarthy' + 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 sales for Sanchez, Rogers and Wallace this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Sanchez, Rogers and Wallace' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: What are the top 9 products by sales for Rogers, Carlson and Rowe this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Rogers, Carlson and Rowe' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: How many orders were placed for Lee, Olsen and Montes between 2024-01-12 and 2024-04-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lee, Olsen and Montes' AND order_date BETWEEN '2024-01-12' AND '2024-04-03' + +Natural Query: What is the total profit for each supplier in Diaz LLC? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Diaz LLC' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: Show me all products in the five category with a price over $780.15. +SQL Query: SELECT * FROM products WHERE category = 'five' AND price > 780.15 + +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: List all customers and their total order value for Bradley, Parker and Schwartz. +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, Parker and Schwartz' GROUP BY c.customer_id + +Natural Query: What is the minimum rating of all products for Kent Inc? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Kent Inc' + +Natural Query: What is the total profit for each category in Houston-Allen? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Houston-Allen' GROUP BY category ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Vasquez, Hess and Tran. +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 = 'Vasquez, Hess and Tran' GROUP BY c.customer_id + +Natural Query: Show me all products in the quality category with a price over $220.92. +SQL Query: SELECT * FROM products WHERE category = 'quality' AND price > 220.92 + +Natural Query: What are the top 5 products by sales for Lane Group this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Lane Group' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: List all products of White, Henderson and Davis ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'White, Henderson and Davis' ORDER BY price ASC + +Natural Query: What are the top 10 products by sales for Bush-Ruiz this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Bush-Ruiz' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: How many orders were placed for Sims PLC between 2024-08-06 and 2024-08-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Sims PLC' AND order_date BETWEEN '2024-08-06' AND '2024-08-06' + +Natural Query: What is the total sales for each country in Frye Ltd? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Frye Ltd' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 7 products by customers for Bennett, Reid and Good all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Bennett, Reid and Good' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: What is the total sales for each country in Vargas, Flores and Sutton? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Vargas, Flores and Sutton' GROUP BY country ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Caldwell PLC between 2024-05-23 and 2024-07-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Caldwell PLC' AND order_date BETWEEN '2024-05-23' AND '2024-07-19' + +Natural Query: List all products of Hernandez, Cox and Trujillo ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hernandez, Cox and Trujillo' ORDER BY rating DESC + +Natural Query: How many orders were placed for Harvey-Morales between 2024-09-07 and 2024-09-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Harvey-Morales' AND order_date BETWEEN '2024-09-07' AND '2024-09-15' + +Natural Query: List all products of Doyle, Jefferson and Mccormick ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Doyle, Jefferson and Mccormick' ORDER BY rating ASC + +Natural Query: Show me all products in the set category with a price over $60.46. +SQL Query: SELECT * FROM products WHERE category = 'set' AND price > 60.46 + +Natural Query: What are the top 6 products by orders for Williams LLC this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Williams LLC' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: What are the top 7 products by revenue for Smith-Crane all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Smith-Crane' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: What is the maximum rating of all products for Stevens, Wagner and Moore? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Stevens, Wagner and Moore' + +Natural Query: What are the top 8 products by orders for Sweeney LLC last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Sweeney LLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: Show me all products in the southern category with a price over $176.04. +SQL Query: SELECT * FROM products WHERE category = 'southern' AND price > 176.04 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Martin 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 = 'Martin 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 are the top 5 categories by sales for customers aged 25-35 in Jones 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 = 'Jones 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 customers and their total order value for Wright, Gardner and Lee. +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 = 'Wright, Gardner and Lee' GROUP BY c.customer_id + +Natural Query: What are the top 9 products by orders for Ramirez PLC all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Ramirez PLC' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: What is the total sales for each country in Colon, Nash and Smith? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Colon, Nash and Smith' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Walker, Davis and 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 = 'Walker, Davis and Henderson' + 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 Yates-Herrera? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Yates-Herrera' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all products of Chavez Ltd ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Chavez Ltd' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Andrade-Mack. +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 = 'Andrade-Mack' GROUP BY c.customer_id + +Natural Query: What are the top 6 products by sales for Ellison Inc this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Ellison Inc' 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 Wilkins, Graves and Nguyen 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 = 'Wilkins, Graves and Nguyen' + 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 blood category with a price over $403.36. +SQL Query: SELECT * FROM products WHERE category = 'blood' AND price > 403.36 + +Natural Query: What is the total profit for each country in Wagner, Brown and Williams? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Wagner, Brown and Williams' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Duke, Fisher and Lewis. +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 = 'Duke, Fisher and Lewis' GROUP BY c.customer_id + +Natural Query: What is the total rating of all products for Young LLC? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Young LLC' + +Natural Query: What is the minimum quantity of all products for Whitney Group? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Whitney Group' + +Natural Query: Show me all products in the letter category with a price over $713.69. +SQL Query: SELECT * FROM products WHERE category = 'letter' AND price > 713.69 + +Natural Query: List all products of Collins, Kim and Grant ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Collins, Kim and Grant' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Taylor 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 = 'Taylor 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 Elliott Ltd? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Elliott Ltd' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gray, Dickson and Lynch 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 = 'Gray, Dickson and Lynch' + 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 Thomas-Marshall? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Thomas-Marshall' + +Natural Query: List all products of Hall-Ramos ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hall-Ramos' ORDER BY price DESC + +Natural Query: What are the top 4 products by sales for Fowler-Nelson last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Fowler-Nelson' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: What are the top 9 products by sales for Shelton, Forbes and Garcia last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Shelton, Forbes and Garcia' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: What is the total sales for each country in Ramsey, Martin and Barr? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Ramsey, Martin and Barr' GROUP BY country ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Robinson, Moore and Smith between 2024-04-01 and 2024-08-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Robinson, Moore and Smith' AND order_date BETWEEN '2024-04-01' AND '2024-08-23' + +Natural Query: What are the top 6 products by revenue for Johnson, Richard and Wyatt this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Johnson, Richard and Wyatt' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: Show me all products in the article category with a price over $749.81. +SQL Query: SELECT * FROM products WHERE category = 'article' AND price > 749.81 + +Natural Query: List all customers and their total order value for Barron-Casey. +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 = 'Barron-Casey' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Ryan-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 = 'Ryan-Anderson' + 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 Turner and Sons between 2024-06-24 and 2024-08-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Turner and Sons' AND order_date BETWEEN '2024-06-24' AND '2024-08-24' + +Natural Query: What are the top 4 products by customers for Gardner Group last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Gardner Group' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: What is the maximum rating of all products for David Ltd? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'David Ltd' + +Natural Query: List all customers and their total order value for Bennett, Casey and Willis. +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, Casey and Willis' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Jackson-Hill. +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 = 'Jackson-Hill' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Stuart, Pineda and Rodriguez 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 = 'Stuart, Pineda and Rodriguez' + 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 Alexander-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 = 'Alexander-Harris' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Armstrong Group between 2024-07-11 and 2024-08-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Armstrong Group' AND order_date BETWEEN '2024-07-11' AND '2024-08-10' + +Natural Query: What are the top 8 products by customers for Macias Group all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Macias Group' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: What is the total quantity for each category in Young Inc? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Young Inc' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Jackson 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 = 'Jackson 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 8 products by orders for Lee Group this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Lee Group' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: List all customers and their total order value for Brown, Andrade and Carpenter. +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, Andrade and Carpenter' GROUP BY c.customer_id + +Natural Query: List all products of Williams PLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Williams PLC' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cooper, Jones and Price 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, Jones and Price' + 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 Fisher, Dunn and Wagner ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Fisher, Dunn and Wagner' ORDER BY rating DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mitchell, Lambert and Pope 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 = 'Mitchell, Lambert and Pope' + 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 Parks, Levine and Murray. +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 = 'Parks, Levine and Murray' GROUP BY c.customer_id + +Natural Query: What is the total profit for each supplier in Carson, Bradley and Sanford? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Carson, Bradley and Sanford' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 5 products by orders for Walters-Schneider this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Walters-Schneider' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: What are the top 7 products by sales for Hernandez, Adkins and Lyons all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hernandez, Adkins and Lyons' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: What are the top 7 products by revenue for Spencer Inc last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Spencer Inc' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: List all products of Fischer LLC ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Fischer LLC' ORDER BY price ASC + +Natural Query: What is the average rating of all products for Kemp PLC? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Kemp PLC' + +Natural Query: Show me all products in the we category with a price over $307.2. +SQL Query: SELECT * FROM products WHERE category = 'we' AND price > 307.2 + +Natural Query: List all customers and their total order value for Pearson-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 = 'Pearson-Newton' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Franklin-Robinson between 2024-05-10 and 2024-07-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Franklin-Robinson' AND order_date BETWEEN '2024-05-10' AND '2024-07-07' + +Natural Query: What is the minimum rating of all products for Collins-Davidson? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Collins-Davidson' + +Natural Query: List all products of Turner, Grimes and Powell ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Turner, Grimes and Powell' ORDER BY price ASC + +Natural Query: How many orders were placed for Davis Inc between 2024-05-01 and 2024-07-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Davis Inc' AND order_date BETWEEN '2024-05-01' AND '2024-07-11' + +Natural Query: What are the top 4 products by sales for Lawson, Jordan and Ball all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Lawson, Jordan and Ball' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: What is the total price of all products for Reynolds, Frank and King? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Reynolds, Frank and King' + +Natural Query: How many orders were placed for Middleton-Peterson between 2024-07-04 and 2024-07-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Middleton-Peterson' AND order_date BETWEEN '2024-07-04' AND '2024-07-14' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lee 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 = 'Lee 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 Stafford, Mcdonald and Ray. +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 = 'Stafford, Mcdonald and Ray' GROUP BY c.customer_id + +Natural Query: What is the total profit for each supplier in Lawrence, Little and Hernandez? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Lawrence, Little and Hernandez' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Booth, Flores and Conner 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 = 'Booth, Flores and Conner' + 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 Bell 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 = 'Bell Group' GROUP BY c.customer_id + +Natural Query: What is the total profit for each country in Lucas LLC? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Lucas 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 Waller, Love 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 = 'Waller, Love 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: What are the top 10 products by orders for Lozano PLC this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Lozano PLC' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: What are the top 8 products by customers for Arnold-Davis this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Arnold-Davis' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: What is the total quantity for each country in Ferguson and Sons? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Ferguson and Sons' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the total price of all products for Meyer-Wilson? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Meyer-Wilson' + +Natural Query: What is the total quantity for each supplier in Lopez Ltd? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Lopez Ltd' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 8 products by revenue for Morrison, Wade and Key all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Morrison, Wade and Key' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: List all products of Rodriguez, Ortiz and Wilson ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rodriguez, Ortiz and Wilson' ORDER BY rating DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Miller 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 = 'Miller 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 maximum quantity of all products for Martinez, Lewis and Young? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Martinez, Lewis and Young' + +Natural Query: List all products of Vasquez Ltd ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Vasquez Ltd' ORDER BY rating ASC + +Natural Query: What is the average price of all products for Moore Ltd? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Moore Ltd' + +Natural Query: What is the total quantity for each country in Hester Group? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Hester Group' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Shaw 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 = 'Shaw Group' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Benitez 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 = 'Benitez and Sons' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Erickson, Herrera and Lang. +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 = 'Erickson, Herrera and Lang' GROUP BY c.customer_id + +Natural Query: What is the total price of all products for Butler, Richardson and Delacruz? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Butler, Richardson and Delacruz' + +Natural Query: What is the total profit for each country in Davis-Brown? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Davis-Brown' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all products of Nichols-Bell ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Nichols-Bell' ORDER BY price DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Osborne 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 = 'Osborne Ltd' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What is the total sales for each category in Howard-Greene? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Howard-Greene' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the total profit for each country in Pacheco Inc? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Pacheco Inc' GROUP BY country ORDER BY total_profit DESC + +Natural Query: Show me all products in the full category with a price over $782.29. +SQL Query: SELECT * FROM products WHERE category = 'full' AND price > 782.29 + +Natural Query: What is the average quantity of all products for Schultz Ltd? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Schultz Ltd' + +Natural Query: Show me all products in the defense category with a price over $134.28. +SQL Query: SELECT * FROM products WHERE category = 'defense' AND price > 134.28 + +Natural Query: What is the maximum rating of all products for King-Lopez? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'King-Lopez' + +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: How many orders were placed for Porter Ltd between 2023-10-03 and 2024-09-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Porter Ltd' AND order_date BETWEEN '2023-10-03' AND '2024-09-11' + +Natural Query: What is the minimum price of all products for Richmond, Williams and Jones? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Richmond, Williams and Jones' + +Natural Query: List all customers and their total order value for Cohen, Baker and Clarke. +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 = 'Cohen, Baker and Clarke' GROUP BY c.customer_id + +Natural Query: What are the top 9 products by customers for Wells-Garcia this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Wells-Garcia' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: List all products of Bush, Callahan and Hicks ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Bush, Callahan and Hicks' ORDER BY price ASC + +Natural Query: List all products of Harris, Ponce and Wilson ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Harris, Ponce and Wilson' ORDER BY rating DESC + +Natural Query: What are the top 8 products by revenue for Owen Group this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Owen Group' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: Show me all products in the less category with a price over $320.81. +SQL Query: SELECT * FROM products WHERE category = 'less' AND price > 320.81 + +Natural Query: What are the top 7 products by customers for Cox Ltd this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Cox Ltd' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: How many orders were placed for Turner Group between 2024-06-12 and 2024-09-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Turner Group' AND order_date BETWEEN '2024-06-12' AND '2024-09-08' + +Natural Query: What is the minimum rating of all products for Bradshaw Ltd? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Bradshaw Ltd' + +Natural Query: How many orders were placed for Garcia, Smith and Valdez between 2024-06-02 and 2024-06-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Garcia, Smith and Valdez' AND order_date BETWEEN '2024-06-02' AND '2024-06-30' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lee-Bailey 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-Bailey' + 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 Perkins, Daniel and Warren ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Perkins, Daniel and Warren' ORDER BY rating ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Garcia, Frank and Molina 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, Frank and Molina' + 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 special category with a price over $398.02. +SQL Query: SELECT * FROM products WHERE category = 'special' AND price > 398.02 + +Natural Query: List all products of Jennings LLC ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jennings LLC' ORDER BY stock_quantity ASC + +Natural Query: What are the top 6 products by sales for Gutierrez Ltd this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Gutierrez Ltd' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: What is the minimum quantity of all products for Bailey Ltd? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Bailey Ltd' + +Natural Query: List all customers and their total order value for Morris 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 = 'Morris LLC' GROUP BY c.customer_id + +Natural Query: What is the total price of all products for Weaver-Hill? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Weaver-Hill' + +Natural Query: List all customers and their total order value for Sparks-Valentine. +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 = 'Sparks-Valentine' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Jimenez 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 = 'Jimenez 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 sales for each country in Curtis-White? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Curtis-White' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the minimum price of all products for Page, Jefferson and Butler? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Page, Jefferson and Butler' + +Natural Query: What is the average quantity of all products for Anderson and Sons? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Anderson and Sons' + +Natural Query: What is the total sales for each supplier in Becker, Riggs and Johnson? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Becker, Riggs and Johnson' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Conner, Arnold and Walker between 2024-04-24 and 2024-08-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Conner, Arnold and Walker' AND order_date BETWEEN '2024-04-24' AND '2024-08-25' + +Natural Query: What are the top 3 products by revenue for Berg PLC this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Berg PLC' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: List all products of Miller-Gibbs ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Miller-Gibbs' ORDER BY stock_quantity ASC + +Natural Query: List all products of Holland-Peck ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Holland-Peck' ORDER BY stock_quantity DESC + +Natural Query: What are the top 7 products by orders for Richardson, Gonzalez and Burke this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Richardson, Gonzalez and Burke' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: List all products of Fitzgerald-Collins ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Fitzgerald-Collins' ORDER BY price ASC + +Natural Query: List all customers and their total order value for Marshall 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 = 'Marshall LLC' GROUP BY c.customer_id + +Natural Query: What are the top 3 products by revenue for Henderson, Sloan and Hurley this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Henderson, Sloan and Hurley' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: What are the top 10 products by sales for Stewart, Nichols and Patrick last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Stewart, Nichols and Patrick' AND period = 'last quarter' 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 Munoz 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 = 'Munoz 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 hit category with a price over $336.21. +SQL Query: SELECT * FROM products WHERE category = 'hit' AND price > 336.21 + +Natural Query: List all products of Martinez, Martin and Jimenez ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Martinez, Martin and Jimenez' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Wise, Gonzales and West. +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 = 'Wise, Gonzales and West' GROUP BY c.customer_id + +Natural Query: Show me all products in the management category with a price over $213.75. +SQL Query: SELECT * FROM products WHERE category = 'management' AND price > 213.75 + +Natural Query: What is the total quantity for each country in Haney, Wise and Lee? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Haney, Wise and Lee' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Lozano, Waller and Ray. +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 = 'Lozano, Waller and Ray' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Norris-Hall between 2024-02-28 and 2024-09-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Norris-Hall' AND order_date BETWEEN '2024-02-28' AND '2024-09-05' + +Natural Query: Show me all products in the perform category with a price over $528.41. +SQL Query: SELECT * FROM products WHERE category = 'perform' AND price > 528.41 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Armstrong 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 = 'Armstrong 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 Dunn, Parker and Sanchez ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Dunn, Parker and Sanchez' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Williams 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 = 'Williams Group' GROUP BY c.customer_id + +Natural Query: List all products of Molina, Smith and Campbell ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Molina, Smith and Campbell' ORDER BY rating ASC + +Natural Query: How many orders were placed for Thornton-Atkinson between 2024-03-15 and 2024-05-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thornton-Atkinson' AND order_date BETWEEN '2024-03-15' AND '2024-05-24' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Matthews 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 = 'Matthews 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 Butler-Aguilar between 2023-10-25 and 2024-08-02? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Butler-Aguilar' AND order_date BETWEEN '2023-10-25' AND '2024-08-02' + +Natural Query: List all products of Soto-Wilson ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Soto-Wilson' ORDER BY price ASC + +Natural Query: List all customers and their total order value for Richmond 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 = 'Richmond Group' GROUP BY c.customer_id + +Natural Query: What are the top 5 products by customers for Dean-Diaz last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Dean-Diaz' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: How many orders were placed for Jones Inc between 2024-01-29 and 2024-06-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jones Inc' AND order_date BETWEEN '2024-01-29' AND '2024-06-26' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gordon, Nelson and Ruiz 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 = 'Gordon, Nelson and Ruiz' + 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 Bennett-Kelly. +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-Kelly' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Welch, Blankenship and Williams between 2024-07-03 and 2024-07-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Welch, Blankenship and Williams' AND order_date BETWEEN '2024-07-03' AND '2024-07-20' + +Natural Query: What is the total quantity for each category in Steele-Rose? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Steele-Rose' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all products of Ramsey, Ochoa and Simpson ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ramsey, Ochoa and Simpson' ORDER BY stock_quantity DESC + +Natural Query: What is the maximum price of all products for Welch PLC? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Welch PLC' + +Natural Query: Show me all products in the interview category with a price over $422.09. +SQL Query: SELECT * FROM products WHERE category = 'interview' AND price > 422.09 + +Natural Query: List all products of Brock and Sons ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Brock and Sons' ORDER BY price DESC + +Natural Query: How many orders were placed for Foley-Soto between 2024-04-27 and 2024-05-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Foley-Soto' AND order_date BETWEEN '2024-04-27' AND '2024-05-08' + +Natural Query: List all customers and their total order value for Horton 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 = 'Horton LLC' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Underwood-Mccullough between 2023-10-08 and 2023-11-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Underwood-Mccullough' AND order_date BETWEEN '2023-10-08' AND '2023-11-23' + +Natural Query: List all products of Douglas, Rodriguez and Pierce ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Douglas, Rodriguez and Pierce' ORDER BY stock_quantity DESC + +Natural Query: List all products of Cox LLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Cox LLC' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Harper-Reyes. +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 = 'Harper-Reyes' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Davis, James 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 = 'Davis, James 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 orders for Cole, Cook and Fisher this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Cole, Cook and Fisher' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: What are the top 8 products by revenue for Barrett, Logan and Williams this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Barrett, Logan and Williams' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Grant, Wright and Clarke 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, Wright and Clarke' + 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 reason category with a price over $761.55. +SQL Query: SELECT * FROM products WHERE category = 'reason' AND price > 761.55 + +Natural Query: What is the maximum price of all products for Buckley, Johnson and Davidson? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Buckley, Johnson and Davidson' + +Natural Query: How many orders were placed for Williams-Harper between 2024-07-18 and 2024-09-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Williams-Harper' AND order_date BETWEEN '2024-07-18' AND '2024-09-09' + +Natural Query: Show me all products in the book category with a price over $748.28. +SQL Query: SELECT * FROM products WHERE category = 'book' AND price > 748.28 + +Natural Query: List all products of Jackson-Yoder ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jackson-Yoder' ORDER BY rating ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Shea, Mitchell and 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 = 'Shea, Mitchell and 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 customers and their total order value for Hill 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 = 'Hill Inc' GROUP BY c.customer_id + +Natural Query: What is the maximum rating of all products for Cohen LLC? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Cohen LLC' + +Natural Query: How many orders were placed for Jenkins PLC between 2024-07-16 and 2024-09-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jenkins PLC' AND order_date BETWEEN '2024-07-16' AND '2024-09-06' + +Natural Query: Show me all products in the relate category with a price over $883.77. +SQL Query: SELECT * FROM products WHERE category = 'relate' AND price > 883.77 + +Natural Query: List all products of Shaw, Barnes and Hanson ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Shaw, Barnes and Hanson' ORDER BY rating ASC + +Natural Query: How many orders were placed for Huff, Wang and Cooper between 2024-03-22 and 2024-05-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Huff, Wang and Cooper' AND order_date BETWEEN '2024-03-22' AND '2024-05-22' + +Natural Query: What is the total profit for each country in Cole, Gray and Smith? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Cole, Gray and Smith' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Rodriguez, Molina and Lee. +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 = 'Rodriguez, Molina and Lee' GROUP BY c.customer_id + +Natural Query: List all products of Anderson, Castillo and Davis ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Anderson, Castillo and Davis' ORDER BY stock_quantity ASC + +Natural Query: List all customers and their total order value for Collins-Henderson. +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 = 'Collins-Henderson' GROUP BY c.customer_id + +Natural Query: List all products of Payne, Brown and Hill ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Payne, Brown and Hill' ORDER BY price DESC + +Natural Query: List all products of Key, Miller and Coleman ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Key, Miller and Coleman' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Smith, Rivera and 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 = 'Smith, Rivera and 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 minimum price of all products for Taylor, Thompson and Hanson? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Taylor, Thompson and Hanson' + +Natural Query: What are the top 8 products by sales for Kim-Rogers all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Kim-Rogers' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: List all products of Tran-Thompson ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Tran-Thompson' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Murphy, Duran and Munoz 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 = 'Murphy, Duran and Munoz' + 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 Simpson, Miller and Flores. +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 = 'Simpson, Miller and Flores' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in May-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 = 'May-Kramer' + 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 Winters and Sons between 2024-03-02 and 2024-04-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Winters and Sons' AND order_date BETWEEN '2024-03-02' AND '2024-04-03' + +Natural Query: What is the total rating of all products for Flynn-Ortiz? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Flynn-Ortiz' + +Natural Query: List all customers and their total order value for Evans, Romero and Rivera. +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, Romero and Rivera' GROUP BY c.customer_id + +Natural Query: What are the top 4 products by sales for Collier, Martinez and Mcintosh last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Collier, Martinez and Mcintosh' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: What is the average rating of all products for Adams PLC? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Adams PLC' + +Natural Query: What is the total sales for each supplier in Higgins-Roberts? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Higgins-Roberts' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the total quantity for each category in Warren, Carrillo and Pham? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Warren, Carrillo and Pham' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the total quantity for each supplier in Guerra, Paul and Nichols? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Guerra, Paul and Nichols' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Hill, Williams and Serrano between 2024-05-06 and 2024-09-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hill, Williams and Serrano' AND order_date BETWEEN '2024-05-06' AND '2024-09-09' + +Natural Query: Show me all products in the of category with a price over $746.47. +SQL Query: SELECT * FROM products WHERE category = 'of' AND price > 746.47 + +Natural Query: What is the total sales for each supplier in Johnson, Lawson and Diaz? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Johnson, Lawson and Diaz' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Harris-Walker 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 = 'Harris-Walker' + 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 rating of all products for Case, Kirby and Glenn? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Case, Kirby and Glenn' + +Natural Query: How many orders were placed for Ellis-Miller between 2023-12-19 and 2024-08-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ellis-Miller' AND order_date BETWEEN '2023-12-19' AND '2024-08-26' + +Natural Query: Show me all products in the build category with a price over $594.66. +SQL Query: SELECT * FROM products WHERE category = 'build' AND price > 594.66 + +Natural Query: What is the total profit for each category in Perry, Simon and Young? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Perry, Simon and Young' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the total quantity for each country in Daniels, Miller and Stevenson? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Daniels, Miller and Stevenson' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Wilson, Rowland and Gross. +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, Rowland and Gross' GROUP BY c.customer_id + +Natural Query: List all products of Thompson, Soto and Stark ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Thompson, Soto and Stark' ORDER BY stock_quantity DESC + +Natural Query: List all products of Green, Porter and Davis ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Green, Porter and Davis' ORDER BY price DESC + +Natural Query: What is the total sales for each supplier in Moody-Barajas? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Moody-Barajas' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Smith-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 = 'Smith-Hudson' + 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 front category with a price over $274.05. +SQL Query: SELECT * FROM products WHERE category = 'front' AND price > 274.05 + +Natural Query: How many orders were placed for Hodges-Davis between 2024-01-08 and 2024-05-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hodges-Davis' AND order_date BETWEEN '2024-01-08' AND '2024-05-01' + +Natural Query: How many orders were placed for Greer, Singh and Washington between 2024-08-26 and 2024-09-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Greer, Singh and Washington' AND order_date BETWEEN '2024-08-26' AND '2024-09-15' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Vasquez 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 = 'Vasquez 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 customers and their total order value for Hernandez, Parker and Garza. +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, Parker and Garza' GROUP BY c.customer_id + +Natural Query: Show me all products in the play category with a price over $35.64. +SQL Query: SELECT * FROM products WHERE category = 'play' AND price > 35.64 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Horn 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 = 'Horn 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 Kennedy-Chang. +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 = 'Kennedy-Chang' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Carroll-George between 2024-01-10 and 2024-08-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Carroll-George' AND order_date BETWEEN '2024-01-10' AND '2024-08-16' + +Natural Query: How many orders were placed for Johnson-Simmons between 2024-06-11 and 2024-07-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Johnson-Simmons' AND order_date BETWEEN '2024-06-11' AND '2024-07-01' + +Natural Query: How many orders were placed for Stewart, Bean and Maldonado between 2024-07-24 and 2024-08-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Stewart, Bean and Maldonado' AND order_date BETWEEN '2024-07-24' AND '2024-08-03' + +Natural Query: What is the total sales for each category in Brown LLC? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Brown LLC' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the average rating of all products for Reeves Ltd? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Reeves Ltd' + +Natural Query: List all customers and their total order value for Heath, Salas and King. +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 = 'Heath, Salas and King' GROUP BY c.customer_id + +Natural Query: What is the total rating of all products for Johnson-Matthews? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Johnson-Matthews' + +Natural Query: List all customers and their total order value for Garcia-Wilson. +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-Wilson' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Davis-Hunter between 2024-07-21 and 2024-08-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Davis-Hunter' AND order_date BETWEEN '2024-07-21' AND '2024-08-09' + +Natural Query: List all products of Gibson LLC ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gibson LLC' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Robertson, Stewart and Duncan 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 = 'Robertson, Stewart and Duncan' + 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 in category with a price over $469.54. +SQL Query: SELECT * FROM products WHERE category = 'in' AND price > 469.54 + +Natural Query: What is the total rating of all products for Gonzalez-Wallace? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Gonzalez-Wallace' + +Natural Query: How many orders were placed for Thompson Ltd between 2024-04-03 and 2024-04-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thompson Ltd' AND order_date BETWEEN '2024-04-03' AND '2024-04-20' + +Natural Query: Show me all products in the school category with a price over $827.02. +SQL Query: SELECT * FROM products WHERE category = 'school' AND price > 827.02 + +Natural Query: How many orders were placed for Hall, Dixon and Smith between 2023-10-20 and 2024-02-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hall, Dixon and Smith' AND order_date BETWEEN '2023-10-20' AND '2024-02-01' + +Natural Query: How many orders were placed for Tucker Inc between 2024-04-10 and 2024-04-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Tucker Inc' AND order_date BETWEEN '2024-04-10' AND '2024-04-12' + +Natural Query: List all products of Richards, Mack and Sosa ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Richards, Mack and Sosa' ORDER BY stock_quantity DESC + +Natural Query: List all products of Burton, Castillo and Padilla ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Burton, Castillo and Padilla' ORDER BY price DESC + +Natural Query: What is the total price of all products for Chavez PLC? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Chavez PLC' + +Natural Query: Show me all products in the imagine category with a price over $836.69. +SQL Query: SELECT * FROM products WHERE category = 'imagine' AND price > 836.69 + +Natural Query: List all products of Christian-Mathews ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Christian-Mathews' ORDER BY stock_quantity DESC + +Natural Query: What is the minimum quantity of all products for Avila and Sons? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Avila and Sons' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hernandez, Young and 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 = 'Hernandez, Young and Martin' + 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 air category with a price over $44.17. +SQL Query: SELECT * FROM products WHERE category = 'air' AND price > 44.17 + +Natural Query: What is the total sales for each country in Todd, Galloway and Allen? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Todd, Galloway and Allen' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Osborne, Harris and 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 = 'Osborne, Harris and 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 categories by sales for customers aged 25-35 in Green, Phillips 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 = 'Green, Phillips 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 are the top 3 products by customers for Howe, Fisher and Hall last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Howe, Fisher and Hall' 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 Anderson PLC? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Anderson PLC' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Mack 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 = 'Mack PLC' GROUP BY c.customer_id + +Natural Query: Show me all products in the physical category with a price over $647.36. +SQL Query: SELECT * FROM products WHERE category = 'physical' AND price > 647.36 + +Natural Query: List all products of West, Gray and Alvarez ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'West, Gray and Alvarez' ORDER BY rating ASC + +Natural Query: Show me all products in the always category with a price over $724.39. +SQL Query: SELECT * FROM products WHERE category = 'always' AND price > 724.39 + +Natural Query: How many orders were placed for Robinson Ltd between 2024-03-01 and 2024-08-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Robinson Ltd' AND order_date BETWEEN '2024-03-01' AND '2024-08-28' + +Natural Query: What are the top 5 products by revenue for Williamson, Maldonado and Adams all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Williamson, Maldonado and Adams' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Yates 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 = 'Yates 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 3 products by orders for Bush Ltd all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Bush Ltd' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: What is the total profit for each supplier in Bailey and Sons? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Bailey and Sons' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the total quantity for each category in Melton Group? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Melton Group' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Barnett 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 = 'Barnett Inc' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Bishop 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 = 'Bishop Group' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Williams Inc between 2024-07-25 and 2024-08-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Williams Inc' AND order_date BETWEEN '2024-07-25' AND '2024-08-20' + +Natural Query: List all customers and their total order value for Bishop, Heath and Miller. +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 = 'Bishop, Heath and Miller' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Harris-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 = 'Harris-Peterson' + 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 Webb 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 = 'Webb Group' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each country in Berry, Lopez and Thomas? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Berry, Lopez and Thomas' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 5 products by customers for Boyd PLC last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Boyd PLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: List all customers and their total order value for Thompson-Long. +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 = 'Thompson-Long' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Clarke, Taylor and Diaz. +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 = 'Clarke, Taylor and Diaz' GROUP BY c.customer_id + +Natural Query: What is the total sales for each category in Anderson, Singh and Horne? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Anderson, Singh and Horne' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 5 products by orders for Anderson, Fowler and Gilbert all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Anderson, Fowler and Gilbert' AND period = 'all time' 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 Hubbard-Hanson 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 = 'Hubbard-Hanson' + 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 Haley, Perez and Alexander 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 = 'Haley, Perez and Alexander' + 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 Buchanan-Lewis ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Buchanan-Lewis' ORDER BY stock_quantity ASC + +Natural Query: What is the average price of all products for Williams-Brown? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Williams-Brown' + +Natural Query: What is the total quantity for each category in Nash-Monroe? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Nash-Monroe' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all products of Vasquez LLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Vasquez LLC' ORDER BY stock_quantity DESC + +Natural Query: List all products of Coleman Inc ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Coleman Inc' ORDER BY price DESC + +Natural Query: What is the maximum quantity of all products for Guerra-Garcia? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Guerra-Garcia' + +Natural Query: How many orders were placed for Bailey-Cole between 2023-10-20 and 2024-01-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bailey-Cole' AND order_date BETWEEN '2023-10-20' AND '2024-01-09' + +Natural Query: How many orders were placed for Morales Ltd between 2024-06-09 and 2024-07-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Morales Ltd' AND order_date BETWEEN '2024-06-09' AND '2024-07-07' + +Natural Query: List all products of Dorsey PLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Dorsey PLC' ORDER BY rating DESC + +Natural Query: List all products of Jimenez, Thompson and Wells ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jimenez, Thompson and Wells' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Henderson 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 = 'Henderson and Sons' GROUP BY c.customer_id + +Natural Query: What is the maximum rating of all products for Hurst-Mckenzie? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Hurst-Mckenzie' + +Natural Query: List all customers and their total order value for Norton-Duncan. +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 = 'Norton-Duncan' GROUP BY c.customer_id + +Natural Query: What is the minimum price of all products for Fox Group? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Fox Group' + +Natural Query: List all customers and their total order value for Dudley, Ryan and Murray. +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 = 'Dudley, Ryan and Murray' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Torres, Lopez and Velasquez between 2024-08-13 and 2024-09-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Torres, Lopez and Velasquez' AND order_date BETWEEN '2024-08-13' AND '2024-09-10' + +Natural Query: What is the total quantity for each supplier in Lewis, Hall and Burgess? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Lewis, Hall and Burgess' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Hernandez-Cole. +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-Cole' GROUP BY c.customer_id + +Natural Query: List all products of Richards Inc ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Richards Inc' ORDER BY price DESC + +Natural Query: What is the average rating of all products for Davis-Clark? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Davis-Clark' + +Natural Query: Show me all products in the large category with a price over $263.76. +SQL Query: SELECT * FROM products WHERE category = 'large' AND price > 263.76 + +Natural Query: What is the maximum rating of all products for Martinez-Faulkner? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Martinez-Faulkner' + +Natural Query: How many orders were placed for Burnett Ltd between 2023-11-03 and 2024-04-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Burnett Ltd' AND order_date BETWEEN '2023-11-03' AND '2024-04-23' + +Natural Query: How many orders were placed for Henry-Bradley between 2024-07-15 and 2024-07-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Henry-Bradley' AND order_date BETWEEN '2024-07-15' AND '2024-07-30' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in James-Chapman 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 = 'James-Chapman' + 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 Quinn-Carter? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Quinn-Carter' + +Natural Query: What is the average price of all products for Chambers Group? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Chambers Group' + +Natural Query: List all customers and their total order value for Villa 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 = 'Villa Ltd' GROUP BY c.customer_id + +Natural Query: What is the total profit for each country in Yu Inc? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Yu Inc' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Smith-Alexander. +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-Alexander' GROUP BY c.customer_id + +Natural Query: What are the top 3 products by sales for Taylor-Coleman this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Taylor-Coleman' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: List all products of Parks-Moore ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Parks-Moore' ORDER BY rating ASC + +Natural Query: List all products of Cruz, Garner and Harris ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Cruz, Garner and Harris' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Brown-Wilcox. +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-Wilcox' GROUP BY c.customer_id + +Natural Query: Show me all products in the such category with a price over $839.26. +SQL Query: SELECT * FROM products WHERE category = 'such' AND price > 839.26 + +Natural Query: What is the total sales for each category in Greene Ltd? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Greene Ltd' GROUP BY category ORDER BY total_sales DESC + +Natural Query: Show me all products in the but category with a price over $765.42. +SQL Query: SELECT * FROM products WHERE category = 'but' AND price > 765.42 + +Natural Query: What is the total sales for each category in Lee-Smith? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Lee-Smith' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 3 products by revenue for Williams, Paul and Anderson this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Williams, Paul and Anderson' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: List all customers and their total order value for Hogan 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 = 'Hogan PLC' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Berg, Lopez and Harrison. +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 = 'Berg, Lopez and Harrison' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Castro-Sims 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 = 'Castro-Sims' + 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 Wilson LLC? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Wilson LLC' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What is the total quantity for each supplier in Robertson and Sons? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Robertson and Sons' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the total quantity of all products for Johnson, Williams and Kelly? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Johnson, Williams and Kelly' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Murphy, Palmer and Taylor 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 = 'Murphy, Palmer and Taylor' + 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 Flowers Ltd? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Flowers Ltd' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Baker 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 = 'Baker 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 Fuller LLC ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Fuller LLC' ORDER BY stock_quantity ASC + +Natural Query: How many orders were placed for Murphy, Rogers and Rowland between 2023-12-14 and 2024-04-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Murphy, Rogers and Rowland' AND order_date BETWEEN '2023-12-14' AND '2024-04-17' + +Natural Query: List all customers and their total order value for Fritz-Dunn. +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 = 'Fritz-Dunn' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Ramos LLC between 2024-01-23 and 2024-03-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ramos LLC' AND order_date BETWEEN '2024-01-23' AND '2024-03-06' + +Natural Query: How many orders were placed for Barton, Ibarra and Williams between 2024-02-09 and 2024-08-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Barton, Ibarra and Williams' AND order_date BETWEEN '2024-02-09' AND '2024-08-10' + +Natural Query: Show me all products in the throughout category with a price over $255.48. +SQL Query: SELECT * FROM products WHERE category = 'throughout' AND price > 255.48 + +Natural Query: How many orders were placed for Ryan, Cunningham and Paul between 2023-11-07 and 2024-01-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ryan, Cunningham and Paul' AND order_date BETWEEN '2023-11-07' AND '2024-01-05' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Thompson-Thomas 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-Thomas' + 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 Garcia, Young and Hernandez ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Garcia, Young and Hernandez' ORDER BY stock_quantity ASC + +Natural Query: What is the maximum quantity of all products for Clark-Gonzalez? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Clark-Gonzalez' + +Natural Query: What is the total quantity for each category in Blair-Medina? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Blair-Medina' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the total quantity for each supplier in Serrano-Lawson? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Serrano-Lawson' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the total profit for each country in Gardner-Taylor? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Gardner-Taylor' GROUP BY country ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Whitney, Stewart and Hale between 2023-12-14 and 2024-07-31? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Whitney, Stewart and Hale' AND order_date BETWEEN '2023-12-14' AND '2024-07-31' + +Natural Query: What is the total sales for each category in Mccarthy, Dillon and Delgado? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Mccarthy, Dillon and Delgado' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 9 products by sales for Phillips, Rodriguez and Jones this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Phillips, Rodriguez and Jones' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: How many orders were placed for Shepard, Lopez and Contreras between 2024-01-28 and 2024-06-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Shepard, Lopez and Contreras' AND order_date BETWEEN '2024-01-28' AND '2024-06-24' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Acosta-Maddox 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 = 'Acosta-Maddox' + 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 Smith-Wise? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Smith-Wise' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Dillon 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 = 'Dillon 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 Williams Ltd ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Williams Ltd' ORDER BY price ASC + +Natural Query: What is the average price of all products for Banks-Brown? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Banks-Brown' + +Natural Query: List all products of Brooks-Kelly ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Brooks-Kelly' ORDER BY rating ASC + +Natural Query: What are the top 4 products by customers for Long Inc last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Long Inc' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: List all products of Turner-Carpenter ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Turner-Carpenter' ORDER BY stock_quantity ASC + +Natural Query: List all customers and their total order value for Perry 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 = 'Perry Group' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Rogers, Gallegos and Stanley 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 = 'Rogers, Gallegos and Stanley' + 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 Bass, Evans and Weeks ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Bass, Evans and Weeks' ORDER BY rating DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Church 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 = 'Church 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 5 categories by sales for customers aged 25-35 in Carroll-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 = 'Carroll-Bryant' + 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 Flynn, Jackson and Sandoval? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Flynn, Jackson and Sandoval' + +Natural Query: Show me all products in the subject category with a price over $52.29. +SQL Query: SELECT * FROM products WHERE category = 'subject' AND price > 52.29 + +Natural Query: What are the top 3 products by revenue for Lopez Group this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Lopez Group' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: List all products of Mcconnell PLC ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mcconnell PLC' ORDER BY rating ASC + +Natural Query: What are the top 4 products by sales for White, Taylor and Wood this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'White, Taylor and Wood' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: What is the total sales for each category in Perkins, White and Crawford? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Perkins, White and Crawford' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Thomas 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 = 'Thomas 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 Murphy-Fisher 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 = 'Murphy-Fisher' + 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 country in Roberts, Campbell and Gray? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Roberts, Campbell and Gray' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cooper, Hodge and Terry 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, Hodge and Terry' + 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-Henderson between 2024-08-20 and 2024-08-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gonzalez-Henderson' AND order_date BETWEEN '2024-08-20' AND '2024-08-27' + +Natural Query: Show me all products in the those category with a price over $872.75. +SQL Query: SELECT * FROM products WHERE category = 'those' AND price > 872.75 + +Natural Query: What are the top 10 products by orders for Welch, Barnes and Anderson this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Welch, Barnes and Anderson' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: List all products of Bradley-Martinez ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Bradley-Martinez' ORDER BY rating ASC + +Natural Query: How many orders were placed for Jones, Garcia and Mcgee between 2024-08-09 and 2024-09-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jones, Garcia and Mcgee' AND order_date BETWEEN '2024-08-09' AND '2024-09-09' + +Natural Query: List all customers and their total order value for Kelley, Perkins and Andrews. +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 = 'Kelley, Perkins and Andrews' GROUP BY c.customer_id + +Natural Query: What is the average quantity of all products for Joseph, Dunn and Bell? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Joseph, Dunn and Bell' + +Natural Query: What is the total rating of all products for Rodriguez Inc? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Rodriguez Inc' + +Natural Query: List all products of Golden and Sons ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Golden and Sons' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Steele 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 = 'Steele Inc' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Weiss 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 = 'Weiss and Sons' GROUP BY c.customer_id + +Natural Query: Show me all products in the camera category with a price over $846.34. +SQL Query: SELECT * FROM products WHERE category = 'camera' AND price > 846.34 + +Natural Query: What is the total profit for each supplier in Huff LLC? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Huff LLC' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: How many orders were placed for King, Long and Johnston between 2024-01-31 and 2024-04-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'King, Long and Johnston' AND order_date BETWEEN '2024-01-31' AND '2024-04-05' + +Natural Query: Show me all products in the for category with a price over $603.18. +SQL Query: SELECT * FROM products WHERE category = 'for' AND price > 603.18 + +Natural Query: List all products of Garrett, Howard and Garcia ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Garrett, Howard and Garcia' ORDER BY rating DESC + +Natural Query: What are the top 9 products by orders for Chen PLC this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Chen PLC' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: Show me all products in the trade category with a price over $198.97. +SQL Query: SELECT * FROM products WHERE category = 'trade' AND price > 198.97 + +Natural Query: Show me all products in the my category with a price over $572.95. +SQL Query: SELECT * FROM products WHERE category = 'my' AND price > 572.95 + +Natural Query: How many orders were placed for Mcdonald-Rodriguez between 2023-11-29 and 2024-04-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mcdonald-Rodriguez' AND order_date BETWEEN '2023-11-29' AND '2024-04-04' + +Natural Query: List all products of Munoz, Green and Castro ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Munoz, Green and Castro' ORDER BY price DESC + +Natural Query: What is the total profit for each country in Gordon-Horn? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Gordon-Horn' GROUP BY country ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Hanson-Lopez between 2024-02-04 and 2024-08-31? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hanson-Lopez' AND order_date BETWEEN '2024-02-04' AND '2024-08-31' + +Natural Query: What is the total sales for each country in Morales-Dougherty? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Morales-Dougherty' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the total quantity for each supplier in Lang-Brown? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Lang-Brown' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Phillips-Turner between 2024-01-10 and 2024-06-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Phillips-Turner' AND order_date BETWEEN '2024-01-10' AND '2024-06-01' + +Natural Query: Show me all products in the truth category with a price over $52.23. +SQL Query: SELECT * FROM products WHERE category = 'truth' AND price > 52.23 + +Natural Query: How many orders were placed for Dominguez-Jones between 2023-11-08 and 2024-09-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Dominguez-Jones' AND order_date BETWEEN '2023-11-08' AND '2024-09-14' + +Natural Query: List all products of Young Group ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Young Group' ORDER BY rating DESC + +Natural Query: What is the total profit for each supplier in Rodriguez, Morrison and Tucker? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Rodriguez, Morrison and Tucker' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Duffy-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 = 'Duffy-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 is the total sales for each country in Jones, Bradley and Lewis? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Jones, Bradley and Lewis' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the average price of all products for Hartman-Hensley? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Hartman-Hensley' + +Natural Query: List all products of Shaw, Lee and Cruz ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Shaw, Lee and Cruz' ORDER BY rating DESC + +Natural Query: What is the average price of all products for Martinez, Brown and Ramsey? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Martinez, Brown and Ramsey' + +Natural Query: List all products of Harvey PLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Harvey PLC' ORDER BY rating DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gonzalez-Alexander 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 = 'Gonzalez-Alexander' + 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-Gomez ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith-Gomez' ORDER BY stock_quantity ASC + +Natural Query: List all customers and their total order value for Valdez 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 = 'Valdez Group' GROUP BY c.customer_id + +Natural Query: List all products of Mills Group ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mills Group' ORDER BY price ASC + +Natural Query: List all products of Taylor, Chandler and Collins ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Taylor, Chandler and Collins' ORDER BY price DESC + +Natural Query: How many orders were placed for Gross PLC between 2024-01-20 and 2024-06-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gross PLC' AND order_date BETWEEN '2024-01-20' AND '2024-06-25' + +Natural Query: What is the average rating of all products for Wood-Hill? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Wood-Hill' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Davis-Phillips 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-Phillips' + 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 orders for Lambert Group this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Lambert Group' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: How many orders were placed for Young-Hill between 2024-08-26 and 2024-09-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Young-Hill' AND order_date BETWEEN '2024-08-26' AND '2024-09-06' + +Natural Query: What is the total quantity for each category in Sparks, Dean and Sweeney? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Sparks, Dean and Sweeney' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all products of Lara, Smith and Burnett ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lara, Smith and Burnett' ORDER BY stock_quantity ASC + +Natural Query: List all customers and their total order value for Mendez-Moran. +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 = 'Mendez-Moran' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Tran 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 = 'Tran 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 Taylor, Silva and Ortega between 2023-10-15 and 2023-10-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Taylor, Silva and Ortega' AND order_date BETWEEN '2023-10-15' AND '2023-10-21' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Nelson, Short and 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 = 'Nelson, Short and Moore' + 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 Smith, Brewer and Haley between 2024-05-22 and 2024-06-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Smith, Brewer and Haley' AND order_date BETWEEN '2024-05-22' AND '2024-06-14' + +Natural Query: What are the top 5 products by customers for Savage, Wiggins and Miller last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Savage, Wiggins and Miller' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: List all customers and their total order value for Mills 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 = 'Mills Group' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Lee 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 = 'Lee LLC' GROUP BY c.customer_id + +Natural Query: What are the top 9 products by orders for Moore-Hendrix all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Moore-Hendrix' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: List all customers and their total order value for Proctor-Cortez. +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 = 'Proctor-Cortez' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Allen, Robertson and 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 = 'Allen, Robertson and 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 fast category with a price over $379.89. +SQL Query: SELECT * FROM products WHERE category = 'fast' AND price > 379.89 + +Natural Query: What is the total rating of all products for Moreno, Burke and Ayers? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Moreno, Burke and Ayers' + +Natural Query: Show me all products in the blue category with a price over $175.89. +SQL Query: SELECT * FROM products WHERE category = 'blue' AND price > 175.89 + +Natural Query: Show me all products in the late category with a price over $67.71. +SQL Query: SELECT * FROM products WHERE category = 'late' AND price > 67.71 + +Natural Query: List all customers and their total order value for Adams 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 = 'Adams Ltd' GROUP BY c.customer_id + +Natural Query: List all products of Hardy, Smith and Robinson ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hardy, Smith and Robinson' ORDER BY price DESC + +Natural Query: What is the maximum quantity of all products for Greer LLC? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Greer LLC' + +Natural Query: Show me all products in the national category with a price over $334.14. +SQL Query: SELECT * FROM products WHERE category = 'national' AND price > 334.14 + +Natural Query: How many orders were placed for Grant PLC between 2024-08-29 and 2024-09-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Grant PLC' AND order_date BETWEEN '2024-08-29' AND '2024-09-08' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Smith 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 = 'Smith 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 Bailey, Hayes and Oconnor 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, Hayes and Oconnor' + 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 orders for Clark-Melton all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Clark-Melton' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: List all products of Wyatt Ltd ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wyatt Ltd' ORDER BY stock_quantity DESC + +Natural Query: List all products of Peters Inc ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Peters Inc' ORDER BY price ASC + +Natural Query: List all customers and their total order value for Cunningham 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 = 'Cunningham LLC' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Wagner, Hughes and 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 = 'Wagner, Hughes and Reed' GROUP BY c.customer_id + +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: Show me all products in the candidate category with a price over $844.88. +SQL Query: SELECT * FROM products WHERE category = 'candidate' AND price > 844.88 + +Natural Query: What is the total quantity for each category in Waller-Solis? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Waller-Solis' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the total quantity for each country in Morris-Higgins? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Morris-Higgins' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Ross 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 = 'Ross PLC' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Wallace 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 = 'Wallace PLC' + 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 Case Group between 2024-08-20 and 2024-09-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Case Group' AND order_date BETWEEN '2024-08-20' AND '2024-09-12' + +Natural Query: How many orders were placed for Lin and Sons between 2024-07-12 and 2024-08-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lin and Sons' AND order_date BETWEEN '2024-07-12' AND '2024-08-05' + +Natural Query: What are the top 8 products by orders for Murray, Mccall and Wagner all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Murray, Mccall and Wagner' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: What is the total price of all products for Sanford-Adams? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Sanford-Adams' + +Natural Query: List all products of Watkins, Lucas and Wilkerson ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Watkins, Lucas and Wilkerson' ORDER BY rating ASC + +Natural Query: Show me all products in the herself category with a price over $191.03. +SQL Query: SELECT * FROM products WHERE category = 'herself' AND price > 191.03 + +Natural Query: Show me all products in the red category with a price over $288.67. +SQL Query: SELECT * FROM products WHERE category = 'red' AND price > 288.67 + +Natural Query: List all customers and their total order value for Dennis-Shelton. +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 = 'Dennis-Shelton' GROUP BY c.customer_id + +Natural Query: What is the total rating of all products for Mason-Haynes? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Mason-Haynes' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Young, Santiago and Bradley 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 = 'Young, Santiago and Bradley' + 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 Kelly 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 = 'Kelly 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 products of Torres-Green ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Torres-Green' ORDER BY price ASC + +Natural Query: What are the top 8 products by customers for Davis LLC all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Davis LLC' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: What is the total profit for each supplier in Richards LLC? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Richards LLC' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Evans 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 = 'Evans Ltd' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Raymond-Mclean. +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 = 'Raymond-Mclean' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Vargas-Gonzalez. +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-Gonzalez' GROUP BY c.customer_id + +Natural Query: List all products of Collins Inc ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Collins Inc' ORDER BY price DESC + +Natural Query: List all products of Montgomery, Wong and Wilson ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Montgomery, Wong and Wilson' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Castro 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 = 'Castro 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 language category with a price over $438.76. +SQL Query: SELECT * FROM products WHERE category = 'language' AND price > 438.76 + +Natural Query: Show me all products in the American category with a price over $373.24. +SQL Query: SELECT * FROM products WHERE category = 'American' AND price > 373.24 + +Natural Query: List all customers and their total order value for Pittman, Gibbs and Michael. +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 = 'Pittman, Gibbs and Michael' GROUP BY c.customer_id + +Natural Query: List all products of Luna, Smith and Herman ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Luna, Smith and Herman' ORDER BY price ASC + +Natural Query: What is the average quantity of all products for Tran LLC? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Tran LLC' + +Natural Query: List all products of Parker, White and Mckee ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Parker, White and Mckee' ORDER BY price ASC + +Natural Query: Show me all products in the five category with a price over $728.42. +SQL Query: SELECT * FROM products WHERE category = 'five' AND price > 728.42 + +Natural Query: List all products of Ball, Morrison and Mccoy ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ball, Morrison and Mccoy' ORDER BY stock_quantity DESC + +Natural Query: How many orders were placed for Drake LLC between 2023-10-24 and 2024-07-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Drake LLC' AND order_date BETWEEN '2023-10-24' AND '2024-07-26' + +Natural Query: What are the top 10 products by sales for Johnston-Wright last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Johnston-Wright' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: What are the top 3 products by sales for English, Gutierrez and Fowler this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'English, Gutierrez and Fowler' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: List all products of Cohen-Garcia ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Cohen-Garcia' ORDER BY stock_quantity ASC + +Natural Query: What is the total profit for each category in Wilson Inc? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Wilson Inc' GROUP BY category ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Goodman Inc between 2024-06-10 and 2024-09-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Goodman Inc' AND order_date BETWEEN '2024-06-10' AND '2024-09-03' + +Natural Query: List all customers and their total order value for Stanley 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 = 'Stanley PLC' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Terry 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 = 'Terry 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 customers and their total order value for Craig 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 = 'Craig and Sons' GROUP BY c.customer_id + +Natural Query: What is the total profit for each category in Ward Inc? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Ward Inc' GROUP BY category ORDER BY total_profit DESC + +Natural Query: Show me all products in the list category with a price over $960.93. +SQL Query: SELECT * FROM products WHERE category = 'list' AND price > 960.93 + +Natural Query: List all customers and their total order value for Jones 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 = 'Jones Inc' GROUP BY c.customer_id + +Natural Query: List all products of King PLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'King PLC' ORDER BY rating DESC + +Natural Query: List all products of Lewis Ltd ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lewis Ltd' ORDER BY rating ASC + +Natural Query: List all products of Johnson-Nguyen ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Johnson-Nguyen' ORDER BY rating ASC + +Natural Query: What is the total sales for each category in Doyle and Sons? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Doyle and Sons' GROUP BY category ORDER BY total_sales DESC + +Natural Query: Show me all products in the month category with a price over $735.39. +SQL Query: SELECT * FROM products WHERE category = 'month' AND price > 735.39 + +Natural Query: How many orders were placed for Roberts, Phillips and Nelson between 2024-04-06 and 2024-09-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Roberts, Phillips and Nelson' AND order_date BETWEEN '2024-04-06' AND '2024-09-10' + +Natural Query: List all customers and their total order value for Williams-Wade. +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-Wade' GROUP BY c.customer_id + +Natural Query: Show me all products in the now category with a price over $87.47. +SQL Query: SELECT * FROM products WHERE category = 'now' AND price > 87.47 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Walton 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 = 'Walton 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 Hamilton-Romero. +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-Romero' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gutierrez 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 = 'Gutierrez 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 4 products by orders for Rodriguez PLC last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Rodriguez PLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: How many orders were placed for Horton-Murphy between 2024-03-18 and 2024-08-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Horton-Murphy' AND order_date BETWEEN '2024-03-18' AND '2024-08-19' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Patrick, Hernandez and Mclean 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 = 'Patrick, Hernandez and Mclean' + 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 data category with a price over $628.71. +SQL Query: SELECT * FROM products WHERE category = 'data' AND price > 628.71 + +Natural Query: Show me all products in the religious category with a price over $762.53. +SQL Query: SELECT * FROM products WHERE category = 'religious' AND price > 762.53 + +Natural Query: How many orders were placed for Martin-Alexander between 2024-02-25 and 2024-06-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Martin-Alexander' AND order_date BETWEEN '2024-02-25' AND '2024-06-12' + +Natural Query: What is the total profit for each country in Espinoza, Chandler and Jones? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Espinoza, Chandler and Jones' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What is the total sales for each supplier in Pittman, Shaw and Cook? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Pittman, Shaw and Cook' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Wise, Smith and Cunningham. +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 = 'Wise, Smith and Cunningham' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Moore, Cooper and Griffin between 2024-06-09 and 2024-06-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Moore, Cooper and Griffin' AND order_date BETWEEN '2024-06-09' AND '2024-06-21' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Drake, Barnes and Santiago 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 = 'Drake, Barnes and Santiago' + 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 Webb, Stewart and Obrien 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, Stewart and Obrien' + 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 Elliott, Chen and Howell? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Elliott, Chen and Howell' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all products of Roach and Sons ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Roach and Sons' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Crosby 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 = 'Crosby PLC' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Zimmerman Group between 2024-05-15 and 2024-08-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Zimmerman Group' AND order_date BETWEEN '2024-05-15' AND '2024-08-04' + +Natural Query: List all customers and their total order value for Pratt-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 = 'Pratt-Thomas' GROUP BY c.customer_id + +Natural Query: List all products of Taylor-Frank ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Taylor-Frank' ORDER BY stock_quantity DESC + +Natural Query: List all products of Huynh LLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Huynh LLC' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Adams, Davis and Hodges. +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, Davis and Hodges' GROUP BY c.customer_id + +Natural Query: Show me all products in the ability category with a price over $934.33. +SQL Query: SELECT * FROM products WHERE category = 'ability' AND price > 934.33 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Barker 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 = 'Barker 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 products of Rivera, Hall and Moss ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rivera, Hall and Moss' ORDER BY price DESC + +Natural Query: List all products of Stewart Group ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Stewart Group' ORDER BY rating DESC + +Natural Query: List all customers and their total order value for Wilson 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 = 'Wilson PLC' GROUP BY c.customer_id + +Natural Query: Show me all products in the behind category with a price over $615.21. +SQL Query: SELECT * FROM products WHERE category = 'behind' AND price > 615.21 + +Natural Query: Show me all products in the without category with a price over $833.9. +SQL Query: SELECT * FROM products WHERE category = 'without' AND price > 833.9 + +Natural Query: What are the top 9 products by sales for Williams-Gates all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Williams-Gates' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Frank-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 = 'Frank-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 Brown, Brock and Bailey 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, Brock and Bailey' + 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 Marshall-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 = 'Marshall-Richard' + 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 Congress category with a price over $938.22. +SQL Query: SELECT * FROM products WHERE category = 'Congress' AND price > 938.22 + +Natural Query: What is the average quantity of all products for Patterson PLC? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Patterson PLC' + +Natural Query: How many orders were placed for Bell-Long between 2024-07-21 and 2024-08-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bell-Long' AND order_date BETWEEN '2024-07-21' AND '2024-08-11' + +Natural Query: List all customers and their total order value for Davis, Weber and Glenn. +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 = 'Davis, Weber and Glenn' GROUP BY c.customer_id + +Natural Query: Show me all products in the occur category with a price over $56.61. +SQL Query: SELECT * FROM products WHERE category = 'occur' AND price > 56.61 + +Natural Query: Show me all products in the five category with a price over $566.08. +SQL Query: SELECT * FROM products WHERE category = 'five' AND price > 566.08 + +Natural Query: What is the maximum rating of all products for Ray, Love and Brady? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Ray, Love and Brady' + +Natural Query: List all products of Friedman and Sons ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Friedman and Sons' ORDER BY rating ASC + +Natural Query: List all products of Prince-Rivera ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Prince-Rivera' ORDER BY stock_quantity ASC + +Natural Query: What is the total profit for each supplier in Banks, Martin and Williams? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Banks, Martin and Williams' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Mitchell-Lewis between 2024-05-05 and 2024-08-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mitchell-Lewis' AND order_date BETWEEN '2024-05-05' AND '2024-08-26' + +Natural Query: What are the top 5 products by sales for Price-Miller this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Price-Miller' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: List all customers and their total order value for Barajas 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 = 'Barajas PLC' GROUP BY c.customer_id + +Natural Query: What are the top 6 products by sales for Gonzalez-Santiago all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Gonzalez-Santiago' AND period = 'all time' 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 Marshall-Lopez 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 = 'Marshall-Lopez' + 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 Higgins-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 = 'Higgins-Moore' + 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 Mueller Inc? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Mueller Inc' GROUP BY category ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Crawford, Love and Snyder between 2024-08-23 and 2024-09-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Crawford, Love and Snyder' AND order_date BETWEEN '2024-08-23' AND '2024-09-14' + +Natural Query: List all products of Banks, Allen and Shields ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Banks, Allen and Shields' ORDER BY stock_quantity DESC + +Natural Query: What is the total profit for each category in Powell, Obrien and Miller? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Powell, Obrien and Miller' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the average quantity of all products for Sullivan, Young and Moody? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Sullivan, Young and Moody' + +Natural Query: How many orders were placed for Fox Group between 2024-05-20 and 2024-09-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Fox Group' AND order_date BETWEEN '2024-05-20' AND '2024-09-11' + +Natural Query: What are the top 10 products by revenue for Fritz-Baxter all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Fritz-Baxter' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in White 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 = 'White 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 10 products by customers for Foster-Anderson this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Foster-Anderson' AND period = 'this year' 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 Wright-Lopez 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 = 'Wright-Lopez' + 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 Fischer-Carroll? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Fischer-Carroll' + +Natural Query: List all customers and their total order value for Leach 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 = 'Leach Ltd' GROUP BY c.customer_id + +Natural Query: What is the total sales for each supplier in Olson-Huber? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Olson-Huber' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the total quantity of all products for Graham, Horton and Cervantes? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Graham, Horton and Cervantes' + +Natural Query: What is the total quantity for each supplier in Perez LLC? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Perez LLC' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Powers-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 = 'Powers-Carpenter' + 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 lose category with a price over $171.33. +SQL Query: SELECT * FROM products WHERE category = 'lose' AND price > 171.33 + +Natural Query: How many orders were placed for Thompson-Davis between 2023-11-30 and 2024-08-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thompson-Davis' AND order_date BETWEEN '2023-11-30' AND '2024-08-14' + +Natural Query: What is the minimum quantity of all products for Simpson, Schroeder and Joseph? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Simpson, Schroeder and Joseph' + +Natural Query: List all customers and their total order value for Crawford 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 = 'Crawford PLC' GROUP BY c.customer_id + +Natural Query: List all products of Strong, Strickland and Smith ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Strong, Strickland and Smith' ORDER BY price ASC + +Natural Query: List all customers and their total order value for Nguyen, Reid and 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 = 'Nguyen, Reid and Torres' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Johnson-Villegas 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-Villegas' + 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 Hughes, Cook and 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 = 'Hughes, Cook and Meyer' + 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 Espinoza Inc ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Espinoza Inc' ORDER BY price DESC + +Natural Query: List all products of Hicks, Harris and Bonilla ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hicks, Harris and Bonilla' ORDER BY price ASC + +Natural Query: What is the total sales for each supplier in Carrillo, Young and Fowler? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Carrillo, Young and Fowler' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Carpenter-Woodward 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 = 'Carpenter-Woodward' + 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 Armstrong, Taylor and Haas last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Armstrong, Taylor and Haas' 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 Lyons-Smith? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Lyons-Smith' + +Natural Query: Show me all products in the must category with a price over $856.31. +SQL Query: SELECT * FROM products WHERE category = 'must' AND price > 856.31 + +Natural Query: What are the top 7 products by orders for Bell, Santana and Walker all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Bell, Santana and Walker' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: List all products of Adams-Reed ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Adams-Reed' ORDER BY stock_quantity ASC + +Natural Query: List all products of Smith PLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith PLC' ORDER BY stock_quantity DESC + +Natural Query: What are the top 8 products by revenue for Johnson, Knox and Lawrence all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Johnson, Knox and Lawrence' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: What is the average price of all products for Smith, Allison and Johnson? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Smith, Allison and Johnson' + +Natural Query: List all products of Castillo, Ayala and Russo ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Castillo, Ayala and Russo' ORDER BY stock_quantity ASC + +Natural Query: What is the maximum rating of all products for Wright Inc? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Wright Inc' + +Natural Query: Show me all products in the writer category with a price over $993.61. +SQL Query: SELECT * FROM products WHERE category = 'writer' AND price > 993.61 + +Natural Query: List all customers and their total order value for Williams 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 = 'Williams Inc' GROUP BY c.customer_id + +Natural Query: What is the minimum price of all products for Hebert Inc? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Hebert Inc' + +Natural Query: What is the average price of all products for Bell-Adams? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Bell-Adams' + +Natural Query: List all customers and their total order value for Barron 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 = 'Barron Inc' GROUP BY c.customer_id + +Natural Query: What are the top 10 products by sales for Vargas-Singh this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Vargas-Singh' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: What are the top 9 products by customers for Case and Sons this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Case and Sons' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: What is the minimum rating of all products for Bowers, Wagner and Trevino? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Bowers, Wagner and Trevino' + +Natural Query: What are the top 4 products by sales for Levine, Harmon and Ward last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Levine, Harmon and Ward' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: What are the top 4 products by orders for Williams-Tran all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Williams-Tran' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: List all products of Ross-Lee ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ross-Lee' ORDER BY rating DESC + +Natural Query: Show me all products in the sign category with a price over $378.85. +SQL Query: SELECT * FROM products WHERE category = 'sign' AND price > 378.85 + +Natural Query: What is the total quantity of all products for Wright-Stokes? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Wright-Stokes' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Smith 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 = 'Smith 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 5 categories by sales for customers aged 25-35 in Rodriguez 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 = 'Rodriguez 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 7 products by sales for Graham-Nguyen this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Graham-Nguyen' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: What is the total profit for each supplier in Mendez and Sons? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Mendez and Sons' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Ford-Owens between 2023-10-06 and 2024-05-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ford-Owens' AND order_date BETWEEN '2023-10-06' AND '2024-05-27' + +Natural Query: What is the maximum rating of all products for Chandler, Moore and Hall? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Chandler, Moore and Hall' + +Natural Query: What is the total profit for each country in Ray, Bailey and Hawkins? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Ray, Bailey and Hawkins' GROUP BY country ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Armstrong, Dunlap and Johnson between 2023-10-02 and 2024-02-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Armstrong, Dunlap and Johnson' AND order_date BETWEEN '2023-10-02' AND '2024-02-13' + +Natural Query: List all customers and their total order value for Davis, Smith and King. +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 = 'Davis, Smith and King' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Strickland, Ford and Hardin 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 = 'Strickland, Ford and Hardin' + 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, Ortega and Wiley. +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, Ortega and Wiley' GROUP BY c.customer_id + +Natural Query: What are the top 6 products by sales for Lloyd, Garcia and Smith this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Lloyd, Garcia and Smith' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: List all products of Campbell Inc ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Campbell Inc' ORDER BY rating ASC + +Natural Query: What are the top 3 products by sales for Lewis-Mclaughlin this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Lewis-Mclaughlin' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: List all products of Moore Group ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Moore Group' ORDER BY rating ASC + +Natural Query: List all products of Schmitt-Grant ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Schmitt-Grant' ORDER BY stock_quantity ASC + +Natural Query: What are the top 9 products by revenue for Gilbert, Jones and Ruiz this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Gilbert, Jones and Ruiz' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: What is the total profit for each country in Bond, Bridges and Lowery? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Bond, Bridges and Lowery' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all products of Herring-Lambert ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Herring-Lambert' ORDER BY price ASC + +Natural Query: List all customers and their total order value for Young-Vasquez. +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-Vasquez' GROUP BY c.customer_id + +Natural Query: Show me all products in the million category with a price over $454.5. +SQL Query: SELECT * FROM products WHERE category = 'million' AND price > 454.5 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Norton-Hart 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 = 'Norton-Hart' + 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 Foster 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 = 'Foster 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 Romero-Carter between 2024-06-15 and 2024-08-31? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Romero-Carter' AND order_date BETWEEN '2024-06-15' AND '2024-08-31' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Phelps, Smith and Mcmahon 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 = 'Phelps, Smith and Mcmahon' + 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 message category with a price over $931.19. +SQL Query: SELECT * FROM products WHERE category = 'message' AND price > 931.19 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cruz, Hall and Ellis 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 = 'Cruz, Hall and Ellis' + 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 orders for Jones PLC last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Jones PLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: Show me all products in the about category with a price over $151.99. +SQL Query: SELECT * FROM products WHERE category = 'about' AND price > 151.99 + +Natural Query: Show me all products in the fact category with a price over $264.43. +SQL Query: SELECT * FROM products WHERE category = 'fact' AND price > 264.43 + +Natural Query: What is the total sales for each category in Merritt-Martin? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Merritt-Martin' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the total profit for each supplier in Walsh-Ross? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Walsh-Ross' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 5 products by orders for Howell, Hatfield and Jackson this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Howell, Hatfield and Jackson' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: What is the maximum quantity of all products for Lewis, Gray and Knight? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Lewis, Gray and Knight' + +Natural Query: List all products of Nelson Group ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Nelson Group' ORDER BY price DESC + +Natural Query: How many orders were placed for Mcmillan Inc between 2024-05-05 and 2024-08-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mcmillan Inc' AND order_date BETWEEN '2024-05-05' AND '2024-08-04' + +Natural Query: How many orders were placed for Aguilar LLC between 2024-06-21 and 2024-09-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Aguilar LLC' AND order_date BETWEEN '2024-06-21' AND '2024-09-11' + +Natural Query: How many orders were placed for Wagner Group between 2024-01-23 and 2024-03-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wagner Group' AND order_date BETWEEN '2024-01-23' AND '2024-03-11' + +Natural Query: What are the top 5 products by sales for Brown LLC all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Brown LLC' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: Show me all products in the before category with a price over $58.07. +SQL Query: SELECT * FROM products WHERE category = 'before' AND price > 58.07 + +Natural Query: What is the total quantity for each category in Martinez PLC? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Martinez PLC' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the average quantity of all products for Cole-Murray? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Cole-Murray' + +Natural Query: What are the top 4 products by sales for Perez-Cuevas this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Perez-Cuevas' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: Show me all products in the weight category with a price over $14.97. +SQL Query: SELECT * FROM products WHERE category = 'weight' AND price > 14.97 + +Natural Query: How many orders were placed for Mills, Murphy and Turner between 2024-03-27 and 2024-04-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mills, Murphy and Turner' AND order_date BETWEEN '2024-03-27' AND '2024-04-10' + +Natural Query: What are the top 5 products by orders for Webb, Cooper and Herrera this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Webb, Cooper and Herrera' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: Show me all products in the billion category with a price over $985.73. +SQL Query: SELECT * FROM products WHERE category = 'billion' AND price > 985.73 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Bauer, Chapman and Pierce 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 = 'Bauer, Chapman and Pierce' + 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 Torres-Miller? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Torres-Miller' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Weiss, Smith and Cook 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 = 'Weiss, Smith and Cook' + 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 Valentine, Molina and Silva ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Valentine, Molina and Silva' ORDER BY rating ASC + +Natural Query: What is the total rating of all products for Alvarez-Myers? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Alvarez-Myers' + +Natural Query: List all products of Parker-Salinas ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Parker-Salinas' ORDER BY price DESC + +Natural Query: Show me all products in the information category with a price over $564.95. +SQL Query: SELECT * FROM products WHERE category = 'information' AND price > 564.95 + +Natural Query: List all customers and their total order value for Greene-Martin. +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 = 'Greene-Martin' GROUP BY c.customer_id + +Natural Query: Show me all products in the no category with a price over $369.03. +SQL Query: SELECT * FROM products WHERE category = 'no' AND price > 369.03 + +Natural Query: What is the minimum price of all products for Johnston-Walker? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Johnston-Walker' + +Natural Query: What is the average price of all products for Ibarra-Pugh? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Ibarra-Pugh' + +Natural Query: Show me all products in the brother category with a price over $675.24. +SQL Query: SELECT * FROM products WHERE category = 'brother' AND price > 675.24 + +Natural Query: What are the top 8 products by revenue for Forbes-Adams this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Forbes-Adams' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: What are the top 5 products by orders for Dickerson-Walter all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Dickerson-Walter' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: What is the total sales for each supplier in Estrada, White and Long? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Estrada, White and Long' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Miller Group between 2024-06-15 and 2024-08-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Miller Group' AND order_date BETWEEN '2024-06-15' AND '2024-08-28' + +Natural Query: List all products of Chavez, Hunt and Wallace ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Chavez, Hunt and Wallace' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in George-Perry 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 = 'George-Perry' + 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 letter category with a price over $232.4. +SQL Query: SELECT * FROM products WHERE category = 'letter' AND price > 232.4 + +Natural Query: Show me all products in the teach category with a price over $787.41. +SQL Query: SELECT * FROM products WHERE category = 'teach' AND price > 787.41 + +Natural Query: What is the average rating of all products for Stone, Hernandez and Sandoval? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Stone, Hernandez and Sandoval' + +Natural Query: What is the total sales for each country in Harrison-Howe? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Harrison-Howe' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all products of Love Inc ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Love Inc' ORDER BY price ASC + +Natural Query: What is the average rating of all products for Olson, Robles and Jones? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Olson, Robles and Jones' + +Natural Query: Show me all products in the business category with a price over $212.4. +SQL Query: SELECT * FROM products WHERE category = 'business' AND price > 212.4 + +Natural Query: List all customers and their total order value for Swanson, Sharp and Young. +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 = 'Swanson, Sharp and Young' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lee 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 = 'Lee 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 Mccarthy 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 = 'Mccarthy Ltd' GROUP BY c.customer_id + +Natural Query: What is the maximum rating of all products for Johnson-Bradshaw? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Johnson-Bradshaw' + +Natural Query: Show me all products in the per category with a price over $649.57. +SQL Query: SELECT * FROM products WHERE category = 'per' AND price > 649.57 + +Natural Query: Show me all products in the if category with a price over $150.46. +SQL Query: SELECT * FROM products WHERE category = 'if' AND price > 150.46 + +Natural Query: How many orders were placed for Hicks, Petty and Moore between 2024-04-19 and 2024-05-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hicks, Petty and Moore' AND order_date BETWEEN '2024-04-19' AND '2024-05-14' + +Natural Query: How many orders were placed for Hubbard Ltd between 2024-01-16 and 2024-07-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hubbard Ltd' AND order_date BETWEEN '2024-01-16' AND '2024-07-26' + +Natural Query: List all products of Rose-Allen ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rose-Allen' ORDER BY price DESC + +Natural Query: List all products of Humphrey, Brown and Pacheco ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Humphrey, Brown and Pacheco' ORDER BY rating ASC + +Natural Query: How many orders were placed for Hughes PLC between 2024-01-09 and 2024-05-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hughes PLC' AND order_date BETWEEN '2024-01-09' AND '2024-05-15' + +Natural Query: List all customers and their total order value for Gonzalez 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 = 'Gonzalez PLC' GROUP BY c.customer_id + +Natural Query: Show me all products in the in category with a price over $125.66. +SQL Query: SELECT * FROM products WHERE category = 'in' AND price > 125.66 + +Natural Query: What is the total profit for each country in Barnes Ltd? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Barnes Ltd' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all products of Parker, Morgan and Williams ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Parker, Morgan and Williams' ORDER BY rating DESC + +Natural Query: Show me all products in the dark category with a price over $291.15. +SQL Query: SELECT * FROM products WHERE category = 'dark' AND price > 291.15 + +Natural Query: List all products of Mendoza, Randall and Boyer ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mendoza, Randall and Boyer' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Fischer-Bell. +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-Bell' GROUP BY c.customer_id + +Natural Query: What is the total profit for each country in Butler-Rogers? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Butler-Rogers' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all products of Ortiz, Reyes and Haas ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ortiz, Reyes and Haas' ORDER BY stock_quantity DESC + +Natural Query: What is the total rating of all products for Mcfarland and Sons? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Mcfarland and Sons' + +Natural Query: What are the top 7 products by sales for Dunn-Cook all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Dunn-Cook' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: List all customers and their total order value for Kramer-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 = 'Kramer-Jones' GROUP BY c.customer_id + +Natural Query: List all products of Crawford Inc ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Crawford Inc' ORDER BY stock_quantity ASC + +Natural Query: What is the total price of all products for Berg Group? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Berg Group' + +Natural Query: List all customers and their total order value for Cruz 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 = 'Cruz PLC' GROUP BY c.customer_id + +Natural Query: What is the total rating of all products for Chavez, Schultz and Vaughn? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Chavez, Schultz and Vaughn' + +Natural Query: List all products of Smith-Davis ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith-Davis' ORDER BY price ASC + +Natural Query: What are the top 9 products by revenue for Adams LLC this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Adams LLC' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: List all products of Davis-Chavez ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Davis-Chavez' ORDER BY price DESC + +Natural Query: How many orders were placed for Rodriguez, Young and Benitez between 2024-08-01 and 2024-08-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Rodriguez, Young and Benitez' AND order_date BETWEEN '2024-08-01' AND '2024-08-10' + +Natural Query: What are the top 8 products by orders for Gonzales Inc all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Gonzales Inc' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: List all customers and their total order value for Shaffer 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 = 'Shaffer Ltd' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Fitzpatrick and Sons between 2023-10-04 and 2024-07-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Fitzpatrick and Sons' AND order_date BETWEEN '2023-10-04' AND '2024-07-20' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Small 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 = 'Small 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 Hale, Reed and Rivera? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Hale, Reed and Rivera' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What is the maximum price of all products for Murphy PLC? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Murphy PLC' + +Natural Query: List all customers and their total order value for Townsend-Wood. +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 = 'Townsend-Wood' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Santos, West and Hale. +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 = 'Santos, West and Hale' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each category in Flynn, Simpson and Curtis? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Flynn, Simpson and Curtis' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Ross, Perez and 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 = 'Ross, Perez and Norton' GROUP BY c.customer_id + +Natural Query: What is the maximum quantity of all products for Calhoun-Miller? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Calhoun-Miller' + +Natural Query: How many orders were placed for Garcia PLC between 2024-02-28 and 2024-08-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Garcia PLC' AND order_date BETWEEN '2024-02-28' AND '2024-08-14' + +Natural Query: What is the average rating of all products for Franklin, Davis and Boyle? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Franklin, Davis and Boyle' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Villanueva-Liu 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 = 'Villanueva-Liu' + 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 Campbell, Bryant and Peterson? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Campbell, Bryant and Peterson' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 5 products by customers for Hinton and Sons last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Hinton and Sons' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: What are the top 4 products by orders for Vaughan-Mahoney last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Vaughan-Mahoney' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: List all customers and their total order value for Walker-Terry. +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-Terry' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Taylor, Kaufman and Nelson between 2024-03-08 and 2024-09-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Taylor, Kaufman and Nelson' AND order_date BETWEEN '2024-03-08' AND '2024-09-14' + +Natural Query: What are the top 10 products by customers for Waters-James last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Waters-James' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10 + +Natural Query: How many orders were placed for Freeman, Williamson and Rogers between 2024-03-26 and 2024-07-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Freeman, Williamson and Rogers' AND order_date BETWEEN '2024-03-26' AND '2024-07-06' + +Natural Query: List all customers and their total order value for Harris, Rodgers and Garcia. +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, Rodgers and Garcia' GROUP BY c.customer_id + +Natural Query: List all products of Gaines-Sandoval ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gaines-Sandoval' ORDER BY price ASC + +Natural Query: What are the top 7 products by customers for Cole Inc all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Cole Inc' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: Show me all products in the bit category with a price over $430.61. +SQL Query: SELECT * FROM products WHERE category = 'bit' AND price > 430.61 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Owens-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 = 'Owens-Smith' + 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 Martin-Murphy ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Martin-Murphy' ORDER BY rating DESC + +Natural Query: List all products of Wilson-Mills ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wilson-Mills' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Stevenson 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 = 'Stevenson and Sons' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Maddox-Jones between 2024-05-21 and 2024-07-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Maddox-Jones' AND order_date BETWEEN '2024-05-21' AND '2024-07-22' + +Natural Query: What is the maximum price of all products for Moore, Bryant and Lopez? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Moore, Bryant and Lopez' + +Natural Query: Show me all products in the size category with a price over $888.73. +SQL Query: SELECT * FROM products WHERE category = 'size' AND price > 888.73 + +Natural Query: What is the total profit for each country in Martin, Ramsey and Castillo? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Martin, Ramsey and Castillo' GROUP BY country ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Wilcox-Martin between 2024-05-31 and 2024-09-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wilcox-Martin' AND order_date BETWEEN '2024-05-31' AND '2024-09-08' + +Natural Query: List all customers and their total order value for Malone-Allen. +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 = 'Malone-Allen' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each category in Johnson-Hurley? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Johnson-Hurley' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: Show me all products in the base category with a price over $220.97. +SQL Query: SELECT * FROM products WHERE category = 'base' AND price > 220.97 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Sanders 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 = 'Sanders 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 Powell 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 = 'Powell Group' GROUP BY c.customer_id + +Natural Query: What is the total sales for each country in Sanchez-Dunn? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Sanchez-Dunn' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the total profit for each supplier in White, Daniel and Friedman? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'White, Daniel and Friedman' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Johnson, Graham and 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 = 'Johnson, Graham and Jones' + 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 Costa Inc? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Costa Inc' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all products of Young, Castaneda and Johnson ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Young, Castaneda and Johnson' ORDER BY rating ASC + +Natural Query: List all products of Leon-Williamson ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Leon-Williamson' ORDER BY price ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Burton 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 = 'Burton 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 is the minimum price of all products for Moran, Thomas and Golden? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Moran, Thomas and Golden' + +Natural Query: What is the total quantity for each country in Martin and Sons? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Martin and Sons' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the total profit for each country in Lyons, Watts and Roman? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Lyons, Watts and Roman' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Romero 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 = 'Romero Ltd' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What is the total sales for each supplier in Brown, Lynch and Harmon? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Brown, Lynch and Harmon' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Phillips-Shannon between 2023-12-18 and 2024-05-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Phillips-Shannon' AND order_date BETWEEN '2023-12-18' AND '2024-05-12' + +Natural Query: List all customers and their total order value for Hinton, Paul and 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 = 'Hinton, Paul and Brown' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Brown 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 = 'Brown 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 Wall, Cameron and Strickland. +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 = 'Wall, Cameron and Strickland' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Lawson LLC between 2023-10-06 and 2024-05-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lawson LLC' AND order_date BETWEEN '2023-10-06' AND '2024-05-05' + +Natural Query: Show me all products in the policy category with a price over $109.81. +SQL Query: SELECT * FROM products WHERE category = 'policy' AND price > 109.81 + +Natural Query: Show me all products in the you category with a price over $451.31. +SQL Query: SELECT * FROM products WHERE category = 'you' AND price > 451.31 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Baldwin 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 = 'Baldwin 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 quantity of all products for Golden-Ellis? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Golden-Ellis' + +Natural Query: Show me all products in the project category with a price over $175.02. +SQL Query: SELECT * FROM products WHERE category = 'project' AND price > 175.02 + +Natural Query: What is the total sales for each category in Joyce, Livingston and Smith? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Joyce, Livingston and Smith' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Anderson-Trujillo 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 = 'Anderson-Trujillo' + 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 Torres 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 = 'Torres 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 5 categories by sales for customers aged 25-35 in Garcia, Nelson and Patterson 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, Nelson and Patterson' + 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 Yoder, Hooper and Donaldson 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 = 'Yoder, Hooper and Donaldson' + 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 Mccoy PLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mccoy PLC' ORDER BY rating DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hurst, Craig and Hernandez 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 = 'Hurst, Craig and Hernandez' + 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 Odonnell Inc? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Odonnell Inc' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Li 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 = 'Li 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 are the top 5 categories by sales for customers aged 25-35 in White 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 = 'White 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 quantity for each supplier in Villanueva, Salazar and Myers? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Villanueva, Salazar and Myers' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Miller, Nicholson and Jones between 2024-05-24 and 2024-06-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Miller, Nicholson and Jones' AND order_date BETWEEN '2024-05-24' AND '2024-06-23' + +Natural Query: Show me all products in the foreign category with a price over $570.41. +SQL Query: SELECT * FROM products WHERE category = 'foreign' AND price > 570.41 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Warren, Miller and Lawrence 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 = 'Warren, Miller and Lawrence' + 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 Gonzalez-Wolf ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gonzalez-Wolf' ORDER BY price DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Brown-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 = 'Brown-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 are the top 9 products by revenue for Orr, Zavala and Colon last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Orr, Zavala and Colon' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: How many orders were placed for Andrews PLC between 2023-10-26 and 2024-05-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Andrews PLC' AND order_date BETWEEN '2023-10-26' AND '2024-05-19' + +Natural Query: How many orders were placed for Ward PLC between 2024-07-08 and 2024-08-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ward PLC' AND order_date BETWEEN '2024-07-08' AND '2024-08-09' + +Natural Query: List all products of Johnson Group ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Johnson Group' ORDER BY stock_quantity ASC + +Natural Query: Show me all products in the consumer category with a price over $650.15. +SQL Query: SELECT * FROM products WHERE category = 'consumer' AND price > 650.15 + +Natural Query: What is the total quantity for each category in Wright, Johnson and Hudson? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Wright, Johnson and Hudson' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the total profit for each country in Oliver, Goodwin and Higgins? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Oliver, Goodwin and Higgins' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all products of Jimenez Inc ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jimenez Inc' ORDER BY rating DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hernandez 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 = 'Hernandez 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 9 products by orders for Newton Inc all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Newton Inc' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: List all products of Sparks-Hines ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Sparks-Hines' ORDER BY price DESC + +Natural Query: How many orders were placed for Romero-Reeves between 2024-07-29 and 2024-08-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Romero-Reeves' AND order_date BETWEEN '2024-07-29' AND '2024-08-27' + +Natural Query: What is the total quantity for each supplier in Ward, Williams and Thomas? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Ward, Williams and Thomas' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 4 products by sales for Phillips LLC all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Phillips LLC' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: What is the total sales for each supplier in Baker-Mcknight? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Baker-Mcknight' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all products of Taylor and Sons ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Taylor and Sons' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Smith 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 = 'Smith 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 total quantity for each country in Brown and Sons? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Brown and Sons' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Acosta 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 = 'Acosta Group' GROUP BY c.customer_id + +Natural Query: What is the minimum price of all products for Moore-Hooper? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Moore-Hooper' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Zavala 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 = 'Zavala 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 products by revenue for Stewart-Whitehead this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Stewart-Whitehead' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Murphy 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 = 'Murphy 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 Lee-Chung. +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 = 'Lee-Chung' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Burch-Williams between 2024-02-08 and 2024-03-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Burch-Williams' AND order_date BETWEEN '2024-02-08' AND '2024-03-30' + +Natural Query: List all customers and their total order value for Owens 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 = 'Owens and Sons' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Price, Lester and Jimenez 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, Lester and Jimenez' + 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 Padilla Ltd? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Padilla Ltd' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Hayden 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 = 'Hayden PLC' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Beltran, Rogers and Morales between 2024-05-25 and 2024-07-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Beltran, Rogers and Morales' AND order_date BETWEEN '2024-05-25' AND '2024-07-24' + +Natural Query: List all products of Smith-Wallace ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith-Wallace' ORDER BY rating ASC + +Natural Query: What are the top 4 products by sales for Wood, Sanchez and Carroll last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Wood, Sanchez and Carroll' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Beasley-Harper 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 = 'Beasley-Harper' + 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 Spencer Ltd between 2024-06-19 and 2024-08-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Spencer Ltd' AND order_date BETWEEN '2024-06-19' AND '2024-08-20' + +Natural Query: List all customers and their total order value for Miller, Wang and Howard. +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, Wang and Howard' GROUP BY c.customer_id + +Natural Query: What is the total sales for each category in Estrada Ltd? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Estrada Ltd' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Stevens, Johnson and Alexander. +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 = 'Stevens, Johnson and Alexander' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Lopez, Escobar and 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 = 'Lopez, Escobar and Meyer' GROUP BY c.customer_id + +Natural Query: What are the top 5 products by customers for Petersen LLC all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Petersen LLC' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: Show me all products in the trouble category with a price over $762.44. +SQL Query: SELECT * FROM products WHERE category = 'trouble' AND price > 762.44 + +Natural Query: List all products of Ramirez LLC ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ramirez LLC' ORDER BY price DESC + +Natural Query: What is the total price of all products for Jacobson PLC? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Jacobson PLC' + +Natural Query: List all products of Houston LLC ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Houston LLC' ORDER BY price ASC + +Natural Query: What is the total profit for each country in Underwood Inc? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Underwood Inc' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What is the total quantity for each category in Haney, Davis and Brandt? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Haney, Davis and Brandt' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Garcia-Rodriguez 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-Rodriguez' + 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 Mcclain, Brown and Peters. +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 = 'Mcclain, Brown and Peters' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Simmons-Payne between 2024-06-28 and 2024-07-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Simmons-Payne' AND order_date BETWEEN '2024-06-28' AND '2024-07-23' + +Natural Query: Show me all products in the energy category with a price over $614.69. +SQL Query: SELECT * FROM products WHERE category = 'energy' AND price > 614.69 + +Natural Query: List all products of Sanchez-Perez ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Sanchez-Perez' ORDER BY rating ASC + +Natural Query: Show me all products in the identify category with a price over $547.01. +SQL Query: SELECT * FROM products WHERE category = 'identify' AND price > 547.01 + +Natural Query: What are the top 6 products by revenue for Anderson-Ward last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Anderson-Ward' 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 Coleman-Russo 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 = 'Coleman-Russo' + 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 event category with a price over $194.49. +SQL Query: SELECT * FROM products WHERE category = 'event' AND price > 194.49 + +Natural Query: What is the total profit for each category in Gray-Wilson? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Gray-Wilson' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 10 products by orders for Turner, Simpson and Gibbs all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Turner, Simpson and Gibbs' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: List all products of May Group ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'May Group' ORDER BY price ASC + +Natural Query: List all customers and their total order value for Ross, Faulkner and Webster. +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, Faulkner and Webster' GROUP BY c.customer_id + +Natural Query: Show me all products in the interest category with a price over $978.07. +SQL Query: SELECT * FROM products WHERE category = 'interest' AND price > 978.07 + +Natural Query: How many orders were placed for Bailey, Santos and Reid between 2024-02-17 and 2024-08-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bailey, Santos and Reid' AND order_date BETWEEN '2024-02-17' AND '2024-08-29' + +Natural Query: Show me all products in the industry category with a price over $535.45. +SQL Query: SELECT * FROM products WHERE category = 'industry' AND price > 535.45 + +Natural Query: What is the total profit for each supplier in Olsen, Matthews and Rodriguez? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Olsen, Matthews and Rodriguez' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Trujillo-Cooper. +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 = 'Trujillo-Cooper' GROUP BY c.customer_id + +Natural Query: Show me all products in the religious category with a price over $940.08. +SQL Query: SELECT * FROM products WHERE category = 'religious' AND price > 940.08 + +Natural Query: List all customers and their total order value for Rios-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 = 'Rios-Adams' GROUP BY c.customer_id + +Natural Query: What are the top 4 products by customers for Larsen, Williams and Robertson all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Larsen, Williams and Robertson' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: What are the top 3 products by sales for Charles, Miller and Larsen all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Charles, Miller and Larsen' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hogan, Johnson and Gonzalez 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, Johnson and Gonzalez' + 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 Morton-Bishop ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Morton-Bishop' ORDER BY price ASC + +Natural Query: List all products of Rodgers Inc ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rodgers Inc' ORDER BY rating ASC + +Natural Query: List all products of Gonzalez, Clark and Hunter ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gonzalez, Clark and Hunter' ORDER BY price ASC + +Natural Query: List all products of Navarro-Acevedo ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Navarro-Acevedo' ORDER BY rating ASC + +Natural Query: How many orders were placed for Barrett-Rodriguez between 2024-04-05 and 2024-07-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Barrett-Rodriguez' AND order_date BETWEEN '2024-04-05' AND '2024-07-16' + +Natural Query: Show me all products in the want category with a price over $72.07. +SQL Query: SELECT * FROM products WHERE category = 'want' AND price > 72.07 + +Natural Query: How many orders were placed for Bass Inc between 2023-10-01 and 2024-02-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bass Inc' AND order_date BETWEEN '2023-10-01' AND '2024-02-19' + +Natural Query: What is the minimum price of all products for Holloway-Jones? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Holloway-Jones' + +Natural Query: What is the total sales for each country in Bailey Inc? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Bailey Inc' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the total price of all products for Johnson LLC? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Johnson LLC' + +Natural Query: What is the total sales for each supplier in Phillips Group? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Phillips Group' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all products of Marsh, Owens and Johnson ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Marsh, Owens and Johnson' ORDER BY price DESC + +Natural Query: What is the total profit for each country in Boone PLC? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Boone PLC' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What is the total sales for each supplier in Spencer and Sons? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Spencer and Sons' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the average quantity of all products for James and Sons? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'James and Sons' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Blair, Johnson and Douglas 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 = 'Blair, Johnson and Douglas' + 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 Willis-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 = 'Willis-Hudson' GROUP BY c.customer_id + +Natural Query: List all products of Hayes-Jenkins ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hayes-Jenkins' ORDER BY stock_quantity DESC + +Natural Query: List all products of Barr, Daniels and Stevenson ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Barr, Daniels and Stevenson' ORDER BY rating DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Frost, Garcia and 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 = 'Frost, Garcia and Jones' + 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 Guerrero, Huffman and Castaneda? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Guerrero, Huffman and Castaneda' + +Natural Query: What is the maximum quantity of all products for Pacheco, Beck and Martinez? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Pacheco, Beck and Martinez' + +Natural Query: What is the total quantity for each category in Wolf-Patel? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Wolf-Patel' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the maximum price of all products for Richards, Cordova and Taylor? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Richards, Cordova and Taylor' + +Natural Query: List all customers and their total order value for Melendez, Patton and Roberts. +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 = 'Melendez, Patton and Roberts' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Chan 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 = 'Chan Ltd' GROUP BY c.customer_id + +Natural Query: Show me all products in the region category with a price over $493.87. +SQL Query: SELECT * FROM products WHERE category = 'region' AND price > 493.87 + +Natural Query: What are the top 3 products by orders for Beasley and Sons this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Beasley and Sons' 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 Foley 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 = 'Foley 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 3 products by sales for Maldonado Group last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Maldonado Group' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Osborne 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 = 'Osborne 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 Wyatt and Sons between 2024-03-29 and 2024-08-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wyatt and Sons' AND order_date BETWEEN '2024-03-29' AND '2024-08-15' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mitchell, Taylor and 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 = 'Mitchell, Taylor and Marshall' + 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 Johnson, Phillips and Hale? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Johnson, Phillips and Hale' + +Natural Query: List all products of Lopez LLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lopez LLC' ORDER BY rating DESC + +Natural Query: What are the top 9 products by revenue for Brooks Group this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Brooks Group' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: What is the total rating of all products for Bailey Inc? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Bailey Inc' + +Natural Query: List all customers and their total order value for Wells, Mitchell and Griffith. +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 = 'Wells, Mitchell and Griffith' GROUP BY c.customer_id + +Natural Query: Show me all products in the television category with a price over $890.41. +SQL Query: SELECT * FROM products WHERE category = 'television' AND price > 890.41 + +Natural Query: How many orders were placed for Thompson, Mills and Davis between 2023-11-27 and 2024-03-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thompson, Mills and Davis' AND order_date BETWEEN '2023-11-27' AND '2024-03-11' + +Natural Query: What is the total quantity of all products for Wood-Fuentes? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Wood-Fuentes' + +Natural Query: Show me all products in the score category with a price over $125.33. +SQL Query: SELECT * FROM products WHERE category = 'score' AND price > 125.33 + +Natural Query: List all customers and their total order value for Young, Holmes and Pearson. +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, Holmes and Pearson' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Walton 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 = 'Walton Ltd' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Huffman-Griffin. +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 = 'Huffman-Griffin' GROUP BY c.customer_id + +Natural Query: List all products of Johnson, Salazar and Long ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Johnson, Salazar and Long' ORDER BY stock_quantity ASC + +Natural Query: List all products of Garcia-Frank ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Garcia-Frank' ORDER BY price ASC + +Natural Query: List all products of Rodriguez and Sons ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rodriguez and Sons' ORDER BY stock_quantity DESC + +Natural Query: What is the total sales for each supplier in Huynh, Hawkins and Holland? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Huynh, Hawkins and Holland' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 8 products by orders for Ford-Bentley this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Ford-Bentley' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cooke 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 = 'Cooke 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 Chandler, Lamb and Martin ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Chandler, Lamb and Martin' ORDER BY price DESC + +Natural Query: What is the minimum quantity of all products for Jones LLC? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Jones LLC' + +Natural Query: What is the maximum price of all products for Baker-Hernandez? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Baker-Hernandez' + +Natural Query: List all products of Smith and Sons ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith and Sons' ORDER BY rating ASC + +Natural Query: What are the top 4 products by sales for Pena, Anderson and Vargas all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Pena, Anderson and Vargas' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: List all products of Swanson-Ramirez ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Swanson-Ramirez' ORDER BY rating DESC + +Natural Query: How many orders were placed for Hart PLC between 2024-08-30 and 2024-09-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hart PLC' AND order_date BETWEEN '2024-08-30' AND '2024-09-05' + +Natural Query: Show me all products in the person category with a price over $189.69. +SQL Query: SELECT * FROM products WHERE category = 'person' AND price > 189.69 + +Natural Query: List all products of Scott Inc ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Scott Inc' ORDER BY rating ASC + +Natural Query: List all products of Martin and Sons ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Martin and Sons' ORDER BY price DESC + +Natural Query: What are the top 8 products by revenue for Ramsey LLC this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Ramsey LLC' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: List all products of Gray, Gilbert and Greer ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gray, Gilbert and Greer' ORDER BY rating ASC + +Natural Query: What are the top 9 products by revenue for Williams-Lawrence this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Williams-Lawrence' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: What is the minimum price of all products for Crosby, Arnold and Buck? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Crosby, Arnold and Buck' + +Natural Query: Show me all products in the area category with a price over $418.82. +SQL Query: SELECT * FROM products WHERE category = 'area' AND price > 418.82 + +Natural Query: What is the total quantity for each country in Campbell, Johnson and Bradford? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Campbell, Johnson and Bradford' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the maximum quantity of all products for Horn, Roman and Martinez? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Horn, Roman and Martinez' + +Natural Query: What are the top 7 products by customers for Elliott-Baker last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Elliott-Baker' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: What is the total price of all products for Wilson, Owens and Herring? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Wilson, Owens and Herring' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Browning, Young and Thornton 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 = 'Browning, Young and Thornton' + 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 central category with a price over $83.5. +SQL Query: SELECT * FROM products WHERE category = 'central' AND price > 83.5 + +Natural Query: What is the total profit for each country in Rios Group? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Rios Group' GROUP BY country ORDER BY total_profit DESC + +Natural Query: Show me all products in the deep category with a price over $729.21. +SQL Query: SELECT * FROM products WHERE category = 'deep' AND price > 729.21 + +Natural Query: List all products of Young-Figueroa ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Young-Figueroa' ORDER BY rating ASC + +Natural Query: What is the average quantity of all products for Oliver, Smith and Hunt? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Oliver, Smith and Hunt' + +Natural Query: What is the total quantity for each category in Perez and Sons? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Perez and Sons' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all products of Jones and Sons ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jones and Sons' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Gomez-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 = 'Gomez-Lopez' GROUP BY c.customer_id + +Natural Query: What are the top 10 products by sales for Beard-Castaneda this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Beard-Castaneda' 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 Cox, Kim and Martinez. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Cox, Kim and Martinez' GROUP BY c.customer_id + +Natural Query: Show me all products in the technology category with a price over $702.58. +SQL Query: SELECT * FROM products WHERE category = 'technology' AND price > 702.58 + +Natural Query: Show me all products in the energy category with a price over $431.32. +SQL Query: SELECT * FROM products WHERE category = 'energy' AND price > 431.32 + +Natural Query: Show me all products in the short category with a price over $14.13. +SQL Query: SELECT * FROM products WHERE category = 'short' AND price > 14.13 + +Natural Query: What is the total quantity for each supplier in Anderson-Morris? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Anderson-Morris' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Warren 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 = 'Warren 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 average rating of all products for Escobar Ltd? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Escobar Ltd' + +Natural Query: List all products of Woodard LLC ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Woodard LLC' ORDER BY price DESC + +Natural Query: What is the total price of all products for Huerta, Mills and Schmidt? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Huerta, Mills and Schmidt' + +Natural Query: List all customers and their total order value for Steele, Sanders and Cline. +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 = 'Steele, Sanders and Cline' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Bullock-Bishop 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 = 'Bullock-Bishop' + 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 assume category with a price over $847.19. +SQL Query: SELECT * FROM products WHERE category = 'assume' AND price > 847.19 + +Natural Query: How many orders were placed for Torres-Lyons between 2023-10-18 and 2023-12-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Torres-Lyons' AND order_date BETWEEN '2023-10-18' AND '2023-12-08' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Rodgers, Harmon 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 = 'Rodgers, Harmon 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: What is the total sales for each country in Morales Inc? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Morales Inc' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in White-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 = 'White-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 are the top 3 products by sales for Harris Group this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Harris Group' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: Show me all products in the right category with a price over $382.28. +SQL Query: SELECT * FROM products WHERE category = 'right' AND price > 382.28 + +Natural Query: Show me all products in the democratic category with a price over $769.78. +SQL Query: SELECT * FROM products WHERE category = 'democratic' AND price > 769.78 + +Natural Query: What are the top 4 products by orders for Davies-Murphy this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Davies-Murphy' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: List all products of Cunningham-Davis ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Cunningham-Davis' ORDER BY rating ASC + +Natural Query: What is the minimum quantity of all products for Henderson-Noble? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Henderson-Noble' + +Natural Query: What is the total sales for each supplier in Kelley, Cole and Coleman? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Kelley, Cole and Coleman' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: Show me all products in the avoid category with a price over $840.86. +SQL Query: SELECT * FROM products WHERE category = 'avoid' AND price > 840.86 + +Natural Query: List all customers and their total order value for Christian, Becker and Silva. +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 = 'Christian, Becker and Silva' GROUP BY c.customer_id + +Natural Query: What is the average quantity of all products for Miller-Melton? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Miller-Melton' + +Natural Query: Show me all products in the receive category with a price over $513.3. +SQL Query: SELECT * FROM products WHERE category = 'receive' AND price > 513.3 + +Natural Query: List all products of Rangel-Reyes ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rangel-Reyes' ORDER BY rating ASC + +Natural Query: How many orders were placed for Anderson, Guerrero and Oliver between 2024-04-29 and 2024-05-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Anderson, Guerrero and Oliver' AND order_date BETWEEN '2024-04-29' AND '2024-05-08' + +Natural Query: What are the top 10 products by orders for Roman-Olson all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Roman-Olson' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: How many orders were placed for Moreno, Graham and Tran between 2024-02-11 and 2024-02-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Moreno, Graham and Tran' AND order_date BETWEEN '2024-02-11' AND '2024-02-29' + +Natural Query: What is the total sales for each supplier in Wallace-Barnett? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Wallace-Barnett' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the minimum price of all products for Decker-Walker? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Decker-Walker' + +Natural Query: What is the total quantity for each supplier in Nelson-Powell? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Nelson-Powell' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all products of Porter, Jenkins and Powers ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Porter, Jenkins and Powers' ORDER BY stock_quantity DESC + +Natural Query: Show me all products in the pass category with a price over $775.77. +SQL Query: SELECT * FROM products WHERE category = 'pass' AND price > 775.77 + +Natural Query: List all customers and their total order value for Schmidt-Miller. +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 = 'Schmidt-Miller' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Welch 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 = 'Welch LLC' GROUP BY c.customer_id + +Natural Query: What are the top 5 products by sales for Johnson, Morton and Anderson this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Johnson, Morton and Anderson' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: What is the maximum quantity of all products for Payne-Ramirez? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Payne-Ramirez' + +Natural Query: What is the total quantity for each country in Carrillo-Rivera? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Carrillo-Rivera' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all products of Romero, Kelly and Baird ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Romero, Kelly and Baird' ORDER BY stock_quantity ASC + +Natural Query: Show me all products in the somebody category with a price over $296.34. +SQL Query: SELECT * FROM products WHERE category = 'somebody' AND price > 296.34 + +Natural Query: List all products of Parsons, Osborne and Richards ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Parsons, Osborne and Richards' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Hicks, Andrade and 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 = 'Hicks, Andrade and Norton' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Calderon, Cain and Soto between 2024-06-12 and 2024-09-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Calderon, Cain and Soto' AND order_date BETWEEN '2024-06-12' AND '2024-09-16' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Jones-Dawson 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-Dawson' + 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 Reynolds, Jones and Perry? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Reynolds, Jones and Perry' + +Natural Query: What are the top 6 products by customers for Brown, Wilkins and Reilly this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Brown, Wilkins and Reilly' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: List all products of Ward Group ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ward Group' ORDER BY rating DESC + +Natural Query: How many orders were placed for Diaz-Vazquez between 2023-12-26 and 2024-02-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Diaz-Vazquez' AND order_date BETWEEN '2023-12-26' AND '2024-02-06' + +Natural Query: What is the total profit for each country in Horton LLC? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Horton LLC' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all products of Hunter, Smith and Taylor ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hunter, Smith and Taylor' ORDER BY stock_quantity ASC + +Natural Query: How many orders were placed for Collins-Wong between 2024-02-27 and 2024-08-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Collins-Wong' AND order_date BETWEEN '2024-02-27' AND '2024-08-28' + +Natural Query: List all products of White, Alvarez and Robertson ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'White, Alvarez and Robertson' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Garcia-Chen. +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-Chen' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Lopez 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 = 'Lopez LLC' GROUP BY c.customer_id + +Natural Query: What is the average price of all products for Love, Kennedy and Jacobson? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Love, Kennedy and Jacobson' + +Natural Query: How many orders were placed for Perry-Strong between 2023-12-19 and 2024-01-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Perry-Strong' AND order_date BETWEEN '2023-12-19' AND '2024-01-10' + +Natural Query: How many orders were placed for Clark and Sons between 2024-05-05 and 2024-05-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Clark and Sons' AND order_date BETWEEN '2024-05-05' AND '2024-05-21' + +Natural Query: What is the total profit for each supplier in Johnson-Schroeder? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Johnson-Schroeder' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all products of Shepherd LLC ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Shepherd LLC' ORDER BY price ASC + +Natural Query: List all customers and their total order value for Marsh, Brown 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 = 'Marsh, Brown and Johnson' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Webb-Perkins 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-Perkins' + 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 9 products by sales for Simpson-York all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Simpson-York' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: List all customers and their total order value for Serrano-Kim. +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 = 'Serrano-Kim' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Robinson 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 = 'Robinson 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 Horton 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 = 'Horton PLC' GROUP BY c.customer_id + +Natural Query: What is the total profit for each supplier in Morgan PLC? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Morgan PLC' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: Show me all products in the respond category with a price over $818.64. +SQL Query: SELECT * FROM products WHERE category = 'respond' AND price > 818.64 + +Natural Query: What is the total quantity for each country in Mckay, Bennett and White? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Mckay, Bennett and White' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 3 products by customers for Sexton Ltd all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Sexton Ltd' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: What is the total price of all products for Ruiz LLC? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Ruiz LLC' + +Natural Query: List all customers and their total order value for Payne-Snyder. +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 = 'Payne-Snyder' GROUP BY c.customer_id + +Natural Query: Show me all products in the economy category with a price over $924.72. +SQL Query: SELECT * FROM products WHERE category = 'economy' AND price > 924.72 + +Natural Query: List all customers and their total order value for Wilson 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 = 'Wilson Inc' GROUP BY c.customer_id + +Natural Query: Show me all products in the position category with a price over $664.57. +SQL Query: SELECT * FROM products WHERE category = 'position' AND price > 664.57 + +Natural Query: List all products of Jones, Johnson and Kennedy ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jones, Johnson and Kennedy' ORDER BY price DESC + +Natural Query: What are the top 7 products by customers for Taylor, Medina and Pham last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Taylor, Medina and Pham' 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 Harrison 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 = 'Harrison 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 quantity for each category in Cunningham, Valenzuela and Morgan? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Cunningham, Valenzuela and Morgan' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all products of Gates LLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gates LLC' ORDER BY stock_quantity DESC + +Natural Query: List all products of Wright Group ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wright Group' ORDER BY stock_quantity ASC + +Natural Query: What is the minimum rating of all products for Vasquez Inc? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Vasquez Inc' + +Natural Query: List all customers and their total order value for Boone 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 = 'Boone Ltd' GROUP BY c.customer_id + +Natural Query: What are the top 6 products by orders for Evans, Peters and Jensen all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Evans, Peters and Jensen' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: How many orders were placed for Lewis-Pitts between 2024-06-11 and 2024-08-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lewis-Pitts' AND order_date BETWEEN '2024-06-11' AND '2024-08-09' + +Natural Query: How many orders were placed for Boyd, Clay and Taylor between 2024-01-13 and 2024-06-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Boyd, Clay and Taylor' AND order_date BETWEEN '2024-01-13' AND '2024-06-05' + +Natural Query: What is the total quantity of all products for Murray-Avery? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Murray-Avery' + +Natural Query: What are the top 5 products by sales for Barron and Sons all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Barron and Sons' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: How many orders were placed for Palmer-Garcia between 2024-01-09 and 2024-08-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Palmer-Garcia' AND order_date BETWEEN '2024-01-09' AND '2024-08-09' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Wu, Hudson and 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 = 'Wu, Hudson and Gardner' + 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 Perry Inc? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Perry Inc' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Good, Le 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 = 'Good, Le 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 is the total quantity for each country in Gibson, Adams and Davis? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Gibson, Adams and Davis' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the minimum quantity of all products for Hamilton, Cisneros and Wiggins? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Hamilton, Cisneros and Wiggins' + +Natural Query: What are the top 4 products by orders for Jones LLC this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Jones LLC' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: List all products of Turner, Johnson and Rodriguez ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Turner, Johnson and Rodriguez' ORDER BY stock_quantity ASC + +Natural Query: Show me all products in the arm category with a price over $814.65. +SQL Query: SELECT * FROM products WHERE category = 'arm' AND price > 814.65 + +Natural Query: What is the total price of all products for Joseph-Adams? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Joseph-Adams' + +Natural Query: List all customers and their total order value for Mcintyre 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 = 'Mcintyre Ltd' GROUP BY c.customer_id + +Natural Query: What are the top 8 products by revenue for Padilla Group all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Padilla Group' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: List all customers and their total order value for Anderson, Johnson and Huynh. +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, Johnson and Huynh' GROUP BY c.customer_id + +Natural Query: What are the top 6 products by customers for Ortiz-Silva last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Ortiz-Silva' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: List all products of Guerrero-White ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Guerrero-White' ORDER BY rating DESC + +Natural Query: What is the total sales for each category in Harvey PLC? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Harvey PLC' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Colon 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 = 'Colon 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 pay category with a price over $768.58. +SQL Query: SELECT * FROM products WHERE category = 'pay' AND price > 768.58 + +Natural Query: What is the maximum quantity of all products for Benjamin and Sons? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Benjamin and Sons' + +Natural Query: How many orders were placed for Huber-Jackson between 2024-03-22 and 2024-08-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Huber-Jackson' AND order_date BETWEEN '2024-03-22' AND '2024-08-04' + +Natural Query: List all customers and their total order value for Ibarra-Kelley. +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 = 'Ibarra-Kelley' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Martinez-Thomas 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-Thomas' + 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 Clements 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 = 'Clements LLC' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Brown, Edwards and Morgan between 2024-02-22 and 2024-06-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Brown, Edwards and Morgan' AND order_date BETWEEN '2024-02-22' AND '2024-06-26' + +Natural Query: Show me all products in the his category with a price over $211.57. +SQL Query: SELECT * FROM products WHERE category = 'his' AND price > 211.57 + +Natural Query: List all customers and their total order value for Lee 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 = 'Lee and Sons' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Stone Inc between 2024-03-01 and 2024-09-02? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Stone Inc' AND order_date BETWEEN '2024-03-01' AND '2024-09-02' + +Natural Query: Show me all products in the painting category with a price over $13.3. +SQL Query: SELECT * FROM products WHERE category = 'painting' AND price > 13.3 + +Natural Query: How many orders were placed for Adams-Lee between 2024-07-03 and 2024-07-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Adams-Lee' AND order_date BETWEEN '2024-07-03' AND '2024-07-11' + +Natural Query: List all products of Peters-Wong ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Peters-Wong' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Johnson, Gonzalez and Alvarez. +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, Gonzalez and Alvarez' GROUP BY c.customer_id + +Natural Query: What are the top 5 products by orders for Duncan and Sons last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Duncan and Sons' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: How many orders were placed for Wiley Group between 2024-08-13 and 2024-08-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wiley Group' AND order_date BETWEEN '2024-08-13' AND '2024-08-13' + +Natural Query: How many orders were placed for Lee Ltd between 2024-04-14 and 2024-08-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lee Ltd' AND order_date BETWEEN '2024-04-14' AND '2024-08-22' + +Natural Query: Show me all products in the throughout category with a price over $510.55. +SQL Query: SELECT * FROM products WHERE category = 'throughout' AND price > 510.55 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Vance, Morris and Lucas 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 = 'Vance, Morris and Lucas' + 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 9 products by sales for Sanchez PLC this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Sanchez PLC' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hernandez 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 = 'Hernandez 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 Cuevas-Bridges 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 = 'Cuevas-Bridges' + 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 Shaw-Berry? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Shaw-Berry' + +Natural Query: List all products of Berry-Bennett ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Berry-Bennett' ORDER BY price DESC + +Natural Query: What is the minimum price of all products for Macias, Cardenas and Farmer? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Macias, Cardenas and Farmer' + +Natural Query: List all products of Cross Group ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Cross Group' ORDER BY price ASC + +Natural Query: List all products of Ross Group ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ross Group' ORDER BY stock_quantity DESC + +Natural Query: What is the minimum rating of all products for Burgess PLC? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Burgess PLC' + +Natural Query: Show me all products in the try category with a price over $988.47. +SQL Query: SELECT * FROM products WHERE category = 'try' AND price > 988.47 + +Natural Query: How many orders were placed for Henry, Johnson and King between 2024-02-23 and 2024-04-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Henry, Johnson and King' AND order_date BETWEEN '2024-02-23' AND '2024-04-06' + +Natural Query: Show me all products in the collection category with a price over $603.3. +SQL Query: SELECT * FROM products WHERE category = 'collection' AND price > 603.3 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Ruiz 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 = 'Ruiz 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 Villa PLC between 2024-07-08 and 2024-07-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Villa PLC' AND order_date BETWEEN '2024-07-08' AND '2024-07-13' + +Natural Query: How many orders were placed for Holland and Sons between 2024-08-28 and 2024-08-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Holland and Sons' AND order_date BETWEEN '2024-08-28' AND '2024-08-29' + +Natural Query: List all products of Sims-Johnson ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Sims-Johnson' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Forbes, Farmer and Kennedy. +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 = 'Forbes, Farmer and Kennedy' GROUP BY c.customer_id + +Natural Query: What is the total price of all products for Morris, Wiggins and Cooper? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Morris, Wiggins and Cooper' + +Natural Query: What is the maximum quantity of all products for Ballard and Sons? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Ballard and Sons' + +Natural Query: What is the total quantity for each category in Bennett, Schneider and Hunter? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Bennett, Schneider and Hunter' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for James, Sharp 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 = 'James, Sharp and Bailey' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Armstrong, Perez and Hernandez between 2024-04-21 and 2024-07-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Armstrong, Perez and Hernandez' AND order_date BETWEEN '2024-04-21' AND '2024-07-07' + +Natural Query: What is the total price of all products for Benitez, Potter and Reyes? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Benitez, Potter and Reyes' + +Natural Query: What is the maximum rating of all products for Steele-Kelly? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Steele-Kelly' + +Natural Query: What is the minimum rating of all products for Lynch Ltd? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Lynch Ltd' + +Natural Query: What is the average price of all products for Walker, Rodriguez and Cooper? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Walker, Rodriguez and Cooper' + +Natural Query: Show me all products in the would category with a price over $761.45. +SQL Query: SELECT * FROM products WHERE category = 'would' AND price > 761.45 + +Natural Query: List all products of Mora, Moody and Bryant ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mora, Moody and Bryant' ORDER BY rating DESC + +Natural Query: What are the top 3 products by sales for Nelson-Jones this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Nelson-Jones' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: Show me all products in the seek category with a price over $607.2. +SQL Query: SELECT * FROM products WHERE category = 'seek' AND price > 607.2 + +Natural Query: Show me all products in the stop category with a price over $955.93. +SQL Query: SELECT * FROM products WHERE category = 'stop' AND price > 955.93 + +Natural Query: List all products of Brown Ltd ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Brown Ltd' ORDER BY price ASC + +Natural Query: List all products of Griffith Inc ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Griffith Inc' ORDER BY rating DESC + +Natural Query: List all products of Campbell, Walters and Durham ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Campbell, Walters and Durham' ORDER BY price DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Thompson 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 = 'Thompson 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 Werner Ltd between 2024-07-21 and 2024-08-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Werner Ltd' AND order_date BETWEEN '2024-07-21' AND '2024-08-16' + +Natural Query: What is the maximum rating of all products for Schneider LLC? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Schneider LLC' + +Natural Query: What is the total quantity for each category in Osborne PLC? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Osborne PLC' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the minimum price of all products for Rodriguez-Wolf? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Rodriguez-Wolf' + +Natural Query: Show me all products in the discuss category with a price over $585.45. +SQL Query: SELECT * FROM products WHERE category = 'discuss' AND price > 585.45 + +Natural Query: What are the top 10 products by customers for Ortiz, Powers and Black last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Ortiz, Powers and Black' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10 + +Natural Query: Show me all products in the media category with a price over $992.07. +SQL Query: SELECT * FROM products WHERE category = 'media' AND price > 992.07 + +Natural Query: What is the maximum rating of all products for Taylor, Carey and Lam? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Taylor, Carey and Lam' + +Natural Query: List all products of Rose-Price ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rose-Price' ORDER BY stock_quantity DESC + +Natural Query: How many orders were placed for Bishop-Wallace between 2024-01-29 and 2024-04-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bishop-Wallace' AND order_date BETWEEN '2024-01-29' AND '2024-04-09' + +Natural Query: Show me all products in the door category with a price over $405.55. +SQL Query: SELECT * FROM products WHERE category = 'door' AND price > 405.55 + +Natural Query: What is the total sales for each category in Harrison and Sons? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Harrison and Sons' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the total quantity for each supplier in Woodard-Henson? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Woodard-Henson' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all products of Bass-Cox ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Bass-Cox' ORDER BY price ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cross, Norman and Rojas 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 = 'Cross, Norman and Rojas' + 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 Bennett-Woodard ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Bennett-Woodard' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 products by revenue for Moss-Hawkins all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Moss-Hawkins' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: What is the total quantity of all products for Hendrix-Scott? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Hendrix-Scott' + +Natural Query: How many orders were placed for Delacruz, Cannon and Ingram between 2024-05-21 and 2024-06-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Delacruz, Cannon and Ingram' AND order_date BETWEEN '2024-05-21' AND '2024-06-26' + +Natural Query: What is the total quantity for each supplier in Brown, Byrd and Brown? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Brown, Byrd and Brown' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 9 products by revenue for Evans-Whitehead all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Evans-Whitehead' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: What is the total price of all products for Zhang Inc? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Zhang Inc' + +Natural Query: List all customers and their total order value for Rhodes, French and Robertson. +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 = 'Rhodes, French and Robertson' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Chang, Aguirre and Bauer. +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, Aguirre and Bauer' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Martin-Howard. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Martin-Howard' GROUP BY c.customer_id + +Natural Query: Show me all products in the finish category with a price over $530.61. +SQL Query: SELECT * FROM products WHERE category = 'finish' AND price > 530.61 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Sanchez-Wolf 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 = 'Sanchez-Wolf' + 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 Whitney, Wright and Anderson. +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 = 'Whitney, Wright and Anderson' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Berg-Robinson between 2023-10-29 and 2024-09-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Berg-Robinson' AND order_date BETWEEN '2023-10-29' AND '2024-09-05' + +Natural Query: List all customers and their total order value for Cook-Garrett. +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 = 'Cook-Garrett' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Davidson Group between 2024-06-14 and 2024-07-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Davidson Group' AND order_date BETWEEN '2024-06-14' AND '2024-07-11' + +Natural Query: Show me all products in the Mr category with a price over $23.27. +SQL Query: SELECT * FROM products WHERE category = 'Mr' AND price > 23.27 + +Natural Query: What are the top 9 products by revenue for Morgan, Estrada and Taylor this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Morgan, Estrada and Taylor' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: List all products of Thomas Inc ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Thomas Inc' ORDER BY rating DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Martinez, Stewart and Cohen 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, Stewart and Cohen' + 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 4 products by revenue for Wise Ltd all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Wise Ltd' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: List all customers and their total order value for Castaneda, Smith and Garcia. +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 = 'Castaneda, Smith and Garcia' GROUP BY c.customer_id + +Natural Query: List all products of Oneill-Vasquez ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Oneill-Vasquez' ORDER BY stock_quantity DESC + +Natural Query: List all products of Smith Inc ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith Inc' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Carlson-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 = 'Carlson-Brown' GROUP BY c.customer_id + +Natural Query: Show me all products in the light category with a price over $888.27. +SQL Query: SELECT * FROM products WHERE category = 'light' AND price > 888.27 + +Natural Query: What is the total sales for each country in Barker, Lopez and Nguyen? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Barker, Lopez and Nguyen' GROUP BY country ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Reynolds Inc between 2024-01-26 and 2024-03-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Reynolds Inc' AND order_date BETWEEN '2024-01-26' AND '2024-03-19' + +Natural Query: How many orders were placed for Glenn-Stone between 2024-05-27 and 2024-06-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Glenn-Stone' AND order_date BETWEEN '2024-05-27' AND '2024-06-13' + +Natural Query: List all customers and their total order value for Reed-Lynn. +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-Lynn' GROUP BY c.customer_id + +Natural Query: What is the total sales for each country in Stephens-Anderson? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Stephens-Anderson' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the average rating of all products for Ramirez, Lee and Calhoun? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Ramirez, Lee and Calhoun' + +Natural Query: What are the top 10 products by revenue for Thomas-Baker this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Thomas-Baker' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: What is the total quantity for each category in Jarvis, Washington and Galloway? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Jarvis, Washington and Galloway' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: Show me all products in the standard category with a price over $146.01. +SQL Query: SELECT * FROM products WHERE category = 'standard' AND price > 146.01 + +Natural Query: What are the top 5 products by orders for Wilson-Kelly this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Wilson-Kelly' 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 Vargas 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 = 'Vargas 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 price of all products for Cooley Inc? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Cooley Inc' + +Natural Query: What are the top 8 products by orders for Castro, Blair and Sheppard all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Castro, Blair and Sheppard' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: List all customers and their total order value for Edwards-Wright. +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 = 'Edwards-Wright' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Roy, Gonzalez and Frederick between 2023-12-11 and 2024-01-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Roy, Gonzalez and Frederick' AND order_date BETWEEN '2023-12-11' AND '2024-01-26' + +Natural Query: List all products of Price, Reeves and Cooper ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Price, Reeves and Cooper' ORDER BY price ASC + +Natural Query: List all customers and their total order value for Logan-Ball. +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 = 'Logan-Ball' GROUP BY c.customer_id + +Natural Query: List all products of Jenkins, Kelley and Green ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jenkins, Kelley and Green' ORDER BY price DESC + +Natural Query: List all products of Hayes-Coleman ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hayes-Coleman' ORDER BY rating ASC + +Natural Query: What are the top 9 products by sales for Morrow-Miller last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Morrow-Miller' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: What are the top 6 products by sales for Young, Richardson and Mata this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Young, Richardson and Mata' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: Show me all products in the ready category with a price over $112.22. +SQL Query: SELECT * FROM products WHERE category = 'ready' AND price > 112.22 + +Natural Query: List all customers and their total order value for Clay, Ramirez and Robinson. +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 = 'Clay, Ramirez and Robinson' GROUP BY c.customer_id + +Natural Query: Show me all products in the economic category with a price over $82.2. +SQL Query: SELECT * FROM products WHERE category = 'economic' AND price > 82.2 + +Natural Query: What is the total profit for each supplier in Ramirez, Hampton and Hanson? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Ramirez, Hampton and Hanson' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Park-Fritz. +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-Fritz' GROUP BY c.customer_id + +Natural Query: What are the top 9 products by orders for Ferguson, Banks and Morgan all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Ferguson, Banks and Morgan' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: How many orders were placed for Gray Group between 2023-12-03 and 2024-07-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gray Group' AND order_date BETWEEN '2023-12-03' AND '2024-07-05' + +Natural Query: What is the average price of all products for Walker Inc? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Walker Inc' + +Natural Query: What is the total sales for each country in Price-Bennett? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Price-Bennett' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Franklin 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 = 'Franklin 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 rather category with a price over $154.91. +SQL Query: SELECT * FROM products WHERE category = 'rather' AND price > 154.91 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Jordan 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 = 'Jordan 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 sales for each category in Bell, Smith and Brown? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Bell, Smith and Brown' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Powell 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 = 'Powell Inc' GROUP BY c.customer_id + +Natural Query: What are the top 9 products by orders for Fernandez-Rivera all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Fernandez-Rivera' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: What is the total sales for each category in Guzman Inc? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Guzman Inc' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the total quantity for each category in Nguyen, Higgins and Cannon? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Nguyen, Higgins and Cannon' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Fitzgerald, Davis 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 = 'Fitzgerald, Davis 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: How many orders were placed for Torres Ltd between 2024-07-18 and 2024-09-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Torres Ltd' AND order_date BETWEEN '2024-07-18' AND '2024-09-11' + +Natural Query: How many orders were placed for Oneal-Murray between 2024-02-24 and 2024-04-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Oneal-Murray' AND order_date BETWEEN '2024-02-24' AND '2024-04-14' + +Natural Query: List all customers and their total order value for Beck-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 = 'Beck-Nguyen' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Mejia PLC between 2024-04-27 and 2024-08-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mejia PLC' AND order_date BETWEEN '2024-04-27' AND '2024-08-18' + +Natural Query: List all customers and their total order value for Brady, Armstrong and Gates. +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 = 'Brady, Armstrong and Gates' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each country in Wilson, Schultz and Mitchell? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Wilson, Schultz and Mitchell' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Jordan, Roberts and 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 = 'Jordan, Roberts and 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 now category with a price over $823.86. +SQL Query: SELECT * FROM products WHERE category = 'now' AND price > 823.86 + +Natural Query: What is the minimum quantity of all products for Kelly Inc? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Kelly Inc' + +Natural Query: What are the top 3 products by orders for Arnold, Velez and Griffin this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Arnold, Velez and Griffin' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: What are the top 4 products by sales for Hayes, Johnston and Harrington this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hayes, Johnston and Harrington' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: List all customers and their total order value for Peterson-Gibbs. +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 = 'Peterson-Gibbs' GROUP BY c.customer_id + +Natural Query: Show me all products in the give category with a price over $881.24. +SQL Query: SELECT * FROM products WHERE category = 'give' AND price > 881.24 + +Natural Query: What is the total price of all products for Browning-Rodgers? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Browning-Rodgers' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hurst-Paul 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 = 'Hurst-Paul' + 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 Harrison-Perez? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Harrison-Perez' + +Natural Query: List all products of Weiss, Gamble and Martinez ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Weiss, Gamble and Martinez' ORDER BY price DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Wheeler-Reynolds 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 = 'Wheeler-Reynolds' + 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 orders for Miller-Smith last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Miller-Smith' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Trevino-Diaz 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 = 'Trevino-Diaz' + 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 fact category with a price over $410.63. +SQL Query: SELECT * FROM products WHERE category = 'fact' AND price > 410.63 + +Natural Query: How many orders were placed for Sutton Inc between 2023-11-24 and 2023-12-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Sutton Inc' AND order_date BETWEEN '2023-11-24' AND '2023-12-10' + +Natural Query: What is the total rating of all products for Leonard Inc? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Leonard Inc' + +Natural Query: What are the top 10 products by orders for Harris-Meza all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Harris-Meza' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: Show me all products in the always category with a price over $285.63. +SQL Query: SELECT * FROM products WHERE category = 'always' AND price > 285.63 + +Natural Query: How many orders were placed for Harris, Williams and Mitchell between 2024-08-25 and 2024-09-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Harris, Williams and Mitchell' AND order_date BETWEEN '2024-08-25' AND '2024-09-13' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Smith-Drake 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-Drake' + 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 Holland-Rocha? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Holland-Rocha' + +Natural Query: Show me all products in the from category with a price over $678.18. +SQL Query: SELECT * FROM products WHERE category = 'from' AND price > 678.18 + +Natural Query: What is the total sales for each category in Smith, Smith and Thomas? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Smith, Smith and Thomas' GROUP BY category ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Palmer Group between 2024-03-08 and 2024-05-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Palmer Group' AND order_date BETWEEN '2024-03-08' AND '2024-05-07' + +Natural Query: Show me all products in the appear category with a price over $189.32. +SQL Query: SELECT * FROM products WHERE category = 'appear' AND price > 189.32 + +Natural Query: What are the top 6 products by sales for Mills PLC this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Mills PLC' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: What is the average rating of all products for Burns, Washington and Kirby? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Burns, Washington and Kirby' + +Natural Query: List all products of Bishop-Jones ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Bishop-Jones' ORDER BY rating DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Simmons 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 = 'Simmons 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 products of Cox Group ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Cox Group' ORDER BY stock_quantity ASC + +Natural Query: What is the total quantity of all products for Clark-Jones? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Clark-Jones' + +Natural Query: What is the total sales for each category in Martin, Rodriguez and Butler? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Martin, Rodriguez and Butler' GROUP BY category ORDER BY total_sales DESC + +Natural Query: Show me all products in the get category with a price over $378.1. +SQL Query: SELECT * FROM products WHERE category = 'get' AND price > 378.1 + +Natural Query: List all customers and their total order value for Perry-Christensen. +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 = 'Perry-Christensen' GROUP BY c.customer_id + +Natural Query: What is the total price of all products for Harrell-Peters? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Harrell-Peters' + +Natural Query: What is the total sales for each supplier in Campbell, Briggs and Williams? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Campbell, Briggs and Williams' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Alvarado-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 = 'Alvarado-Taylor' GROUP BY c.customer_id + +Natural Query: What are the top 3 products by orders for Walters PLC this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Walters PLC' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: How many orders were placed for Gross-Trujillo between 2024-01-12 and 2024-09-02? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gross-Trujillo' AND order_date BETWEEN '2024-01-12' AND '2024-09-02' + +Natural Query: What is the total price of all products for Ray PLC? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Ray PLC' + +Natural Query: What are the top 7 products by sales for Kim-Poole last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Kim-Poole' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: What is the minimum rating of all products for Bennett Inc? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Bennett Inc' + +Natural Query: Show me all products in the red category with a price over $261.24. +SQL Query: SELECT * FROM products WHERE category = 'red' AND price > 261.24 + +Natural Query: What is the average price of all products for Miller Group? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Miller Group' + +Natural Query: Show me all products in the perform category with a price over $687.13. +SQL Query: SELECT * FROM products WHERE category = 'perform' AND price > 687.13 + +Natural Query: Show me all products in the gas category with a price over $328.27. +SQL Query: SELECT * FROM products WHERE category = 'gas' AND price > 328.27 + +Natural Query: What are the top 3 products by orders for Owens-Fowler this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Owens-Fowler' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: Show me all products in the civil category with a price over $559.09. +SQL Query: SELECT * FROM products WHERE category = 'civil' AND price > 559.09 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in West, Evans 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 = 'West, Evans 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: List all products of Fernandez LLC ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Fernandez LLC' ORDER BY rating ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Padilla 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 = 'Padilla 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 Gutierrez 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 = 'Gutierrez LLC' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Gutierrez-Hamilton between 2024-01-31 and 2024-08-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gutierrez-Hamilton' AND order_date BETWEEN '2024-01-31' AND '2024-08-21' + +Natural Query: What is the total price of all products for Price-Hunter? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Price-Hunter' + +Natural Query: List all products of Wilson LLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wilson LLC' ORDER BY rating DESC + +Natural Query: What is the maximum quantity of all products for York and Sons? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'York and Sons' + +Natural Query: What is the maximum quantity of all products for Brown Ltd? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Brown Ltd' + +Natural Query: What are the top 5 products by customers for Ortiz, Jimenez and King last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Ortiz, Jimenez and King' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: List all products of Carlson, Moody and Gutierrez ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Carlson, Moody and Gutierrez' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Fitzpatrick, King and Charles. +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 = 'Fitzpatrick, King and Charles' GROUP BY c.customer_id + +Natural Query: List all products of Reeves and Sons ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Reeves and Sons' ORDER BY price DESC + +Natural Query: What is the total quantity for each country in Luna, Burton and Kirk? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Luna, Burton and Kirk' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 4 products by revenue for Wilson-May this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Wilson-May' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: What is the total quantity of all products for Coffey, Wise and Kelly? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Coffey, Wise and Kelly' + +Natural Query: What is the total quantity of all products for Smith-Flowers? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Smith-Flowers' + +Natural Query: List all customers and their total order value for Sharp, Mills 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 = 'Sharp, Mills and Williams' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mejia 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 = 'Mejia Ltd' + 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 dark category with a price over $471.28. +SQL Query: SELECT * FROM products WHERE category = 'dark' AND price > 471.28 + +Natural Query: Show me all products in the go category with a price over $238.06. +SQL Query: SELECT * FROM products WHERE category = 'go' AND price > 238.06 + +Natural Query: What is the average price of all products for Harrington-Huber? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Harrington-Huber' + +Natural Query: What is the minimum quantity of all products for Fuller, Patel and Bradford? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Fuller, Patel and Bradford' + +Natural Query: What are the top 10 products by orders for Jones-Riley all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Jones-Riley' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: What is the total profit for each country in Smith-Mcconnell? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Smith-Mcconnell' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all products of Cunningham, Morrison and Mcmahon ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Cunningham, Morrison and Mcmahon' ORDER BY stock_quantity ASC + +Natural Query: What are the top 4 products by sales for Brown-Bush last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Brown-Bush' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: What is the total sales for each category in Carter Group? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Carter Group' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the total sales for each supplier in Bates LLC? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Bates LLC' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Martin, Sandoval and Wilson between 2024-08-27 and 2024-09-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Martin, Sandoval and Wilson' AND order_date BETWEEN '2024-08-27' AND '2024-09-14' + +Natural Query: List all products of Snyder LLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Snyder LLC' ORDER BY stock_quantity DESC + +Natural Query: What is the total profit for each supplier in Butler, Hodges and Phillips? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Butler, Hodges and Phillips' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: Show me all products in the century category with a price over $354.02. +SQL Query: SELECT * FROM products WHERE category = 'century' AND price > 354.02 + +Natural Query: List all customers and their total order value for Banks 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 = 'Banks and Sons' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Fischer 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 = 'Fischer 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 are the top 5 categories by sales for customers aged 25-35 in Molina-Jenkins 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-Jenkins' + 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 rating of all products for Stewart Inc? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Stewart Inc' + +Natural Query: What is the minimum price of all products for Nielsen, Gilbert and Kirby? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Nielsen, Gilbert and Kirby' + +Natural Query: List all customers and their total order value for Johnson-Duke. +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-Duke' GROUP BY c.customer_id + +Natural Query: List all products of Berry, Anderson and Drake ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Berry, Anderson and Drake' ORDER BY price DESC + +Natural Query: Show me all products in the each category with a price over $300.6. +SQL Query: SELECT * FROM products WHERE category = 'each' AND price > 300.6 + +Natural Query: What are the top 8 products by revenue for Crawford-Cortez last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Crawford-Cortez' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Garcia, Hernandez and Rosario 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, Hernandez and Rosario' + 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 Miller-Hughes between 2024-06-16 and 2024-08-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Miller-Hughes' AND order_date BETWEEN '2024-06-16' AND '2024-08-04' + +Natural Query: List all customers and their total order value for Abbott-Cuevas. +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 = 'Abbott-Cuevas' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Mendoza-Jones between 2023-12-20 and 2024-03-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mendoza-Jones' AND order_date BETWEEN '2023-12-20' AND '2024-03-08' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in White 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 = 'White 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 10 products by customers for Roberts-Brown this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Roberts-Brown' AND period = 'this year' 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 Lang, Curtis and Levine 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 = 'Lang, Curtis and Levine' + 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 Williams-Moore? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Williams-Moore' + +Natural Query: What is the total sales for each supplier in Robertson LLC? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Robertson LLC' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Simmons-Nash. +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 = 'Simmons-Nash' GROUP BY c.customer_id + +Natural Query: What is the total profit for each country in Rice-Warren? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Rice-Warren' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Thomas 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 = 'Thomas 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 average rating of all products for Russell, Moreno and Schmidt? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Russell, Moreno and Schmidt' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Downs-Martinez 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 = 'Downs-Martinez' + 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 Luna Ltd? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Luna Ltd' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 8 products by sales for Harper, Robinson and Jacobs all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Harper, Robinson and Jacobs' AND period = 'all time' 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 Sharp-Nixon 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 = 'Sharp-Nixon' + 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 Ayers-Tucker? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Ayers-Tucker' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all products of Brock, Grant and Lawrence ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Brock, Grant and Lawrence' ORDER BY rating ASC + +Natural Query: List all products of Larson-Porter ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Larson-Porter' ORDER BY stock_quantity ASC + +Natural Query: What are the top 3 products by orders for King Inc last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'King Inc' 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 Davis-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 = 'Davis-Anderson' + 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 Herman, Moore and Gonzalez? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Herman, Moore and Gonzalez' + +Natural Query: List all customers and their total order value for Nguyen, Graves and Mcclain. +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, Graves and Mcclain' GROUP BY c.customer_id + +Natural Query: What is the maximum price of all products for Collins, Smith and Graham? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Collins, Smith and Graham' + +Natural Query: Show me all products in the official category with a price over $194.83. +SQL Query: SELECT * FROM products WHERE category = 'official' AND price > 194.83 + +Natural Query: What is the total quantity for each country in Williams LLC? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Williams LLC' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all products of Moran Group ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Moran Group' ORDER BY rating DESC + +Natural Query: What is the maximum quantity of all products for Walters-Bush? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Walters-Bush' + +Natural Query: What is the total profit for each supplier in Garcia, Moran and Brooks? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Garcia, Moran and Brooks' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the maximum quantity of all products for Cline, Dyer and James? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Cline, Dyer and James' + +Natural Query: List all products of Nguyen PLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Nguyen PLC' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Sanchez, Ball and Patterson. +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 = 'Sanchez, Ball and Patterson' GROUP BY c.customer_id + +Natural Query: What is the total sales for each category in Lewis and Sons? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Lewis and Sons' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 4 products by customers for Schwartz-Hall all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Schwartz-Hall' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: What is the total quantity for each supplier in Gillespie PLC? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Gillespie PLC' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: Show me all products in the member category with a price over $458.21. +SQL Query: SELECT * FROM products WHERE category = 'member' AND price > 458.21 + +Natural Query: What is the maximum price of all products for Marks-Wilson? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Marks-Wilson' + +Natural Query: Show me all products in the hot category with a price over $840.92. +SQL Query: SELECT * FROM products WHERE category = 'hot' AND price > 840.92 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Phillips 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 = 'Phillips 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 Vasquez, Conley and Callahan? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Vasquez, Conley and Callahan' + +Natural Query: How many orders were placed for Armstrong-Lopez between 2024-05-04 and 2024-07-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Armstrong-Lopez' AND order_date BETWEEN '2024-05-04' AND '2024-07-03' + +Natural Query: What are the top 5 products by customers for Roberts LLC this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Roberts LLC' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: List all customers and their total order value for Wu-Valdez. +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-Valdez' GROUP BY c.customer_id + +Natural Query: What are the top 4 products by sales for Guzman, Wolfe and Frazier this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Guzman, Wolfe and Frazier' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: What is the total quantity for each supplier in Ellis, Berger and Cole? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Ellis, Berger and Cole' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the total sales for each category in Pollard-Parks? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Pollard-Parks' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 3 products by revenue for Scott Inc last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Scott Inc' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: What is the total profit for each supplier in Mejia, Burns and Weiss? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Mejia, Burns and Weiss' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all products of Dillon, Fuentes and Black ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Dillon, Fuentes and Black' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Carroll, Clark and Douglas 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 = 'Carroll, Clark and Douglas' + 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 sales for Boyd, Keith and Parker this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Boyd, Keith and Parker' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: List all customers and their total order value for Garrison, Conrad and Mcpherson. +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 = 'Garrison, Conrad and Mcpherson' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each supplier in Mcdowell Group? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Mcdowell Group' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Thomas, Richards and Bryant between 2024-09-11 and 2024-09-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thomas, Richards and Bryant' AND order_date BETWEEN '2024-09-11' AND '2024-09-13' + +Natural Query: List all products of Glover and Sons ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Glover and Sons' ORDER BY price DESC + +Natural Query: What are the top 8 products by orders for Brown-Roberts all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Brown-Roberts' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: List all products of Wall, Harding and Smith ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wall, Harding and Smith' ORDER BY price ASC + +Natural Query: List all customers and their total order value for Parks, Adams and Garcia. +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 = 'Parks, Adams and Garcia' GROUP BY c.customer_id + +Natural Query: Show me all products in the wind category with a price over $943.37. +SQL Query: SELECT * FROM products WHERE category = 'wind' AND price > 943.37 + +Natural Query: How many orders were placed for Fowler, Owen and Mendoza between 2024-02-02 and 2024-07-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Fowler, Owen and Mendoza' AND order_date BETWEEN '2024-02-02' AND '2024-07-10' + +Natural Query: How many orders were placed for Johnson Inc between 2023-10-19 and 2024-05-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Johnson Inc' AND order_date BETWEEN '2023-10-19' AND '2024-05-19' + +Natural Query: What is the total quantity for each category in Murray LLC? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Murray LLC' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all products of King-Cooper ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'King-Cooper' ORDER BY stock_quantity ASC + +Natural Query: Show me all products in the various category with a price over $280.44. +SQL Query: SELECT * FROM products WHERE category = 'various' AND price > 280.44 + +Natural Query: How many orders were placed for Hancock PLC between 2023-10-22 and 2024-06-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hancock PLC' AND order_date BETWEEN '2023-10-22' AND '2024-06-29' + +Natural Query: What are the top 3 products by sales for Chavez-Hernandez last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Chavez-Hernandez' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: Show me all products in the cell category with a price over $822.44. +SQL Query: SELECT * FROM products WHERE category = 'cell' AND price > 822.44 + +Natural Query: List all products of Reynolds Group ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Reynolds Group' ORDER BY rating DESC + +Natural Query: Show me all products in the full category with a price over $36.51. +SQL Query: SELECT * FROM products WHERE category = 'full' AND price > 36.51 + +Natural Query: List all products of Collins Ltd ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Collins Ltd' ORDER BY rating DESC + +Natural Query: List all customers and their total order value for Williams, Gonzalez and Scott. +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, Gonzalez and Scott' GROUP BY c.customer_id + +Natural Query: List all products of Castillo Ltd ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Castillo Ltd' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gonzales-Nielsen 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 = 'Gonzales-Nielsen' + 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 Snow Ltd ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Snow Ltd' ORDER BY price DESC + +Natural Query: List all products of Gardner, Dawson and Salazar ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gardner, Dawson and Salazar' ORDER BY rating ASC + +Natural Query: What is the average rating of all products for Crawford-Bernard? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Crawford-Bernard' + +Natural Query: What is the average price of all products for Sullivan-Owens? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Sullivan-Owens' + +Natural Query: What are the top 9 products by sales for Becker-Sawyer this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Becker-Sawyer' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mendoza, Jones and Burns 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 = 'Mendoza, Jones and Burns' + 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 Freeman-Barber 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-Barber' + 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 Taylor Group between 2024-04-21 and 2024-09-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Taylor Group' AND order_date BETWEEN '2024-04-21' AND '2024-09-06' + +Natural Query: How many orders were placed for Owens, Griffin and Harvey between 2024-05-20 and 2024-08-02? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Owens, Griffin and Harvey' AND order_date BETWEEN '2024-05-20' AND '2024-08-02' + +Natural Query: What is the maximum rating of all products for Jacobson, Castillo and Scott? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Jacobson, Castillo and Scott' + +Natural Query: List all customers and their total order value for Young 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 = 'Young Ltd' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Duke 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 = 'Duke and Sons' GROUP BY c.customer_id + +Natural Query: What is the average rating of all products for Williams-Fuentes? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Williams-Fuentes' + +Natural Query: What are the top 3 products by customers for Reese-Riley this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Reese-Riley' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: How many orders were placed for Frank, Murray and Harrison between 2024-08-14 and 2024-08-31? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Frank, Murray and Harrison' AND order_date BETWEEN '2024-08-14' AND '2024-08-31' + +Natural Query: What is the total quantity for each country in Bates-Bond? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Bates-Bond' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the total sales for each category in Campbell-Moore? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Campbell-Moore' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 8 products by revenue for Randall-Williams this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Randall-Williams' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: What are the top 8 products by orders for Beck LLC this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Beck LLC' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: What is the total quantity of all products for Lopez, Rivera and Campbell? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Lopez, Rivera and Campbell' + +Natural Query: How many orders were placed for Frye Group between 2024-05-01 and 2024-08-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Frye Group' AND order_date BETWEEN '2024-05-01' AND '2024-08-15' + +Natural Query: What are the top 8 products by sales for Vasquez-Chambers last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Vasquez-Chambers' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: How many orders were placed for Garcia and Sons between 2024-07-28 and 2024-09-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Garcia and Sons' AND order_date BETWEEN '2024-07-28' AND '2024-09-16' + +Natural Query: List all products of Jones, Harris and Perez ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jones, Harris and Perez' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Norton, Rodriguez 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 = 'Norton, Rodriguez and Johnson' GROUP BY c.customer_id + +Natural Query: What is the total sales for each category in Green-Oliver? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Green-Oliver' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Brown-Forbes 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-Forbes' + 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 sales for Hall-Freeman all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hall-Freeman' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: What is the total price of all products for Doyle Inc? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Doyle Inc' + +Natural Query: How many orders were placed for Montoya, Collins and Lopez between 2023-11-18 and 2024-01-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Montoya, Collins and Lopez' AND order_date BETWEEN '2023-11-18' AND '2024-01-18' + +Natural Query: What are the top 6 products by orders for Daniels, Patrick and Robinson this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Daniels, Patrick and Robinson' AND period = 'this year' 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 Padilla, Stout and Robbins 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 = 'Padilla, Stout and Robbins' + 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 Hill Ltd? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Hill Ltd' + +Natural Query: What is the average rating of all products for Mckee Inc? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Mckee Inc' + +Natural Query: List all customers and their total order value for Williams 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 = 'Williams PLC' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Henry-Stephens 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 = 'Henry-Stephens' + 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 Bell, Heath and 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 = 'Bell, Heath and 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 Robinson, Kelley and Fox between 2024-03-13 and 2024-06-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Robinson, Kelley and Fox' AND order_date BETWEEN '2024-03-13' AND '2024-06-10' + +Natural Query: What is the maximum price of all products for Pearson and Sons? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Pearson and Sons' + +Natural Query: How many orders were placed for Sims-Juarez between 2023-12-29 and 2024-07-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Sims-Juarez' AND order_date BETWEEN '2023-12-29' AND '2024-07-13' + +Natural Query: What is the total quantity for each supplier in Spears-Hawkins? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Spears-Hawkins' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 9 products by orders for David LLC this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'David LLC' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: How many orders were placed for Mora LLC between 2023-09-22 and 2024-02-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mora LLC' AND order_date BETWEEN '2023-09-22' AND '2024-02-08' + +Natural Query: Show me all products in the team category with a price over $758.42. +SQL Query: SELECT * FROM products WHERE category = 'team' AND price > 758.42 + +Natural Query: List all products of Jones, Reed and Robertson ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jones, Reed and Robertson' ORDER BY rating ASC + +Natural Query: How many orders were placed for Roman-Sanchez between 2024-05-26 and 2024-05-31? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Roman-Sanchez' AND order_date BETWEEN '2024-05-26' AND '2024-05-31' + +Natural Query: What is the total quantity of all products for Solomon-Jones? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Solomon-Jones' + +Natural Query: How many orders were placed for Campbell Ltd between 2023-12-02 and 2024-05-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Campbell Ltd' AND order_date BETWEEN '2023-12-02' AND '2024-05-07' + +Natural Query: Show me all products in the less category with a price over $855.93. +SQL Query: SELECT * FROM products WHERE category = 'less' AND price > 855.93 + +Natural Query: How many orders were placed for Anderson, Gomez and Gordon between 2024-05-01 and 2024-08-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Anderson, Gomez and Gordon' AND order_date BETWEEN '2024-05-01' AND '2024-08-11' + +Natural Query: List all products of Schroeder-Carter ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Schroeder-Carter' ORDER BY rating DESC + +Natural Query: List all products of Brandt, Blair and Jackson ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Brandt, Blair and Jackson' ORDER BY price DESC + +Natural Query: How many orders were placed for Singh, Green and Smith between 2023-09-25 and 2024-07-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Singh, Green and Smith' AND order_date BETWEEN '2023-09-25' AND '2024-07-27' + +Natural Query: What is the total quantity for each category in Webb, Hester and Martinez? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Webb, Hester and Martinez' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the average rating of all products for Perez-Miller? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Perez-Miller' + +Natural Query: What is the maximum price of all products for Perry, Beltran and Terry? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Perry, Beltran and Terry' + +Natural Query: What is the maximum rating of all products for Garcia Inc? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Garcia Inc' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Jones 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 = 'Jones 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 Hess Group ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hess Group' ORDER BY price DESC + +Natural Query: What are the top 6 products by orders for Mendoza PLC last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Mendoza PLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: What is the total quantity of all products for Cannon Group? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Cannon Group' + +Natural Query: What is the total sales for each category in Montoya-Hansen? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Montoya-Hansen' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Miller, Cox and Dunlap 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 = 'Miller, Cox and Dunlap' + 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 Murphy-Wong. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Murphy-Wong' GROUP BY c.customer_id + +Natural Query: Show me all products in the five category with a price over $97.7. +SQL Query: SELECT * FROM products WHERE category = 'five' AND price > 97.7 + +Natural Query: How many orders were placed for Frye Inc between 2024-03-13 and 2024-06-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Frye Inc' AND order_date BETWEEN '2024-03-13' AND '2024-06-18' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hunter, Sanchez and Boyd 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 = 'Hunter, Sanchez and Boyd' + 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 4 products by customers for Perry-Powers this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Perry-Powers' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: What is the maximum price of all products for Moyer, Hicks and Sullivan? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Moyer, Hicks and Sullivan' + +Natural Query: What are the top 8 products by customers for Lewis, Daniel and Wright all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Lewis, Daniel and Wright' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: What are the top 5 products by customers for Rose, Weaver and Guzman this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Rose, Weaver and Guzman' AND period = 'this month' 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 Golden 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 = 'Golden 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 Johnson 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 = 'Johnson LLC' GROUP BY c.customer_id + +Natural Query: What is the maximum price of all products for Davis LLC? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Davis LLC' + +Natural Query: What is the total profit for each country in Charles Group? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Charles Group' GROUP BY country ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Thomas and Sons between 2024-08-16 and 2024-09-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thomas and Sons' AND order_date BETWEEN '2024-08-16' AND '2024-09-09' + +Natural Query: Show me all products in the production category with a price over $689.01. +SQL Query: SELECT * FROM products WHERE category = 'production' AND price > 689.01 + +Natural Query: What is the maximum rating of all products for Waters-Bass? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Waters-Bass' + +Natural Query: What is the minimum price of all products for Hughes-Schroeder? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Hughes-Schroeder' + +Natural Query: Show me all products in the scene category with a price over $653.07. +SQL Query: SELECT * FROM products WHERE category = 'scene' AND price > 653.07 + +Natural Query: List all products of Reynolds PLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Reynolds PLC' ORDER BY stock_quantity DESC + +Natural Query: Show me all products in the computer category with a price over $38.67. +SQL Query: SELECT * FROM products WHERE category = 'computer' AND price > 38.67 + +Natural Query: How many orders were placed for White, Campbell and Murray between 2024-03-11 and 2024-04-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'White, Campbell and Murray' AND order_date BETWEEN '2024-03-11' AND '2024-04-03' + +Natural Query: What is the maximum rating of all products for Dominguez, Robinson and Whitney? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Dominguez, Robinson and Whitney' + +Natural Query: List all products of Robinson-Hanson ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Robinson-Hanson' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Harris-Ballard 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 = 'Harris-Ballard' + 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 Smith, Kennedy and Craig between 2024-05-06 and 2024-09-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Smith, Kennedy and Craig' AND order_date BETWEEN '2024-05-06' AND '2024-09-07' + +Natural Query: Show me all products in the near category with a price over $894.96. +SQL Query: SELECT * FROM products WHERE category = 'near' AND price > 894.96 + +Natural Query: What are the top 8 products by revenue for Reyes Ltd this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Reyes Ltd' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: What is the minimum rating of all products for Soto, Mathis and Martinez? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Soto, Mathis and Martinez' + +Natural Query: List all products of Davis-Alexander ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Davis-Alexander' ORDER BY rating DESC + +Natural Query: What is the total sales for each country in Thomas Ltd? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Thomas Ltd' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Williams, Hudson and Ali. +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, Hudson and Ali' GROUP BY c.customer_id + +Natural Query: List all products of Owens, Castro and Sandoval ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Owens, Castro and Sandoval' ORDER BY rating DESC + +Natural Query: List all customers and their total order value for Zamora-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 = 'Zamora-Chapman' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Johnson Inc between 2024-06-11 and 2024-07-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Johnson Inc' AND order_date BETWEEN '2024-06-11' AND '2024-07-21' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Eaton-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 = 'Eaton-Chang' + 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 Li, Jones and Wiley ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Li, Jones and Wiley' ORDER BY stock_quantity DESC + +Natural Query: What are the top 10 products by orders for Curry LLC this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Curry LLC' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: List all customers and their total order value for Stark-Valentine. +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 = 'Stark-Valentine' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each category in Norton-Beck? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Norton-Beck' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 9 products by orders for Johnson LLC this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Johnson LLC' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: List all customers and their total order value for Werner 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 = 'Werner Inc' GROUP BY c.customer_id + +Natural Query: What are the top 7 products by revenue for Fry-Howard all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Fry-Howard' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: What are the top 5 products by sales for Chan-Diaz this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Chan-Diaz' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: List all products of Mckay-Taylor ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mckay-Taylor' ORDER BY rating ASC + +Natural Query: What is the total price of all products for Davis-Alexander? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Davis-Alexander' + +Natural Query: Show me all products in the best category with a price over $157.86. +SQL Query: SELECT * FROM products WHERE category = 'best' AND price > 157.86 + +Natural Query: Show me all products in the play category with a price over $249.61. +SQL Query: SELECT * FROM products WHERE category = 'play' AND price > 249.61 + +Natural Query: Show me all products in the call category with a price over $809.05. +SQL Query: SELECT * FROM products WHERE category = 'call' AND price > 809.05 + +Natural Query: List all customers and their total order value for Williams 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 = 'Williams PLC' GROUP BY c.customer_id + +Natural Query: What is the total rating of all products for Robles-Mccarty? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Robles-Mccarty' + +Natural Query: Show me all products in the old category with a price over $370.25. +SQL Query: SELECT * FROM products WHERE category = 'old' AND price > 370.25 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Bush, Smith and Kirk 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, Smith and Kirk' + 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 billion category with a price over $637.28. +SQL Query: SELECT * FROM products WHERE category = 'billion' AND price > 637.28 + +Natural Query: What is the total quantity for each supplier in Woods-Hutchinson? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Woods-Hutchinson' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 3 products by sales for Miller-Hoover last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Miller-Hoover' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: What are the top 4 products by revenue for Kennedy, Johnson and Fowler last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Kennedy, Johnson and Fowler' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: List all products of Martinez-Norris ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Martinez-Norris' ORDER BY rating DESC + +Natural Query: What are the top 8 products by revenue for Bridges, Griffith and Mullins last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Bridges, Griffith and Mullins' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: What is the total profit for each supplier in Clark, Martinez and Phillips? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Clark, Martinez and Phillips' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 10 products by customers for Anderson, Lawrence and Delgado last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Anderson, Lawrence and Delgado' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10 + +Natural Query: Show me all products in the agree category with a price over $674.95. +SQL Query: SELECT * FROM products WHERE category = 'agree' AND price > 674.95 + +Natural Query: What is the total profit for each category in Silva-Golden? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Silva-Golden' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 5 products by orders for Torres PLC this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Torres PLC' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: What is the total sales for each category in Lee, French and Lawson? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Lee, French and Lawson' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all products of Carson Ltd ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Carson Ltd' ORDER BY price DESC + +Natural Query: What is the total profit for each country in Smith, Potter and Herring? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Smith, Potter and Herring' GROUP BY country ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Morales, Houston and Riley between 2024-04-12 and 2024-04-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Morales, Houston and Riley' AND order_date BETWEEN '2024-04-12' AND '2024-04-22' + +Natural Query: List all products of Fox PLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Fox PLC' ORDER BY stock_quantity DESC + +Natural Query: How many orders were placed for Smith, Robinson and Page between 2024-04-11 and 2024-07-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Smith, Robinson and Page' AND order_date BETWEEN '2024-04-11' AND '2024-07-28' + +Natural Query: What is the total sales for each country in Hinton Ltd? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hinton Ltd' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Sellers, Chavez and Ryan. +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 = 'Sellers, Chavez and Ryan' GROUP BY c.customer_id + +Natural Query: What are the top 4 products by orders for Johnson-Galvan this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Johnson-Galvan' AND period = 'this month' 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 Gutierrez-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 = 'Gutierrez-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 quantity for each country in Larson, Hanna and Thomas? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Larson, Hanna and Thomas' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: Show me all products in the focus category with a price over $757.51. +SQL Query: SELECT * FROM products WHERE category = 'focus' AND price > 757.51 + +Natural Query: How many orders were placed for Fernandez PLC between 2024-05-05 and 2024-08-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Fernandez PLC' AND order_date BETWEEN '2024-05-05' AND '2024-08-07' + +Natural Query: How many orders were placed for Petersen, Rodriguez and Williamson between 2023-10-26 and 2024-02-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Petersen, Rodriguez and Williamson' AND order_date BETWEEN '2023-10-26' AND '2024-02-07' + +Natural Query: How many orders were placed for Jackson, Cordova and Perez between 2023-11-04 and 2024-04-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jackson, Cordova and Perez' AND order_date BETWEEN '2023-11-04' AND '2024-04-22' + +Natural Query: List all products of Burke Ltd ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Burke Ltd' ORDER BY stock_quantity ASC + +Natural Query: What is the maximum quantity of all products for Miller, Ellis and Weaver? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Miller, Ellis and Weaver' + +Natural Query: List all customers and their total order value for Mcintyre-Richards. +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 = 'Mcintyre-Richards' GROUP BY c.customer_id + +Natural Query: What is the total quantity of all products for Villanueva, Walker and Robinson? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Villanueva, Walker and Robinson' + +Natural Query: How many orders were placed for Freeman-Barber between 2024-01-30 and 2024-06-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Freeman-Barber' AND order_date BETWEEN '2024-01-30' AND '2024-06-24' + +Natural Query: What are the top 7 products by revenue for Johnson Ltd last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Johnson Ltd' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: List all customers and their total order value for Robertson-Barton. +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-Barton' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in James 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 = 'James 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 quantity of all products for Austin-Brewer? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Austin-Brewer' + +Natural Query: What are the top 5 products by orders for Reyes, Franklin and Gonzalez this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Reyes, Franklin and Gonzalez' 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 Mccormick-Hess 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 = 'Mccormick-Hess' + 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 Nelson-Morris. +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 = 'Nelson-Morris' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each supplier in Moore, Reed and Hanna? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Moore, Reed and Hanna' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the total sales for each category in Miller, Smith and Brown? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Miller, Smith and Brown' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the maximum quantity of all products for Acosta-Jones? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Acosta-Jones' + +Natural Query: What is the total quantity for each country in Carr, Ross and Ross? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Carr, Ross and Ross' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the total profit for each category in Stevens, Collins and Jones? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Stevens, Collins and Jones' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the total quantity of all products for Walker-Watson? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Walker-Watson' + +Natural Query: What are the top 7 products by sales for Henry-Cohen this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Henry-Cohen' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: List all products of Lee, Munoz and Velasquez ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lee, Munoz and Velasquez' ORDER BY rating ASC + +Natural Query: What is the minimum rating of all products for Powell Inc? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Powell Inc' + +Natural Query: List all products of Brown LLC ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Brown LLC' ORDER BY stock_quantity ASC + +Natural Query: Show me all products in the military category with a price over $984.63. +SQL Query: SELECT * FROM products WHERE category = 'military' AND price > 984.63 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mccarthy, Hall 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 = 'Mccarthy, Hall 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: List all products of Carlson Ltd ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Carlson Ltd' ORDER BY rating DESC + +Natural Query: What are the top 3 products by customers for Simpson, Ray and Dominguez all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Simpson, Ray and Dominguez' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: What is the minimum rating of all products for Best-Jones? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Best-Jones' + +Natural Query: How many orders were placed for Gould, Cervantes and King between 2024-06-29 and 2024-08-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gould, Cervantes and King' AND order_date BETWEEN '2024-06-29' AND '2024-08-14' + +Natural Query: List all products of Riddle, Grant and Little ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Riddle, Grant and Little' ORDER BY stock_quantity ASC + +Natural Query: Show me all products in the measure category with a price over $488.37. +SQL Query: SELECT * FROM products WHERE category = 'measure' AND price > 488.37 + +Natural Query: List all customers and their total order value for Hernandez, Carter and Holland. +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, Carter and Holland' GROUP BY c.customer_id + +Natural Query: What are the top 9 products by revenue for Carrillo, Brown and Noble this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Carrillo, Brown and Noble' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: What is the total sales for each country in Williams, Barnett and Walker? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Williams, Barnett and Walker' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the average price of all products for Martin-Sutton? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Martin-Sutton' + +Natural Query: List all products of Jensen-Conner ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jensen-Conner' ORDER BY stock_quantity DESC + +Natural Query: Show me all products in the visit category with a price over $572.15. +SQL Query: SELECT * FROM products WHERE category = 'visit' AND price > 572.15 + +Natural Query: What is the average rating of all products for Meyer-Hurley? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Meyer-Hurley' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Acosta, Chung 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 = 'Acosta, Chung 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 Diaz-Stafford 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 = 'Diaz-Stafford' + 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 Lynch, Gardner and Morgan ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lynch, Gardner and Morgan' ORDER BY price DESC + +Natural Query: Show me all products in the create category with a price over $198.86. +SQL Query: SELECT * FROM products WHERE category = 'create' AND price > 198.86 + +Natural Query: What is the maximum price of all products for Murray-Nguyen? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Murray-Nguyen' + +Natural Query: Show me all products in the peace category with a price over $957.22. +SQL Query: SELECT * FROM products WHERE category = 'peace' AND price > 957.22 + +Natural Query: What is the total profit for each country in Meyers-Young? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Meyers-Young' GROUP BY country ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Cooper-Welch between 2023-10-23 and 2024-01-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cooper-Welch' AND order_date BETWEEN '2023-10-23' AND '2024-01-28' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Pitts, Allen and Bell 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 = 'Pitts, Allen and Bell' + 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 Garcia, Morrow and Swanson? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Garcia, Morrow and Swanson' + +Natural Query: How many orders were placed for Rose, Martin and Johnson between 2024-04-09 and 2024-07-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Rose, Martin and Johnson' AND order_date BETWEEN '2024-04-09' AND '2024-07-10' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Chapman-Bell 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-Bell' + 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 customers for Barton Ltd all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Barton Ltd' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: What is the minimum quantity of all products for Floyd, Meyers and Malone? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Floyd, Meyers and Malone' + +Natural Query: Show me all products in the cold category with a price over $514.33. +SQL Query: SELECT * FROM products WHERE category = 'cold' AND price > 514.33 + +Natural Query: What is the total quantity for each country in Wang, Torres and Hale? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Wang, Torres and Hale' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 4 products by sales for Curtis and Sons this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Curtis and Sons' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: List all products of Malone-Bates ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Malone-Bates' ORDER BY price ASC + +Natural Query: List all products of Reyes Inc ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Reyes Inc' ORDER BY rating DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Rush-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 = 'Rush-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 average price of all products for Bennett, Morton and Arnold? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Bennett, Morton and Arnold' + +Natural Query: Show me all products in the if category with a price over $946.31. +SQL Query: SELECT * FROM products WHERE category = 'if' AND price > 946.31 + +Natural Query: List all products of Walker and Sons ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Walker and Sons' ORDER BY stock_quantity ASC + +Natural Query: What are the top 9 products by orders for Holmes-Vega this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Holmes-Vega' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: What are the top 4 products by revenue for Johnson-Santiago last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Johnson-Santiago' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: What are the top 9 products by sales for Johnson Ltd all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Johnson Ltd' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: What is the average quantity of all products for Mercado and Sons? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Mercado and Sons' + +Natural Query: Show me all products in the too category with a price over $393.25. +SQL Query: SELECT * FROM products WHERE category = 'too' AND price > 393.25 + +Natural Query: What are the top 10 products by sales for Massey-Anderson this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Massey-Anderson' 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 Hall-Rowe. +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 = 'Hall-Rowe' GROUP BY c.customer_id + +Natural Query: What are the top 9 products by orders for Phillips Group this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Phillips Group' 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 Porter, Shepherd and Navarro. +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, Shepherd and Navarro' GROUP BY c.customer_id + +Natural Query: What are the top 8 products by sales for Owen-Martin this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Owen-Martin' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: How many orders were placed for Johnson-Cross between 2023-11-15 and 2023-11-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Johnson-Cross' AND order_date BETWEEN '2023-11-15' AND '2023-11-15' + +Natural Query: What is the total quantity for each category in Kaiser, Martin and Garcia? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Kaiser, Martin and Garcia' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: Show me all products in the building category with a price over $632.83. +SQL Query: SELECT * FROM products WHERE category = 'building' AND price > 632.83 + +Natural Query: What are the top 8 products by orders for Brown Inc all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Brown Inc' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: List all customers and their total order value for Gonzalez-Middleton. +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 = 'Gonzalez-Middleton' GROUP BY c.customer_id + +Natural Query: Show me all products in the fight category with a price over $734.69. +SQL Query: SELECT * FROM products WHERE category = 'fight' AND price > 734.69 + +Natural Query: What is the maximum quantity of all products for Ingram-Peters? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Ingram-Peters' + +Natural Query: What is the total quantity for each category in Cox and Sons? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Cox and Sons' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: Show me all products in the sometimes category with a price over $336.43. +SQL Query: SELECT * FROM products WHERE category = 'sometimes' AND price > 336.43 + +Natural Query: What is the total sales for each country in Jones-Harrell? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Jones-Harrell' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all products of Martin Group ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Martin Group' ORDER BY stock_quantity DESC + +Natural Query: What is the maximum quantity of all products for Simon Ltd? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Simon Ltd' + +Natural Query: Show me all products in the teach category with a price over $780.98. +SQL Query: SELECT * FROM products WHERE category = 'teach' AND price > 780.98 + +Natural Query: Show me all products in the guy category with a price over $710.2. +SQL Query: SELECT * FROM products WHERE category = 'guy' AND price > 710.2 + +Natural Query: What are the top 7 products by revenue for Weaver LLC all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Weaver LLC' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: What is the total sales for each supplier in Maddox PLC? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Maddox PLC' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Rodriguez-Long between 2024-04-09 and 2024-07-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Rodriguez-Long' AND order_date BETWEEN '2024-04-09' AND '2024-07-19' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Owens, Madden and Perry 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 = 'Owens, Madden and Perry' + 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 Carter, Williams and 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 = 'Carter, Williams and Fuller' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Lloyd PLC between 2023-12-05 and 2024-05-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lloyd PLC' AND order_date BETWEEN '2023-12-05' AND '2024-05-07' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Armstrong-Franco 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 = 'Armstrong-Franco' + 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 Kelly-Nguyen between 2024-05-31 and 2024-08-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Kelly-Nguyen' AND order_date BETWEEN '2024-05-31' AND '2024-08-12' + +Natural Query: Show me all products in the prove category with a price over $633.05. +SQL Query: SELECT * FROM products WHERE category = 'prove' AND price > 633.05 + +Natural Query: How many orders were placed for Taylor and Sons between 2024-05-11 and 2024-05-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Taylor and Sons' AND order_date BETWEEN '2024-05-11' AND '2024-05-22' + +Natural Query: List all products of Mcconnell-Stewart ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mcconnell-Stewart' ORDER BY price DESC + +Natural Query: List all products of Hansen and Sons ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hansen and Sons' ORDER BY stock_quantity ASC + +Natural Query: List all customers and their total order value for Farrell 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 = 'Farrell Ltd' GROUP BY c.customer_id + +Natural Query: Show me all products in the between category with a price over $295.74. +SQL Query: SELECT * FROM products WHERE category = 'between' AND price > 295.74 + +Natural Query: What is the maximum price of all products for Moreno Group? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Moreno Group' + +Natural Query: List all customers and their total order value for Scott-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 = 'Scott-Hall' GROUP BY c.customer_id + +Natural Query: Show me all products in the unit category with a price over $744.82. +SQL Query: SELECT * FROM products WHERE category = 'unit' AND price > 744.82 + +Natural Query: Show me all products in the area category with a price over $500.07. +SQL Query: SELECT * FROM products WHERE category = 'area' AND price > 500.07 + +Natural Query: What is the total quantity of all products for Jones, Macias and Moyer? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Jones, Macias and Moyer' + +Natural Query: List all products of Kaiser-Gordon ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Kaiser-Gordon' ORDER BY rating ASC + +Natural Query: Show me all products in the create category with a price over $444.49. +SQL Query: SELECT * FROM products WHERE category = 'create' AND price > 444.49 + +Natural Query: What is the total profit for each category in Collins Ltd? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Collins Ltd' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the minimum rating of all products for Pope, Coleman and Blake? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Pope, Coleman and Blake' + +Natural Query: What are the top 10 products by sales for Bradley, Green and Moore this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Bradley, Green and Moore' 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 Thompson 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 = 'Thompson 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 are the top 6 products by orders for Orr, Whitehead and Carter all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Orr, Whitehead and Carter' AND period = 'all time' 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 Roberts, Andrews and Wilson 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, Andrews and Wilson' + 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 Phillips 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 = 'Phillips 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 6 products by customers for Greene Ltd all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Greene Ltd' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: What is the minimum price of all products for Stone-Baker? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Stone-Baker' + +Natural Query: List all customers and their total order value for Raymond, Porter and Hernandez. +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 = 'Raymond, Porter and Hernandez' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cain-Shaw 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 = 'Cain-Shaw' + 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 Brown-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 = 'Brown-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 Fletcher, Irwin and West. +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, Irwin and West' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Allison, Fernandez and Lee. +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 = 'Allison, Fernandez and Lee' GROUP BY c.customer_id + +Natural Query: What is the minimum quantity of all products for Smith Inc? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Smith Inc' + +Natural Query: What is the minimum quantity of all products for Miller, Flores and Carter? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Miller, Flores and Carter' + +Natural Query: List all customers and their total order value for Hill, Callahan 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 = 'Hill, Callahan and Johnson' GROUP BY c.customer_id + +Natural Query: List all products of Ross LLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ross LLC' ORDER BY stock_quantity DESC + +Natural Query: List all products of Berry and Sons ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Berry and Sons' ORDER BY stock_quantity DESC + +Natural Query: List all products of Elliott, Davis and Bailey ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Elliott, Davis and Bailey' ORDER BY rating DESC + +Natural Query: What are the top 9 products by revenue for Johnson-Davis this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Johnson-Davis' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: What are the top 4 products by orders for Baker-Montgomery all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Baker-Montgomery' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: List all products of Flores Ltd ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Flores Ltd' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Nguyen 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 = 'Nguyen and Sons' GROUP BY c.customer_id + +Natural Query: What is the total sales for each country in Wall-Lynch? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Wall-Lynch' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 8 products by orders for Duncan-Archer last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Duncan-Archer' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: List all customers and their total order value for Benson 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 = 'Benson Group' GROUP BY c.customer_id + +Natural Query: What is the total quantity of all products for Green-Jones? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Green-Jones' + +Natural Query: Show me all products in the response category with a price over $38.52. +SQL Query: SELECT * FROM products WHERE category = 'response' AND price > 38.52 + +Natural Query: What is the total sales for each category in Wells-Garcia? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Wells-Garcia' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all products of Cruz-Pierce ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Cruz-Pierce' ORDER BY rating ASC + +Natural Query: What is the maximum quantity of all products for Mcgee-Harrison? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Mcgee-Harrison' + +Natural Query: List all customers and their total order value for Murray-Myers. +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 = 'Murray-Myers' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Collins, Garcia 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 = 'Collins, Garcia 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: How many orders were placed for Guzman Group between 2023-10-26 and 2024-01-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Guzman Group' AND order_date BETWEEN '2023-10-26' AND '2024-01-18' + +Natural Query: What are the top 3 products by orders for Wang-Donovan this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Wang-Donovan' 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 Howard, Delgado and Martinez 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 = 'Howard, Delgado and Martinez' + 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 LLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Sanford LLC' ORDER BY rating DESC + +Natural Query: What are the top 9 products by sales for Marquez and Sons this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Marquez and Sons' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: List all products of Hernandez, Strickland and Glover ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hernandez, Strickland and Glover' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Atkinson, Delgado and Conway. +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 = 'Atkinson, Delgado and Conway' GROUP BY c.customer_id + +Natural Query: What is the total profit for each supplier in Thomas-Fields? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Thomas-Fields' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: Show me all products in the soldier category with a price over $478.88. +SQL Query: SELECT * FROM products WHERE category = 'soldier' AND price > 478.88 + +Natural Query: List all customers and their total order value for Thompson-Gonzales. +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 = 'Thompson-Gonzales' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Johnson 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 = 'Johnson Ltd' GROUP BY c.customer_id + +Natural Query: What are the top 6 products by orders for Walsh, Hurst and Dean all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Walsh, Hurst and Dean' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: What is the minimum price of all products for Garcia, Jordan and Gilbert? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Garcia, Jordan and Gilbert' + +Natural Query: What are the top 8 products by sales for Turner Group this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Turner Group' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: How many orders were placed for Lee, Dunlap and Parker between 2024-02-26 and 2024-03-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lee, Dunlap and Parker' AND order_date BETWEEN '2024-02-26' AND '2024-03-28' + +Natural Query: What is the minimum rating of all products for Maldonado-Rice? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Maldonado-Rice' + +Natural Query: How many orders were placed for Morris, Brown and Long between 2024-04-28 and 2024-05-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Morris, Brown and Long' AND order_date BETWEEN '2024-04-28' AND '2024-05-14' + +Natural Query: List all products of White, Rice and Stewart ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'White, Rice and Stewart' ORDER BY rating DESC + +Natural Query: What are the top 3 products by sales for Parsons-Rodgers all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Parsons-Rodgers' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Reese 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 = 'Reese 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 quantity of all products for Martinez-Howell? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Martinez-Howell' + +Natural Query: What is the maximum rating of all products for Franco-Harrell? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Franco-Harrell' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Fox-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 = 'Fox-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 customers and their total order value for Munoz-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 = 'Munoz-Berger' GROUP BY c.customer_id + +Natural Query: Show me all products in the inside category with a price over $825.63. +SQL Query: SELECT * FROM products WHERE category = 'inside' AND price > 825.63 + +Natural Query: What is the minimum price of all products for Coleman PLC? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Coleman PLC' + +Natural Query: How many orders were placed for Hodge, Hunt and Banks between 2024-04-16 and 2024-08-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hodge, Hunt and Banks' AND order_date BETWEEN '2024-04-16' AND '2024-08-27' + +Natural Query: List all customers and their total order value for Thompson 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 = 'Thompson PLC' GROUP BY c.customer_id + +Natural Query: What is the total profit for each supplier in Warner Ltd? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Warner Ltd' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 9 products by sales for Brown-White all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Brown-White' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: How many orders were placed for Garcia-Medina between 2024-08-06 and 2024-08-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Garcia-Medina' AND order_date BETWEEN '2024-08-06' AND '2024-08-21' + +Natural Query: List all customers and their total order value for Atkins 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 = 'Atkins LLC' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Banks, Silva and Maxwell. +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 = 'Banks, Silva and Maxwell' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Cortez Group between 2024-04-15 and 2024-08-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cortez Group' AND order_date BETWEEN '2024-04-15' AND '2024-08-24' + +Natural Query: What is the average price of all products for Marshall-Mccoy? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Marshall-Mccoy' + +Natural Query: How many orders were placed for White and Sons between 2024-03-24 and 2024-06-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'White and Sons' AND order_date BETWEEN '2024-03-24' AND '2024-06-12' + +Natural Query: List all products of Roman-Jones ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Roman-Jones' ORDER BY price ASC + +Natural Query: What is the total sales for each country in Glass-Ellison? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Glass-Ellison' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all products of Sanchez and Sons ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Sanchez and Sons' ORDER BY stock_quantity ASC + +Natural Query: List all products of Castillo, Luna and Brown ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Castillo, Luna and Brown' ORDER BY stock_quantity DESC + +Natural Query: List all products of Delacruz, Walls and Ramirez ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Delacruz, Walls and Ramirez' ORDER BY price ASC + +Natural Query: What is the total quantity for each country in Lucas, Torres and Taylor? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Lucas, Torres and Taylor' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the total sales for each supplier in Vaughan-Nolan? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Vaughan-Nolan' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 3 products by revenue for Mejia-Rivera last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Mejia-Rivera' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: What is the average price of all products for Price LLC? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Price LLC' + +Natural Query: How many orders were placed for Smith, Webb and Shaw between 2023-10-03 and 2024-06-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Smith, Webb and Shaw' AND order_date BETWEEN '2023-10-03' AND '2024-06-19' + +Natural Query: What is the maximum rating of all products for Turner-Stafford? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Turner-Stafford' + +Natural Query: List all products of Schroeder, Dominguez and Fleming ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Schroeder, Dominguez and Fleming' ORDER BY rating DESC + +Natural Query: List all products of Campbell-Thomas ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Campbell-Thomas' ORDER BY rating ASC + +Natural Query: What are the top 10 products by orders for Mckenzie-Young this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Mckenzie-Young' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: What are the top 4 products by sales for Brown Ltd this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Brown Ltd' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: List all products of Rivera PLC ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rivera PLC' ORDER BY price DESC + +Natural Query: What are the top 8 products by customers for Marks, Watson and Nguyen last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Marks, Watson and Nguyen' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: List all customers and their total order value for Hunter 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 = 'Hunter Inc' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Cameron Inc between 2024-02-24 and 2024-06-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cameron Inc' AND order_date BETWEEN '2024-02-24' AND '2024-06-16' + +Natural Query: List all customers and their total order value for Conner-Hill. +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 = 'Conner-Hill' GROUP BY c.customer_id + +Natural Query: What are the top 4 products by orders for Cooley Ltd all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Cooley Ltd' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: List all products of Davidson, Wilson and Johnson ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Davidson, Wilson and Johnson' ORDER BY rating DESC + +Natural Query: List all products of Kim Ltd ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Kim Ltd' ORDER BY rating DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Davis, Roberson and Colon 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, Roberson and Colon' + 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 Johnson-Mason? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Johnson-Mason' + +Natural Query: Show me all products in the production category with a price over $78.08. +SQL Query: SELECT * FROM products WHERE category = 'production' AND price > 78.08 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Reeves 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 = 'Reeves 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 products of Green and Sons ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Green and Sons' ORDER BY rating ASC + +Natural Query: How many orders were placed for Jensen, Vargas and Garrett between 2024-06-13 and 2024-08-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jensen, Vargas and Garrett' AND order_date BETWEEN '2024-06-13' AND '2024-08-18' + +Natural Query: Show me all products in the bit category with a price over $257.67. +SQL Query: SELECT * FROM products WHERE category = 'bit' AND price > 257.67 + +Natural Query: What is the minimum price of all products for Taylor-Warren? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Taylor-Warren' + +Natural Query: What is the maximum price of all products for Clements and Sons? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Clements and Sons' + +Natural Query: What is the total quantity for each category in Green, Ward and Medina? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Green, Ward and Medina' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Walls-Crane. +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 = 'Walls-Crane' GROUP BY c.customer_id + +Natural Query: Show me all products in the bag category with a price over $678.08. +SQL Query: SELECT * FROM products WHERE category = 'bag' AND price > 678.08 + +Natural Query: How many orders were placed for Bell-Reeves between 2023-10-06 and 2024-07-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bell-Reeves' AND order_date BETWEEN '2023-10-06' AND '2024-07-09' + +Natural Query: List all customers and their total order value for Gordon-Schmidt. +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 = 'Gordon-Schmidt' GROUP BY c.customer_id + +Natural Query: List all products of Ramos-Barr ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ramos-Barr' ORDER BY price DESC + +Natural Query: List all products of Carroll Group ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Carroll Group' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 products by sales for Martinez Ltd this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Martinez Ltd' AND period = 'this year' 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 Morrison, Richardson and Fisher 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 = 'Morrison, Richardson and Fisher' + 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 Carlson-Fitzpatrick? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Carlson-Fitzpatrick' + +Natural Query: What are the top 8 products by sales for Zavala-Torres this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Zavala-Torres' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: List all customers and their total order value for Johnson 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 = 'Johnson Group' GROUP BY c.customer_id + +Natural Query: What is the total sales for each supplier in Moreno, Brown and Mccoy? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Moreno, Brown and Mccoy' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the total quantity for each country in Key, Chapman and Clark? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Key, Chapman and Clark' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Wood-Murray. +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 = 'Wood-Murray' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Simmons-Edwards. +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 = 'Simmons-Edwards' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Arroyo 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 = 'Arroyo and Sons' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Hawkins, Nguyen and Cole between 2024-02-26 and 2024-07-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hawkins, Nguyen and Cole' AND order_date BETWEEN '2024-02-26' AND '2024-07-29' + +Natural Query: What are the top 5 products by revenue for Rowe and Sons this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Rowe and Sons' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: What is the total quantity of all products for Simmons, Beck and Phillips? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Simmons, Beck and Phillips' + +Natural Query: List all products of Brown, Jones and Calderon ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Brown, Jones and Calderon' ORDER BY rating ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Moore-Sutton 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-Sutton' + 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 Gonzales Group between 2024-04-30 and 2024-07-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gonzales Group' AND order_date BETWEEN '2024-04-30' AND '2024-07-22' + +Natural Query: List all customers and their total order value for Wheeler-Ferguson. +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-Ferguson' GROUP BY c.customer_id + +Natural Query: List all products of Silva-Atkinson ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Silva-Atkinson' ORDER BY rating ASC + +Natural Query: What are the top 7 products by orders for Roman-Conrad this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Roman-Conrad' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gallegos-Wilson 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 = 'Gallegos-Wilson' + 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 Cobb PLC? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Cobb PLC' + +Natural Query: What is the average price of all products for Vega Inc? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Vega Inc' + +Natural Query: What is the average price of all products for Webb-Bell? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Webb-Bell' + +Natural Query: Show me all products in the rate category with a price over $332.22. +SQL Query: SELECT * FROM products WHERE category = 'rate' AND price > 332.22 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Brown-Edwards 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-Edwards' + 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 orders for Rivera-Johnson all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Rivera-Johnson' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: What are the top 4 products by revenue for Morris-Bradford this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Morris-Bradford' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gordon-Taylor 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 = 'Gordon-Taylor' + 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 Melton-Evans? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Melton-Evans' + +Natural Query: Show me all products in the quite category with a price over $993.14. +SQL Query: SELECT * FROM products WHERE category = 'quite' AND price > 993.14 + +Natural Query: How many orders were placed for Ortiz PLC between 2023-10-31 and 2024-03-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ortiz PLC' AND order_date BETWEEN '2023-10-31' AND '2024-03-23' + +Natural Query: What is the total quantity for each category in Gray, Allen and Gray? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Gray, Allen and Gray' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Silva-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 = 'Silva-Brown' + 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 Anderson, Vincent and Santiago. +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, Vincent and Santiago' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gallegos, Bailey and Contreras 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 = 'Gallegos, Bailey and Contreras' + 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 Rodriguez 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 = 'Rodriguez Ltd' + 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 Hurst-Leon. +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 = 'Hurst-Leon' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Rodriguez 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 = 'Rodriguez 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 country in Cannon, Mckenzie and Welch? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Cannon, Mckenzie and Welch' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 4 products by sales for Gibson Ltd this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Gibson Ltd' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: Show me all products in the green category with a price over $271.75. +SQL Query: SELECT * FROM products WHERE category = 'green' AND price > 271.75 + +Natural Query: Show me all products in the son category with a price over $24.88. +SQL Query: SELECT * FROM products WHERE category = 'son' AND price > 24.88 + +Natural Query: What is the total quantity of all products for Montoya-Butler? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Montoya-Butler' + +Natural Query: What is the maximum quantity of all products for Livingston and Sons? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Livingston and Sons' + +Natural Query: List all products of Robertson Ltd ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Robertson Ltd' ORDER BY stock_quantity DESC + +Natural Query: What are the top 3 products by customers for Johnson Group all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Johnson Group' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: Show me all products in the pretty category with a price over $346.42. +SQL Query: SELECT * FROM products WHERE category = 'pretty' AND price > 346.42 + +Natural Query: How many orders were placed for Wright PLC between 2024-06-28 and 2024-08-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wright PLC' AND order_date BETWEEN '2024-06-28' AND '2024-08-16' + +Natural Query: List all products of Velazquez-Perez ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Velazquez-Perez' ORDER BY rating DESC + +Natural Query: List all products of Ellison LLC ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ellison LLC' ORDER BY price ASC + +Natural Query: What is the total sales for each supplier in Harris Ltd? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Harris Ltd' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the total profit for each category in Thomas, Thompson and Stewart? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Thomas, Thompson and Stewart' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the total rating of all products for Hernandez PLC? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Hernandez PLC' + +Natural Query: How many orders were placed for Quinn, Jackson and Smith between 2024-03-12 and 2024-05-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Quinn, Jackson and Smith' AND order_date BETWEEN '2024-03-12' AND '2024-05-28' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Best 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 = 'Best 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 Hall, Cook and Fisher between 2023-11-18 and 2023-12-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hall, Cook and Fisher' AND order_date BETWEEN '2023-11-18' AND '2023-12-04' + +Natural Query: List all customers and their total order value for Miller 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 = 'Miller Group' GROUP BY c.customer_id + +Natural Query: List all products of Holt-Patterson ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Holt-Patterson' ORDER BY stock_quantity ASC + +Natural Query: What is the total sales for each category in Choi, Skinner and Daniel? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Choi, Skinner and Daniel' GROUP BY category ORDER BY total_sales DESC + +Natural Query: Show me all products in the opportunity category with a price over $831.38. +SQL Query: SELECT * FROM products WHERE category = 'opportunity' AND price > 831.38 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Banks-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 = 'Banks-Smith' + 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 Meyer, Contreras and Barrett between 2024-04-10 and 2024-08-02? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Meyer, Contreras and Barrett' AND order_date BETWEEN '2024-04-10' AND '2024-08-02' + +Natural Query: How many orders were placed for Oconnor Inc between 2024-01-13 and 2024-07-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Oconnor Inc' AND order_date BETWEEN '2024-01-13' AND '2024-07-28' + +Natural Query: What is the total sales for each supplier in Mitchell-Medina? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Mitchell-Medina' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the maximum price of all products for Barber, Fisher and Hernandez? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Barber, Fisher and Hernandez' + +Natural Query: Show me all products in the represent category with a price over $905.79. +SQL Query: SELECT * FROM products WHERE category = 'represent' AND price > 905.79 + +Natural Query: What is the total quantity of all products for Long Group? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Long Group' + +Natural Query: List all customers and their total order value for Harrison, Campbell and Hodge. +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 = 'Harrison, Campbell and Hodge' GROUP BY c.customer_id + +Natural Query: List all products of Flowers-Walker ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Flowers-Walker' ORDER BY price DESC + +Natural Query: What is the total quantity for each supplier in Carpenter-Duncan? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Carpenter-Duncan' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the total sales for each country in Hughes-Mckee? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hughes-Mckee' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the total quantity for each country in Schmidt, May and Davis? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Schmidt, May and Davis' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 7 products by orders for Campbell-Gomez this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Campbell-Gomez' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: List all products of Taylor, Johnson and Freeman ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Taylor, Johnson and Freeman' ORDER BY rating ASC + +Natural Query: How many orders were placed for Sanders, Young and Henderson between 2023-10-27 and 2024-09-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Sanders, Young and Henderson' AND order_date BETWEEN '2023-10-27' AND '2024-09-01' + +Natural Query: List all products of Wade, Burns and Doyle ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wade, Burns and Doyle' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mitchell 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 = 'Mitchell 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 is the total quantity for each country in Thompson-Butler? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Thompson-Butler' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the minimum price of all products for Cortez, Pierce and Hansen? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Cortez, Pierce and Hansen' + +Natural Query: What are the top 5 products by orders for Sanchez-Peterson all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Sanchez-Peterson' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: How many orders were placed for Williams-Austin between 2024-04-15 and 2024-08-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Williams-Austin' AND order_date BETWEEN '2024-04-15' AND '2024-08-01' + +Natural Query: How many orders were placed for Hayes, Pittman and Browning between 2024-08-22 and 2024-09-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hayes, Pittman and Browning' AND order_date BETWEEN '2024-08-22' AND '2024-09-15' + +Natural Query: List all products of Guzman and Sons ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Guzman and Sons' ORDER BY price ASC + +Natural Query: What are the top 10 products by orders for Anderson-Conway this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Anderson-Conway' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: How many orders were placed for Fisher Group between 2023-12-22 and 2024-08-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Fisher Group' AND order_date BETWEEN '2023-12-22' AND '2024-08-30' + +Natural Query: What are the top 8 products by revenue for Smith-Graham this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Smith-Graham' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Campbell, Santana and Francis 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, Santana and Francis' + 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 Alexander-Jackson between 2024-02-16 and 2024-07-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Alexander-Jackson' AND order_date BETWEEN '2024-02-16' AND '2024-07-14' + +Natural Query: What is the average price of all products for Walsh-Johnson? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Walsh-Johnson' + +Natural Query: List all products of Griffin-Peters ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Griffin-Peters' ORDER BY price DESC + +Natural Query: What are the top 4 products by customers for Vazquez-Harris this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Vazquez-Harris' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: What is the total price of all products for Morales, Page and Lloyd? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Morales, Page and Lloyd' + +Natural Query: Show me all products in the although category with a price over $631.36. +SQL Query: SELECT * FROM products WHERE category = 'although' AND price > 631.36 + +Natural Query: What are the top 5 products by customers for Banks-Gill this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Banks-Gill' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: List all products of Case and Sons ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Case and Sons' ORDER BY rating DESC + +Natural Query: What is the total quantity for each category in Mcbride-Rhodes? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Mcbride-Rhodes' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the total sales for each category in Lambert, Rodriguez and Spencer? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Lambert, Rodriguez and Spencer' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the average price of all products for Cox-Fisher? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Cox-Fisher' + +Natural Query: How many orders were placed for May, Gilmore and Murray between 2024-01-05 and 2024-05-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'May, Gilmore and Murray' AND order_date BETWEEN '2024-01-05' AND '2024-05-09' + +Natural Query: What are the top 7 products by orders for Brooks, Meyer and Williams this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Brooks, Meyer and Williams' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: List all products of Davis Ltd ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Davis Ltd' ORDER BY stock_quantity DESC + +Natural Query: What is the total quantity for each country in Vega-Buchanan? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Vega-Buchanan' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 5 products by revenue for Wright-Smith this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Wright-Smith' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: How many orders were placed for Smith and Sons between 2024-05-02 and 2024-06-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Smith and Sons' AND order_date BETWEEN '2024-05-02' AND '2024-06-29' + +Natural Query: What is the average rating of all products for Johnson-Parker? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Johnson-Parker' + +Natural Query: What are the top 7 products by orders for Quinn PLC all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Quinn PLC' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: How many orders were placed for Duran and Sons between 2024-05-12 and 2024-06-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Duran and Sons' AND order_date BETWEEN '2024-05-12' AND '2024-06-04' + +Natural Query: How many orders were placed for Crawford-Perez between 2024-01-22 and 2024-09-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Crawford-Perez' AND order_date BETWEEN '2024-01-22' AND '2024-09-07' + +Natural Query: List all customers and their total order value for James, Munoz and Kerr. +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 = 'James, Munoz and Kerr' GROUP BY c.customer_id + +Natural Query: What is the average rating of all products for Mcdaniel, Stevenson and Murphy? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Mcdaniel, Stevenson and Murphy' + +Natural Query: What is the total sales for each supplier in Wong-Nelson? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Wong-Nelson' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all products of Sanders-Lynn ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Sanders-Lynn' ORDER BY rating ASC + +Natural Query: What are the top 3 products by customers for Lawson Group this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Lawson Group' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: How many orders were placed for Hart-Salinas between 2024-08-14 and 2024-09-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hart-Salinas' AND order_date BETWEEN '2024-08-14' AND '2024-09-04' + +Natural Query: What is the maximum price of all products for Kelly Ltd? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Kelly Ltd' + +Natural Query: What is the total profit for each category in Bowman LLC? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Bowman LLC' GROUP BY category ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Gonzales, Nielsen and Terrell. +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 = 'Gonzales, Nielsen and Terrell' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each supplier in Martin, Porter and Miller? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Martin, Porter and Miller' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the total quantity for each category in Robinson LLC? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Robinson LLC' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all products of Saunders-Hoffman ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Saunders-Hoffman' ORDER BY rating ASC + +Natural Query: What are the top 6 products by customers for Galvan PLC all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Galvan PLC' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: What are the top 6 products by sales for Phelps Ltd this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Phelps Ltd' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: List all customers and their total order value for Williams-Robinson. +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-Robinson' GROUP BY c.customer_id + +Natural Query: What is the average price of all products for Smith, Wilson and Fletcher? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Smith, Wilson and Fletcher' + +Natural Query: How many orders were placed for Harris, Gonzalez and Garner between 2024-07-18 and 2024-09-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Harris, Gonzalez and Garner' AND order_date BETWEEN '2024-07-18' AND '2024-09-04' + +Natural Query: List all customers and their total order value for Howard-Austin. +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-Austin' GROUP BY c.customer_id + +Natural Query: Show me all products in the degree category with a price over $571.16. +SQL Query: SELECT * FROM products WHERE category = 'degree' AND price > 571.16 + +Natural Query: What is the average rating of all products for Cruz LLC? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Cruz LLC' + +Natural Query: How many orders were placed for Shea, Haas and Vincent between 2024-08-04 and 2024-09-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Shea, Haas and Vincent' AND order_date BETWEEN '2024-08-04' AND '2024-09-05' + +Natural Query: What is the maximum rating of all products for Anderson-Hernandez? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Anderson-Hernandez' + +Natural Query: What is the minimum quantity of all products for Boyd Ltd? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Boyd Ltd' + +Natural Query: How many orders were placed for Wilson, Johnson and Ferguson between 2024-07-22 and 2024-08-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wilson, Johnson and Ferguson' AND order_date BETWEEN '2024-07-22' AND '2024-08-19' + +Natural Query: Show me all products in the thus category with a price over $674.58. +SQL Query: SELECT * FROM products WHERE category = 'thus' AND price > 674.58 + +Natural Query: List all products of Santos-Livingston ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Santos-Livingston' ORDER BY rating DESC + +Natural Query: Show me all products in the true category with a price over $660.03. +SQL Query: SELECT * FROM products WHERE category = 'true' AND price > 660.03 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Carr, Allen and Cook 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 = 'Carr, Allen and Cook' + 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 Johnson, Jones and Melendez? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Johnson, Jones and Melendez' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the total profit for each supplier in Turner-Blevins? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Turner-Blevins' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Ruiz-Mcgrath 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 = 'Ruiz-Mcgrath' + 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 Dean-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 = 'Dean-Jones' + 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 since category with a price over $707.46. +SQL Query: SELECT * FROM products WHERE category = 'since' AND price > 707.46 + +Natural Query: What is the total sales for each category in Baker PLC? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Baker PLC' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the total quantity for each category in Duncan, Saunders and Reynolds? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Duncan, Saunders and Reynolds' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: Show me all products in the bed category with a price over $277.55. +SQL Query: SELECT * FROM products WHERE category = 'bed' AND price > 277.55 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Guerrero 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 = 'Guerrero Ltd' + 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 involve category with a price over $324.78. +SQL Query: SELECT * FROM products WHERE category = 'involve' AND price > 324.78 + +Natural Query: Show me all products in the cut category with a price over $85.87. +SQL Query: SELECT * FROM products WHERE category = 'cut' AND price > 85.87 + +Natural Query: What is the average rating of all products for Solis, Cisneros and Becker? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Solis, Cisneros and Becker' + +Natural Query: What is the total quantity for each supplier in Alexander and Sons? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Alexander and Sons' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: Show me all products in the remember category with a price over $440.57. +SQL Query: SELECT * FROM products WHERE category = 'remember' AND price > 440.57 + +Natural Query: What is the total sales for each category in Johns PLC? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Johns PLC' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the minimum quantity of all products for Hubbard, Patel and Johnson? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Hubbard, Patel and Johnson' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Edwards, Allen and 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 = 'Edwards, Allen and 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 Gray, Martin and Garner ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gray, Martin and Garner' ORDER BY price ASC + +Natural Query: What is the total rating of all products for Duffy PLC? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Duffy PLC' + +Natural Query: How many orders were placed for Lawrence-Tucker between 2024-08-31 and 2024-09-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lawrence-Tucker' AND order_date BETWEEN '2024-08-31' AND '2024-09-14' + +Natural Query: List all customers and their total order value for Case-Becker. +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 = 'Case-Becker' GROUP BY c.customer_id + +Natural Query: List all products of Powell-Beard ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Powell-Beard' ORDER BY rating DESC + +Natural Query: What are the top 5 products by revenue for Mercado, Wagner and Miller all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Mercado, Wagner and Miller' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: List all products of Chavez, Franklin and Middleton ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Chavez, Franklin and Middleton' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Davidson-Boyd 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 = 'Davidson-Boyd' + 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 Ruiz PLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ruiz PLC' ORDER BY stock_quantity DESC + +Natural Query: What is the total rating of all products for Wilson-Williams? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Wilson-Williams' + +Natural Query: Show me all products in the rise category with a price over $963.09. +SQL Query: SELECT * FROM products WHERE category = 'rise' AND price > 963.09 + +Natural Query: How many orders were placed for Bryan, Conner and Martin between 2024-02-21 and 2024-04-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bryan, Conner and Martin' AND order_date BETWEEN '2024-02-21' AND '2024-04-01' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Stanley, Henderson and Ritter 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 = 'Stanley, Henderson and Ritter' + 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 Wright-Hernandez. +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 = 'Wright-Hernandez' GROUP BY c.customer_id + +Natural Query: Show me all products in the admit category with a price over $855.93. +SQL Query: SELECT * FROM products WHERE category = 'admit' AND price > 855.93 + +Natural Query: List all products of Nelson Ltd ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Nelson Ltd' ORDER BY price DESC + +Natural Query: Show me all products in the gas category with a price over $308.25. +SQL Query: SELECT * FROM products WHERE category = 'gas' AND price > 308.25 + +Natural Query: Show me all products in the indicate category with a price over $677.52. +SQL Query: SELECT * FROM products WHERE category = 'indicate' AND price > 677.52 + +Natural Query: List all products of Frye-Taylor ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Frye-Taylor' ORDER BY stock_quantity DESC + +Natural Query: How many orders were placed for Pena, Miller and Holt between 2024-09-07 and 2024-09-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Pena, Miller and Holt' AND order_date BETWEEN '2024-09-07' AND '2024-09-09' + +Natural Query: List all products of Parker, Hoffman and Bridges ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Parker, Hoffman and Bridges' ORDER BY price ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cowan, Henderson and Friedman 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 = 'Cowan, Henderson and Friedman' + 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 Kidd Ltd? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Kidd Ltd' + +Natural Query: What is the total sales for each country in Clark PLC? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Clark PLC' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all products of Lewis, Gross and Walsh ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lewis, Gross and Walsh' ORDER BY stock_quantity ASC + +Natural Query: List all products of Frank-Lane ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Frank-Lane' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hughes 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 = 'Hughes 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 Brown-Webster. +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-Webster' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Blake 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 = 'Blake Ltd' GROUP BY c.customer_id + +Natural Query: What is the total price of all products for Mcdonald Inc? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Mcdonald Inc' + +Natural Query: What is the maximum rating of all products for Garcia-Willis? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Garcia-Willis' + +Natural Query: How many orders were placed for Larsen Inc between 2024-06-19 and 2024-07-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Larsen Inc' AND order_date BETWEEN '2024-06-19' AND '2024-07-13' + +Natural Query: What is the total rating of all products for Copeland Inc? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Copeland Inc' + +Natural Query: How many orders were placed for Lester, Lee and Blake between 2024-06-26 and 2024-08-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lester, Lee and Blake' AND order_date BETWEEN '2024-06-26' AND '2024-08-26' + +Natural Query: Show me all products in the get category with a price over $36.5. +SQL Query: SELECT * FROM products WHERE category = 'get' AND price > 36.5 + +Natural Query: Show me all products in the save category with a price over $757.84. +SQL Query: SELECT * FROM products WHERE category = 'save' AND price > 757.84 + +Natural Query: List all products of Hall PLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hall PLC' ORDER BY stock_quantity DESC + +Natural Query: What is the maximum price of all products for Schmitt, Dawson and Jones? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Schmitt, Dawson and Jones' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Poole 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 = 'Poole 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 is the total profit for each country in Downs and Sons? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Downs and Sons' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What is the maximum rating of all products for Martinez, Yang and Robinson? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Martinez, Yang and Robinson' + +Natural Query: What is the average price of all products for Jones-Atkinson? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Jones-Atkinson' + +Natural Query: What is the total profit for each category in Jackson, Hill and Jackson? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Jackson, Hill and Jackson' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 10 products by orders for Hill-Hall all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Hill-Hall' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: What is the maximum quantity of all products for Jenkins Group? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Jenkins Group' + +Natural Query: Show me all products in the road category with a price over $922.39. +SQL Query: SELECT * FROM products WHERE category = 'road' AND price > 922.39 + +Natural Query: What is the total profit for each supplier in Kerr PLC? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Kerr PLC' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Ramos PLC between 2023-09-24 and 2024-07-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ramos PLC' AND order_date BETWEEN '2023-09-24' AND '2024-07-03' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lewis 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 = 'Lewis 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 south category with a price over $879.14. +SQL Query: SELECT * FROM products WHERE category = 'south' AND price > 879.14 + +Natural Query: How many orders were placed for Williams, Stevens and Davis between 2023-10-05 and 2024-06-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Williams, Stevens and Davis' AND order_date BETWEEN '2023-10-05' AND '2024-06-06' + +Natural Query: Show me all products in the management category with a price over $877.4. +SQL Query: SELECT * FROM products WHERE category = 'management' AND price > 877.4 + +Natural Query: List all products of Mcclain, Porter and Nguyen ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mcclain, Porter and Nguyen' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Estes 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 = 'Estes LLC' GROUP BY c.customer_id + +Natural Query: What is the average rating of all products for Saunders, Berg and Phillips? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Saunders, Berg and Phillips' + +Natural Query: How many orders were placed for Evans, Spencer and Stewart between 2024-04-15 and 2024-07-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Evans, Spencer and Stewart' AND order_date BETWEEN '2024-04-15' AND '2024-07-15' + +Natural Query: Show me all products in the pattern category with a price over $764.64. +SQL Query: SELECT * FROM products WHERE category = 'pattern' AND price > 764.64 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gomez-Kennedy 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 = 'Gomez-Kennedy' + 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 Phillips, Wright and Bailey ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Phillips, Wright and Bailey' ORDER BY price DESC + +Natural Query: How many orders were placed for Jones, Bennett and Washington between 2024-06-07 and 2024-06-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jones, Bennett and Washington' AND order_date BETWEEN '2024-06-07' AND '2024-06-23' + +Natural Query: What is the total sales for each supplier in Meyer, Hall and Morales? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Meyer, Hall and Morales' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the minimum rating of all products for Woodard, Bullock and Turner? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Woodard, Bullock and Turner' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mckee-Lewis 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 = 'Mckee-Lewis' + 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 revenue for Davis PLC all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Davis PLC' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: What is the total quantity for each country in Griffin Group? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Griffin Group' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the total quantity for each country in Bartlett PLC? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Bartlett PLC' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the total sales for each country in Dunn LLC? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Dunn LLC' GROUP BY country ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Maldonado Group between 2024-08-13 and 2024-08-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Maldonado Group' AND order_date BETWEEN '2024-08-13' AND '2024-08-21' + +Natural Query: List all customers and their total order value for James 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 = 'James and Sons' GROUP BY c.customer_id + +Natural Query: Show me all products in the born category with a price over $912.7. +SQL Query: SELECT * FROM products WHERE category = 'born' AND price > 912.7 + +Natural Query: How many orders were placed for Cunningham and Sons between 2023-11-24 and 2024-02-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cunningham and Sons' AND order_date BETWEEN '2023-11-24' AND '2024-02-26' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Schroeder, Davidson and Olsen 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 = 'Schroeder, Davidson and Olsen' + 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 Daniels 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 = 'Daniels Ltd' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What is the total sales for each category in Meyer, Huffman and Barber? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Meyer, Huffman and Barber' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 9 products by sales for Moore, Zimmerman and Jackson this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Moore, Zimmerman and Jackson' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: List all customers and their total order value for Ramirez 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 = 'Ramirez Inc' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Bright PLC between 2024-03-28 and 2024-05-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bright PLC' AND order_date BETWEEN '2024-03-28' AND '2024-05-10' + +Natural Query: Show me all products in the off category with a price over $470.25. +SQL Query: SELECT * FROM products WHERE category = 'off' AND price > 470.25 + +Natural Query: What is the total quantity for each supplier in Ellison, Brown and Gonzalez? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Ellison, Brown and Gonzalez' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Banks, Williams and Hull. +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 = 'Banks, Williams and Hull' GROUP BY c.customer_id + +Natural Query: What is the total profit for each country in Warner and Sons? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Warner and Sons' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lee, Ross and Mcneil 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, Ross and Mcneil' + 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 Hill LLC? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Hill LLC' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Casey, Scott 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 = 'Casey, Scott 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: List all customers and their total order value for Barrett, Valdez 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 = 'Barrett, Valdez and Johnson' GROUP BY c.customer_id + +Natural Query: What is the total profit for each supplier in Green, Reyes and Lane? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Green, Reyes and Lane' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 7 products by customers for Horn-Davis all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Horn-Davis' 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 Jenkins-Carroll. +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 = 'Jenkins-Carroll' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Zhang 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 = 'Zhang 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 Wolf 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 = 'Wolf 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 Diaz PLC ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Diaz PLC' ORDER BY price DESC + +Natural Query: What is the total rating of all products for Williams and Sons? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Williams and Sons' + +Natural Query: List all products of Watkins-Hogan ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Watkins-Hogan' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in White 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 = 'White 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 customers and their total order value for Aguilar 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 = 'Aguilar Inc' GROUP BY c.customer_id + +Natural Query: List all products of Vaughn, Jackson and Case ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Vaughn, Jackson and Case' ORDER BY rating DESC + +Natural Query: What is the total quantity for each country in Davis-Farrell? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Davis-Farrell' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Palmer-Cummings between 2023-09-17 and 2024-04-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Palmer-Cummings' AND order_date BETWEEN '2023-09-17' AND '2024-04-29' + +Natural Query: What are the top 8 products by customers for Dixon, Henderson and Poole this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Dixon, Henderson and Poole' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: List all customers and their total order value for Carter, Montoya and Arnold. +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, Montoya and Arnold' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Schneider, Robbins and 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 = 'Schneider, Robbins and 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 10 products by revenue for Williams-Dunn this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Williams-Dunn' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lamb, Li and Barber 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 = 'Lamb, Li and Barber' + 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 large category with a price over $84.66. +SQL Query: SELECT * FROM products WHERE category = 'large' AND price > 84.66 + +Natural Query: What is the total quantity for each category in Walton LLC? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Walton LLC' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Rivera 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 = 'Rivera 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 Davis and Sons between 2024-03-31 and 2024-05-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Davis and Sons' AND order_date BETWEEN '2024-03-31' AND '2024-05-09' + +Natural Query: List all customers and their total order value for Johnson, Roberson and Jensen. +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, Roberson and Jensen' GROUP BY c.customer_id + +Natural Query: What are the top 4 products by customers for Hernandez, Salazar and Hughes this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Hernandez, Salazar and Hughes' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: What is the total profit for each country in James-Murray? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'James-Murray' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What is the total quantity for each supplier in Williams-Henry? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Williams-Henry' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all products of Bailey-Gordon ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Bailey-Gordon' ORDER BY rating DESC + +Natural Query: What are the top 5 products by customers for Smith, Garrison and Poole this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Smith, Garrison and Poole' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: List all customers and their total order value for Wilson-Mendoza. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Wilson-Mendoza' GROUP BY c.customer_id + +Natural Query: Show me all products in the during category with a price over $584.15. +SQL Query: SELECT * FROM products WHERE category = 'during' AND price > 584.15 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mcdaniel 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 = 'Mcdaniel 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 total quantity for each category in King PLC? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'King PLC' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: Show me all products in the reveal category with a price over $539.14. +SQL Query: SELECT * FROM products WHERE category = 'reveal' AND price > 539.14 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Herrera, Powell and 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 = 'Herrera, Powell and 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 Snyder LLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Snyder LLC' ORDER BY rating DESC + +Natural Query: What is the total sales for each country in Juarez-Jones? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Juarez-Jones' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 9 products by revenue for Skinner, Miller and Davis this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Skinner, Miller and Davis' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: List all products of Smith, Jones and Reed ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith, Jones and Reed' ORDER BY stock_quantity DESC + +Natural Query: How many orders were placed for Powers, Mitchell and Walker between 2024-03-25 and 2024-03-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Powers, Mitchell and Walker' AND order_date BETWEEN '2024-03-25' AND '2024-03-28' + +Natural Query: List all products of Stout LLC ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Stout LLC' ORDER BY stock_quantity ASC + +Natural Query: What are the top 9 products by customers for Anderson Inc this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Anderson Inc' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: What are the top 8 products by customers for Davis, Ho and Haley this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Davis, Ho and Haley' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: What are the top 3 products by revenue for Campbell-King this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Campbell-King' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Larson 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 = 'Larson 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 floor category with a price over $182.25. +SQL Query: SELECT * FROM products WHERE category = 'floor' AND price > 182.25 + +Natural Query: What is the total quantity for each country in Wilson, Gonzales and Fischer? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Wilson, Gonzales and Fischer' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Hines Group between 2023-09-17 and 2024-06-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hines Group' AND order_date BETWEEN '2023-09-17' AND '2024-06-23' + +Natural Query: How many orders were placed for Decker Ltd between 2023-12-04 and 2024-04-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Decker Ltd' AND order_date BETWEEN '2023-12-04' AND '2024-04-18' + +Natural Query: How many orders were placed for Prince-Cain between 2024-08-10 and 2024-08-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Prince-Cain' AND order_date BETWEEN '2024-08-10' AND '2024-08-27' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Nguyen-Allen 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-Allen' + 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 orders for Harmon, Golden and Thornton this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Harmon, Golden and Thornton' 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 Evans-Patton. +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-Patton' GROUP BY c.customer_id + +Natural Query: Show me all products in the close category with a price over $787.95. +SQL Query: SELECT * FROM products WHERE category = 'close' AND price > 787.95 + +Natural Query: Show me all products in the federal category with a price over $120.32. +SQL Query: SELECT * FROM products WHERE category = 'federal' AND price > 120.32 + +Natural Query: How many orders were placed for Glover Group between 2024-06-02 and 2024-06-02? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Glover Group' AND order_date BETWEEN '2024-06-02' AND '2024-06-02' + +Natural Query: List all customers and their total order value for Stout-Wade. +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 = 'Stout-Wade' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Nash, Mclean 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 = 'Nash, Mclean 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 are the top 5 categories by sales for customers aged 25-35 in Brown-Brock 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-Brock' + 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 Watson, Randall and West. +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 = 'Watson, Randall and West' GROUP BY c.customer_id + +Natural Query: Show me all products in the south category with a price over $414.41. +SQL Query: SELECT * FROM products WHERE category = 'south' AND price > 414.41 + +Natural Query: Show me all products in the pay category with a price over $905.06. +SQL Query: SELECT * FROM products WHERE category = 'pay' AND price > 905.06 + +Natural Query: What are the top 7 products by revenue for Zamora-Peterson this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Zamora-Peterson' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: Show me all products in the idea category with a price over $167.62. +SQL Query: SELECT * FROM products WHERE category = 'idea' AND price > 167.62 + +Natural Query: What is the total quantity for each country in Murphy-Thomas? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Murphy-Thomas' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the maximum quantity of all products for Morris, Mitchell and Banks? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Morris, Mitchell and Banks' + +Natural Query: What is the total quantity for each supplier in Meyers, Vasquez and Wells? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Meyers, Vasquez and Wells' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: Show me all products in the such category with a price over $328.25. +SQL Query: SELECT * FROM products WHERE category = 'such' AND price > 328.25 + +Natural Query: How many orders were placed for Cox PLC between 2024-03-26 and 2024-06-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cox PLC' AND order_date BETWEEN '2024-03-26' AND '2024-06-25' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Day 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 = 'Day 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 5 categories by sales for customers aged 25-35 in Davis 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 = 'Davis 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 are the top 5 categories by sales for customers aged 25-35 in Taylor-Adkins 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-Adkins' + 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 Rivera, Suarez and Tran? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Rivera, Suarez and Tran' + +Natural Query: What is the total rating of all products for Diaz, Leon and Davis? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Diaz, Leon and Davis' + +Natural Query: List all products of Salazar-Davis ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Salazar-Davis' ORDER BY rating ASC + +Natural Query: What are the top 8 products by customers for Nguyen-Smith this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Nguyen-Smith' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: Show me all products in the century category with a price over $836.3. +SQL Query: SELECT * FROM products WHERE category = 'century' AND price > 836.3 + +Natural Query: How many orders were placed for Newman and Sons between 2024-04-14 and 2024-09-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Newman and Sons' AND order_date BETWEEN '2024-04-14' AND '2024-09-05' + +Natural Query: How many orders were placed for Hardin Group between 2024-01-09 and 2024-04-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hardin Group' AND order_date BETWEEN '2024-01-09' AND '2024-04-27' + +Natural Query: What is the total profit for each supplier in Crane, Robinson and Perry? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Crane, Robinson and Perry' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the total quantity for each country in Fisher PLC? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Fisher PLC' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hanson-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 = 'Hanson-Anderson' + 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 Espinoza, Weaver and Williams between 2023-10-19 and 2024-01-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Espinoza, Weaver and Williams' AND order_date BETWEEN '2023-10-19' AND '2024-01-21' + +Natural Query: What is the total profit for each country in Cole Inc? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Cole Inc' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 5 products by revenue for Brown, Lane and Michael this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Brown, Lane and Michael' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: List all customers and their total order value for Silva 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 = 'Silva Ltd' GROUP BY c.customer_id + +Natural Query: What is the minimum price of all products for Malone-Stewart? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Malone-Stewart' + +Natural Query: Show me all products in the fall category with a price over $336.5. +SQL Query: SELECT * FROM products WHERE category = 'fall' AND price > 336.5 + +Natural Query: List all customers and their total order value for Arnold-Wyatt. +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 = 'Arnold-Wyatt' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Davidson-Dixon 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 = 'Davidson-Dixon' + 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 revenue for Carter, Weaver and Campbell all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Carter, Weaver and Campbell' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: List all products of Sellers-Lamb ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Sellers-Lamb' ORDER BY price ASC + +Natural Query: Show me all products in the party category with a price over $791.59. +SQL Query: SELECT * FROM products WHERE category = 'party' AND price > 791.59 + +Natural Query: How many orders were placed for Velez-Stevenson between 2023-09-20 and 2024-03-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Velez-Stevenson' AND order_date BETWEEN '2023-09-20' AND '2024-03-12' + +Natural Query: How many orders were placed for Tucker, Garcia and Stone between 2024-03-24 and 2024-05-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Tucker, Garcia and Stone' AND order_date BETWEEN '2024-03-24' AND '2024-05-23' + +Natural Query: Show me all products in the myself category with a price over $780.74. +SQL Query: SELECT * FROM products WHERE category = 'myself' AND price > 780.74 + +Natural Query: What is the maximum quantity of all products for Farrell, Lopez and Fernandez? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Farrell, Lopez and Fernandez' + +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: What is the total quantity for each country in Fleming-Potts? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Fleming-Potts' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 6 products by orders for Woods Inc all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Woods Inc' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: What is the total sales for each country in Shaffer Ltd? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Shaffer Ltd' GROUP BY country ORDER BY total_sales DESC + +Natural Query: Show me all products in the how category with a price over $587.15. +SQL Query: SELECT * FROM products WHERE category = 'how' AND price > 587.15 + +Natural Query: What is the minimum price of all products for Davis-Warren? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Davis-Warren' + +Natural Query: What are the top 5 products by sales for Harper, Parker and Holmes this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Harper, Parker and Holmes' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: List all products of Lopez, Anderson and Macias ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lopez, Anderson and Macias' ORDER BY stock_quantity ASC + +Natural Query: List all customers and their total order value for Carlson, Allen and 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 = 'Carlson, Allen and Lopez' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Delacruz-Pacheco 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 = 'Delacruz-Pacheco' + 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 Cooper and Sons? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Cooper and Sons' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 7 products by orders for Powers-Gonzalez this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Powers-Gonzalez' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: List all products of Morgan-Patterson ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Morgan-Patterson' ORDER BY stock_quantity ASC + +Natural Query: List all products of Brown and Sons ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Brown and Sons' ORDER BY price DESC + +Natural Query: How many orders were placed for Salas PLC between 2024-02-12 and 2024-07-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Salas PLC' AND order_date BETWEEN '2024-02-12' AND '2024-07-19' + +Natural Query: List all customers and their total order value for Floyd 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 = 'Floyd and Sons' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Mendoza-Allen. +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-Allen' GROUP BY c.customer_id + +Natural Query: List all products of Perez, Chapman and Smith ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Perez, Chapman and Smith' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cruz, Pierce and Strickland 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 = 'Cruz, Pierce and Strickland' + 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 Villanueva-Graham between 2024-01-26 and 2024-03-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Villanueva-Graham' AND order_date BETWEEN '2024-01-26' AND '2024-03-04' + +Natural Query: What is the average price of all products for Hancock PLC? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Hancock PLC' + +Natural Query: What is the average quantity of all products for Mitchell-Smith? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Mitchell-Smith' + +Natural Query: What is the maximum quantity of all products for Chandler, Edwards and Burgess? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Chandler, Edwards and Burgess' + +Natural Query: How many orders were placed for Ramirez, Horn and Johnson between 2024-02-25 and 2024-09-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ramirez, Horn and Johnson' AND order_date BETWEEN '2024-02-25' AND '2024-09-16' + +Natural Query: What are the top 5 products by sales for Simpson, Rodriguez and Shelton this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Simpson, Rodriguez and Shelton' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: What is the total quantity of all products for Barnes, Maxwell and Alexander? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Barnes, Maxwell and Alexander' + +Natural Query: List all customers and their total order value for Lawson 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 = 'Lawson Group' GROUP BY c.customer_id + +Natural Query: What is the total profit for each supplier in Jackson PLC? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Jackson PLC' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Bush, Bray and Sutton between 2023-11-04 and 2024-04-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bush, Bray and Sutton' AND order_date BETWEEN '2023-11-04' AND '2024-04-17' + +Natural Query: What is the total profit for each supplier in Lynch-Jones? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Lynch-Jones' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the total sales for each category in Lewis LLC? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Lewis LLC' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all products of Hunter, Mckee and Smith ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hunter, Mckee and Smith' ORDER BY stock_quantity ASC + +Natural Query: How many orders were placed for Garrett-Montgomery between 2024-03-25 and 2024-04-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Garrett-Montgomery' AND order_date BETWEEN '2024-03-25' AND '2024-04-10' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Green, Bishop 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 = 'Green, Bishop 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: What is the total quantity for each category in Petersen-Beasley? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Petersen-Beasley' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hill 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 = 'Hill 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 customers and their total order value for Jimenez-Mathis. +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 = 'Jimenez-Mathis' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Phelps 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 = 'Phelps Ltd' GROUP BY c.customer_id + +Natural Query: Show me all products in the world category with a price over $471.83. +SQL Query: SELECT * FROM products WHERE category = 'world' AND price > 471.83 + +Natural Query: Show me all products in the indicate category with a price over $915.14. +SQL Query: SELECT * FROM products WHERE category = 'indicate' AND price > 915.14 + +Natural Query: List all customers and their total order value for Lambert-Gibson. +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 = 'Lambert-Gibson' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Cook PLC between 2024-02-08 and 2024-03-31? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cook PLC' AND order_date BETWEEN '2024-02-08' AND '2024-03-31' + +Natural Query: What is the minimum quantity of all products for Jordan Ltd? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Jordan Ltd' + +Natural Query: What is the total quantity for each country in Mcclure Inc? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Mcclure Inc' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the total quantity for each supplier in Torres-Chen? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Torres-Chen' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all products of Aguirre, Gonzalez and Coleman ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Aguirre, Gonzalez and Coleman' ORDER BY price ASC + +Natural Query: List all customers and their total order value for Espinoza 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 = 'Espinoza Ltd' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each country in Vazquez-Jackson? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Vazquez-Jackson' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Lewis-Payne. +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-Payne' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Molina, Harris and Guerrero. +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 = 'Molina, Harris and Guerrero' GROUP BY c.customer_id + +Natural Query: What is the total sales for each category in Miranda, Bryant and Quinn? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Miranda, Bryant and Quinn' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all products of Jones-Gill ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jones-Gill' ORDER BY price DESC + +Natural Query: What is the total profit for each supplier in Martinez, Weeks and Graham? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Martinez, Weeks and Graham' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 10 products by orders for Cross, Meadows and Solomon this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Cross, Meadows and Solomon' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: How many orders were placed for Mcclure PLC between 2024-04-27 and 2024-04-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mcclure PLC' AND order_date BETWEEN '2024-04-27' AND '2024-04-30' + +Natural Query: List all products of Hernandez LLC ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hernandez LLC' ORDER BY price DESC + +Natural Query: What is the average rating of all products for Vasquez-Murphy? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Vasquez-Murphy' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cooper, Robbins and Lynch 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, Robbins and Lynch' + 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 Trujillo-Blackburn ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Trujillo-Blackburn' ORDER BY stock_quantity ASC + +Natural Query: What is the total sales for each country in Krause, Nichols and Malone? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Krause, Nichols and Malone' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 8 products by sales for Ford-Gates this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Ford-Gates' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: How many orders were placed for Thompson, Castillo and Castillo between 2024-04-04 and 2024-06-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thompson, Castillo and Castillo' AND order_date BETWEEN '2024-04-04' AND '2024-06-06' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hanson 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 = 'Hanson 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 products of Young-Johnson ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Young-Johnson' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Hoover, Kaiser and Hunter. +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 = 'Hoover, Kaiser and Hunter' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Zimmerman-Woods 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 = 'Zimmerman-Woods' + 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 Young-Wallace 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 = 'Young-Wallace' + 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 Robbins-Thompson. +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 = 'Robbins-Thompson' GROUP BY c.customer_id + +Natural Query: List all products of Ward-Foster ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ward-Foster' ORDER BY price ASC + +Natural Query: How many orders were placed for Kirby-Miller between 2024-09-03 and 2024-09-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Kirby-Miller' AND order_date BETWEEN '2024-09-03' AND '2024-09-12' + +Natural Query: List all customers and their total order value for Young, Walter and 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 = 'Young, Walter and Harris' GROUP BY c.customer_id + +Natural Query: What is the total profit for each country in Bryant, Reynolds and Martin? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Bryant, Reynolds and Martin' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What is the average rating of all products for Jacobson and Sons? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Jacobson and Sons' + +Natural Query: What is the average rating of all products for Love-Foster? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Love-Foster' + +Natural Query: What is the maximum quantity of all products for Jones, Perez and Mueller? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Jones, Perez and Mueller' + +Natural Query: Show me all products in the price category with a price over $377.22. +SQL Query: SELECT * FROM products WHERE category = 'price' AND price > 377.22 + +Natural Query: What is the total quantity for each category in Murphy, Richmond and George? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Murphy, Richmond and George' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Singh-Hubbard between 2023-10-11 and 2024-01-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Singh-Hubbard' AND order_date BETWEEN '2023-10-11' AND '2024-01-08' + +Natural Query: How many orders were placed for Smith-Watts between 2024-01-25 and 2024-08-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Smith-Watts' AND order_date BETWEEN '2024-01-25' AND '2024-08-20' + +Natural Query: Show me all products in the late category with a price over $236.1. +SQL Query: SELECT * FROM products WHERE category = 'late' AND price > 236.1 + +Natural Query: List all products of Williams-Parker ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Williams-Parker' ORDER BY price DESC + +Natural Query: What is the minimum rating of all products for Baker and Sons? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Baker and Sons' + +Natural Query: List all products of Austin and Sons ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Austin and Sons' ORDER BY rating ASC + +Natural Query: What is the average quantity of all products for Campbell, Patel and Reid? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Campbell, Patel and Reid' + +Natural Query: How many orders were placed for Burns, Carpenter and Garrison between 2023-12-16 and 2024-05-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Burns, Carpenter and Garrison' AND order_date BETWEEN '2023-12-16' AND '2024-05-12' + +Natural Query: What is the average price of all products for Perez, Parks and Tyler? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Perez, Parks and Tyler' + +Natural Query: What are the top 4 products by orders for Schmidt and Sons all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Schmidt and Sons' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: What is the total profit for each category in Dorsey LLC? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Dorsey LLC' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 3 products by orders for Stokes, Hernandez and Ford last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Stokes, Hernandez and Ford' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: What are the top 9 products by sales for Ramos Inc this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Ramos Inc' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Rosario-Floyd 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 = 'Rosario-Floyd' + 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 Williams 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 = 'Williams Group' GROUP BY c.customer_id + +Natural Query: What are the top 6 products by customers for Williams-Palmer all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Williams-Palmer' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: List all customers and their total order value for Wallace-Howard. +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 = 'Wallace-Howard' GROUP BY c.customer_id + +Natural Query: Show me all products in the good category with a price over $597.51. +SQL Query: SELECT * FROM products WHERE category = 'good' AND price > 597.51 + +Natural Query: Show me all products in the rise category with a price over $151.72. +SQL Query: SELECT * FROM products WHERE category = 'rise' AND price > 151.72 + +Natural Query: Show me all products in the expect category with a price over $685.18. +SQL Query: SELECT * FROM products WHERE category = 'expect' AND price > 685.18 + +Natural Query: List all products of Rodriguez LLC ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rodriguez LLC' ORDER BY price DESC + +Natural Query: What is the total sales for each supplier in Stephenson, Daniel and Klein? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Stephenson, Daniel and Klein' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the maximum rating of all products for Jackson-Johnson? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Jackson-Johnson' + +Natural Query: What is the maximum quantity of all products for Thomas and Sons? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Thomas and Sons' + +Natural Query: What are the top 3 products by sales for Beard Group last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Beard Group' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: List all customers and their total order value for Jones, Hammond and Stevenson. +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, Hammond and Stevenson' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Hardin Inc between 2024-04-23 and 2024-07-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hardin Inc' AND order_date BETWEEN '2024-04-23' AND '2024-07-30' + +Natural Query: What are the top 9 products by orders for Brown-Kennedy all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Brown-Kennedy' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: What is the total quantity for each country in Guzman, Wolf and Price? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Guzman, Wolf and Price' GROUP BY country ORDER BY total_quantity DESC + +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: List all products of Valentine, Quinn and Wilson ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Valentine, Quinn and Wilson' ORDER BY rating ASC + +Natural Query: List all products of Chavez, Vasquez and Hampton ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Chavez, Vasquez and Hampton' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Sweeney-Mendoza 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 = 'Sweeney-Mendoza' + 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 4 products by orders for Moses, Allen and Carney this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Moses, Allen and Carney' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: What is the total quantity for each category in Thomas Group? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Thomas Group' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the minimum quantity of all products for Gardner-Henderson? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Gardner-Henderson' + +Natural Query: How many orders were placed for Howell-Escobar between 2024-06-13 and 2024-09-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Howell-Escobar' AND order_date BETWEEN '2024-06-13' AND '2024-09-07' + +Natural Query: What is the total quantity for each supplier in Miller Ltd? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Miller Ltd' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the total profit for each supplier in Mendoza-Hill? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Mendoza-Hill' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the total profit for each category in Tucker-Hancock? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Tucker-Hancock' GROUP BY category ORDER BY total_profit DESC + +Natural Query: Show me all products in the country category with a price over $741.27. +SQL Query: SELECT * FROM products WHERE category = 'country' AND price > 741.27 + +Natural Query: How many orders were placed for Keith-Montoya between 2024-07-21 and 2024-09-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Keith-Montoya' AND order_date BETWEEN '2024-07-21' AND '2024-09-03' + +Natural Query: What is the total quantity of all products for Martin LLC? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Martin LLC' + +Natural Query: List all products of Galloway-Cook ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Galloway-Cook' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Morales-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 = 'Morales-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 are the top 7 products by customers for Gilbert, Nelson and Gomez this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Gilbert, Nelson and Gomez' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: What are the top 6 products by orders for Matthews, Sullivan and Rose this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Matthews, Sullivan and Rose' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: What are the top 9 products by customers for Wallace, Becker and Spencer this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Wallace, Becker and Spencer' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: What is the total quantity for each supplier in Miller, Moon and Griffin? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Miller, Moon and Griffin' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Porter 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 = 'Porter PLC' GROUP BY c.customer_id + +Natural Query: What are the top 7 products by customers for Walker, Ramirez and Little last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Walker, Ramirez and Little' 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 Harvey, Martinez and Dominguez 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 = 'Harvey, Martinez and Dominguez' + 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 Thomas-Jones? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Thomas-Jones' GROUP BY country ORDER BY total_profit DESC + +Natural Query: Show me all products in the move category with a price over $592.98. +SQL Query: SELECT * FROM products WHERE category = 'move' AND price > 592.98 + +Natural Query: List all products of Tran, Rogers and Hays ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Tran, Rogers and Hays' ORDER BY stock_quantity DESC + +Natural Query: List all products of Walker Inc ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Walker Inc' ORDER BY price ASC + +Natural Query: List all customers and their total order value for Moore, Ewing and Peters. +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, Ewing and Peters' GROUP BY c.customer_id + +Natural Query: What are the top 7 products by revenue for Herman, Ortiz and Welch all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Herman, Ortiz and Welch' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: List all customers and their total order value for Strong-Dunn. +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 = 'Strong-Dunn' GROUP BY c.customer_id + +Natural Query: What is the total sales for each category in Stevenson, Sawyer and Cruz? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Stevenson, Sawyer and Cruz' GROUP BY category ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Manning, Melton and Mitchell between 2024-03-23 and 2024-05-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Manning, Melton and Mitchell' AND order_date BETWEEN '2024-03-23' AND '2024-05-07' + +Natural Query: List all products of Riley and Sons ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Riley and Sons' ORDER BY stock_quantity ASC + +Natural Query: List all products of Hall, Miranda and Hernandez ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hall, Miranda and Hernandez' ORDER BY stock_quantity DESC + +Natural Query: List all products of Meyer, Valentine and Klein ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Meyer, Valentine and Klein' ORDER BY rating ASC + +Natural Query: What is the maximum price of all products for Riley LLC? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Riley LLC' + +Natural Query: What are the top 3 products by orders for Boyd Inc last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Boyd Inc' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: What is the minimum rating of all products for Barnes Group? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Barnes Group' + +Natural Query: List all products of Smith-Ramirez ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith-Ramirez' ORDER BY stock_quantity ASC + +Natural Query: How many orders were placed for King, Torres and Hoffman between 2024-07-15 and 2024-08-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'King, Torres and Hoffman' AND order_date BETWEEN '2024-07-15' AND '2024-08-03' + +Natural Query: List all products of Wright LLC ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wright LLC' ORDER BY price ASC + +Natural Query: What are the top 10 products by customers for Peters-Goodwin last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Peters-Goodwin' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10 + +Natural Query: What is the total profit for each country in Petersen Group? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Petersen Group' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 4 products by orders for George, Brewer and Schneider all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'George, Brewer and Schneider' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: Show me all products in the everybody category with a price over $909.84. +SQL Query: SELECT * FROM products WHERE category = 'everybody' AND price > 909.84 + +Natural Query: List all customers and their total order value for Taylor, Daugherty and Stewart. +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 = 'Taylor, Daugherty and Stewart' GROUP BY c.customer_id + +Natural Query: What are the top 9 products by sales for Bennett and Sons this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Bennett and Sons' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: List all products of Calhoun-Mercado ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Calhoun-Mercado' ORDER BY stock_quantity DESC + +Natural Query: What is the maximum rating of all products for Mahoney, Williams and Craig? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Mahoney, Williams and Craig' + +Natural Query: How many orders were placed for Mann, Ellis and Jones between 2023-11-02 and 2024-02-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mann, Ellis and Jones' AND order_date BETWEEN '2023-11-02' AND '2024-02-18' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Jackson, Golden and Burns 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, Golden and Burns' + 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-Little? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Moore-Little' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Freeman-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 = 'Freeman-Johnson' + 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 Callahan, Carr and Graves. +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 = 'Callahan, Carr and Graves' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Ortiz, Riley and Delgado 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, Riley and Delgado' + 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 pay category with a price over $72.54. +SQL Query: SELECT * FROM products WHERE category = 'pay' AND price > 72.54 + +Natural Query: How many orders were placed for Hunter-Taylor between 2024-04-28 and 2024-05-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hunter-Taylor' AND order_date BETWEEN '2024-04-28' AND '2024-05-30' + +Natural Query: What is the total profit for each supplier in Allen, Miller and Duke? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Allen, Miller and Duke' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all products of Griffin Ltd ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Griffin Ltd' ORDER BY price DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Odonnell-Thomas 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 = 'Odonnell-Thomas' + 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 Oliver-Williams? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Oliver-Williams' GROUP BY category ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Herrera Group between 2024-01-29 and 2024-08-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Herrera Group' AND order_date BETWEEN '2024-01-29' AND '2024-08-09' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Graham, Wells and Fox 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 = 'Graham, Wells and Fox' + 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 Church-Lane? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Church-Lane' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 5 products by customers for Moreno, Marquez and Figueroa last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Moreno, Marquez and Figueroa' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: What is the total quantity for each supplier in Jones-Obrien? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Jones-Obrien' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Green Group between 2024-02-03 and 2024-02-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Green Group' AND order_date BETWEEN '2024-02-03' AND '2024-02-18' + +Natural Query: List all products of Lee, Anderson and Moreno ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lee, Anderson and Moreno' ORDER BY stock_quantity ASC + +Natural Query: Show me all products in the majority category with a price over $310.16. +SQL Query: SELECT * FROM products WHERE category = 'majority' AND price > 310.16 + +Natural Query: List all products of Smith, Harrison and Gibson ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith, Harrison and Gibson' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Campbell-Palmer. +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 = 'Campbell-Palmer' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mccall, Kaiser and Mclean 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 = 'Mccall, Kaiser and Mclean' + 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 Cross 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 = 'Cross LLC' GROUP BY c.customer_id + +Natural Query: What is the total profit for each country in Wright-Thomas? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Wright-Thomas' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all products of Martinez, Perry and Robbins ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Martinez, Perry and Robbins' ORDER BY price ASC + +Natural Query: What is the total sales for each supplier in Dyer-Gibson? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Dyer-Gibson' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Juarez LLC between 2024-06-25 and 2024-07-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Juarez LLC' AND order_date BETWEEN '2024-06-25' AND '2024-07-10' + +Natural Query: What is the total sales for each category in Peterson and Sons? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Peterson and Sons' GROUP BY category ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Kennedy, Mcguire and Robertson between 2024-07-31 and 2024-08-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Kennedy, Mcguire and Robertson' AND order_date BETWEEN '2024-07-31' AND '2024-08-22' + +Natural Query: What is the maximum quantity of all products for Hammond-Jackson? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Hammond-Jackson' + +Natural Query: What is the total profit for each country in Maxwell-Hardy? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Maxwell-Hardy' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 3 products by sales for Johns, Sanford and Young this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Johns, Sanford and Young' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: List all customers and their total order value for Peters 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 = 'Peters Ltd' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each country in Hill-Garcia? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Hill-Garcia' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the total quantity of all products for Baker, Schaefer and Davis? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Baker, Schaefer and Davis' + +Natural Query: What are the top 9 products by orders for Stevens LLC last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Stevens LLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: What are the top 8 products by sales for Reed Ltd last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Reed Ltd' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: List all products of Chambers-Ellis ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Chambers-Ellis' ORDER BY price DESC + +Natural Query: What is the total rating of all products for Perry, King and Moore? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Perry, King and Moore' + +Natural Query: Show me all products in the yard category with a price over $729.21. +SQL Query: SELECT * FROM products WHERE category = 'yard' AND price > 729.21 + +Natural Query: How many orders were placed for Erickson PLC between 2024-02-20 and 2024-03-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Erickson PLC' AND order_date BETWEEN '2024-02-20' AND '2024-03-03' + +Natural Query: List all customers and their total order value for Wolfe, Gutierrez and Ball. +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 = 'Wolfe, Gutierrez and Ball' GROUP BY c.customer_id + +Natural Query: What is the total price of all products for Short, Braun and Nelson? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Short, Braun and Nelson' + +Natural Query: How many orders were placed for Boyd, Mitchell and Potter between 2024-02-26 and 2024-04-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Boyd, Mitchell and Potter' AND order_date BETWEEN '2024-02-26' AND '2024-04-11' + +Natural Query: List all products of Barker-Martin ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Barker-Martin' ORDER BY stock_quantity DESC + +Natural Query: What is the average quantity of all products for Rice and Sons? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Rice and Sons' + +Natural Query: What are the top 10 products by customers for White-Norton this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'White-Norton' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10 + +Natural Query: List all customers and their total order value for Ross 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 = 'Ross Group' GROUP BY c.customer_id + +Natural Query: What are the top 4 products by revenue for Anderson Inc this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Anderson Inc' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: What is the average price of all products for Bray-Harper? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Bray-Harper' + +Natural Query: List all customers and their total order value for Hancock, Kennedy and Gilbert. +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 = 'Hancock, Kennedy and Gilbert' GROUP BY c.customer_id + +Natural Query: What is the maximum quantity of all products for Jenkins-Harmon? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Jenkins-Harmon' + +Natural Query: List all products of Rice, Hernandez and Vazquez ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rice, Hernandez and Vazquez' ORDER BY stock_quantity ASC + +Natural Query: Show me all products in the player category with a price over $122.76. +SQL Query: SELECT * FROM products WHERE category = 'player' AND price > 122.76 + +Natural Query: What is the total profit for each category in Williams-Williams? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Williams-Williams' GROUP BY category ORDER BY total_profit DESC + +Natural Query: List all products of Wolf LLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wolf LLC' ORDER BY rating DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Joseph-Edwards 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 = 'Joseph-Edwards' + 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, Anderson and Sparks ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jones, Anderson and Sparks' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Kirk, Wood and 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 = 'Kirk, Wood and Ruiz' GROUP BY c.customer_id + +Natural Query: What are the top 4 products by sales for Davis-Sanchez this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Davis-Sanchez' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: Show me all products in the politics category with a price over $810.47. +SQL Query: SELECT * FROM products WHERE category = 'politics' AND price > 810.47 + +Natural Query: List all customers and their total order value for Collins-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 = 'Collins-Brown' GROUP BY c.customer_id + +Natural Query: What are the top 6 products by revenue for Sherman, Lee and Martinez all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Sherman, Lee and Martinez' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: What are the top 4 products by customers for Scott, Nelson and Guzman all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Scott, Nelson and Guzman' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Allen 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 = 'Allen 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 are the top 5 products by orders for Castro, Smith and Scott this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Castro, Smith and Scott' 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 Jackson 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 = 'Jackson 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 White, Scott and Lewis? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'White, Scott and Lewis' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the total profit for each country in Rogers, Willis and Woods? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Rogers, Willis and Woods' GROUP BY country ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Jones PLC between 2023-10-22 and 2024-04-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jones PLC' AND order_date BETWEEN '2023-10-22' AND '2024-04-08' + +Natural Query: What is the total quantity for each category in Kemp and Sons? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Kemp and Sons' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the total quantity for each country in Taylor Group? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Taylor Group' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the total quantity for each category in Anderson, Barnes and Sanders? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Anderson, Barnes and Sanders' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Nguyen-Ramsey 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-Ramsey' + 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 Waters, Arroyo and Douglas 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, Arroyo and Douglas' + 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 Cook 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 = 'Cook 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 10 products by revenue for Smith-Navarro this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Smith-Navarro' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: List all customers and their total order value for Simmons-Baker. +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 = 'Simmons-Baker' GROUP BY c.customer_id + +Natural Query: What are the top 7 products by customers for Smith, Ward and Lloyd this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Smith, Ward and Lloyd' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: What is the total profit for each supplier in Blair, Harris and Simmons? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Blair, Harris and Simmons' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Mendoza Inc between 2024-06-14 and 2024-07-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mendoza Inc' AND order_date BETWEEN '2024-06-14' AND '2024-07-12' + +Natural Query: List all products of Phelps, Brown and Hernandez ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Phelps, Brown and Hernandez' ORDER BY rating ASC + +Natural Query: What is the total profit for each category in Gardner Ltd? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Gardner Ltd' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 3 products by sales for Dixon-Torres all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Dixon-Torres' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: List all customers and their total order value for Baker, Nicholson and Luna. +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 = 'Baker, Nicholson and Luna' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Frank 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 = 'Frank 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 Anderson, Knapp and Clark 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 = 'Anderson, Knapp and Clark' + 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 hotel category with a price over $75.08. +SQL Query: SELECT * FROM products WHERE category = 'hotel' AND price > 75.08 + +Natural Query: List all products of Allison, Nichols and Thompson ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Allison, Nichols and Thompson' ORDER BY stock_quantity ASC + +Natural Query: How many orders were placed for Thomas, Young and Kennedy between 2024-04-20 and 2024-08-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thomas, Young and Kennedy' AND order_date BETWEEN '2024-04-20' AND '2024-08-27' + +Natural Query: What is the total quantity of all products for Griffin Inc? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Griffin Inc' + +Natural Query: List all customers and their total order value for Brooks 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 = 'Brooks LLC' GROUP BY c.customer_id + +Natural Query: Show me all products in the past category with a price over $801.54. +SQL Query: SELECT * FROM products WHERE category = 'past' AND price > 801.54 + +Natural Query: List all customers and their total order value for Ferguson, Morales and Cardenas. +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 = 'Ferguson, Morales and Cardenas' GROUP BY c.customer_id + +Natural Query: What is the average quantity of all products for Anderson and Sons? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Anderson and Sons' + +Natural Query: Show me all products in the start category with a price over $518.06. +SQL Query: SELECT * FROM products WHERE category = 'start' AND price > 518.06 + +Natural Query: List all customers and their total order value for Miller, Gay and Rowland. +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, Gay and Rowland' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each country in Avila-Cain? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Avila-Cain' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Ford, Young and Hawkins. +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 = 'Ford, Young and Hawkins' GROUP BY c.customer_id + +Natural Query: Show me all products in the site category with a price over $339.74. +SQL Query: SELECT * FROM products WHERE category = 'site' AND price > 339.74 + +Natural Query: What are the top 10 products by orders for Davis Group this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Davis Group' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: What are the top 3 products by customers for Rodriguez, Adkins and Rowe all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Rodriguez, Adkins and Rowe' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: How many orders were placed for Sullivan LLC between 2024-01-16 and 2024-06-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Sullivan LLC' AND order_date BETWEEN '2024-01-16' AND '2024-06-17' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Johnson 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 = 'Johnson 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 8 products by sales for Berg PLC last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Berg PLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: What is the maximum quantity of all products for Gray, Moore and Jimenez? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Gray, Moore and Jimenez' + +Natural Query: What are the top 8 products by customers for Sims-Wilson this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Sims-Wilson' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: What is the total rating of all products for Henry-Weber? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Henry-Weber' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Rodriguez, Fowler and Bates 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 = 'Rodriguez, Fowler and Bates' + 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 Fuller, Mccullough and Sparks. +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 = 'Fuller, Mccullough and Sparks' GROUP BY c.customer_id + +Natural Query: What are the top 9 products by orders for Fitzpatrick-Wood all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Fitzpatrick-Wood' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: Show me all products in the city category with a price over $993.9. +SQL Query: SELECT * FROM products WHERE category = 'city' AND price > 993.9 + +Natural Query: Show me all products in the alone category with a price over $482.07. +SQL Query: SELECT * FROM products WHERE category = 'alone' AND price > 482.07 + +Natural Query: List all customers and their total order value for Barr-Williamson. +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 = 'Barr-Williamson' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Heath, Powers and Houston 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 = 'Heath, Powers and Houston' + 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 Larson Ltd between 2024-01-30 and 2024-07-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Larson Ltd' AND order_date BETWEEN '2024-01-30' AND '2024-07-08' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gonzales 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 = 'Gonzales 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 average rating of all products for Schneider, Odonnell and Weber? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Schneider, Odonnell and Weber' + +Natural Query: What is the total sales for each country in Butler LLC? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Butler LLC' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Olson-Roman 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 = 'Olson-Roman' + 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 Brown-Stevens. +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-Stevens' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Ramirez Inc between 2024-04-27 and 2024-06-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ramirez Inc' AND order_date BETWEEN '2024-04-27' AND '2024-06-24' + +Natural Query: Show me all products in the choice category with a price over $373.21. +SQL Query: SELECT * FROM products WHERE category = 'choice' AND price > 373.21 + +Natural Query: Show me all products in the his category with a price over $864.14. +SQL Query: SELECT * FROM products WHERE category = 'his' AND price > 864.14 + +Natural Query: What is the total sales for each category in Rivas Group? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Rivas Group' GROUP BY category ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Johnson, Farley and Wilson between 2024-05-08 and 2024-07-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Johnson, Farley and Wilson' AND order_date BETWEEN '2024-05-08' AND '2024-07-15' + +Natural Query: List all customers and their total order value for Harrison, Butler and Lewis. +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 = 'Harrison, Butler and Lewis' GROUP BY c.customer_id + +Natural Query: Show me all products in the clearly category with a price over $288.15. +SQL Query: SELECT * FROM products WHERE category = 'clearly' AND price > 288.15 + +Natural Query: List all products of Pearson, Williams and Charles ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Pearson, Williams and Charles' ORDER BY rating DESC + +Natural Query: List all products of Hobbs-Lutz ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hobbs-Lutz' ORDER BY stock_quantity ASC + +Natural Query: Show me all products in the way category with a price over $723.8. +SQL Query: SELECT * FROM products WHERE category = 'way' AND price > 723.8 + +Natural Query: List all customers and their total order value for Thompson, Sutton and 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 = 'Thompson, Sutton and Brown' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Harrington, Barnes and Jackson 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 = 'Harrington, Barnes and Jackson' + 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 Allen, Montgomery and White. +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 = 'Allen, Montgomery and White' GROUP BY c.customer_id + +Natural Query: List all products of Rodriguez Inc ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rodriguez Inc' ORDER BY price ASC + +Natural Query: How many orders were placed for Howard LLC between 2024-03-19 and 2024-07-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Howard LLC' AND order_date BETWEEN '2024-03-19' AND '2024-07-20' + +Natural Query: What are the top 8 products by orders for Wiley, Davis and Jones this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Wiley, Davis and Jones' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: What are the top 3 products by orders for Miller-Acevedo this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Miller-Acevedo' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: What is the total sales for each category in Lopez, Todd and Hill? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Lopez, Todd and Hill' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the total quantity for each category in Stewart, Ryan and Brown? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Stewart, Ryan and Brown' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Spencer, Young and Pearson 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 = 'Spencer, Young and Pearson' + 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 Estrada-Lyons? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Estrada-Lyons' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the maximum quantity of all products for Alvarez-Lowery? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Alvarez-Lowery' + +Natural Query: How many orders were placed for Payne-Garrett between 2024-04-15 and 2024-06-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Payne-Garrett' AND order_date BETWEEN '2024-04-15' AND '2024-06-19' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Black 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 = 'Black 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 Williams, Rose and Hurley ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Williams, Rose and Hurley' ORDER BY rating DESC + +Natural Query: List all products of Ramirez Ltd ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ramirez Ltd' ORDER BY stock_quantity ASC + +Natural Query: What is the total profit for each supplier in Richmond-George? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Richmond-George' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Lewis 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 = 'Lewis LLC' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Johnson, Drake and Martinez 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, Drake and Martinez' + 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 Roberson-Dixon? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Roberson-Dixon' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the total sales for each category in Cochran-Kennedy? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Cochran-Kennedy' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the maximum rating of all products for Jensen, Johnson and Rose? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Jensen, Johnson and Rose' + +Natural Query: List all customers and their total order value for Mendez, Phillips and Thompson. +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 = 'Mendez, Phillips and Thompson' GROUP BY c.customer_id + +Natural Query: Show me all products in the task category with a price over $795.51. +SQL Query: SELECT * FROM products WHERE category = 'task' AND price > 795.51 + +Natural Query: List all products of Wolfe Inc ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wolfe Inc' ORDER BY price DESC + +Natural Query: What is the total quantity for each supplier in Garrett-Hernandez? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Garrett-Hernandez' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the minimum quantity of all products for Williams, Aguilar and Molina? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Williams, Aguilar and Molina' + +Natural Query: What is the minimum rating of all products for Peterson PLC? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Peterson PLC' + +Natural Query: Show me all products in the from category with a price over $889.24. +SQL Query: SELECT * FROM products WHERE category = 'from' AND price > 889.24 + +Natural Query: What is the total price of all products for Fisher Inc? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Fisher Inc' + +Natural Query: What is the total quantity of all products for Bradshaw and Sons? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Bradshaw and Sons' + +Natural Query: List all customers and their total order value for Baker-Simmons. +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 = 'Baker-Simmons' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Clark, Wong and Kerr between 2024-02-11 and 2024-04-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Clark, Wong and Kerr' AND order_date BETWEEN '2024-02-11' AND '2024-04-29' + +Natural Query: What is the total price of all products for Haynes, Taylor and Chan? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Haynes, Taylor and Chan' + +Natural Query: What are the top 8 products by customers for Higgins, Barrett and Christensen this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Higgins, Barrett and Christensen' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: List all products of Washington, Duffy and Thomas ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Washington, Duffy and Thomas' ORDER BY rating ASC + +Natural Query: What are the top 6 products by customers for Mcclure, Hays and Acosta this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Mcclure, Hays and Acosta' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: List all customers and their total order value for Sawyer, Wu and Hoffman. +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 = 'Sawyer, Wu and Hoffman' GROUP BY c.customer_id + +Natural Query: What are the top 3 products by orders for Mcgee-Shelton last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Mcgee-Shelton' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: List all customers and their total order value for Phillips, Clark and Barry. +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, Clark and Barry' GROUP BY c.customer_id + +Natural Query: List all products of Webster Group ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Webster Group' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Krause-Lee 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 = 'Krause-Lee' + 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 revenue for Hansen-Silva all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Hansen-Silva' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: What is the total sales for each country in Hunt-Duffy? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hunt-Duffy' GROUP BY country ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Best-Bowman between 2024-06-21 and 2024-07-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Best-Bowman' AND order_date BETWEEN '2024-06-21' AND '2024-07-09' + +Natural Query: What is the total rating of all products for Hansen-Wilson? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Hansen-Wilson' + +Natural Query: Show me all products in the good category with a price over $959.19. +SQL Query: SELECT * FROM products WHERE category = 'good' AND price > 959.19 + +Natural Query: What is the average quantity of all products for York Group? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'York Group' + +Natural Query: What are the top 6 products by sales for Orr, Cobb and White this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Orr, Cobb and White' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: How many orders were placed for Johnson, Christian and Ryan between 2024-06-01 and 2024-08-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Johnson, Christian and Ryan' AND order_date BETWEEN '2024-06-01' AND '2024-08-04' + +Natural Query: What are the top 6 products by orders for Poole and Sons last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Poole and Sons' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: List all customers and their total order value for Bell 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 = 'Bell LLC' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Torres-Wallace. +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-Wallace' GROUP BY c.customer_id + +Natural Query: What is the total profit for each category in Patterson, Wong and Baker? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Patterson, Wong and Baker' GROUP BY category ORDER BY total_profit DESC + +Natural Query: Show me all products in the human category with a price over $355.2. +SQL Query: SELECT * FROM products WHERE category = 'human' AND price > 355.2 + +Natural Query: List all products of Taylor PLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Taylor PLC' ORDER BY stock_quantity DESC + +Natural Query: What is the total quantity for each category in Gomez Group? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Gomez Group' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Mayer-Banks. +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 = 'Mayer-Banks' GROUP BY c.customer_id + +Natural Query: Show me all products in the pay category with a price over $833.23. +SQL Query: SELECT * FROM products WHERE category = 'pay' AND price > 833.23 + +Natural Query: What is the maximum quantity of all products for Lambert, Stanton and Green? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Lambert, Stanton and Green' + +Natural Query: Show me all products in the material category with a price over $550.98. +SQL Query: SELECT * FROM products WHERE category = 'material' AND price > 550.98 + +Natural Query: What are the top 3 products by revenue for Melton, Anderson and Williams this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Melton, Anderson and Williams' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: List all customers and their total order value for Cross-Frazier. +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 = 'Cross-Frazier' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Callahan-Martinez between 2023-11-13 and 2024-08-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Callahan-Martinez' AND order_date BETWEEN '2023-11-13' AND '2024-08-08' + +Natural Query: What is the minimum quantity of all products for Campos Ltd? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Campos Ltd' + +Natural Query: Show me all products in the always category with a price over $102.34. +SQL Query: SELECT * FROM products WHERE category = 'always' AND price > 102.34 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Sandoval, George and Price 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 = 'Sandoval, George and Price' + 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 2023-10-16 and 2023-12-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Humphrey and Sons' AND order_date BETWEEN '2023-10-16' AND '2023-12-03' + +Natural Query: What are the top 7 products by revenue for Brown Ltd this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Brown Ltd' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: What is the total sales for each country in Lopez-Carter? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Lopez-Carter' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all products of Hernandez Group ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hernandez Group' ORDER BY rating ASC + +Natural Query: Show me all products in the job category with a price over $814.07. +SQL Query: SELECT * FROM products WHERE category = 'job' AND price > 814.07 + +Natural Query: What is the total rating of all products for Taylor-Rice? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Taylor-Rice' + +Natural Query: List all products of Vance LLC ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Vance LLC' ORDER BY rating ASC + +Natural Query: What are the top 8 products by sales for Neal, Smith and Walter last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Neal, Smith and Walter' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: What are the top 8 products by orders for Lewis LLC this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Lewis LLC' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: What is the total sales for each supplier in White, Waller and Keller? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'White, Waller and Keller' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 6 products by sales for Cook Group this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Cook Group' AND period = 'this year' 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 Dudley, Jones and Garcia 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 = 'Dudley, Jones and Garcia' + 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 Fowler-Hoffman ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Fowler-Hoffman' ORDER BY stock_quantity ASC + +Natural Query: What are the top 10 products by revenue for Hernandez, Harper and Reilly last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Hernandez, Harper and Reilly' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: What are the top 8 products by orders for Gilbert, Rodriguez and Mitchell this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Gilbert, Rodriguez and Mitchell' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Sandoval, Wright and Richardson 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 = 'Sandoval, Wright and Richardson' + 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 Williams-Macias? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Williams-Macias' + +Natural Query: What is the total quantity for each category in Casey, Barnes and Knight? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Casey, Barnes and Knight' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all products of Lester-Armstrong ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lester-Armstrong' ORDER BY price DESC + +Natural Query: How many orders were placed for Beck-Brown between 2024-05-01 and 2024-07-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Beck-Brown' AND order_date BETWEEN '2024-05-01' AND '2024-07-29' + +Natural Query: What is the maximum quantity of all products for Fuller PLC? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Fuller PLC' + +Natural Query: List all products of Marks, Clark and Hood ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Marks, Clark and Hood' ORDER BY price DESC + +Natural Query: How many orders were placed for Reed LLC between 2023-11-21 and 2024-07-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Reed LLC' AND order_date BETWEEN '2023-11-21' AND '2024-07-19' + +Natural Query: List all products of Krause PLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Krause PLC' ORDER BY rating DESC + +Natural Query: What is the minimum quantity of all products for Caldwell Ltd? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Caldwell Ltd' + +Natural Query: What is the minimum price of all products for Burton-Thornton? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Burton-Thornton' + +Natural Query: What are the top 5 products by customers for Espinoza, Morrow and Greene all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Espinoza, Morrow and Greene' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: Show me all products in the democratic category with a price over $770.49. +SQL Query: SELECT * FROM products WHERE category = 'democratic' AND price > 770.49 + +Natural Query: List all customers and their total order value for Hughes-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 = 'Hughes-Adams' GROUP BY c.customer_id + +Natural Query: What is the total profit for each country in Morse, Fox and Rose? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Morse, Fox and Rose' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What is the average price of all products for Potter, Johnson and Hill? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Potter, Johnson and Hill' + +Natural Query: Show me all products in the give category with a price over $340.16. +SQL Query: SELECT * FROM products WHERE category = 'give' AND price > 340.16 + +Natural Query: Show me all products in the station category with a price over $848.84. +SQL Query: SELECT * FROM products WHERE category = 'station' AND price > 848.84 + +Natural Query: List all customers and their total order value for Jackson, Sampson 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 = 'Jackson, Sampson and Johnson' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Carey, Meyer and Wang. +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 = 'Carey, Meyer and Wang' GROUP BY c.customer_id + +Natural Query: What are the top 8 products by sales for Roberts Group this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Roberts Group' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: List all customers and their total order value for Webb, Williams and Baker. +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 = 'Webb, Williams and Baker' GROUP BY c.customer_id + +Natural Query: Show me all products in the send category with a price over $38.65. +SQL Query: SELECT * FROM products WHERE category = 'send' AND price > 38.65 + +Natural Query: List all customers and their total order value for Hopkins-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 = 'Hopkins-Williams' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Nguyen 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 = 'Nguyen Group' GROUP BY c.customer_id + +Natural Query: What are the top 6 products by revenue for Smith Group last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Smith Group' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: How many orders were placed for Bell-Fuentes between 2024-02-26 and 2024-06-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bell-Fuentes' AND order_date BETWEEN '2024-02-26' AND '2024-06-15' + +Natural Query: What is the maximum quantity of all products for Bailey-Hunt? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Bailey-Hunt' + +Natural Query: List all products of Osborne, Williamson and Sanders ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Osborne, Williamson and Sanders' ORDER BY rating DESC + +Natural Query: What is the total sales for each country in Anderson, Jensen and Elliott? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Anderson, Jensen and Elliott' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 3 products by orders for Bradley, Keller and Middleton this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Bradley, Keller and Middleton' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: How many orders were placed for Turner PLC between 2024-08-31 and 2024-09-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Turner PLC' AND order_date BETWEEN '2024-08-31' AND '2024-09-15' + +Natural Query: How many orders were placed for Camacho and Sons between 2024-01-15 and 2024-02-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Camacho and Sons' AND order_date BETWEEN '2024-01-15' AND '2024-02-04' + +Natural Query: What is the maximum rating of all products for Gomez, Davis and Contreras? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Gomez, Davis and Contreras' + +Natural Query: Show me all products in the technology category with a price over $596.45. +SQL Query: SELECT * FROM products WHERE category = 'technology' AND price > 596.45 + +Natural Query: List all customers and their total order value for Castillo 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 = 'Castillo Ltd' GROUP BY c.customer_id + +Natural Query: Show me all products in the growth category with a price over $54.01. +SQL Query: SELECT * FROM products WHERE category = 'growth' AND price > 54.01 + +Natural Query: List all products of Morrison-Woods ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Morrison-Woods' ORDER BY price DESC + +Natural Query: How many orders were placed for Bridges, Rhodes and Stafford between 2023-12-12 and 2024-08-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bridges, Rhodes and Stafford' AND order_date BETWEEN '2023-12-12' AND '2024-08-20' + +Natural Query: List all customers and their total order value for Mccarty 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 = 'Mccarty PLC' GROUP BY c.customer_id + +Natural Query: What are the top 4 products by sales for Huber, Maxwell and Bates last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Huber, Maxwell and Bates' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: Show me all products in the decide category with a price over $355.19. +SQL Query: SELECT * FROM products WHERE category = 'decide' AND price > 355.19 + +Natural Query: List all customers and their total order value for Miles-Jefferson. +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 = 'Miles-Jefferson' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Woods, Lutz and Diaz between 2024-03-23 and 2024-08-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Woods, Lutz and Diaz' AND order_date BETWEEN '2024-03-23' AND '2024-08-12' + +Natural Query: What is the total quantity of all products for Waller-Jensen? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Waller-Jensen' + +Natural Query: Show me all products in the two category with a price over $913.25. +SQL Query: SELECT * FROM products WHERE category = 'two' AND price > 913.25 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Jenkins 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 = 'Jenkins 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 country in Rivas and Sons? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Rivas and Sons' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all products of Becker, Rodriguez and Townsend ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Becker, Rodriguez and Townsend' ORDER BY rating DESC + +Natural Query: What is the total profit for each category in Hill-Davis? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Hill-Davis' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 3 products by revenue for Coleman Ltd this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Coleman Ltd' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Miller-Wagner 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 = 'Miller-Wagner' + 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 Guerrero-Perez? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Guerrero-Perez' + +Natural Query: What are the top 4 products by customers for Parker, Jones and Gillespie this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Parker, Jones and Gillespie' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: What is the average quantity of all products for Wilson-Murray? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Wilson-Murray' + +Natural Query: What are the top 3 products by revenue for White, Hamilton and Murphy last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'White, Hamilton and Murphy' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: How many orders were placed for Pennington, Beck and Miller between 2023-10-22 and 2024-01-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Pennington, Beck and Miller' AND order_date BETWEEN '2023-10-22' AND '2024-01-13' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Barnett 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 = 'Barnett 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 products of Hawkins, Johnson and Burke ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hawkins, Johnson and Burke' ORDER BY rating DESC + +Natural Query: List all products of Bird, Ball and Williams ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Bird, Ball and Williams' ORDER BY rating DESC + +Natural Query: Show me all products in the traditional category with a price over $532.47. +SQL Query: SELECT * FROM products WHERE category = 'traditional' AND price > 532.47 + +Natural Query: What are the top 6 products by sales for Patterson, Pineda and Jones last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Patterson, Pineda and Jones' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: How many orders were placed for Holland and Sons between 2023-09-28 and 2024-05-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Holland and Sons' AND order_date BETWEEN '2023-09-28' AND '2024-05-15' + +Natural Query: List all products of Massey Ltd ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Massey Ltd' ORDER BY price ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Smith 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 = 'Smith 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 Davis PLC between 2024-03-26 and 2024-05-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Davis PLC' AND order_date BETWEEN '2024-03-26' AND '2024-05-14' + +Natural Query: What is the maximum price of all products for Garrison and Sons? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Garrison and Sons' + +Natural Query: How many orders were placed for Reyes PLC between 2023-11-16 and 2023-12-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Reyes PLC' AND order_date BETWEEN '2023-11-16' AND '2023-12-26' + +Natural Query: What is the total profit for each category in Fields-Sullivan? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Fields-Sullivan' GROUP BY category ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Humphrey, Barnett and White between 2023-12-11 and 2024-02-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Humphrey, Barnett and White' AND order_date BETWEEN '2023-12-11' AND '2024-02-12' + +Natural Query: Show me all products in the ten category with a price over $955.39. +SQL Query: SELECT * FROM products WHERE category = 'ten' AND price > 955.39 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mills-Orozco 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 = 'Mills-Orozco' + 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 Gregory-Williams? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Gregory-Williams' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Dennis-Hill. +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 = 'Dennis-Hill' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Taylor 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 = 'Taylor PLC' GROUP BY c.customer_id + +Natural Query: What is the average quantity of all products for Anderson-Nunez? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Anderson-Nunez' + +Natural Query: What is the total profit for each category in Lara and Sons? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Lara and Sons' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the maximum price of all products for Padilla Inc? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Padilla Inc' + +Natural Query: Show me all products in the table category with a price over $973.76. +SQL Query: SELECT * FROM products WHERE category = 'table' AND price > 973.76 + +Natural Query: How many orders were placed for Mendoza, Jones and Sherman between 2024-03-26 and 2024-09-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mendoza, Jones and Sherman' AND order_date BETWEEN '2024-03-26' AND '2024-09-09' + +Natural Query: What is the total sales for each supplier in Williams, Silva and Hernandez? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Williams, Silva and Hernandez' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Molina, Mccarthy and 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 = 'Molina, Mccarthy and Campbell' + 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 Lee and Sons? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Lee and Sons' + +Natural Query: How many orders were placed for Stewart Inc between 2023-09-20 and 2024-04-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Stewart Inc' AND order_date BETWEEN '2023-09-20' AND '2024-04-25' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Daniels-Griffin 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 = 'Daniels-Griffin' + 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 customers for Carson, Hill and Ross this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Carson, Hill and Ross' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: List all customers and their total order value for Jones-Miller. +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-Miller' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Rodriguez, Gonzalez and Ritter between 2024-03-25 and 2024-04-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Rodriguez, Gonzalez and Ritter' AND order_date BETWEEN '2024-03-25' AND '2024-04-29' + +Natural Query: What is the maximum quantity of all products for Navarro-Harmon? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Navarro-Harmon' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Williams, Anderson and 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 = 'Williams, Anderson and Campbell' + 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 how category with a price over $836.69. +SQL Query: SELECT * FROM products WHERE category = 'how' AND price > 836.69 + +Natural Query: What are the top 6 products by orders for Johnson Inc last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Johnson Inc' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: Show me all products in the either category with a price over $215.37. +SQL Query: SELECT * FROM products WHERE category = 'either' AND price > 215.37 + +Natural Query: How many orders were placed for Barry-Torres between 2024-07-16 and 2024-07-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Barry-Torres' AND order_date BETWEEN '2024-07-16' AND '2024-07-19' + +Natural Query: How many orders were placed for Thompson Ltd between 2024-04-14 and 2024-07-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thompson Ltd' AND order_date BETWEEN '2024-04-14' AND '2024-07-22' + +Natural Query: What is the maximum quantity of all products for Ford, Keith and Sanchez? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Ford, Keith and Sanchez' + +Natural Query: Show me all products in the among category with a price over $348.73. +SQL Query: SELECT * FROM products WHERE category = 'among' AND price > 348.73 + +Natural Query: List all customers and their total order value for Smith 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 = 'Smith Group' GROUP BY c.customer_id + +Natural Query: What are the top 6 products by sales for Myers Ltd this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Myers Ltd' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: List all products of Chang Group ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Chang Group' ORDER BY stock_quantity DESC + +Natural Query: What is the total profit for each category in Wilson-Cooke? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Wilson-Cooke' GROUP BY category ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Villegas-Anderson between 2024-06-09 and 2024-06-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Villegas-Anderson' AND order_date BETWEEN '2024-06-09' AND '2024-06-25' + +Natural Query: List all customers and their total order value for Baker, Phillips and 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 = 'Baker, Phillips and Lopez' GROUP BY c.customer_id + +Natural Query: Show me all products in the may category with a price over $72.12. +SQL Query: SELECT * FROM products WHERE category = 'may' AND price > 72.12 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Brandt-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 = 'Brandt-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 treat category with a price over $25.49. +SQL Query: SELECT * FROM products WHERE category = 'treat' AND price > 25.49 + +Natural Query: List all products of Chaney-Wheeler ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Chaney-Wheeler' ORDER BY rating ASC + +Natural Query: List all products of Page, George and Smith ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Page, George and Smith' ORDER BY price DESC + +Natural Query: List all products of Fox, Lewis and Nelson ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Fox, Lewis and Nelson' ORDER BY price DESC + +Natural Query: What are the top 9 products by orders for Rosales-Barnett this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Rosales-Barnett' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: List all products of Gomez PLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gomez PLC' ORDER BY stock_quantity DESC + +Natural Query: What are the top 8 products by sales for Diaz-Church all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Diaz-Church' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: List all customers and their total order value for Peterson, Mitchell and Kennedy. +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 = 'Peterson, Mitchell and Kennedy' GROUP BY c.customer_id + +Natural Query: List all products of Smith LLC ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith LLC' ORDER BY rating ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Roth 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 = 'Roth 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 4 products by sales for Fischer Inc last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Fischer Inc' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mcpherson, Brock and Drake 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 = 'Mcpherson, Brock and Drake' + 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 Rich, Walter and Durham between 2024-08-18 and 2024-09-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Rich, Walter and Durham' AND order_date BETWEEN '2024-08-18' AND '2024-09-14' + +Natural Query: List all products of Foster, Winters and Wilson ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Foster, Winters and Wilson' ORDER BY price ASC + +Natural Query: Show me all products in the score category with a price over $848.09. +SQL Query: SELECT * FROM products WHERE category = 'score' AND price > 848.09 + +Natural Query: What is the average price of all products for Ruiz PLC? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Ruiz PLC' + +Natural Query: What is the total profit for each supplier in King LLC? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'King LLC' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the maximum rating of all products for Charles, Chapman and Mckee? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Charles, Chapman and Mckee' + +Natural Query: What are the top 7 products by customers for Bradford and Sons last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Bradford and Sons' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: What are the top 6 products by sales for Gilbert-Tapia all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Gilbert-Tapia' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: What is the maximum quantity of all products for Parker, Spencer and Bailey? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Parker, Spencer and Bailey' + +Natural Query: How many orders were placed for Price Ltd between 2024-06-11 and 2024-08-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Price Ltd' AND order_date BETWEEN '2024-06-11' AND '2024-08-25' + +Natural Query: List all products of Hayes and Sons ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hayes and Sons' ORDER BY price DESC + +Natural Query: Show me all products in the respond category with a price over $381.76. +SQL Query: SELECT * FROM products WHERE category = 'respond' AND price > 381.76 + +Natural Query: What is the minimum rating of all products for Harmon PLC? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Harmon PLC' + +Natural Query: What are the top 4 products by sales for Mendoza PLC this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Mendoza PLC' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Tate, Chandler and Walter 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 = 'Tate, Chandler and Walter' + 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 Smith, Evans and Hardin? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Smith, Evans and Hardin' GROUP BY country ORDER BY total_profit DESC + +Natural Query: Show me all products in the high category with a price over $393.06. +SQL Query: SELECT * FROM products WHERE category = 'high' AND price > 393.06 + +Natural Query: List all products of Medina-Rosario ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Medina-Rosario' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Jones, Koch and Cardenas 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, Koch and Cardenas' + 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 rating of all products for Smith, Morris and Roy? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Smith, Morris and Roy' + +Natural Query: What is the total quantity for each supplier in Smith-Lopez? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Smith-Lopez' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the average rating of all products for Swanson, Alexander and Chase? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Swanson, Alexander and Chase' + +Natural Query: List all customers and their total order value for Thompson, Baker and Fischer. +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 = 'Thompson, Baker and Fischer' GROUP BY c.customer_id + +Natural Query: What is the average quantity of all products for Salas-Keller? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Salas-Keller' + +Natural Query: How many orders were placed for Mann, Jones and Brooks between 2023-11-26 and 2024-05-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mann, Jones and Brooks' AND order_date BETWEEN '2023-11-26' AND '2024-05-07' + +Natural Query: How many orders were placed for Abbott Group between 2023-10-14 and 2024-06-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Abbott Group' AND order_date BETWEEN '2023-10-14' AND '2024-06-17' + +Natural Query: What are the top 5 products by sales for Munoz LLC this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Munoz LLC' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: Show me all products in the the category with a price over $51.84. +SQL Query: SELECT * FROM products WHERE category = 'the' AND price > 51.84 + +Natural Query: How many orders were placed for Chapman Ltd between 2024-02-25 and 2024-05-02? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Chapman Ltd' AND order_date BETWEEN '2024-02-25' AND '2024-05-02' + +Natural Query: Show me all products in the none category with a price over $891.54. +SQL Query: SELECT * FROM products WHERE category = 'none' AND price > 891.54 + +Natural Query: Show me all products in the fight category with a price over $138.99. +SQL Query: SELECT * FROM products WHERE category = 'fight' AND price > 138.99 + +Natural Query: What are the top 4 products by sales for Delacruz-Williams this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Delacruz-Williams' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: How many orders were placed for Hill-Freeman between 2024-01-27 and 2024-08-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hill-Freeman' AND order_date BETWEEN '2024-01-27' AND '2024-08-08' + +Natural Query: List all products of French and Sons ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'French and Sons' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cervantes-Vazquez 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 = 'Cervantes-Vazquez' + 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 sales for Watson-Cooper this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Watson-Cooper' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hall, Bush and Deleon 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 = 'Hall, Bush and Deleon' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: How many orders were placed for Williams LLC between 2024-01-23 and 2024-02-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Williams LLC' AND order_date BETWEEN '2024-01-23' AND '2024-02-28' + +Natural Query: List all customers and their total order value for Moore-Chase. +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-Chase' GROUP BY c.customer_id + +Natural Query: What is the total quantity of all products for Moore, Lambert and Conway? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Moore, Lambert and Conway' + +Natural Query: How many orders were placed for Price-Velez between 2023-09-21 and 2024-02-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Price-Velez' AND order_date BETWEEN '2023-09-21' AND '2024-02-01' + +Natural Query: List all customers and their total order value for Lewis, Rivera and Gray. +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, Rivera and Gray' GROUP BY c.customer_id + +Natural Query: What are the top 6 products by sales for Anderson PLC last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Anderson PLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: Show me all products in the million category with a price over $626.73. +SQL Query: SELECT * FROM products WHERE category = 'million' AND price > 626.73 + +Natural Query: What are the top 9 products by sales for Kent, Chavez and Benjamin this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Kent, Chavez and Benjamin' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: List all products of Olson-Estes ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Olson-Estes' ORDER BY stock_quantity ASC + +Natural Query: Show me all products in the hard category with a price over $843.12. +SQL Query: SELECT * FROM products WHERE category = 'hard' AND price > 843.12 + +Natural Query: Show me all products in the radio category with a price over $614.79. +SQL Query: SELECT * FROM products WHERE category = 'radio' AND price > 614.79 + +Natural Query: List all products of Vazquez and Sons ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Vazquez and Sons' ORDER BY stock_quantity DESC + +Natural Query: How many orders were placed for Murphy-Mcintyre between 2023-09-19 and 2023-12-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Murphy-Mcintyre' AND order_date BETWEEN '2023-09-19' AND '2023-12-13' + +Natural Query: What is the total profit for each category in Garcia, Jackson and Thomas? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Garcia, Jackson and Thomas' GROUP BY category ORDER BY total_profit DESC + +Natural Query: Show me all products in the agent category with a price over $550.19. +SQL Query: SELECT * FROM products WHERE category = 'agent' AND price > 550.19 + +Natural Query: What is the total quantity of all products for Chen PLC? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Chen PLC' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gonzalez-Stevens 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 = 'Gonzalez-Stevens' + 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 Edwards Inc between 2024-03-03 and 2024-07-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Edwards Inc' AND order_date BETWEEN '2024-03-03' AND '2024-07-23' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Kerr 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 = 'Kerr 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 total profit for each country in Castro Ltd? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Castro Ltd' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all products of Waller, Gutierrez and Baker ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Waller, Gutierrez and Baker' ORDER BY price DESC + +Natural Query: Show me all products in the nature category with a price over $172.97. +SQL Query: SELECT * FROM products WHERE category = 'nature' AND price > 172.97 + +Natural Query: List all products of Stafford, Harper and Rosario ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Stafford, Harper and Rosario' ORDER BY rating DESC + +Natural Query: What is the total quantity of all products for Brown PLC? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Brown PLC' + +Natural Query: What is the total profit for each supplier in Morris and Sons? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Morris and Sons' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 3 products by customers for Freeman, Price and Alvarez this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Freeman, Price and Alvarez' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: What is the total quantity for each supplier in Wilson-Payne? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Wilson-Payne' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: Show me all products in the theory category with a price over $851.54. +SQL Query: SELECT * FROM products WHERE category = 'theory' AND price > 851.54 + +Natural Query: List all products of Blanchard Group ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Blanchard Group' ORDER BY stock_quantity ASC + +Natural Query: What is the minimum price of all products for Krause, Velasquez and Perez? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Krause, Velasquez and Perez' + +Natural Query: How many orders were placed for Shields, Martin and Cox between 2024-03-31 and 2024-06-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Shields, Martin and Cox' AND order_date BETWEEN '2024-03-31' AND '2024-06-16' + +Natural Query: List all customers and their total order value for Holland 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 = 'Holland Ltd' GROUP BY c.customer_id + +Natural Query: What is the total profit for each supplier in Marshall Ltd? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Marshall Ltd' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Griffin 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 = 'Griffin 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 maximum quantity of all products for Cunningham-Schmitt? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Cunningham-Schmitt' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Carlson 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 = 'Carlson 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 Diaz, Turner and Snyder. +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 = 'Diaz, Turner and Snyder' GROUP BY c.customer_id + +Natural Query: What is the average quantity of all products for Davidson, Williams and Allen? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Davidson, Williams and Allen' + +Natural Query: What is the total rating of all products for Gilbert, Schmidt and Reynolds? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Gilbert, Schmidt and Reynolds' + +Natural Query: What is the minimum rating of all products for Scott Ltd? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Scott Ltd' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Allen-Bailey 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-Bailey' + 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 Lopez-Jackson. +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 = 'Lopez-Jackson' GROUP BY c.customer_id + +Natural Query: What is the total profit for each supplier in Lawrence Group? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Lawrence Group' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Lopez, Clark and Garcia. +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 = 'Lopez, Clark and Garcia' GROUP BY c.customer_id + +Natural Query: List all products of Mayer-Kelly ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mayer-Kelly' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Coleman 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 = 'Coleman Ltd' GROUP BY c.customer_id + +Natural Query: What are the top 9 products by orders for Palmer-Blankenship last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Palmer-Blankenship' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: What is the maximum quantity of all products for Estrada, Daugherty and Keller? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Estrada, Daugherty and Keller' + +Natural Query: List all products of Ellis LLC ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ellis LLC' ORDER BY price DESC + +Natural Query: What is the total quantity for each category in Jones-Atkinson? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Jones-Atkinson' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Campbell 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 = 'Campbell PLC' GROUP BY c.customer_id + +Natural Query: What are the top 9 products by orders for Ware-Diaz this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Ware-Diaz' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: What are the top 5 products by revenue for Vega, Lopez and Tucker this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Vega, Lopez and Tucker' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Ryan, Thompson and 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 = 'Ryan, Thompson and Ryan' + 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 Peters, Holt and Gutierrez between 2024-06-08 and 2024-07-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Peters, Holt and Gutierrez' AND order_date BETWEEN '2024-06-08' AND '2024-07-04' + +Natural Query: List all customers and their total order value for Mccormick-Miles. +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 = 'Mccormick-Miles' GROUP BY c.customer_id + +Natural Query: List all products of Nunez-Powell ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Nunez-Powell' ORDER BY price ASC + +Natural Query: List all products of Mccarthy PLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mccarthy PLC' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Kirk-Vega 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 = 'Kirk-Vega' + 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 Ibarra-Espinoza? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Ibarra-Espinoza' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the average quantity of all products for Lynn, Tran and Stone? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Lynn, Tran and Stone' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Davis 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 = 'Davis 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 Hinton 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 = 'Hinton PLC' GROUP BY c.customer_id + +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: List all customers and their total order value for Vasquez 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 = 'Vasquez Inc' GROUP BY c.customer_id + +Natural Query: What is the maximum rating of all products for Flynn-Lawson? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Flynn-Lawson' + +Natural Query: List all customers and their total order value for Jones 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 = 'Jones Ltd' GROUP BY c.customer_id + +Natural Query: What is the minimum price of all products for Johnson Group? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Johnson Group' + +Natural Query: Show me all products in the senior category with a price over $108.89. +SQL Query: SELECT * FROM products WHERE category = 'senior' AND price > 108.89 + +Natural Query: List all products of Anderson, Rodriguez and James ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Anderson, Rodriguez and James' ORDER BY price DESC + +Natural Query: What are the top 3 products by sales for Stone, Harmon and Shaw this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Stone, Harmon and Shaw' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: List all products of Gomez, Davis and Hall ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gomez, Davis and Hall' ORDER BY stock_quantity ASC + +Natural Query: What are the top 8 products by revenue for Spence-Gonzales this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Spence-Gonzales' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: How many orders were placed for Turner PLC between 2024-04-19 and 2024-09-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Turner PLC' AND order_date BETWEEN '2024-04-19' AND '2024-09-01' + +Natural Query: What is the total quantity for each category in Bell Ltd? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Bell Ltd' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 7 products by sales for Payne PLC this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Payne PLC' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: What is the total profit for each supplier in Barker, Brown and Miller? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Barker, Brown and Miller' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Michael PLC between 2024-06-14 and 2024-06-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Michael PLC' AND order_date BETWEEN '2024-06-14' AND '2024-06-14' + +Natural Query: List all products of Clark-Phelps ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Clark-Phelps' ORDER BY price DESC + +Natural Query: How many orders were placed for Carter-Cunningham between 2024-02-10 and 2024-08-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Carter-Cunningham' AND order_date BETWEEN '2024-02-10' AND '2024-08-22' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Wood 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 = 'Wood 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 Ray 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 = 'Ray PLC' GROUP BY c.customer_id + +Natural Query: What is the total profit for each category in Allen-May? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Allen-May' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the minimum quantity of all products for Nguyen Ltd? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Nguyen Ltd' + +Natural Query: List all customers and their total order value for Berg-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 = 'Berg-Hall' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Herrera LLC between 2023-10-28 and 2024-09-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Herrera LLC' AND order_date BETWEEN '2023-10-28' AND '2024-09-04' + +Natural Query: Show me all products in the head category with a price over $965.6. +SQL Query: SELECT * FROM products WHERE category = 'head' AND price > 965.6 + +Natural Query: Show me all products in the nice category with a price over $504.25. +SQL Query: SELECT * FROM products WHERE category = 'nice' AND price > 504.25 + +Natural Query: What are the top 7 products by customers for Thomas, Brewer and Kelley this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Thomas, Brewer and Kelley' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: What is the minimum price of all products for Wood and Sons? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Wood and Sons' + +Natural Query: What is the total sales for each supplier in Goodwin, Long and Ortega? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Goodwin, Long and Ortega' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Davies, Neal and Benton 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 = 'Davies, Neal and Benton' + 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 Rodriguez 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 = 'Rodriguez LLC' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Campbell, Berger and 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 = 'Campbell, Berger and Torres' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Gray, Summers and Sheppard between 2024-02-27 and 2024-06-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gray, Summers and Sheppard' AND order_date BETWEEN '2024-02-27' AND '2024-06-20' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Davies 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 = 'Davies 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 5 categories by sales for customers aged 25-35 in Espinoza, Watson and Sanders 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 = 'Espinoza, Watson and Sanders' + 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 Bailey-Montoya between 2024-07-18 and 2024-08-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bailey-Montoya' AND order_date BETWEEN '2024-07-18' AND '2024-08-23' + +Natural Query: List all customers and their total order value for Moss, Howard and Robinson. +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 = 'Moss, Howard and Robinson' GROUP BY c.customer_id + +Natural Query: Show me all products in the break category with a price over $987.57. +SQL Query: SELECT * FROM products WHERE category = 'break' AND price > 987.57 + +Natural Query: What is the total rating of all products for Bauer Group? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Bauer Group' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Taylor-Gordon 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-Gordon' + 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 Kelly-Patterson? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Kelly-Patterson' GROUP BY country ORDER BY total_sales DESC + +Natural Query: Show me all products in the play category with a price over $143.01. +SQL Query: SELECT * FROM products WHERE category = 'play' AND price > 143.01 + +Natural Query: List all products of Jenkins-Moreno ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jenkins-Moreno' ORDER BY rating DESC + +Natural Query: Show me all products in the land category with a price over $479.2. +SQL Query: SELECT * FROM products WHERE category = 'land' AND price > 479.2 + +Natural Query: What is the total price of all products for Powell, Long and Hudson? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Powell, Long and Hudson' + +Natural Query: List all customers and their total order value for Ray-Calderon. +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-Calderon' GROUP BY c.customer_id + +Natural Query: What is the total rating of all products for Holmes-Garrison? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Holmes-Garrison' + +Natural Query: What are the top 10 products by orders for Gates, Morris and Clark all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Gates, Morris and Clark' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Armstrong-Caldwell 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 = 'Armstrong-Caldwell' + 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 Washington, Thomas and Shelton? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Washington, Thomas and Shelton' + +Natural Query: What is the total profit for each category in Ford, Patel and Bryant? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Ford, Patel and Bryant' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Sosa 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 = 'Sosa 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 Davis Inc ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Davis Inc' ORDER BY rating DESC + +Natural Query: How many orders were placed for Barker, Acevedo and Rich between 2024-06-25 and 2024-08-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Barker, Acevedo and Rich' AND order_date BETWEEN '2024-06-25' AND '2024-08-11' + +Natural Query: List all products of Hernandez LLC ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hernandez LLC' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Patterson-Wilson 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 = 'Patterson-Wilson' + 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 Robinson 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 = 'Robinson and Sons' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each category in Garcia, Smith and Johnson? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Garcia, Smith and Johnson' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the total price of all products for Herman LLC? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Herman LLC' + +Natural Query: Show me all products in the administration category with a price over $936.21. +SQL Query: SELECT * FROM products WHERE category = 'administration' AND price > 936.21 + +Natural Query: What is the maximum price of all products for Thomas, Saunders and Juarez? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Thomas, Saunders and Juarez' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Campbell 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 = 'Campbell 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 Dunlap 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 = 'Dunlap 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 6 products by orders for Crawford and Sons all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Crawford and Sons' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: What is the average quantity of all products for Stark-Davis? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Stark-Davis' + +Natural Query: How many orders were placed for Hogan-Buckley between 2024-03-30 and 2024-07-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hogan-Buckley' AND order_date BETWEEN '2024-03-30' AND '2024-07-03' + +Natural Query: How many orders were placed for Pacheco, Crawford and Novak between 2023-12-06 and 2024-02-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Pacheco, Crawford and Novak' AND order_date BETWEEN '2023-12-06' AND '2024-02-16' + +Natural Query: Show me all products in the course category with a price over $452.94. +SQL Query: SELECT * FROM products WHERE category = 'course' AND price > 452.94 + +Natural Query: List all products of Park Inc ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Park Inc' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Clark, Morgan and Carey 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 = 'Clark, Morgan and Carey' + 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 Ruiz, West and Evans between 2024-01-07 and 2024-04-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ruiz, West and Evans' AND order_date BETWEEN '2024-01-07' AND '2024-04-24' + +Natural Query: What are the top 9 products by revenue for Smith Inc all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Smith Inc' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: Show me all products in the miss category with a price over $170.87. +SQL Query: SELECT * FROM products WHERE category = 'miss' AND price > 170.87 + +Natural Query: List all customers and their total order value for Williamson, Davis and Buck. +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 = 'Williamson, Davis and Buck' GROUP BY c.customer_id + +Natural Query: Show me all products in the religious category with a price over $485.2. +SQL Query: SELECT * FROM products WHERE category = 'religious' AND price > 485.2 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hurley-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 = 'Hurley-Anderson' + 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 Friedman Inc? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Friedman Inc' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 10 products by sales for Maddox Ltd all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Maddox Ltd' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: What is the total quantity for each country in Fox Inc? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Fox Inc' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: Show me all products in the Mr category with a price over $362.69. +SQL Query: SELECT * FROM products WHERE category = 'Mr' AND price > 362.69 + +Natural Query: What is the total profit for each category in Brown, Willis and Costa? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Brown, Willis and Costa' GROUP BY category ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Smith, Nelson and Ruiz between 2024-08-08 and 2024-09-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Smith, Nelson and Ruiz' AND order_date BETWEEN '2024-08-08' AND '2024-09-09' + +Natural Query: List all customers and their total order value for Malone, Richardson and West. +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 = 'Malone, Richardson and West' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Thompson-Gutierrez. +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 = 'Thompson-Gutierrez' GROUP BY c.customer_id + +Natural Query: What is the total sales for each category in Johnson, Morris and Harris? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Johnson, Morris and Harris' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the maximum price of all products for Phelps LLC? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Phelps LLC' + +Natural Query: Show me all products in the both category with a price over $529.79. +SQL Query: SELECT * FROM products WHERE category = 'both' AND price > 529.79 + +Natural Query: List all customers and their total order value for Garrison, Andrews and Nash. +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 = 'Garrison, Andrews and Nash' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Chavez-Wong. +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 = 'Chavez-Wong' GROUP BY c.customer_id + +Natural Query: What is the total quantity of all products for Stephens-Diaz? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Stephens-Diaz' + +Natural Query: Show me all products in the left category with a price over $870.63. +SQL Query: SELECT * FROM products WHERE category = 'left' AND price > 870.63 + +Natural Query: Show me all products in the others category with a price over $755.45. +SQL Query: SELECT * FROM products WHERE category = 'others' AND price > 755.45 + +Natural Query: What is the maximum rating of all products for Farley LLC? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Farley LLC' + +Natural Query: What is the average rating of all products for Thomas PLC? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Thomas PLC' + +Natural Query: List all customers and their total order value for Bailey-Marshall. +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-Marshall' GROUP BY c.customer_id + +Natural Query: Show me all products in the win category with a price over $971.0. +SQL Query: SELECT * FROM products WHERE category = 'win' AND price > 971.0 + +Natural Query: What is the average price of all products for Shaw, Jones and Miller? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Shaw, Jones and Miller' + +Natural Query: List all products of Willis LLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Willis LLC' ORDER BY rating DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Santiago 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 = 'Santiago 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 Harris 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 = 'Harris PLC' + 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 Farmer PLC between 2024-07-15 and 2024-08-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Farmer PLC' AND order_date BETWEEN '2024-07-15' AND '2024-08-18' + +Natural Query: How many orders were placed for Anderson, Navarro and Banks between 2024-09-01 and 2024-09-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Anderson, Navarro and Banks' AND order_date BETWEEN '2024-09-01' AND '2024-09-15' + +Natural Query: Show me all products in the alone category with a price over $913.03. +SQL Query: SELECT * FROM products WHERE category = 'alone' AND price > 913.03 + +Natural Query: What is the total quantity for each category in Rios-Perez? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Rios-Perez' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: Show me all products in the trade category with a price over $680.56. +SQL Query: SELECT * FROM products WHERE category = 'trade' AND price > 680.56 + +Natural Query: List all customers and their total order value for Johnson, Schmitt and Hernandez. +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, Schmitt and Hernandez' GROUP BY c.customer_id + +Natural Query: Show me all products in the people category with a price over $153.37. +SQL Query: SELECT * FROM products WHERE category = 'people' AND price > 153.37 + +Natural Query: Show me all products in the radio category with a price over $926.8. +SQL Query: SELECT * FROM products WHERE category = 'radio' AND price > 926.8 + +Natural Query: Show me all products in the attack category with a price over $34.92. +SQL Query: SELECT * FROM products WHERE category = 'attack' AND price > 34.92 + +Natural Query: What are the top 8 products by revenue for Perry, Beck and Coleman this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Perry, Beck and Coleman' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: How many orders were placed for Hammond, Ray and Jackson between 2023-12-29 and 2024-04-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hammond, Ray and Jackson' AND order_date BETWEEN '2023-12-29' AND '2024-04-09' + +Natural Query: Show me all products in the door category with a price over $49.82. +SQL Query: SELECT * FROM products WHERE category = 'door' AND price > 49.82 + +Natural Query: Show me all products in the marriage category with a price over $478.7. +SQL Query: SELECT * FROM products WHERE category = 'marriage' AND price > 478.7 + +Natural Query: List all products of Simmons-Allison ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Simmons-Allison' ORDER BY rating DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Harmon, Webb and Deleon 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, Webb and Deleon' + 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 Stout-Little. +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 = 'Stout-Little' GROUP BY c.customer_id + +Natural Query: What is the total profit for each category in Montgomery LLC? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Montgomery LLC' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Rhodes 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 = 'Rhodes 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 is the total profit for each supplier in Cooper, Smith and Coleman? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Cooper, Smith and Coleman' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all products of Armstrong, Wilson and Thomas ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Armstrong, Wilson and Thomas' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Rodriguez, Mclaughlin and 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 = 'Rodriguez, Mclaughlin and Wall' + 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 Montgomery PLC? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Montgomery PLC' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mason 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 = 'Mason 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 let category with a price over $224.17. +SQL Query: SELECT * FROM products WHERE category = 'let' AND price > 224.17 + +Natural Query: List all customers and their total order value for Collins 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 = 'Collins and Sons' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Brown-Dixon between 2023-10-31 and 2024-02-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Brown-Dixon' AND order_date BETWEEN '2023-10-31' AND '2024-02-18' + +Natural Query: List all products of Singh, Lowe and Cowan ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Singh, Lowe and Cowan' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Ramirez-Sims. +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-Sims' GROUP BY c.customer_id + +Natural Query: What are the top 10 products by customers for Moore-Wilson all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Moore-Wilson' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10 + +Natural Query: What are the top 6 products by sales for Miller, Oconnell and Scott this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Miller, Oconnell and Scott' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: What are the top 4 products by orders for Smith, Peterson and Rangel all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Smith, Peterson and Rangel' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: List all products of Perkins-Atkins ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Perkins-Atkins' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hull 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 = 'Hull 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 are the top 10 products by customers for Jackson, Thompson and Kelley this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Jackson, Thompson and Kelley' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10 + +Natural Query: How many orders were placed for Carrillo-Lee between 2024-08-17 and 2024-08-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Carrillo-Lee' AND order_date BETWEEN '2024-08-17' AND '2024-08-19' + +Natural Query: List all products of Reynolds-Walker ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Reynolds-Walker' ORDER BY stock_quantity ASC + +Natural Query: How many orders were placed for Proctor-Holt between 2024-04-29 and 2024-06-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Proctor-Holt' AND order_date BETWEEN '2024-04-29' AND '2024-06-11' + +Natural Query: What is the total profit for each country in Brown, Shelton and Woods? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Brown, Shelton and Woods' GROUP BY country ORDER BY total_profit DESC + +Natural Query: Show me all products in the worry category with a price over $20.31. +SQL Query: SELECT * FROM products WHERE category = 'worry' AND price > 20.31 + +Natural Query: Show me all products in the area category with a price over $561.23. +SQL Query: SELECT * FROM products WHERE category = 'area' AND price > 561.23 + +Natural Query: How many orders were placed for Wade-Brooks between 2024-07-18 and 2024-08-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wade-Brooks' AND order_date BETWEEN '2024-07-18' AND '2024-08-13' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Moore, Brown and Villanueva 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, Brown and Villanueva' + 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 southern category with a price over $157.45. +SQL Query: SELECT * FROM products WHERE category = 'southern' AND price > 157.45 + +Natural Query: What is the total sales for each category in Henderson-Patterson? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Henderson-Patterson' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Russell 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 = 'Russell Inc' GROUP BY c.customer_id + +Natural Query: What are the top 3 products by revenue for Barnes, Austin and Peterson last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Barnes, Austin and Peterson' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: What is the maximum price of all products for Snyder PLC? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Snyder PLC' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Conner-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 = 'Conner-Martin' + 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 Acevedo, Hernandez and Faulkner 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 = 'Acevedo, Hernandez and Faulkner' + 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 orders for Francis, Collins and Thomas this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Francis, Collins and Thomas' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: List all customers and their total order value for Robertson-Owen. +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-Owen' GROUP BY c.customer_id + +Natural Query: Show me all products in the product category with a price over $676.98. +SQL Query: SELECT * FROM products WHERE category = 'product' AND price > 676.98 + +Natural Query: What is the average price of all products for Gonzalez-Schroeder? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Gonzalez-Schroeder' + +Natural Query: List all customers and their total order value for Green 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 = 'Green Ltd' GROUP BY c.customer_id + +Natural Query: What is the minimum rating of all products for Powell, Smith and Moreno? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Powell, Smith and Moreno' + +Natural Query: List all products of Obrien-Mullins ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Obrien-Mullins' ORDER BY price ASC + +Natural Query: What is the total profit for each supplier in Delgado LLC? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Delgado LLC' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Allen-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 = 'Allen-Brown' GROUP BY c.customer_id + +Natural Query: What is the total profit for each supplier in King-King? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'King-King' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 8 products by revenue for Mayo LLC this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Mayo LLC' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: What is the total sales for each supplier in Wilson Inc? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Wilson Inc' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Travis-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 = 'Travis-Little' + 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 Martinez-Jones between 2023-12-09 and 2024-07-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Martinez-Jones' AND order_date BETWEEN '2023-12-09' AND '2024-07-01' + +Natural Query: List all products of Elliott-Reese ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Elliott-Reese' ORDER BY rating DESC + +Natural Query: What is the total sales for each supplier in Martin, Vaughn and Hancock? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Martin, Vaughn and Hancock' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the total sales for each category in Henson-Nixon? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Henson-Nixon' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Stevens-Santos 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 = 'Stevens-Santos' + 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 Cisneros-Young? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Cisneros-Young' + +Natural Query: List all products of Gordon Inc ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gordon Inc' ORDER BY price ASC + +Natural Query: List all products of Harper, Barrett and Campbell ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Harper, Barrett and Campbell' ORDER BY price DESC + +Natural Query: Show me all products in the big category with a price over $174.67. +SQL Query: SELECT * FROM products WHERE category = 'big' AND price > 174.67 + +Natural Query: What are the top 10 products by orders for Rodriguez Group all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Rodriguez Group' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: How many orders were placed for Wood, Gonzales and Hernandez between 2024-07-30 and 2024-08-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wood, Gonzales and Hernandez' AND order_date BETWEEN '2024-07-30' AND '2024-08-10' + +Natural Query: What is the total quantity of all products for Bryant Inc? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Bryant Inc' + +Natural Query: What is the total rating of all products for Stein-Richardson? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Stein-Richardson' + +Natural Query: What is the total rating of all products for Caldwell Inc? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Caldwell Inc' + +Natural Query: What is the maximum price of all products for Simpson, Adams and Lucas? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Simpson, Adams and Lucas' + +Natural Query: What are the top 6 products by customers for Rice, Hernandez and Martin this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Rice, Hernandez and Martin' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: What are the top 9 products by sales for Romero-Todd this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Romero-Todd' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: How many orders were placed for Flores, Bailey and Newman between 2024-07-17 and 2024-08-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Flores, Bailey and Newman' AND order_date BETWEEN '2024-07-17' AND '2024-08-08' + +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 Turner Ltd ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Turner Ltd' ORDER BY price DESC + +Natural Query: List all products of Good Ltd ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Good Ltd' ORDER BY price ASC + +Natural Query: What is the maximum quantity of all products for Pena-Compton? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Pena-Compton' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Becker-Hart 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 = 'Becker-Hart' + 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 Keller-Herring? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Keller-Herring' GROUP BY category ORDER BY total_sales DESC + +Natural Query: Show me all products in the way category with a price over $730.47. +SQL Query: SELECT * FROM products WHERE category = 'way' AND price > 730.47 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Roth-Gilmore 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 = 'Roth-Gilmore' + 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 Kelley PLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Kelley PLC' ORDER BY rating DESC + +Natural Query: What is the maximum rating of all products for Callahan, Porter and Oliver? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Callahan, Porter and Oliver' + +Natural Query: List all products of Jackson, Simon and Phillips ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jackson, Simon and Phillips' ORDER BY price ASC + +Natural Query: What is the total profit for each supplier in Smith-West? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Smith-West' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the average quantity of all products for Parker, Griffin and Dickson? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Parker, Griffin and Dickson' + +Natural Query: How many orders were placed for Wiley-Murphy between 2023-11-20 and 2024-04-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wiley-Murphy' AND order_date BETWEEN '2023-11-20' AND '2024-04-20' + +Natural Query: How many orders were placed for Pham Ltd between 2024-03-01 and 2024-03-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Pham Ltd' AND order_date BETWEEN '2024-03-01' AND '2024-03-10' + +Natural Query: What are the top 8 products by orders for Ballard PLC last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Ballard PLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: Show me all products in the fund category with a price over $788.95. +SQL Query: SELECT * FROM products WHERE category = 'fund' AND price > 788.95 + +Natural Query: What is the total quantity for each country in Martinez, Gilmore and Perry? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Martinez, Gilmore and Perry' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all products of Hall-King ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hall-King' ORDER BY stock_quantity ASC + +Natural Query: How many orders were placed for Martinez Group between 2024-06-06 and 2024-06-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Martinez Group' AND order_date BETWEEN '2024-06-06' AND '2024-06-19' + +Natural Query: Show me all products in the trial category with a price over $96.26. +SQL Query: SELECT * FROM products WHERE category = 'trial' AND price > 96.26 + +Natural Query: What is the total quantity for each country in Bryant-Bell? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Bryant-Bell' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Lewis-Guerra. +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-Guerra' GROUP BY c.customer_id + +Natural Query: What is the average rating of all products for Smith, Diaz and Martinez? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Smith, Diaz and Martinez' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Smith, Turner and Spencer 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, Turner and Spencer' + 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 Martinez-Bryant? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Martinez-Bryant' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Morris, Frost and 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 = 'Morris, Frost and Romero' + 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 Henderson 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 = 'Henderson LLC' GROUP BY c.customer_id + +Natural Query: What are the top 5 products by orders for Mcclure, Perez and Todd this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Mcclure, Perez and Todd' 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 Ingram 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 = 'Ingram Inc' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hughes, Mendoza and Arnold 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 = 'Hughes, Mendoza and Arnold' + 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 Maldonado-Fowler between 2023-11-30 and 2024-08-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Maldonado-Fowler' AND order_date BETWEEN '2023-11-30' AND '2024-08-12' + +Natural Query: How many orders were placed for Mosley LLC between 2024-08-25 and 2024-09-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mosley LLC' AND order_date BETWEEN '2024-08-25' AND '2024-09-08' + +Natural Query: What is the total sales for each supplier in Ferguson, Smith and Brown? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Ferguson, Smith and Brown' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Duncan-Lewis between 2024-06-03 and 2024-06-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Duncan-Lewis' AND order_date BETWEEN '2024-06-03' AND '2024-06-25' + +Natural Query: List all customers and their total order value for Sandoval 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 = 'Sandoval Group' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Rojas-Gallagher 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-Gallagher' + 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 sales for Perez, Nichols and Jackson this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Perez, Nichols and Jackson' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: What is the maximum quantity of all products for Hill, Lee and Wright? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Hill, Lee and Wright' + +Natural Query: What is the total sales for each category in Wright, Craig and Walker? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Wright, Craig and Walker' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 6 products by orders for Camacho, Davis and Baker all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Camacho, Davis and Baker' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: Show me all products in the remember category with a price over $797.34. +SQL Query: SELECT * FROM products WHERE category = 'remember' AND price > 797.34 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Anderson, Ramirez and Jackson 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 = 'Anderson, Ramirez and Jackson' + 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 Rodriguez-Hall? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Rodriguez-Hall' + +Natural Query: List all products of Watson Ltd ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Watson Ltd' ORDER BY rating ASC + +Natural Query: List all products of Davis-Keith ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Davis-Keith' ORDER BY price ASC + +Natural Query: What are the top 4 products by revenue for Roberts Inc this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Roberts Inc' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: Show me all products in the across category with a price over $426.29. +SQL Query: SELECT * FROM products WHERE category = 'across' AND price > 426.29 + +Natural Query: What are the top 6 products by sales for Robinson-Armstrong this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Robinson-Armstrong' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: What is the total price of all products for Myers, Williamson and Sloan? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Myers, Williamson and Sloan' + +Natural Query: What is the total profit for each category in Wilson-Mitchell? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Wilson-Mitchell' GROUP BY category ORDER BY total_profit DESC + +Natural Query: Show me all products in the network category with a price over $939.85. +SQL Query: SELECT * FROM products WHERE category = 'network' AND price > 939.85 + +Natural Query: List all products of Mclaughlin and Sons ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mclaughlin and Sons' ORDER BY rating ASC + +Natural Query: Show me all products in the identify category with a price over $557.25. +SQL Query: SELECT * FROM products WHERE category = 'identify' AND price > 557.25 + +Natural Query: List all products of Sanford LLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Sanford LLC' ORDER BY stock_quantity DESC + +Natural Query: Show me all products in the include category with a price over $816.41. +SQL Query: SELECT * FROM products WHERE category = 'include' AND price > 816.41 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Kelly-Vincent 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 = 'Kelly-Vincent' + 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 Boyd, Anthony 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 = 'Boyd, Anthony and Smith' GROUP BY c.customer_id + +Natural Query: What is the minimum quantity of all products for Woods, Ortiz and Woods? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Woods, Ortiz and Woods' + +Natural Query: What are the top 7 products by revenue for Sullivan-Wyatt this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Sullivan-Wyatt' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: What are the top 4 products by orders for Simon-Mccormick last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Simon-Mccormick' 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 Potter 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 = 'Potter 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 5 products by customers for Reed-Benitez last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Reed-Benitez' AND period = 'last quarter' 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 Harris, Schneider and Tucker 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 = 'Harris, Schneider and Tucker' + 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 Medina, Wade and Warren between 2024-02-21 and 2024-03-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Medina, Wade and Warren' AND order_date BETWEEN '2024-02-21' AND '2024-03-21' + +Natural Query: How many orders were placed for Rhodes-Garcia between 2023-10-10 and 2024-01-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Rhodes-Garcia' AND order_date BETWEEN '2023-10-10' AND '2024-01-09' + +Natural Query: List all customers and their total order value for Howard, Luna and 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 = 'Howard, Luna and Jones' GROUP BY c.customer_id + +Natural Query: Show me all products in the class category with a price over $699.48. +SQL Query: SELECT * FROM products WHERE category = 'class' AND price > 699.48 + +Natural Query: What is the total quantity for each supplier in Martin LLC? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Martin LLC' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Maxwell-Walls between 2024-05-03 and 2024-05-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Maxwell-Walls' AND order_date BETWEEN '2024-05-03' AND '2024-05-16' + +Natural Query: Show me all products in the positive category with a price over $32.93. +SQL Query: SELECT * FROM products WHERE category = 'positive' AND price > 32.93 + +Natural Query: What are the top 9 products by customers for Fox-Young this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Fox-Young' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: List all customers and their total order value for Carpenter 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 = 'Carpenter LLC' GROUP BY c.customer_id + +Natural Query: Show me all products in the picture category with a price over $274.34. +SQL Query: SELECT * FROM products WHERE category = 'picture' AND price > 274.34 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cruz, Brown and Pearson 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 = 'Cruz, Brown and Pearson' + 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 Carter-Wilson? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Carter-Wilson' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the maximum price of all products for Figueroa-Mcdowell? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Figueroa-Mcdowell' + +Natural Query: What is the total sales for each supplier in Adkins-Anderson? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Adkins-Anderson' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 7 products by sales for Mueller, Underwood and Buckley all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Mueller, Underwood and Buckley' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: What are the top 6 products by customers for Hart, Hartman and White this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Hart, Hartman and White' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: Show me all products in the gun category with a price over $707.16. +SQL Query: SELECT * FROM products WHERE category = 'gun' AND price > 707.16 + +Natural Query: Show me all products in the shoulder category with a price over $497.53. +SQL Query: SELECT * FROM products WHERE category = 'shoulder' AND price > 497.53 + +Natural Query: List all products of Flynn, Knox and Olson ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Flynn, Knox and Olson' ORDER BY rating DESC + +Natural Query: List all products of Clark Ltd ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Clark Ltd' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 products by sales for Mendez LLC this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Mendez LLC' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: What are the top 9 products by revenue for Mills, Watts and Hopkins this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Mills, Watts and Hopkins' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: What is the total quantity for each supplier in Bradley, Vaughn and Jones? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Bradley, Vaughn and Jones' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the total sales for each supplier in Harrison and Sons? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Harrison and Sons' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all products of Spears Inc ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Spears Inc' ORDER BY rating DESC + +Natural Query: What is the total profit for each category in Smith Ltd? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Smith Ltd' GROUP BY category ORDER BY total_profit DESC + +Natural Query: List all products of Freeman Ltd ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Freeman Ltd' ORDER BY stock_quantity DESC + +Natural Query: How many orders were placed for Mckay, Thompson and Ross between 2024-03-03 and 2024-06-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mckay, Thompson and Ross' AND order_date BETWEEN '2024-03-03' AND '2024-06-09' + +Natural Query: Show me all products in the each category with a price over $763.38. +SQL Query: SELECT * FROM products WHERE category = 'each' AND price > 763.38 + +Natural Query: What are the top 7 products by customers for Parks-Willis all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Parks-Willis' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: What are the top 5 products by revenue for Jennings PLC last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Jennings PLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: What is the total profit for each supplier in Mcdonald Ltd? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Mcdonald Ltd' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: Show me all products in the popular category with a price over $429.24. +SQL Query: SELECT * FROM products WHERE category = 'popular' AND price > 429.24 + +Natural Query: What is the total price of all products for Graham, Perez and Murphy? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Graham, Perez and Murphy' + +Natural Query: What is the total rating of all products for Owens, Garcia and Clark? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Owens, Garcia and Clark' + +Natural Query: What are the top 8 products by revenue for Braun and Sons last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Braun and Sons' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Miller, Williams and Ruiz 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 = 'Miller, Williams and Ruiz' + 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 Carter, Leonard and Flores? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Carter, Leonard and Flores' + +Natural Query: List all customers and their total order value for Underwood, Mullen and Estrada. +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, Mullen and Estrada' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Barker 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 = 'Barker 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 Hickman-Perez between 2024-07-02 and 2024-08-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hickman-Perez' AND order_date BETWEEN '2024-07-02' AND '2024-08-16' + +Natural Query: List all customers and their total order value for Shea 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 = 'Shea Group' GROUP BY c.customer_id + +Natural Query: Show me all products in the create category with a price over $837.77. +SQL Query: SELECT * FROM products WHERE category = 'create' AND price > 837.77 + +Natural Query: List all customers and their total order value for Vega 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 = 'Vega PLC' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Bennett, Russell and Duncan 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, Russell and Duncan' + 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 Carey, Grant and Nelson? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Carey, Grant and Nelson' GROUP BY country ORDER BY total_sales DESC + +Natural Query: Show me all products in the result category with a price over $628.65. +SQL Query: SELECT * FROM products WHERE category = 'result' AND price > 628.65 + +Natural Query: List all customers and their total order value for Banks 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 = 'Banks Group' GROUP BY c.customer_id + +Natural Query: What are the top 9 products by customers for Thomas PLC this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Thomas PLC' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: What is the total sales for each category in Cook, Allison and Park? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Cook, Allison and Park' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the total quantity for each supplier in James, Espinoza and Green? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'James, Espinoza and Green' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Bryan, Chaney and Bender 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 = 'Bryan, Chaney and Bender' + 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 Fuller, Ross and Miller? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Fuller, Ross and Miller' GROUP BY category ORDER BY total_sales DESC + +Natural Query: Show me all products in the have category with a price over $36.97. +SQL Query: SELECT * FROM products WHERE category = 'have' AND price > 36.97 + +Natural Query: What is the total quantity for each category in Taylor, Gonzalez and Harper? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Taylor, Gonzalez and Harper' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the total sales for each category in Wilson-Yoder? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Wilson-Yoder' GROUP BY category ORDER BY total_sales DESC + +Natural Query: Show me all products in the method category with a price over $912.39. +SQL Query: SELECT * FROM products WHERE category = 'method' AND price > 912.39 + +Natural Query: What is the total rating of all products for Carter, Ortega and Graves? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Carter, Ortega and Graves' + +Natural Query: What is the minimum rating of all products for Bennett-Jefferson? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Bennett-Jefferson' + +Natural Query: List all customers and their total order value for Harrison, Franklin and Shaw. +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 = 'Harrison, Franklin and Shaw' GROUP BY c.customer_id + +Natural Query: What is the minimum price of all products for Williams-House? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Williams-House' + +Natural Query: List all products of Ashley-Fox ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ashley-Fox' ORDER BY price DESC + +Natural Query: Show me all products in the research category with a price over $370.61. +SQL Query: SELECT * FROM products WHERE category = 'research' AND price > 370.61 + +Natural Query: How many orders were placed for Figueroa, Williams and Jordan between 2024-01-25 and 2024-08-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Figueroa, Williams and Jordan' AND order_date BETWEEN '2024-01-25' AND '2024-08-25' + +Natural Query: What are the top 4 products by orders for Cobb PLC this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Cobb PLC' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: Show me all products in the event category with a price over $395.23. +SQL Query: SELECT * FROM products WHERE category = 'event' AND price > 395.23 + +Natural Query: List all products of Reyes and Sons ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Reyes and Sons' ORDER BY stock_quantity ASC + +Natural Query: List all products of Hamilton-Atkinson ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hamilton-Atkinson' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Brennan, Wood and Fuentes. +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, Wood and Fuentes' GROUP BY c.customer_id + +Natural Query: List all products of Levine-Mcneil ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Levine-Mcneil' ORDER BY stock_quantity ASC + +Natural Query: What is the minimum quantity of all products for Hill Inc? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Hill Inc' + +Natural Query: What is the total profit for each category in Nixon, Shaffer and Moore? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Nixon, Shaffer and Moore' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Odom-Woodward 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 = 'Odom-Woodward' + 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 Stein-Santana? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Stein-Santana' + +Natural Query: List all customers and their total order value for Gutierrez 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 = 'Gutierrez Ltd' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Jackson, Allen and Dorsey. +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 = 'Jackson, Allen and Dorsey' GROUP BY c.customer_id + +Natural Query: What are the top 8 products by sales for Foley-Gutierrez this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Foley-Gutierrez' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: Show me all products in the do category with a price over $974.04. +SQL Query: SELECT * FROM products WHERE category = 'do' AND price > 974.04 + +Natural Query: How many orders were placed for Duran, Cook and Meyer between 2024-03-13 and 2024-06-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Duran, Cook and Meyer' AND order_date BETWEEN '2024-03-13' AND '2024-06-03' + +Natural Query: What are the top 10 products by sales for Brown PLC this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Brown PLC' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: List all products of Michael, Clayton and Moore ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Michael, Clayton and Moore' ORDER BY price DESC + +Natural Query: Show me all products in the what category with a price over $361.51. +SQL Query: SELECT * FROM products WHERE category = 'what' AND price > 361.51 + +Natural Query: What is the total quantity for each category in Clark and Sons? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Clark and Sons' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all products of Garcia, Burns and Hensley ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Garcia, Burns and Hensley' ORDER BY price DESC + +Natural Query: What are the top 8 products by customers for Brown Inc this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Brown Inc' 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 Henry-Reese 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 = 'Henry-Reese' + 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 Montgomery and Sons ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Montgomery and Sons' ORDER BY rating DESC + +Natural Query: How many orders were placed for Wagner-Johnson between 2024-06-06 and 2024-08-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wagner-Johnson' AND order_date BETWEEN '2024-06-06' AND '2024-08-09' + +Natural Query: What is the maximum quantity of all products for Graham PLC? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Graham PLC' + +Natural Query: How many orders were placed for Becker, Brooks and Huang between 2023-11-30 and 2024-04-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Becker, Brooks and Huang' AND order_date BETWEEN '2023-11-30' AND '2024-04-12' + +Natural Query: How many orders were placed for Pacheco Group between 2024-01-30 and 2024-07-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Pacheco Group' AND order_date BETWEEN '2024-01-30' AND '2024-07-11' + +Natural Query: List all customers and their total order value for Williamson, Bailey and Wong. +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 = 'Williamson, Bailey and Wong' GROUP BY c.customer_id + +Natural Query: List all products of Craig and Sons ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Craig and Sons' ORDER BY price DESC + +Natural Query: What is the minimum rating of all products for Brown Group? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Brown Group' + +Natural Query: What is the total sales for each supplier in Patel and Sons? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Patel and Sons' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all products of Donaldson Inc ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Donaldson Inc' ORDER BY rating DESC + +Natural Query: What are the top 6 products by orders for Johnson-Griffin this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Johnson-Griffin' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: What is the total quantity for each country in Bryant Inc? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Bryant Inc' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the total profit for each country in Jones, Scott and Estes? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Jones, Scott and Estes' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all products of Alvarez, Contreras and Graves ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Alvarez, Contreras and Graves' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Martinez 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 = 'Martinez PLC' GROUP BY c.customer_id + +Natural Query: What are the top 9 products by revenue for Thomas, Maldonado and Case last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Thomas, Maldonado and Case' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: What is the maximum rating of all products for Brandt Ltd? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Brandt Ltd' + +Natural Query: How many orders were placed for Adkins-Terry between 2024-05-14 and 2024-07-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Adkins-Terry' AND order_date BETWEEN '2024-05-14' AND '2024-07-10' + +Natural Query: What are the top 9 products by sales for Stafford Group this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Stafford Group' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: What are the top 3 products by orders for Wang, Todd and Parker this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Wang, Todd and Parker' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: List all products of Weaver, Lewis and Richards ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Weaver, Lewis and Richards' ORDER BY price DESC + +Natural Query: How many orders were placed for Hudson and Sons between 2024-06-27 and 2024-08-31? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hudson and Sons' AND order_date BETWEEN '2024-06-27' AND '2024-08-31' + +Natural Query: What are the top 9 products by customers for Perez Ltd this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Perez Ltd' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: What are the top 8 products by customers for Jones, Banks and Fritz all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Jones, Banks and Fritz' AND period = 'all time' 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 Mann, Watkins and Madden 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 = 'Mann, Watkins and Madden' + 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 Vargas 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 = 'Vargas 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 Brock-Garcia. +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 = 'Brock-Garcia' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Jimenez-Owens between 2024-02-24 and 2024-03-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jimenez-Owens' AND order_date BETWEEN '2024-02-24' AND '2024-03-09' + +Natural Query: List all products of Weaver-Perkins ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Weaver-Perkins' ORDER BY stock_quantity DESC + +Natural Query: What is the average rating of all products for Sellers LLC? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Sellers LLC' + +Natural Query: What is the total quantity for each supplier in Gross PLC? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Gross PLC' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the maximum rating of all products for Conley, Kelly and Oliver? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Conley, Kelly and Oliver' + +Natural Query: List all products of Francis, Martin and Taylor ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Francis, Martin and Taylor' ORDER BY stock_quantity ASC + +Natural Query: What is the total quantity for each category in Williams-Long? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Williams-Long' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 5 products by sales for Holmes-Hernandez all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Holmes-Hernandez' 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 Powell-Cervantes 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 = 'Powell-Cervantes' + 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 Wilson Ltd? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Wilson Ltd' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Phillips PLC between 2023-10-09 and 2024-04-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Phillips PLC' AND order_date BETWEEN '2023-10-09' AND '2024-04-10' + +Natural Query: What is the total profit for each category in Harper-Madden? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Harper-Madden' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Johnson-Leon 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-Leon' + 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 Stevens, Moody and Pena between 2024-01-30 and 2024-08-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Stevens, Moody and Pena' AND order_date BETWEEN '2024-01-30' AND '2024-08-14' + +Natural Query: How many orders were placed for Walker, Sandoval and Weber between 2024-07-22 and 2024-09-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Walker, Sandoval and Weber' AND order_date BETWEEN '2024-07-22' AND '2024-09-09' + +Natural Query: How many orders were placed for Salazar, Fuller and Phillips between 2024-01-19 and 2024-06-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Salazar, Fuller and Phillips' AND order_date BETWEEN '2024-01-19' AND '2024-06-19' + +Natural Query: Show me all products in the sometimes category with a price over $553.03. +SQL Query: SELECT * FROM products WHERE category = 'sometimes' AND price > 553.03 + +Natural Query: List all customers and their total order value for Bailey 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 = 'Bailey Group' GROUP BY c.customer_id + +Natural Query: What are the top 10 products by customers for Mccoy-Cooper all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Mccoy-Cooper' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10 + +Natural Query: What is the total profit for each country in Benjamin LLC? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Benjamin LLC' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 4 products by revenue for Bonilla LLC last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Bonilla LLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: What are the top 10 products by customers for Gallegos, Adams and Walker last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Gallegos, Adams and Walker' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10 + +Natural Query: What are the top 4 products by revenue for Price and Sons all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Price and Sons' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: What is the total profit for each category in Golden-Villanueva? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Golden-Villanueva' GROUP BY category ORDER BY total_profit DESC + +Natural Query: List all products of Hill, Gonzalez and Schroeder ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hill, Gonzalez and Schroeder' ORDER BY price ASC + +Natural Query: What are the top 3 products by customers for Jones LLC this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Jones LLC' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: Show me all products in the attorney category with a price over $802.45. +SQL Query: SELECT * FROM products WHERE category = 'attorney' AND price > 802.45 + +Natural Query: List all customers and their total order value for Livingston 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 = 'Livingston LLC' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Padilla-Lindsey between 2023-10-23 and 2024-03-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Padilla-Lindsey' AND order_date BETWEEN '2023-10-23' AND '2024-03-26' + +Natural Query: List all products of Mccoy-Williams ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mccoy-Williams' ORDER BY price DESC + +Natural Query: List all products of Diaz, Wilson and Wong ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Diaz, Wilson and Wong' ORDER BY rating DESC + +Natural Query: Show me all products in the seem category with a price over $449.78. +SQL Query: SELECT * FROM products WHERE category = 'seem' AND price > 449.78 + +Natural Query: What is the total profit for each country in Long Ltd? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Long Ltd' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Garrison 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 = 'Garrison 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 are the top 5 categories by sales for customers aged 25-35 in White, Adkins and Gonzales 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 = 'White, Adkins and Gonzales' + 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 Anderson-Wheeler? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Anderson-Wheeler' + +Natural Query: What are the top 9 products by sales for Morgan-Wilson this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Morgan-Wilson' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: Show me all products in the life category with a price over $306.74. +SQL Query: SELECT * FROM products WHERE category = 'life' AND price > 306.74 + +Natural Query: List all products of Vaughn Inc ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Vaughn Inc' ORDER BY price ASC + +Natural Query: How many orders were placed for Neal-Rodriguez between 2023-10-24 and 2024-06-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Neal-Rodriguez' AND order_date BETWEEN '2023-10-24' AND '2024-06-05' + +Natural Query: What is the total quantity for each supplier in Wilson, Harris and Hobbs? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Wilson, Harris and Hobbs' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all products of Gonzalez-Rogers ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gonzalez-Rogers' ORDER BY rating DESC + +Natural Query: What is the maximum rating of all products for Christensen-Meza? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Christensen-Meza' + +Natural Query: How many orders were placed for Baldwin, Woodard and Gutierrez between 2024-08-25 and 2024-08-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Baldwin, Woodard and Gutierrez' AND order_date BETWEEN '2024-08-25' AND '2024-08-27' + +Natural Query: List all products of Garcia-Murray ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Garcia-Murray' ORDER BY price ASC + +Natural Query: What is the average price of all products for Stewart, Mason and Shannon? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Stewart, Mason and Shannon' + +Natural Query: What are the top 3 products by customers for Bailey, Valdez and Lyons all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Bailey, Valdez and Lyons' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: What is the average price of all products for Knight and Sons? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Knight and Sons' + +Natural Query: List all products of Walker-Henderson ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Walker-Henderson' ORDER BY rating DESC + +Natural Query: What is the total quantity of all products for Aguirre-Moore? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Aguirre-Moore' + +Natural Query: What is the minimum rating of all products for Alvarez-Park? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Alvarez-Park' + +Natural Query: Show me all products in the right category with a price over $163.01. +SQL Query: SELECT * FROM products WHERE category = 'right' AND price > 163.01 + +Natural Query: List all products of Goodwin-Austin ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Goodwin-Austin' ORDER BY stock_quantity DESC + +Natural Query: Show me all products in the perform category with a price over $520.27. +SQL Query: SELECT * FROM products WHERE category = 'perform' AND price > 520.27 + +Natural Query: Show me all products in the issue category with a price over $942.99. +SQL Query: SELECT * FROM products WHERE category = 'issue' AND price > 942.99 + +Natural Query: What is the total sales for each supplier in Buchanan, Brown and Mckinney? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Buchanan, Brown and Mckinney' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Smith-Arnold 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 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 orders for Barrett, Sanders and Orozco last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Barrett, Sanders and Orozco' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: List all products of Larson-Smith ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Larson-Smith' ORDER BY price ASC + +Natural Query: Show me all products in the perhaps category with a price over $399.75. +SQL Query: SELECT * FROM products WHERE category = 'perhaps' AND price > 399.75 + +Natural Query: List all products of Mccoy-Conley ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mccoy-Conley' ORDER BY rating ASC + +Natural Query: What is the total price of all products for Meza-Perkins? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Meza-Perkins' + +Natural Query: How many orders were placed for Shaffer Ltd between 2023-12-03 and 2024-07-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Shaffer Ltd' AND order_date BETWEEN '2023-12-03' AND '2024-07-04' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Morgan, Orr and Matthews 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 = 'Morgan, Orr and Matthews' + 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 Wade 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 = 'Wade Inc' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Rios-Clark 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 = 'Rios-Clark' + 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 PLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Crawford PLC' ORDER BY stock_quantity DESC + +Natural Query: What is the total profit for each country in Romero, Wilcox and Williams? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Romero, Wilcox and Williams' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all products of Mccann-Holland ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mccann-Holland' ORDER BY price ASC + +Natural Query: Show me all products in the than category with a price over $258.08. +SQL Query: SELECT * FROM products WHERE category = 'than' AND price > 258.08 + +Natural Query: Show me all products in the top category with a price over $624.99. +SQL Query: SELECT * FROM products WHERE category = 'top' AND price > 624.99 + +Natural Query: What are the top 4 products by customers for Ward Ltd last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Ward Ltd' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: How many orders were placed for King, Thomas and Evans between 2024-03-27 and 2024-09-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'King, Thomas and Evans' AND order_date BETWEEN '2024-03-27' AND '2024-09-14' + +Natural Query: What is the average price of all products for Weber-Dennis? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Weber-Dennis' + +Natural Query: How many orders were placed for Smith Group between 2024-04-19 and 2024-06-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Smith Group' AND order_date BETWEEN '2024-04-19' AND '2024-06-29' + +Natural Query: How many orders were placed for Graves and Sons between 2024-06-21 and 2024-06-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Graves and Sons' AND order_date BETWEEN '2024-06-21' AND '2024-06-28' + +Natural Query: List all products of Payne, Mcgrath and Montgomery ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Payne, Mcgrath and Montgomery' ORDER BY rating ASC + +Natural Query: Show me all products in the series category with a price over $714.09. +SQL Query: SELECT * FROM products WHERE category = 'series' AND price > 714.09 + +Natural Query: List all products of Mooney PLC ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mooney PLC' ORDER BY rating ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Garcia, Powell and Hill 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, Powell and Hill' + 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 Fox, Rose and Cruz? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Fox, Rose and Cruz' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Robinson-Yates 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 = 'Robinson-Yates' + 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 Armstrong Group between 2024-04-26 and 2024-07-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Armstrong Group' AND order_date BETWEEN '2024-04-26' AND '2024-07-17' + +Natural Query: What is the total quantity for each category in Moore PLC? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Moore PLC' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Howard 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 = 'Howard and Sons' GROUP BY c.customer_id + +Natural Query: What is the total profit for each country in Poole-Johnson? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Poole-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 Gordon 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 = 'Gordon 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 9 products by customers for Levy-Blanchard all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Levy-Blanchard' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: How many orders were placed for Graves Ltd between 2024-05-03 and 2024-07-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Graves Ltd' AND order_date BETWEEN '2024-05-03' AND '2024-07-14' + +Natural Query: Show me all products in the within category with a price over $285.68. +SQL Query: SELECT * FROM products WHERE category = 'within' AND price > 285.68 + +Natural Query: What is the average quantity of all products for Snyder, Kelly and Anderson? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Snyder, Kelly and Anderson' + +Natural Query: Show me all products in the local category with a price over $756.21. +SQL Query: SELECT * FROM products WHERE category = 'local' AND price > 756.21 + +Natural Query: What are the top 6 products by sales for Strickland and Sons all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Strickland and Sons' AND period = 'all time' 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 Johnson 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 = 'Johnson 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 Romero 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 = 'Romero 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 Sanders 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 = 'Sanders 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 quantity for each supplier in Bell PLC? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Bell PLC' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all products of Young-Knight ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Young-Knight' ORDER BY price DESC + +Natural Query: What are the top 5 products by revenue for Watson-Moore this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Watson-Moore' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: What is the total sales for each category in Mullins-Gray? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Mullins-Gray' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the total quantity of all products for Davis, Simmons and Taylor? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Davis, Simmons and Taylor' + +Natural Query: List all products of Smith-Huang ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith-Huang' ORDER BY rating ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Watkins 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 = 'Watkins 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 products of Davis, Gould and Velazquez ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Davis, Gould and Velazquez' ORDER BY rating DESC + +Natural Query: List all products of Guzman, Davis and Anderson ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Guzman, Davis and Anderson' ORDER BY rating ASC + +Natural Query: What are the top 10 products by customers for Goodwin, Mcintyre and Olson this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Goodwin, Mcintyre and Olson' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10 + +Natural Query: List all products of Baldwin, Santiago and Edwards ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Baldwin, Santiago and Edwards' ORDER BY stock_quantity DESC + +Natural Query: How many orders were placed for Anderson and Sons between 2024-05-04 and 2024-07-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Anderson and Sons' AND order_date BETWEEN '2024-05-04' AND '2024-07-01' + +Natural Query: How many orders were placed for Collins, Reyes and Gray between 2023-12-30 and 2024-02-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Collins, Reyes and Gray' AND order_date BETWEEN '2023-12-30' AND '2024-02-17' + +Natural Query: What is the average rating of all products for Bryant PLC? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Bryant PLC' + +Natural Query: What is the total profit for each category in Bishop PLC? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Bishop PLC' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Davidson, Vasquez and 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 = 'Davidson, Vasquez and 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 Foley, Mason and Hawkins. +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 = 'Foley, Mason and Hawkins' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Schwartz, Cruz and Martinez between 2024-04-29 and 2024-05-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Schwartz, Cruz and Martinez' AND order_date BETWEEN '2024-04-29' AND '2024-05-12' + +Natural Query: List all products of Rivas, Campbell and Moore ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rivas, Campbell and Moore' ORDER BY rating DESC + +Natural Query: List all products of Arnold-Taylor ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Arnold-Taylor' ORDER BY stock_quantity DESC + +Natural Query: What is the total sales for each country in Williams and Sons? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Williams and Sons' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Baker, Thompson and 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 = 'Baker, Thompson and Moore' + 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 9 products by sales for Dalton, Powers and Baker this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Dalton, Powers and Baker' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: What are the top 8 products by revenue for White-Williams last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'White-Williams' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: List all products of Williams, Reeves and Lawrence ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Williams, Reeves and Lawrence' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Thompson 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 = 'Thompson PLC' GROUP BY c.customer_id + +Natural Query: What are the top 6 products by customers for Smith Inc this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Smith Inc' 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 Price 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 = 'Price 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 total sales for each category in Levine, Davis and Alvarez? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Levine, Davis and Alvarez' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the total sales for each country in Jimenez-Welch? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Jimenez-Welch' GROUP BY country ORDER BY total_sales DESC + +Natural Query: Show me all products in the Mrs category with a price over $694.69. +SQL Query: SELECT * FROM products WHERE category = 'Mrs' AND price > 694.69 + +Natural Query: List all products of Perez Ltd ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Perez Ltd' ORDER BY price DESC + +Natural Query: What is the total quantity of all products for Freeman Ltd? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Freeman Ltd' + +Natural Query: How many orders were placed for Dixon-Bright between 2024-06-13 and 2024-09-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Dixon-Bright' AND order_date BETWEEN '2024-06-13' AND '2024-09-04' + +Natural Query: How many orders were placed for Huff, Meyers and Jackson between 2024-07-16 and 2024-08-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Huff, Meyers and Jackson' AND order_date BETWEEN '2024-07-16' AND '2024-08-25' + +Natural Query: Show me all products in the attack category with a price over $531.55. +SQL Query: SELECT * FROM products WHERE category = 'attack' AND price > 531.55 + +Natural Query: What are the top 4 products by sales for Henry LLC last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Henry LLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: What are the top 5 products by sales for Williams Group this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Williams Group' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: List all products of Johnson-Mullen ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Johnson-Mullen' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Garcia 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 = 'Garcia Ltd' GROUP BY c.customer_id + +Natural Query: What are the top 6 products by revenue for Roberts, Clayton and Clark all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Roberts, Clayton and Clark' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: What is the total rating of all products for King, Stewart and Cohen? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'King, Stewart and Cohen' + +Natural Query: How many orders were placed for Robinson, Wilson and Gutierrez between 2023-09-24 and 2024-03-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Robinson, Wilson and Gutierrez' AND order_date BETWEEN '2023-09-24' AND '2024-03-28' + +Natural Query: How many orders were placed for Williams, Larsen and Murphy between 2024-07-30 and 2024-08-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Williams, Larsen and Murphy' AND order_date BETWEEN '2024-07-30' AND '2024-08-23' + +Natural Query: What is the maximum price of all products for Ross-Vargas? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Ross-Vargas' + +Natural Query: What are the top 8 products by customers for Yang Group all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Yang Group' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: What is the maximum rating of all products for Scott-Miller? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Scott-Miller' + +Natural Query: List all products of King, Lowe and Townsend ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'King, Lowe and Townsend' ORDER BY stock_quantity ASC + +Natural Query: Show me all products in the health category with a price over $755.82. +SQL Query: SELECT * FROM products WHERE category = 'health' AND price > 755.82 + +Natural Query: List all products of Wise-Wood ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wise-Wood' ORDER BY stock_quantity DESC + +Natural Query: What is the average quantity of all products for Gonzalez-Parker? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Gonzalez-Parker' + +Natural Query: What is the minimum quantity of all products for Watson, White and Ellis? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Watson, White and Ellis' + +Natural Query: What is the average quantity of all products for Smith-Price? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Smith-Price' + +Natural Query: How many orders were placed for Morgan, Garrett and Gray between 2024-04-28 and 2024-04-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Morgan, Garrett and Gray' AND order_date BETWEEN '2024-04-28' AND '2024-04-30' + +Natural Query: What are the top 4 products by sales for Kelly-Santana this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Kelly-Santana' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: List all products of Reynolds-Rodriguez ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Reynolds-Rodriguez' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Jackson 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 = 'Jackson PLC' GROUP BY c.customer_id + +Natural Query: List all products of Allen Inc ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Allen Inc' ORDER BY price DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Taylor 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 = 'Taylor 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 Shepard 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 = 'Shepard 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 5 categories by sales for customers aged 25-35 in Fisher, Grimes and Page 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 = 'Fisher, Grimes and Page' + 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 eye category with a price over $106.6. +SQL Query: SELECT * FROM products WHERE category = 'eye' AND price > 106.6 + +Natural Query: What is the total quantity for each supplier in Suarez-Jackson? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Suarez-Jackson' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the total quantity for each supplier in Summers, Lawrence and Cunningham? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Summers, Lawrence and Cunningham' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the total sales for each supplier in Sampson-Owens? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Sampson-Owens' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Farmer, Herring and Mora. +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 = 'Farmer, Herring and Mora' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Young, Long and Figueroa. +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, Long and Figueroa' GROUP BY c.customer_id + +Natural Query: What is the average quantity of all products for Vasquez-Wilson? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Vasquez-Wilson' + +Natural Query: What are the top 6 products by revenue for Johnson Ltd this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Johnson Ltd' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: What is the average quantity of all products for Wood-Perry? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Wood-Perry' + +Natural Query: List all products of Brown-Webb ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Brown-Webb' ORDER BY stock_quantity ASC + +Natural Query: What is the average rating of all products for Graham Ltd? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Graham Ltd' + +Natural Query: What is the total quantity for each country in Wright, Wilson and Sanchez? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Wright, Wilson and Sanchez' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Sanchez, Wilson and 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 = 'Sanchez, Wilson and 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 products of Martin, Silva and Stewart ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Martin, Silva and Stewart' ORDER BY stock_quantity ASC + +Natural Query: What are the top 8 products by sales for Jones-Jacobs all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Jones-Jacobs' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: What is the total profit for each country in Burke and Sons? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Burke and Sons' GROUP BY country ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Solomon LLC between 2024-05-21 and 2024-09-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Solomon LLC' AND order_date BETWEEN '2024-05-21' AND '2024-09-10' + +Natural Query: List all customers and their total order value for Wyatt 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 = 'Wyatt PLC' GROUP BY c.customer_id + +Natural Query: What is the total sales for each category in Murphy, Bennett and Tate? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Murphy, Bennett and Tate' GROUP BY category ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Hudson PLC between 2023-09-24 and 2024-08-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hudson PLC' AND order_date BETWEEN '2023-09-24' AND '2024-08-20' + +Natural Query: What are the top 8 products by customers for Mejia, Dawson and Simon this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Mejia, Dawson and Simon' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: List all products of Reyes-Kline ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Reyes-Kline' ORDER BY price DESC + +Natural Query: What are the top 5 products by customers for Rodriguez-Cooke this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Rodriguez-Cooke' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: What is the maximum price of all products for Sanchez, Williams and Ramirez? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Sanchez, Williams and Ramirez' + +Natural Query: List all products of Mathis and Sons ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mathis and Sons' ORDER BY rating DESC + +Natural Query: List all products of Kelly, Fleming and Gilbert ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Kelly, Fleming and Gilbert' ORDER BY stock_quantity ASC + +Natural Query: List all customers and their total order value for Christian 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 = 'Christian Inc' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Ramirez-Carter between 2023-12-29 and 2024-08-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ramirez-Carter' AND order_date BETWEEN '2023-12-29' AND '2024-08-10' + +Natural Query: How many orders were placed for Walters-Decker between 2024-05-25 and 2024-08-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Walters-Decker' AND order_date BETWEEN '2024-05-25' AND '2024-08-25' + +Natural Query: What is the total profit for each supplier in Duncan-Lewis? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Duncan-Lewis' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the maximum rating of all products for Phillips Ltd? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Phillips Ltd' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Baker, Gonzalez and Gray 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, Gonzalez and Gray' + 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 Clayton 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 = 'Clayton LLC' GROUP BY c.customer_id + +Natural Query: What is the total profit for each country in Weaver-Smith? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Weaver-Smith' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What is the total profit for each supplier in Kim-Wall? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Kim-Wall' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the maximum price of all products for Jackson-Williams? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Jackson-Williams' + +Natural Query: What is the total quantity for each supplier in Lowe and Sons? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Lowe and Sons' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Lee 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 = 'Lee PLC' GROUP BY c.customer_id + +Natural Query: List all products of Young, Howard and Harvey ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Young, Howard and Harvey' ORDER BY stock_quantity ASC + +Natural Query: What is the total sales for each supplier in Miller Group? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Miller Group' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Thompson 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 = 'Thompson Group' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Brown-Oconnor between 2024-07-04 and 2024-08-02? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Brown-Oconnor' AND order_date BETWEEN '2024-07-04' AND '2024-08-02' + +Natural Query: What is the average quantity of all products for Villarreal-Turner? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Villarreal-Turner' + +Natural Query: How many orders were placed for Montoya Group between 2024-06-24 and 2024-06-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Montoya Group' AND order_date BETWEEN '2024-06-24' AND '2024-06-26' + +Natural Query: What are the top 6 products by revenue for Serrano, Mendoza and Mcdaniel this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Serrano, Mendoza and Mcdaniel' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: Show me all products in the cup category with a price over $997.19. +SQL Query: SELECT * FROM products WHERE category = 'cup' AND price > 997.19 + +Natural Query: Show me all products in the trial category with a price over $275.0. +SQL Query: SELECT * FROM products WHERE category = 'trial' AND price > 275.0 + +Natural Query: What is the total sales for each country in Aguirre Group? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Aguirre Group' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Miller-Collins. +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-Collins' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Kelly 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 = 'Kelly 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 James, Green and Ibarra. +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 = 'James, Green and Ibarra' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Castillo-Harper between 2024-07-20 and 2024-09-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Castillo-Harper' AND order_date BETWEEN '2024-07-20' AND '2024-09-08' + +Natural Query: How many orders were placed for Johnston-Underwood between 2024-01-17 and 2024-05-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Johnston-Underwood' AND order_date BETWEEN '2024-01-17' AND '2024-05-21' + +Natural Query: What is the total quantity of all products for Morales, Ross and Cox? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Morales, Ross and Cox' + +Natural Query: List all customers and their total order value for Taylor 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 = 'Taylor Inc' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Mosley, Walker and Cohen. +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 = 'Mosley, Walker and Cohen' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Robinson, Norris and 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 = 'Robinson, Norris and Lopez' GROUP BY c.customer_id + +Natural Query: What are the top 9 products by customers for Bradley PLC this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Bradley PLC' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: Show me all products in the community category with a price over $554.92. +SQL Query: SELECT * FROM products WHERE category = 'community' AND price > 554.92 + +Natural Query: What are the top 10 products by orders for Munoz, Hernandez and Barrett last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Munoz, Hernandez and Barrett' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: How many orders were placed for Castillo, Beck and Harrison between 2024-07-20 and 2024-07-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Castillo, Beck and Harrison' AND order_date BETWEEN '2024-07-20' AND '2024-07-24' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Howard 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 = 'Howard PLC' + 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 run category with a price over $18.6. +SQL Query: SELECT * FROM products WHERE category = 'run' AND price > 18.6 + +Natural Query: Show me all products in the report category with a price over $662.65. +SQL Query: SELECT * FROM products WHERE category = 'report' AND price > 662.65 + +Natural Query: What are the top 9 products by revenue for Gray-Palmer this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Gray-Palmer' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: What is the maximum quantity of all products for Fletcher, Woods and Strickland? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Fletcher, Woods and Strickland' + +Natural Query: What is the minimum price of all products for Dean-Davis? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Dean-Davis' + +Natural Query: How many orders were placed for Higgins Ltd between 2023-10-12 and 2024-03-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Higgins Ltd' AND order_date BETWEEN '2023-10-12' AND '2024-03-10' + +Natural Query: What is the total price of all products for Smith-Knox? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Smith-Knox' + +Natural Query: What is the total profit for each supplier in David-Johnson? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'David-Johnson' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: Show me all products in the positive category with a price over $150.91. +SQL Query: SELECT * FROM products WHERE category = 'positive' AND price > 150.91 + +Natural Query: What is the total profit for each country in Stevens, Fuentes and Lloyd? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Stevens, Fuentes and Lloyd' GROUP BY country ORDER BY total_profit DESC + +Natural Query: Show me all products in the room category with a price over $17.81. +SQL Query: SELECT * FROM products WHERE category = 'room' AND price > 17.81 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Pratt 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 = 'Pratt 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 Jennings Group ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jennings Group' ORDER BY rating ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Leon-Walters 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 = 'Leon-Walters' + 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 goal category with a price over $750.96. +SQL Query: SELECT * FROM products WHERE category = 'goal' AND price > 750.96 + +Natural Query: List all customers and their total order value for Lopez, Johnson 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 = 'Lopez, Johnson and Smith' GROUP BY c.customer_id + +Natural Query: What are the top 9 products by orders for Baldwin, Hoover and Keller all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Baldwin, Hoover and Keller' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: List all products of Martin-Mendoza ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Martin-Mendoza' ORDER BY stock_quantity ASC + +Natural Query: What is the maximum price of all products for Knight-Leon? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Knight-Leon' + +Natural Query: What is the total profit for each supplier in Roth-Conner? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Roth-Conner' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all products of Hammond, Foster and Rodriguez ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hammond, Foster and Rodriguez' ORDER BY price DESC + +Natural Query: Show me all products in the data category with a price over $490.61. +SQL Query: SELECT * FROM products WHERE category = 'data' AND price > 490.61 + +Natural Query: What are the top 9 products by revenue for Hall PLC last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Hall PLC' AND period = 'last quarter' 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 King, Hines 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 = 'King, Hines 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 10 products by orders for Hooper LLC all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Hooper LLC' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: What are the top 6 products by customers for Camacho LLC last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Camacho LLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: List all products of Gordon LLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gordon LLC' ORDER BY stock_quantity DESC + +Natural Query: What are the top 3 products by sales for Washington-Herrera this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Washington-Herrera' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: How many orders were placed for Wood Inc between 2023-10-17 and 2023-11-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wood Inc' AND order_date BETWEEN '2023-10-17' AND '2023-11-21' + +Natural Query: What is the maximum quantity of all products for Nelson and Sons? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Nelson and Sons' + +Natural Query: List all products of Davis-Curtis ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Davis-Curtis' ORDER BY price ASC + +Natural Query: List all products of Allison, White and Smith ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Allison, White and Smith' ORDER BY price DESC + +Natural Query: How many orders were placed for Jackson Ltd between 2024-08-08 and 2024-09-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jackson Ltd' AND order_date BETWEEN '2024-08-08' AND '2024-09-07' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Torres, Owen and Wilcox 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, Owen and Wilcox' + 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 Cline-Thompson? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Cline-Thompson' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Jones-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 = 'Jones-Smith' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Ware 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 = 'Ware Group' GROUP BY c.customer_id + +Natural Query: Show me all products in the level category with a price over $835.85. +SQL Query: SELECT * FROM products WHERE category = 'level' AND price > 835.85 + +Natural Query: List all products of Jordan, Curry and Bush ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jordan, Curry and Bush' ORDER BY rating ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Stevens, Ross 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 = 'Stevens, Ross 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 is the total quantity of all products for Briggs, Turner and Garcia? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Briggs, Turner and Garcia' + +Natural Query: Show me all products in the seem category with a price over $433.05. +SQL Query: SELECT * FROM products WHERE category = 'seem' AND price > 433.05 + +Natural Query: What is the average rating of all products for Gray-Ramos? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Gray-Ramos' + +Natural Query: List all products of Webster Ltd ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Webster Ltd' ORDER BY price DESC + +Natural Query: Show me all products in the true category with a price over $772.92. +SQL Query: SELECT * FROM products WHERE category = 'true' AND price > 772.92 + +Natural Query: What is the maximum rating of all products for Martin LLC? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Martin LLC' + +Natural Query: Show me all products in the behind category with a price over $900.1. +SQL Query: SELECT * FROM products WHERE category = 'behind' AND price > 900.1 + +Natural Query: List all products of Tucker-Hart ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Tucker-Hart' ORDER BY price DESC + +Natural Query: List all products of Walter-Jones ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Walter-Jones' ORDER BY rating DESC + +Natural Query: How many orders were placed for Soto, Miller and Macdonald between 2024-04-25 and 2024-06-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Soto, Miller and Macdonald' AND order_date BETWEEN '2024-04-25' AND '2024-06-10' + +Natural Query: What is the total quantity for each category in Strickland-Moreno? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Strickland-Moreno' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: Show me all products in the leg category with a price over $483.92. +SQL Query: SELECT * FROM products WHERE category = 'leg' AND price > 483.92 + +Natural Query: List all products of Morales-Barry ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Morales-Barry' ORDER BY rating DESC + +Natural Query: Show me all products in the analysis category with a price over $508.29. +SQL Query: SELECT * FROM products WHERE category = 'analysis' AND price > 508.29 + +Natural Query: List all products of Stewart-Escobar ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Stewart-Escobar' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Smith, Hammond and Harrington. +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, Hammond and Harrington' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Smith, Travis and Perez between 2024-08-10 and 2024-08-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Smith, Travis and Perez' AND order_date BETWEEN '2024-08-10' AND '2024-08-20' + +Natural Query: What is the minimum rating of all products for Lloyd-Pratt? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Lloyd-Pratt' + +Natural Query: What is the average rating of all products for Walters Inc? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Walters Inc' + +Natural Query: What is the total sales for each country in Scott Ltd? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Scott Ltd' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 10 products by customers for Morales, Schmidt and Nguyen this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Morales, Schmidt and Nguyen' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10 + +Natural Query: What is the total profit for each country in Barton-Clark? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Barton-Clark' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What is the total quantity for each category in Black-Grant? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Black-Grant' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the total profit for each supplier in George-Faulkner? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'George-Faulkner' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: Show me all products in the bag category with a price over $808.8. +SQL Query: SELECT * FROM products WHERE category = 'bag' AND price > 808.8 + +Natural Query: List all customers and their total order value for Armstrong 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 = 'Armstrong and Sons' GROUP BY c.customer_id + +Natural Query: Show me all products in the today category with a price over $176.44. +SQL Query: SELECT * FROM products WHERE category = 'today' AND price > 176.44 + +Natural Query: How many orders were placed for Clark PLC between 2024-05-22 and 2024-07-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Clark PLC' AND order_date BETWEEN '2024-05-22' AND '2024-07-09' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Sheppard 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 = 'Sheppard 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 total rating of all products for Hall LLC? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Hall LLC' + +Natural Query: List all customers and their total order value for Swanson 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 = 'Swanson Group' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Jennings, Quinn and Bond 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 = 'Jennings, Quinn and Bond' + 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 orders for George, Hall and Griffin last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'George, Hall and Griffin' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: List all customers and their total order value for Vasquez, Baird and Myers. +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 = 'Vasquez, Baird and Myers' GROUP BY c.customer_id + +Natural Query: What is the maximum rating of all products for Williams-Rush? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Williams-Rush' + +Natural Query: What is the total quantity for each category in Duncan, King and Pacheco? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Duncan, King and Pacheco' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the total quantity for each category in Jones, Friedman and Rivas? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Jones, Friedman and Rivas' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all products of Solis-Sharp ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Solis-Sharp' ORDER BY rating ASC + +Natural Query: List all products of Collins-Fisher ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Collins-Fisher' ORDER BY stock_quantity ASC + +Natural Query: List all products of Hunter, Bates and Nelson ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hunter, Bates and Nelson' ORDER BY stock_quantity ASC + +Natural Query: How many orders were placed for Graham-Moore between 2024-02-12 and 2024-03-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Graham-Moore' AND order_date BETWEEN '2024-02-12' AND '2024-03-17' + +Natural Query: List all customers and their total order value for Davis-Montgomery. +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 = 'Davis-Montgomery' GROUP BY c.customer_id + +Natural Query: What are the top 10 products by orders for Howell Inc all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Howell Inc' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: What is the total price of all products for Mueller LLC? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Mueller LLC' + +Natural Query: What is the total sales for each supplier in Clark and Sons? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Clark and Sons' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Allen, Gonzalez and Holt between 2023-12-24 and 2024-09-02? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Allen, Gonzalez and Holt' AND order_date BETWEEN '2023-12-24' AND '2024-09-02' + +Natural Query: What are the top 8 products by sales for Rhodes-Chase this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Rhodes-Chase' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: How many orders were placed for Rivera, Stevenson and Harding between 2024-02-22 and 2024-07-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Rivera, Stevenson and Harding' AND order_date BETWEEN '2024-02-22' AND '2024-07-06' + +Natural Query: What are the top 7 products by revenue for Sanders Ltd all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Sanders Ltd' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: List all products of Banks, Becker and Salas ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Banks, Becker and Salas' ORDER BY rating ASC + +Natural Query: What are the top 6 products by sales for Andrews, Snyder and Taylor last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Andrews, Snyder and Taylor' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: List all customers and their total order value for Craig-Vasquez. +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 = 'Craig-Vasquez' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Hamilton 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 = 'Hamilton Group' GROUP BY c.customer_id + +Natural Query: What is the minimum rating of all products for Bowers and Sons? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Bowers and Sons' + +Natural Query: List all customers and their total order value for Leonard-Martin. +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 = 'Leonard-Martin' GROUP BY c.customer_id + +Natural Query: List all products of Black-Cooper ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Black-Cooper' ORDER BY stock_quantity ASC + +Natural Query: List all customers and their total order value for Petersen 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 = 'Petersen Inc' GROUP BY c.customer_id + +Natural Query: Show me all products in the partner category with a price over $688.29. +SQL Query: SELECT * FROM products WHERE category = 'partner' AND price > 688.29 + +Natural Query: List all products of Fischer and Sons ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Fischer and Sons' ORDER BY price DESC + +Natural Query: How many orders were placed for Taylor, Lopez and Johnson between 2024-05-31 and 2024-08-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Taylor, Lopez and Johnson' AND order_date BETWEEN '2024-05-31' AND '2024-08-16' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Murphy, Hoffman 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 = 'Murphy, Hoffman 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: What are the top 8 products by sales for Carter, Rios and Hill this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Carter, Rios and Hill' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: What is the maximum quantity of all products for Morales, Lucas and Peterson? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Morales, Lucas and Peterson' + +Natural Query: What are the top 9 products by revenue for Smith-Robertson last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Smith-Robertson' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: What are the top 7 products by customers for Greene, Trevino and Park all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Greene, Trevino and Park' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: List all products of Nelson Inc ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Nelson Inc' ORDER BY price DESC + +Natural Query: What are the top 5 products by sales for Fitzgerald Ltd all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Fitzgerald Ltd' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: What is the total rating of all products for Anderson Ltd? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Anderson Ltd' + +Natural Query: What are the top 4 products by customers for Mcdonald, Byrd and Thompson this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Mcdonald, Byrd and Thompson' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: List all customers and their total order value for Calderon-David. +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 = 'Calderon-David' GROUP BY c.customer_id + +Natural Query: List all products of Hughes, Simmons and White ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hughes, Simmons and White' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Rose 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 = 'Rose Ltd' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each category in Morgan, Allen and Baker? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Morgan, Allen and Baker' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Young, Moore and Henderson. +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, Moore and Henderson' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Rivera and Sons between 2023-10-09 and 2023-12-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Rivera and Sons' AND order_date BETWEEN '2023-10-09' AND '2023-12-17' + +Natural Query: How many orders were placed for Lopez-Suarez between 2024-01-11 and 2024-05-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lopez-Suarez' AND order_date BETWEEN '2024-01-11' AND '2024-05-01' + +Natural Query: How many orders were placed for Francis-Washington between 2023-09-17 and 2024-03-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Francis-Washington' AND order_date BETWEEN '2023-09-17' AND '2024-03-10' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Drake, Barnett and 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 = 'Drake, Barnett and Henderson' + 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 Vaughn, Cherry and Kelley 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 = 'Vaughn, Cherry and Kelley' + 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 Woods-Morgan 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 = 'Woods-Morgan' + 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 Lamb, Fox and Wu? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Lamb, Fox and Wu' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: Show me all products in the laugh category with a price over $781.12. +SQL Query: SELECT * FROM products WHERE category = 'laugh' AND price > 781.12 + +Natural Query: How many orders were placed for Marshall, Clark and Weiss between 2024-04-17 and 2024-06-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Marshall, Clark and Weiss' AND order_date BETWEEN '2024-04-17' AND '2024-06-24' + +Natural Query: List all customers and their total order value for Peterson, White and King. +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 = 'Peterson, White and King' GROUP BY c.customer_id + +Natural Query: Show me all products in the station category with a price over $769.98. +SQL Query: SELECT * FROM products WHERE category = 'station' AND price > 769.98 + +Natural Query: What is the total profit for each supplier in Ritter, Higgins and Brown? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Ritter, Higgins and Brown' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: Show me all products in the once category with a price over $746.19. +SQL Query: SELECT * FROM products WHERE category = 'once' AND price > 746.19 + +Natural Query: List all customers and their total order value for Gamble, Sutton and Black. +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 = 'Gamble, Sutton and Black' GROUP BY c.customer_id + +Natural Query: List all products of Garrison, Shepherd and Rodriguez ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Garrison, Shepherd and Rodriguez' ORDER BY stock_quantity DESC + +Natural Query: What are the top 7 products by revenue for Houston-Cruz last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Houston-Cruz' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: List all products of Martinez, Christensen and Hicks ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Martinez, Christensen and Hicks' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Henderson, Willis and Wilson. +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, Willis and Wilson' GROUP BY c.customer_id + +Natural Query: Show me all products in the actually category with a price over $276.57. +SQL Query: SELECT * FROM products WHERE category = 'actually' AND price > 276.57 + +Natural Query: What are the top 4 products by revenue for Castillo-Cain all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Castillo-Cain' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: What is the average quantity of all products for Coleman Inc? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Coleman Inc' + +Natural Query: List all customers and their total order value for Smith-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 = 'Smith-Williams' GROUP BY c.customer_id + +Natural Query: What is the maximum price of all products for Johnson Group? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Johnson Group' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Fletcher, Callahan and 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 = 'Fletcher, Callahan and Campbell' + 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 $444.16. +SQL Query: SELECT * FROM products WHERE category = 'whom' AND price > 444.16 + +Natural Query: How many orders were placed for Wilson and Sons between 2024-01-01 and 2024-08-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wilson and Sons' AND order_date BETWEEN '2024-01-01' AND '2024-08-27' + +Natural Query: How many orders were placed for Dillon, Hardy and Copeland between 2023-12-02 and 2024-04-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Dillon, Hardy and Copeland' AND order_date BETWEEN '2023-12-02' AND '2024-04-27' + +Natural Query: Show me all products in the history category with a price over $954.88. +SQL Query: SELECT * FROM products WHERE category = 'history' AND price > 954.88 + +Natural Query: List all products of Keith-Martin ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Keith-Martin' ORDER BY price DESC + +Natural Query: List all products of Cobb-Kim ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Cobb-Kim' ORDER BY price ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Abbott 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 = 'Abbott 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 are the top 10 products by revenue for White-Griffin this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'White-Griffin' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: Show me all products in the friend category with a price over $903.66. +SQL Query: SELECT * FROM products WHERE category = 'friend' AND price > 903.66 + +Natural Query: What is the maximum quantity of all products for Klein, Harris and Dawson? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Klein, Harris and Dawson' + +Natural Query: List all products of Fleming-Hunt ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Fleming-Hunt' ORDER BY rating DESC + +Natural Query: List all products of Wilson, Harding and Jones ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wilson, Harding and Jones' ORDER BY rating ASC + +Natural Query: Show me all products in the walk category with a price over $518.93. +SQL Query: SELECT * FROM products WHERE category = 'walk' AND price > 518.93 + +Natural Query: Show me all products in the language category with a price over $17.08. +SQL Query: SELECT * FROM products WHERE category = 'language' AND price > 17.08 + +Natural Query: What is the total quantity for each category in Garcia-Jensen? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Garcia-Jensen' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 7 products by revenue for Robles-Soto this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Robles-Soto' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: What are the top 9 products by revenue for Alvarez, Anderson and Shaw last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Alvarez, Anderson and Shaw' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: List all customers and their total order value for Stephens, Gillespie and Nelson. +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 = 'Stephens, Gillespie and Nelson' GROUP BY c.customer_id + +Natural Query: List all products of Flores LLC ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Flores LLC' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Taylor 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 = 'Taylor 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 Smith-Huerta this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Smith-Huerta' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: What are the top 4 products by sales for Snyder, Carter and Jackson this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Snyder, Carter and Jackson' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: What is the minimum quantity of all products for Young, Ayala and Perez? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Young, Ayala and Perez' + +Natural Query: List all products of Jenkins, Ellison and Collins ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jenkins, Ellison and Collins' ORDER BY price ASC + +Natural Query: List all products of Hamilton-Henderson ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hamilton-Henderson' ORDER BY stock_quantity DESC + +Natural Query: How many orders were placed for Roberts and Sons between 2023-10-25 and 2024-04-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Roberts and Sons' AND order_date BETWEEN '2023-10-25' AND '2024-04-13' + +Natural Query: List all customers and their total order value for Roberts 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 = 'Roberts Inc' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Soto, Davidson and Keith between 2024-02-10 and 2024-03-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Soto, Davidson and Keith' AND order_date BETWEEN '2024-02-10' AND '2024-03-15' + +Natural Query: List all products of Reed-Tucker ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Reed-Tucker' ORDER BY price ASC + +Natural Query: What is the minimum rating of all products for Rodriguez, Rodgers and Martin? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Rodriguez, Rodgers and Martin' + +Natural Query: What is the minimum price of all products for Williams Inc? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Williams Inc' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Calhoun, Burns and Howell 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 = 'Calhoun, Burns and Howell' + 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 Hicks, Ryan and Campbell this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Hicks, Ryan and Campbell' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: What is the total rating of all products for Davis Inc? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Davis Inc' + +Natural Query: Show me all products in the father category with a price over $935.8. +SQL Query: SELECT * FROM products WHERE category = 'father' AND price > 935.8 + +Natural Query: How many orders were placed for Barker Ltd between 2023-12-03 and 2024-04-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Barker Ltd' AND order_date BETWEEN '2023-12-03' AND '2024-04-04' + +Natural Query: How many orders were placed for Lopez-Rios between 2024-04-16 and 2024-08-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lopez-Rios' AND order_date BETWEEN '2024-04-16' AND '2024-08-24' + +Natural Query: What are the top 9 products by sales for Grant, Jones and Morton this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Grant, Jones and Morton' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Moore-King 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-King' + 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 Alvarez, Rich and Stewart. +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 = 'Alvarez, Rich and Stewart' GROUP BY c.customer_id + +Natural Query: Show me all products in the west category with a price over $974.26. +SQL Query: SELECT * FROM products WHERE category = 'west' AND price > 974.26 + +Natural Query: Show me all products in the career category with a price over $52.07. +SQL Query: SELECT * FROM products WHERE category = 'career' AND price > 52.07 + +Natural Query: What is the minimum quantity of all products for Hickman-Pacheco? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Hickman-Pacheco' + +Natural Query: What is the maximum price of all products for Williams and Sons? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Williams and Sons' + +Natural Query: What are the top 9 products by orders for Gutierrez, Villa and Moore this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Gutierrez, Villa and Moore' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Flores-Mccoy 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 = 'Flores-Mccoy' + 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 9 products by customers for Jackson, Reed and Ruiz this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Jackson, Reed and Ruiz' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: What is the total rating of all products for Williams-Barry? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Williams-Barry' + +Natural Query: List all products of Thomas-Kennedy ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Thomas-Kennedy' ORDER BY rating DESC + +Natural Query: What are the top 3 products by revenue for Myers Inc last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Myers Inc' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: List all products of Armstrong-Williams ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Armstrong-Williams' ORDER BY price ASC + +Natural Query: What is the total quantity for each category in Wright Inc? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Wright Inc' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Horn, Smith and Baker between 2023-12-15 and 2024-04-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Horn, Smith and Baker' AND order_date BETWEEN '2023-12-15' AND '2024-04-11' + +Natural Query: What is the total sales for each supplier in Lowery, Watson and Dixon? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Lowery, Watson and Dixon' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 3 products by sales for Smith Group this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Smith Group' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Green, Turner and Harrison 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, Turner and Harrison' + 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 Anderson Ltd? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Anderson Ltd' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all products of Mccarthy, Oneal and Reyes ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mccarthy, Oneal and Reyes' ORDER BY rating ASC + +Natural Query: What is the minimum rating of all products for Howard Inc? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Howard Inc' + +Natural Query: What is the maximum rating of all products for Erickson-Robinson? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Erickson-Robinson' + +Natural Query: List all products of Garcia, Brown and Hanson ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Garcia, Brown and Hanson' ORDER BY price ASC + +Natural Query: Show me all products in the sign category with a price over $638.66. +SQL Query: SELECT * FROM products WHERE category = 'sign' AND price > 638.66 + +Natural Query: What is the maximum price of all products for Chang Group? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Chang Group' + +Natural Query: List all customers and their total order value for Ramirez-Moreno. +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-Moreno' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each supplier in Hammond, Brown and Henry? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Hammond, Brown and Henry' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the maximum rating of all products for Mitchell-James? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Mitchell-James' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Miller-Garcia 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 = 'Miller-Garcia' + 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 Moore-Moore? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Moore-Moore' GROUP BY category ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Carlson 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 = 'Carlson Inc' GROUP BY c.customer_id + +Natural Query: What is the minimum quantity of all products for Taylor PLC? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Taylor PLC' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Kramer, Payne and 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 = 'Kramer, Payne and Moore' + 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 Smith, Buchanan and Lowe? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Smith, Buchanan and Lowe' + +Natural Query: What is the total quantity for each supplier in Thornton PLC? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Thornton PLC' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Hopkins, Coleman and Walter between 2024-02-23 and 2024-03-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hopkins, Coleman and Walter' AND order_date BETWEEN '2024-02-23' AND '2024-03-27' + +Natural Query: What is the total profit for each category in Jones Ltd? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Jones Ltd' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 10 products by revenue for Andrews LLC all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Andrews LLC' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: What is the total quantity for each supplier in Thompson LLC? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Thompson LLC' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Reynolds LLC between 2023-11-21 and 2024-07-31? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Reynolds LLC' AND order_date BETWEEN '2023-11-21' AND '2024-07-31' + +Natural Query: List all customers and their total order value for Moore 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 = 'Moore Inc' GROUP BY c.customer_id + +Natural Query: List all products of Snow-Wilson ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Snow-Wilson' ORDER BY price DESC + +Natural Query: What are the top 8 products by sales for Decker-Williams this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Decker-Williams' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: How many orders were placed for Gilbert, Johnson and Garza between 2024-08-08 and 2024-09-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gilbert, Johnson and Garza' AND order_date BETWEEN '2024-08-08' AND '2024-09-11' + +Natural Query: List all products of Curtis-English ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Curtis-English' ORDER BY stock_quantity DESC + +Natural Query: What is the total quantity for each country in Aguirre-Byrd? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Aguirre-Byrd' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all products of Morgan and Sons ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Morgan and Sons' ORDER BY stock_quantity DESC + +Natural Query: What is the total sales for each supplier in Gonzalez, Tapia and Shaw? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Gonzalez, Tapia and Shaw' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Poole-Blake 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 = 'Poole-Blake' + 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 Lopez, Williams and Weaver? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Lopez, Williams and Weaver' GROUP BY country ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Brown-Turner between 2024-05-26 and 2024-06-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Brown-Turner' AND order_date BETWEEN '2024-05-26' AND '2024-06-09' + +Natural Query: What is the total profit for each category in Wilson, Bradford and Flores? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Wilson, Bradford and Flores' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the average price of all products for Johnson, Adams and White? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Johnson, Adams and White' + +Natural Query: List all products of Williams, Horne and Ruiz ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Williams, Horne and Ruiz' ORDER BY price DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lane 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 = 'Lane PLC' + 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 Garcia and Sons between 2024-05-24 and 2024-05-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Garcia and Sons' AND order_date BETWEEN '2024-05-24' AND '2024-05-26' + +Natural Query: What are the top 4 products by customers for Mills Group all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Mills Group' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: List all products of Hansen Inc ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hansen Inc' ORDER BY price ASC + +Natural Query: What is the total quantity of all products for Richmond, Sharp and Li? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Richmond, Sharp and Li' + +Natural Query: List all customers and their total order value for Parker-Miller. +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 = 'Parker-Miller' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Morris-Frost. +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 = 'Morris-Frost' GROUP BY c.customer_id + +Natural Query: What is the average price of all products for Jackson Inc? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Jackson Inc' + +Natural Query: What are the top 8 products by revenue for Gray-Rollins all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Gray-Rollins' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: What are the top 6 products by sales for Henderson, Khan and Butler all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Henderson, Khan and Butler' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: What is the average rating of all products for Jones, Horton and Meadows? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Jones, Horton and Meadows' + +Natural Query: What is the maximum price of all products for Ross, Garza and Cox? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Ross, Garza and Cox' + +Natural Query: Show me all products in the can category with a price over $368.06. +SQL Query: SELECT * FROM products WHERE category = 'can' AND price > 368.06 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Terry, Bird and Orr 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 = 'Terry, Bird and Orr' + 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 Nelson, Smith and Greer between 2024-02-20 and 2024-05-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Nelson, Smith and Greer' AND order_date BETWEEN '2024-02-20' AND '2024-05-19' + +Natural Query: List all customers and their total order value for Mckee, Solis and Parsons. +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 = 'Mckee, Solis and Parsons' GROUP BY c.customer_id + +Natural Query: List all products of Carlson, Brooks and Pitts ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Carlson, Brooks and Pitts' ORDER BY rating ASC + +Natural Query: What is the average rating of all products for Reese, Fitzgerald and Rodriguez? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Reese, Fitzgerald and Rodriguez' + +Natural Query: What is the maximum quantity of all products for Christian, Brock and Hall? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Christian, Brock and Hall' + +Natural Query: List all products of Hart-Dougherty ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hart-Dougherty' ORDER BY price DESC + +Natural Query: Show me all products in the city category with a price over $968.22. +SQL Query: SELECT * FROM products WHERE category = 'city' AND price > 968.22 + +Natural Query: List all customers and their total order value for Fletcher, Richards and Carter. +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, Richards and Carter' GROUP BY c.customer_id + +Natural Query: What are the top 5 products by customers for Oneal, Johnson and Foster last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Oneal, Johnson and Foster' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: What are the top 4 products by sales for Marsh Group last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Marsh Group' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: List all customers and their total order value for Wilson-Vaughan. +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-Vaughan' GROUP BY c.customer_id + +Natural Query: What is the maximum price of all products for Proctor, Martin and Peterson? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Proctor, Martin and Peterson' + +Natural Query: How many orders were placed for Meyer, Rhodes and Frank between 2024-05-17 and 2024-07-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Meyer, Rhodes and Frank' AND order_date BETWEEN '2024-05-17' AND '2024-07-03' + +Natural Query: Show me all products in the herself category with a price over $480.2. +SQL Query: SELECT * FROM products WHERE category = 'herself' AND price > 480.2 + +Natural Query: What is the total rating of all products for Martinez-Fischer? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Martinez-Fischer' + +Natural Query: What is the total sales for each country in Davis, Hoffman and Todd? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Davis, Hoffman and Todd' GROUP BY country ORDER BY total_sales DESC + +Natural Query: Show me all products in the professional category with a price over $558.03. +SQL Query: SELECT * FROM products WHERE category = 'professional' AND price > 558.03 + +Natural Query: List all customers and their total order value for Ortiz, Nelson and Medina. +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 = 'Ortiz, Nelson and Medina' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Douglas-Evans. +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 = 'Douglas-Evans' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Schmidt, Burgess and Hicks. +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 = 'Schmidt, Burgess and Hicks' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Singleton, Woods and Cook. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Singleton, Woods and Cook' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Mccoy 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 = 'Mccoy Ltd' GROUP BY c.customer_id + +Natural Query: Show me all products in the somebody category with a price over $885.56. +SQL Query: SELECT * FROM products WHERE category = 'somebody' AND price > 885.56 + +Natural Query: Show me all products in the amount category with a price over $698.86. +SQL Query: SELECT * FROM products WHERE category = 'amount' AND price > 698.86 + +Natural Query: How many orders were placed for Smith, Bradshaw and Chavez between 2024-07-16 and 2024-09-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Smith, Bradshaw and Chavez' AND order_date BETWEEN '2024-07-16' AND '2024-09-10' + +Natural Query: Show me all products in the Mr category with a price over $931.39. +SQL Query: SELECT * FROM products WHERE category = 'Mr' AND price > 931.39 + +Natural Query: Show me all products in the himself category with a price over $154.66. +SQL Query: SELECT * FROM products WHERE category = 'himself' AND price > 154.66 + +Natural Query: What is the total quantity for each country in Gray, Ferguson and Farrell? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Gray, Ferguson and Farrell' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all products of Santos and Sons ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Santos and Sons' ORDER BY rating ASC + +Natural Query: Show me all products in the company category with a price over $259.99. +SQL Query: SELECT * FROM products WHERE category = 'company' AND price > 259.99 + +Natural Query: What are the top 5 products by customers for House Inc last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'House Inc' AND period = 'last quarter' 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 King-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 = 'King-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 himself category with a price over $413.75. +SQL Query: SELECT * FROM products WHERE category = 'himself' AND price > 413.75 + +Natural Query: List all products of Thompson-Brown ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Thompson-Brown' ORDER BY stock_quantity DESC + +Natural Query: How many orders were placed for Flores Group between 2024-08-12 and 2024-08-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Flores Group' AND order_date BETWEEN '2024-08-12' AND '2024-08-24' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Nunez-Boone 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 = 'Nunez-Boone' + 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 Potts 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 = 'Potts 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 are the top 4 products by customers for Yoder-Graham all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Yoder-Graham' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Combs-Stephens 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 = 'Combs-Stephens' + 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 Hart 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 = 'Hart 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 total rating of all products for Garcia, Burnett and Bailey? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Garcia, Burnett and Bailey' + +Natural Query: Show me all products in the well category with a price over $916.65. +SQL Query: SELECT * FROM products WHERE category = 'well' AND price > 916.65 + +Natural Query: Show me all products in the indicate category with a price over $557.76. +SQL Query: SELECT * FROM products WHERE category = 'indicate' AND price > 557.76 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Smith-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 = 'Smith-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 products of Bell-Clark ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Bell-Clark' ORDER BY stock_quantity ASC + +Natural Query: List all products of Fernandez, Henson and Buchanan ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Fernandez, Henson and Buchanan' ORDER BY price ASC + +Natural Query: List all products of Lane-Dillon ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lane-Dillon' ORDER BY price ASC + +Natural Query: What is the minimum quantity of all products for Bowers, Williams and Patrick? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Bowers, Williams and Patrick' + +Natural Query: What are the top 7 products by customers for Wise-Morgan this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Wise-Morgan' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: What are the top 3 products by revenue for Ward-Jackson this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Ward-Jackson' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: What is the total sales for each country in Williams-Tate? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Williams-Tate' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all products of Schmidt and Sons ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Schmidt and Sons' ORDER BY rating ASC + +Natural Query: What are the top 8 products by customers for Buckley-Johnson all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Buckley-Johnson' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: List all products of York-Hicks ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'York-Hicks' ORDER BY price DESC + +Natural Query: How many orders were placed for Nicholson, Choi and Roberts between 2024-05-27 and 2024-07-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Nicholson, Choi and Roberts' AND order_date BETWEEN '2024-05-27' AND '2024-07-11' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Parker, Cooper 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 = 'Parker, Cooper 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: List all products of Webster-Pierce ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Webster-Pierce' ORDER BY stock_quantity DESC + +Natural Query: How many orders were placed for Lee, Chapman and Boyd between 2024-07-07 and 2024-07-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lee, Chapman and Boyd' AND order_date BETWEEN '2024-07-07' AND '2024-07-29' + +Natural Query: Show me all products in the loss category with a price over $928.45. +SQL Query: SELECT * FROM products WHERE category = 'loss' AND price > 928.45 + +Natural Query: What is the minimum price of all products for Pierce, Roth and Jefferson? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Pierce, Roth and Jefferson' + +Natural Query: Show me all products in the after category with a price over $428.52. +SQL Query: SELECT * FROM products WHERE category = 'after' AND price > 428.52 + +Natural Query: Show me all products in the investment category with a price over $424.5. +SQL Query: SELECT * FROM products WHERE category = 'investment' AND price > 424.5 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Duncan 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 = 'Duncan 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 maximum rating of all products for Salinas LLC? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Salinas LLC' + +Natural Query: What are the top 5 products by revenue for Hatfield Ltd last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Hatfield Ltd' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: What is the total quantity for each country in Ramos, Diaz and Ramirez? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Ramos, Diaz and Ramirez' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all products of Garcia-Parker ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Garcia-Parker' ORDER BY price DESC + +Natural Query: How many orders were placed for Perry-King between 2024-01-22 and 2024-02-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Perry-King' AND order_date BETWEEN '2024-01-22' AND '2024-02-23' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Smith-Barrett 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-Barrett' + 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 Sanchez, Frank and Banks. +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 = 'Sanchez, Frank and Banks' GROUP BY c.customer_id + +Natural Query: What is the total sales for each category in Pena, Bishop and Charles? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Pena, Bishop and Charles' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the total profit for each country in Hughes, Whitaker and Williams? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Hughes, Whitaker and Williams' GROUP BY country ORDER BY total_profit DESC + +Natural Query: Show me all products in the tonight category with a price over $183.21. +SQL Query: SELECT * FROM products WHERE category = 'tonight' AND price > 183.21 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Nguyen, Howard and Hanson 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, Howard and Hanson' + 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 Neal, Roberts and Navarro? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Neal, Roberts and Navarro' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the maximum rating of all products for Doyle Group? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Doyle Group' + +Natural Query: How many orders were placed for Peterson Group between 2023-12-18 and 2024-06-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Peterson Group' AND order_date BETWEEN '2023-12-18' AND '2024-06-29' + +Natural Query: What is the average price of all products for Morris-Wilson? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Morris-Wilson' + +Natural Query: What are the top 5 products by sales for Jones-Lowe this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Jones-Lowe' AND period = 'this year' 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 Hobbs, Little and 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 = 'Hobbs, Little and Moore' + 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 Anderson Inc ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Anderson Inc' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Vincent-Gray 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 = 'Vincent-Gray' + 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 Hunter-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 = 'Hunter-Fox' GROUP BY c.customer_id + +Natural Query: Show me all products in the public category with a price over $969.6. +SQL Query: SELECT * FROM products WHERE category = 'public' AND price > 969.6 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Baker-Durham 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-Durham' + 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 Hall-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 = 'Hall-Jones' + 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 Osborne, Lopez and Martinez? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Osborne, Lopez and Martinez' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for French-Shaw between 2023-10-27 and 2023-12-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'French-Shaw' AND order_date BETWEEN '2023-10-27' AND '2023-12-04' + +Natural Query: What is the maximum price of all products for Morgan PLC? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Morgan PLC' + +Natural Query: List all customers and their total order value for Miller, Velazquez and Gutierrez. +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, Velazquez and Gutierrez' GROUP BY c.customer_id + +Natural Query: List all products of Williams, Lopez and Shannon ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Williams, Lopez and Shannon' ORDER BY price DESC + +Natural Query: What is the total price of all products for Tapia-Salazar? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Tapia-Salazar' + +Natural Query: What are the top 3 products by sales for Crawford-Barrera all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Crawford-Barrera' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: What is the total sales for each country in Patterson-Brown? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Patterson-Brown' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the minimum rating of all products for Short, Anderson and Williams? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Short, Anderson and Williams' + +Natural Query: What are the top 5 products by revenue for Moore, Norman and Jones this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Moore, Norman and Jones' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: List all products of Snyder-Delgado ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Snyder-Delgado' ORDER BY price DESC + +Natural Query: What are the top 6 products by orders for Fox Ltd this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Fox Ltd' AND period = 'this month' 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 Gonzalez 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 = 'Gonzalez 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 Ayala-Smith between 2024-03-19 and 2024-06-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ayala-Smith' AND order_date BETWEEN '2024-03-19' AND '2024-06-14' + +Natural Query: List all customers and their total order value for Greene-May. +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 = 'Greene-May' GROUP BY c.customer_id + +Natural Query: What are the top 10 products by orders for Lee, Williams and Taylor last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Lee, Williams and Taylor' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: How many orders were placed for Simon, Bartlett and Levy between 2024-08-23 and 2024-08-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Simon, Bartlett and Levy' AND order_date BETWEEN '2024-08-23' AND '2024-08-26' + +Natural Query: What are the top 3 products by orders for Flores, Mason and Carpenter last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Flores, Mason and Carpenter' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: List all customers and their total order value for Barker, Lopez and Kennedy. +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 = 'Barker, Lopez and Kennedy' GROUP BY c.customer_id + +Natural Query: What is the total sales for each country in Hood, Snyder and May? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hood, Snyder and May' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the minimum price of all products for Jensen, Sullivan and Johnson? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Jensen, Sullivan and Johnson' + +Natural Query: How many orders were placed for Diaz and Sons between 2024-06-07 and 2024-09-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Diaz and Sons' AND order_date BETWEEN '2024-06-07' AND '2024-09-10' + +Natural Query: What is the maximum rating of all products for Sims, Jennings and Hahn? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Sims, Jennings and Hahn' + +Natural Query: What is the maximum rating of all products for Brown-Drake? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Brown-Drake' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Krueger, Mendoza and Farrell 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 = 'Krueger, Mendoza and Farrell' + 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 Anderson Group? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Anderson Group' + +Natural Query: How many orders were placed for Thompson Ltd between 2024-06-23 and 2024-09-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thompson Ltd' AND order_date BETWEEN '2024-06-23' AND '2024-09-15' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gallegos 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 = 'Gallegos 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 quantity of all products for Guerra, Smith and Robinson? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Guerra, Smith and Robinson' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hall, Anderson and Lopez 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 = 'Hall, Anderson and Lopez' + 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 show category with a price over $640.77. +SQL Query: SELECT * FROM products WHERE category = 'show' AND price > 640.77 + +Natural Query: Show me all products in the so category with a price over $552.82. +SQL Query: SELECT * FROM products WHERE category = 'so' AND price > 552.82 + +Natural Query: What is the minimum quantity of all products for Banks-Ross? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Banks-Ross' + +Natural Query: List all products of Lowe-Wood ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lowe-Wood' ORDER BY stock_quantity ASC + +Natural Query: List all products of Stewart Group ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Stewart Group' ORDER BY rating ASC + +Natural Query: List all products of Foster-Lee ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Foster-Lee' ORDER BY rating ASC + +Natural Query: How many orders were placed for Welch Inc between 2023-11-27 and 2024-06-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Welch Inc' AND order_date BETWEEN '2023-11-27' AND '2024-06-03' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Dillon, Ford and Salinas 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, Ford and Salinas' + 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 9 products by revenue for Crosby, Cantrell and Brown all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Crosby, Cantrell and Brown' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: Show me all products in the top category with a price over $215.43. +SQL Query: SELECT * FROM products WHERE category = 'top' AND price > 215.43 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Watson, King and 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 = 'Watson, King and Moore' + 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 Chapman-Santos all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Chapman-Santos' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: Show me all products in the almost category with a price over $586.3. +SQL Query: SELECT * FROM products WHERE category = 'almost' AND price > 586.3 + +Natural Query: What is the total quantity for each category in Mosley-Byrd? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Mosley-Byrd' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: Show me all products in the quality category with a price over $91.0. +SQL Query: SELECT * FROM products WHERE category = 'quality' AND price > 91.0 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Green, Santiago and 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 = 'Green, Santiago and Hall' + 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 4 products by revenue for Watkins LLC this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Watkins LLC' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: What is the average rating of all products for Peters LLC? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Peters LLC' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Collins 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 = 'Collins 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 Greer-Rogers ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Greer-Rogers' ORDER BY price ASC + +Natural Query: Show me all products in the take category with a price over $211.34. +SQL Query: SELECT * FROM products WHERE category = 'take' AND price > 211.34 + +Natural Query: What are the top 3 products by customers for Kerr, Cooke and Rhodes all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Kerr, Cooke and Rhodes' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: What is the average quantity of all products for Cook, Porter and Morgan? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Cook, Porter and Morgan' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Green 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 = 'Green 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 total profit for each country in Pena, Thomas and Cohen? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Pena, Thomas and Cohen' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What is the average quantity of all products for Black and Sons? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Black and Sons' + +Natural Query: What are the top 10 products by revenue for Vaughan, Becker and Williams last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Vaughan, Becker and Williams' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: Show me all products in the can category with a price over $651.36. +SQL Query: SELECT * FROM products WHERE category = 'can' AND price > 651.36 + +Natural Query: Show me all products in the statement category with a price over $707.71. +SQL Query: SELECT * FROM products WHERE category = 'statement' AND price > 707.71 + +Natural Query: What is the maximum rating of all products for Wood Group? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Wood Group' + +Natural Query: What are the top 4 products by sales for Davis-Peters this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Davis-Peters' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: How many orders were placed for Hansen-Morgan between 2024-05-07 and 2024-05-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hansen-Morgan' AND order_date BETWEEN '2024-05-07' AND '2024-05-29' + +Natural Query: Show me all products in the back category with a price over $575.26. +SQL Query: SELECT * FROM products WHERE category = 'back' AND price > 575.26 + +Natural Query: What is the total sales for each supplier in Rubio and Sons? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Rubio and Sons' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the total profit for each country in Blankenship, Oneill and Vaughn? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Blankenship, Oneill and Vaughn' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Bailey-Barton 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-Barton' + 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 Coleman-Chavez? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Coleman-Chavez' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 5 products by revenue for Moore LLC all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Moore LLC' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: List all products of Ray, Miles and Acosta ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ray, Miles and Acosta' ORDER BY price DESC + +Natural Query: What are the top 7 products by orders for Reynolds, Miller and Newton this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Reynolds, Miller and Newton' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: What are the top 3 products by sales for Smith Ltd this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Smith Ltd' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: What is the minimum rating of all products for Stevenson-Williams? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Stevenson-Williams' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Russell 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 = 'Russell 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 total rating of all products for Lewis, Nelson and Morrison? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Lewis, Nelson and Morrison' + +Natural Query: How many orders were placed for Smith Group between 2024-06-18 and 2024-06-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Smith Group' AND order_date BETWEEN '2024-06-18' AND '2024-06-23' + +Natural Query: What is the maximum quantity of all products for Riley PLC? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Riley PLC' + +Natural Query: What are the top 8 products by customers for Reed, Rush and Brown all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Reed, Rush and Brown' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: What is the total rating of all products for Meyer, Richard and Harris? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Meyer, Richard and Harris' + +Natural Query: List all products of Lopez Group ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lopez Group' ORDER BY price ASC + +Natural Query: How many orders were placed for Garcia PLC between 2023-12-30 and 2024-05-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Garcia PLC' AND order_date BETWEEN '2023-12-30' AND '2024-05-28' + +Natural Query: List all products of Medina PLC ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Medina PLC' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Wilson, Price 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 = 'Wilson, Price and Smith' GROUP BY c.customer_id + +Natural Query: What is the total sales for each country in Castillo-Hartman? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Castillo-Hartman' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 7 products by customers for Bowman-Higgins this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Bowman-Higgins' 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 Stuart Ltd? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Stuart Ltd' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: Show me all products in the election category with a price over $767.36. +SQL Query: SELECT * FROM products WHERE category = 'election' AND price > 767.36 + +Natural Query: What is the minimum price of all products for Curry-Hammond? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Curry-Hammond' + +Natural Query: List all products of Gaines Inc ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gaines Inc' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Brooks-Carter. +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 = 'Brooks-Carter' GROUP BY c.customer_id + +Natural Query: Show me all products in the clear category with a price over $426.36. +SQL Query: SELECT * FROM products WHERE category = 'clear' AND price > 426.36 + +Natural Query: How many orders were placed for Ingram, Beard and Murray between 2023-12-18 and 2024-06-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ingram, Beard and Murray' AND order_date BETWEEN '2023-12-18' AND '2024-06-15' + +Natural Query: What is the total sales for each country in Hunt-Hopkins? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hunt-Hopkins' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the minimum price of all products for Maxwell-Paul? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Maxwell-Paul' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Ramirez-Hart 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 = 'Ramirez-Hart' + 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 Sandoval, Dennis and Smith ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Sandoval, Dennis and Smith' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Raymond-Dean 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 = 'Raymond-Dean' + 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 Medina, Lewis and Jenkins between 2024-09-09 and 2024-09-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Medina, Lewis and Jenkins' AND order_date BETWEEN '2024-09-09' AND '2024-09-13' + +Natural Query: How many orders were placed for Gomez LLC between 2024-03-18 and 2024-04-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gomez LLC' AND order_date BETWEEN '2024-03-18' AND '2024-04-13' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Edwards 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 = 'Edwards Ltd' + 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 Ortega-Holmes. +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 = 'Ortega-Holmes' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Cortez 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 = 'Cortez PLC' GROUP BY c.customer_id + +Natural Query: Show me all products in the century category with a price over $676.5. +SQL Query: SELECT * FROM products WHERE category = 'century' AND price > 676.5 + +Natural Query: What is the total quantity for each supplier in Rivera-Melendez? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Rivera-Melendez' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all products of Cole-White ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Cole-White' ORDER BY stock_quantity DESC + +Natural Query: Show me all products in the simply category with a price over $203.51. +SQL Query: SELECT * FROM products WHERE category = 'simply' AND price > 203.51 + +Natural Query: What is the minimum quantity of all products for Parker Inc? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Parker Inc' + +Natural Query: How many orders were placed for Ramirez-Hunter between 2024-04-05 and 2024-06-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ramirez-Hunter' AND order_date BETWEEN '2024-04-05' AND '2024-06-19' + +Natural Query: What are the top 5 products by revenue for Adkins-Phillips last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Adkins-Phillips' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: List all products of King-Barrera ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'King-Barrera' ORDER BY rating ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Anderson 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 = 'Anderson 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 rich category with a price over $552.94. +SQL Query: SELECT * FROM products WHERE category = 'rich' AND price > 552.94 + +Natural Query: List all products of Spencer PLC ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Spencer PLC' ORDER BY rating ASC + +Natural Query: What are the top 10 products by revenue for Thompson, Miles and Garcia last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Thompson, Miles and Garcia' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: List all customers and their total order value for Gallagher, Short and Mckee. +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 = 'Gallagher, Short and Mckee' GROUP BY c.customer_id + +Natural Query: What are the top 8 products by orders for Gonzalez, Stewart and Silva this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Gonzalez, Stewart and Silva' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: List all customers and their total order value for Jackson, Kelly and Petersen. +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 = 'Jackson, Kelly and Petersen' GROUP BY c.customer_id + +Natural Query: Show me all products in the rule category with a price over $173.58. +SQL Query: SELECT * FROM products WHERE category = 'rule' AND price > 173.58 + +Natural Query: What is the total sales for each category in Gibson-Reed? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Gibson-Reed' GROUP BY category ORDER BY total_sales DESC + +Natural Query: Show me all products in the civil category with a price over $275.0. +SQL Query: SELECT * FROM products WHERE category = 'civil' AND price > 275.0 + +Natural Query: List all customers and their total order value for Mack-Dodson. +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 = 'Mack-Dodson' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Lowe-Skinner between 2024-05-31 and 2024-07-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lowe-Skinner' AND order_date BETWEEN '2024-05-31' AND '2024-07-18' + +Natural Query: List all products of Todd-Gray ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Todd-Gray' ORDER BY price ASC + +Natural Query: What are the top 8 products by orders for Patterson-Fuller all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Patterson-Fuller' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: What are the top 10 products by customers for Harvey Group last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Harvey Group' AND period = 'last quarter' 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 Carpenter 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 = 'Carpenter 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 Reed Ltd? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Reed Ltd' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Olson-Fowler. +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 = 'Olson-Fowler' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Hamilton-Hendrix. +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-Hendrix' GROUP BY c.customer_id + +Natural Query: Show me all products in the poor category with a price over $222.36. +SQL Query: SELECT * FROM products WHERE category = 'poor' AND price > 222.36 + +Natural Query: What is the total sales for each category in Ward-Daugherty? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Ward-Daugherty' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Sparks, Jacobson and 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 = 'Sparks, Jacobson and Ramirez' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Johnson 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 = 'Johnson and Sons' GROUP BY c.customer_id + +Natural Query: What is the total profit for each supplier in Garcia, Hardy and Mathews? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Garcia, Hardy and Mathews' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Wells-Rich. +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 = 'Wells-Rich' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Klein PLC between 2024-08-25 and 2024-09-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Klein PLC' AND order_date BETWEEN '2024-08-25' AND '2024-09-11' + +Natural Query: What are the top 4 products by customers for Newman PLC this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Newman PLC' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: What is the total quantity for each category in Jones-Wood? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Jones-Wood' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the minimum quantity of all products for Campbell, Brown and Owens? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Campbell, Brown and Owens' + +Natural Query: List all customers and their total order value for Gonzalez, Howell and Stanley. +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 = 'Gonzalez, Howell and Stanley' GROUP BY c.customer_id + +Natural Query: What is the total profit for each category in Perez Group? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Perez Group' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Newton 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 = 'Newton PLC' + 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 wait category with a price over $471.65. +SQL Query: SELECT * FROM products WHERE category = 'wait' AND price > 471.65 + +Natural Query: What are the top 5 products by orders for Ramirez-Clark this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Ramirez-Clark' AND period = 'this year' 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 Jackson-Hebert 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-Hebert' + 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 Vazquez-Walter? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Vazquez-Walter' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: Show me all products in the training category with a price over $87.81. +SQL Query: SELECT * FROM products WHERE category = 'training' AND price > 87.81 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Stephenson-Stewart 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 = 'Stephenson-Stewart' + 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 Lucas Group ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lucas Group' ORDER BY stock_quantity DESC + +Natural Query: How many orders were placed for Morris, Davis and Peterson between 2023-12-18 and 2024-05-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Morris, Davis and Peterson' AND order_date BETWEEN '2023-12-18' AND '2024-05-08' + +Natural Query: Show me all products in the thus category with a price over $355.48. +SQL Query: SELECT * FROM products WHERE category = 'thus' AND price > 355.48 + +Natural Query: How many orders were placed for Hamilton-Salinas between 2024-07-27 and 2024-07-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hamilton-Salinas' AND order_date BETWEEN '2024-07-27' AND '2024-07-27' + +Natural Query: What is the total quantity for each supplier in Wagner, Wilson and Choi? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Wagner, Wilson and Choi' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Bradford, Dixon and Harmon. +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 = 'Bradford, Dixon and Harmon' GROUP BY c.customer_id + +Natural Query: What are the top 3 products by revenue for Erickson, Moore and Cruz all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Erickson, Moore and Cruz' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: How many orders were placed for Terry LLC between 2024-04-27 and 2024-07-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Terry LLC' AND order_date BETWEEN '2024-04-27' AND '2024-07-19' + +Natural Query: What is the minimum price of all products for Murray-Jackson? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Murray-Jackson' + +Natural Query: List all customers and their total order value for Ellis, Leonard and Garrett. +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 = 'Ellis, Leonard and Garrett' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Caldwell, Griffith and 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 = 'Caldwell, Griffith and Ruiz' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Andrews-Foster between 2023-11-03 and 2024-03-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Andrews-Foster' AND order_date BETWEEN '2023-11-03' AND '2024-03-08' + +Natural Query: What is the total profit for each supplier in Sanchez Inc? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Sanchez Inc' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: Show me all products in the industry category with a price over $742.5. +SQL Query: SELECT * FROM products WHERE category = 'industry' AND price > 742.5 + +Natural Query: List all products of Lopez-Hunt ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lopez-Hunt' ORDER BY price DESC + +Natural Query: List all products of Palmer-Mitchell ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Palmer-Mitchell' ORDER BY price DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Woodard 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 = 'Woodard 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 low category with a price over $287.52. +SQL Query: SELECT * FROM products WHERE category = 'low' AND price > 287.52 + +Natural Query: Show me all products in the face category with a price over $742.48. +SQL Query: SELECT * FROM products WHERE category = 'face' AND price > 742.48 + +Natural Query: List all customers and their total order value for Sullivan-Hoffman. +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 = 'Sullivan-Hoffman' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Coffey 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 = 'Coffey Group' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each category in Clark-Smith? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Clark-Smith' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 4 products by customers for Steele Group this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Steele Group' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: List all customers and their total order value for Copeland 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 = 'Copeland and Sons' GROUP BY c.customer_id + +Natural Query: What is the average quantity of all products for Murphy, Bowers and Weber? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Murphy, Bowers and Weber' + +Natural Query: List all products of Weber, Sanchez and Moore ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Weber, Sanchez and Moore' ORDER BY stock_quantity DESC + +Natural Query: What is the total quantity for each category in Johnson Inc? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Johnson Inc' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: Show me all products in the include category with a price over $456.82. +SQL Query: SELECT * FROM products WHERE category = 'include' AND price > 456.82 + +Natural Query: Show me all products in the too category with a price over $960.86. +SQL Query: SELECT * FROM products WHERE category = 'too' AND price > 960.86 + +Natural Query: What is the total rating of all products for Nichols-Mcdonald? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Nichols-Mcdonald' + +Natural Query: What is the total profit for each supplier in Rivers LLC? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Rivers LLC' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: Show me all products in the quite category with a price over $36.01. +SQL Query: SELECT * FROM products WHERE category = 'quite' AND price > 36.01 + +Natural Query: List all products of Mason PLC ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mason PLC' ORDER BY price ASC + +Natural Query: What is the total sales for each country in Glass-Oconnor? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Glass-Oconnor' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Russo-Anderson. +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 = 'Russo-Anderson' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cooper-Morgan 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-Morgan' + 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 Grant 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 = 'Grant 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 Sexton-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 = 'Sexton-Anderson' + 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 Valdez-Porter between 2024-01-15 and 2024-05-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Valdez-Porter' AND order_date BETWEEN '2024-01-15' AND '2024-05-27' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Casey-Gonzalez 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 = 'Casey-Gonzalez' + 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 Bell-Bowman ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Bell-Bowman' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 products by sales for Shields, Perez and Cox all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Shields, Perez and Cox' 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 Dunn, Lang 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 = 'Dunn, Lang 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 is the total price of all products for Johnson-Ramsey? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Johnson-Ramsey' + +Natural Query: How many orders were placed for Ramirez-Taylor between 2024-08-15 and 2024-09-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ramirez-Taylor' AND order_date BETWEEN '2024-08-15' AND '2024-09-04' + +Natural Query: How many orders were placed for Martin LLC between 2024-07-23 and 2024-08-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Martin LLC' AND order_date BETWEEN '2024-07-23' AND '2024-08-04' + +Natural Query: How many orders were placed for Martin-Schmidt between 2024-02-03 and 2024-08-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Martin-Schmidt' AND order_date BETWEEN '2024-02-03' AND '2024-08-06' + +Natural Query: What is the total profit for each supplier in Hudson-Powers? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Hudson-Powers' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the minimum price of all products for Moss, Long and Hayes? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Moss, Long and Hayes' + +Natural Query: How many orders were placed for Wells, Hunter and Hurley between 2024-03-03 and 2024-04-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wells, Hunter and Hurley' AND order_date BETWEEN '2024-03-03' AND '2024-04-08' + +Natural Query: List all customers and their total order value for Johnson-Miller. +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-Miller' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Smith, Blair and Fuentes between 2023-12-24 and 2024-02-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Smith, Blair and Fuentes' AND order_date BETWEEN '2023-12-24' AND '2024-02-11' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Parker, Gonzalez and Allen 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 = 'Parker, Gonzalez and Allen' + 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 Davis Group ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Davis Group' ORDER BY stock_quantity DESC + +Natural Query: List all products of Castro-Bowers ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Castro-Bowers' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Weeks-Carlson. +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 = 'Weeks-Carlson' GROUP BY c.customer_id + +Natural Query: What is the total rating of all products for Sosa LLC? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Sosa LLC' + +Natural Query: How many orders were placed for Sanchez-Velasquez between 2023-09-28 and 2024-08-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Sanchez-Velasquez' AND order_date BETWEEN '2023-09-28' AND '2024-08-06' + +Natural Query: List all products of Moran Ltd ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Moran Ltd' ORDER BY price DESC + +Natural Query: How many orders were placed for Bentley-Gomez between 2023-09-29 and 2024-04-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bentley-Gomez' AND order_date BETWEEN '2023-09-29' AND '2024-04-10' + +Natural Query: Show me all products in the mother category with a price over $541.76. +SQL Query: SELECT * FROM products WHERE category = 'mother' AND price > 541.76 + +Natural Query: Show me all products in the several category with a price over $632.31. +SQL Query: SELECT * FROM products WHERE category = 'several' AND price > 632.31 + +Natural Query: List all products of Cole-Dennis ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Cole-Dennis' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Thomas 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 = 'Thomas 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 Thompson-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 = 'Thompson-Ramirez' GROUP BY c.customer_id + +Natural Query: What is the total sales for each category in Owens, Martinez and Park? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Owens, Martinez and Park' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 10 products by sales for Diaz-Ross this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Diaz-Ross' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: How many orders were placed for Cook-Silva between 2024-03-06 and 2024-07-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cook-Silva' AND order_date BETWEEN '2024-03-06' AND '2024-07-03' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Pitts-Mullen 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 = 'Pitts-Mullen' + 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 Maynard Ltd ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Maynard Ltd' ORDER BY price ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Simmons, Williams 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 = 'Simmons, Williams 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 is the total sales for each supplier in Walker, Cantrell and Brooks? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Walker, Cantrell and Brooks' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 3 products by customers for Rogers PLC this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Rogers PLC' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: What are the top 10 products by sales for Kelley-Hernandez this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Kelley-Hernandez' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: What is the total profit for each category in Delacruz, Williams and Rodriguez? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Delacruz, Williams and Rodriguez' GROUP BY category ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Williams-Schmitt between 2024-05-10 and 2024-07-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Williams-Schmitt' AND order_date BETWEEN '2024-05-10' AND '2024-07-06' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Price, Owens and Nielsen 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, Owens and Nielsen' + 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 sing category with a price over $707.15. +SQL Query: SELECT * FROM products WHERE category = 'sing' AND price > 707.15 + +Natural Query: List all products of Mendoza-Wiggins ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mendoza-Wiggins' ORDER BY rating DESC + +Natural Query: Show me all products in the environment category with a price over $877.12. +SQL Query: SELECT * FROM products WHERE category = 'environment' AND price > 877.12 + +Natural Query: Show me all products in the south category with a price over $77.58. +SQL Query: SELECT * FROM products WHERE category = 'south' AND price > 77.58 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in House 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 = 'House 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 sales for each supplier in Fisher PLC? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Fisher 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 Reese, Mitchell and Flores 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, Mitchell and Flores' + 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 Thompson Inc? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Thompson Inc' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the total sales for each category in Stewart Ltd? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Stewart Ltd' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all products of Jones, Williamson and Love ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jones, Williamson and Love' ORDER BY rating ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hayes-Thomas 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 = 'Hayes-Thomas' + 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-Robertson ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith-Robertson' ORDER BY rating ASC + +Natural Query: What is the total sales for each category in Ho Group? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Ho Group' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the total sales for each country in Russell-Juarez? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Russell-Juarez' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the maximum quantity of all products for Tucker, Montoya and Thomas? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Tucker, Montoya and Thomas' + +Natural Query: Show me all products in the executive category with a price over $705.39. +SQL Query: SELECT * FROM products WHERE category = 'executive' AND price > 705.39 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mcdonald 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 = 'Mcdonald 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 profit for each country in Casey, Kelly and Wilson? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Casey, Kelly and Wilson' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Wilson, Bailey and Howell 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, Bailey and Howell' + 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 Smith 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 = 'Smith PLC' GROUP BY c.customer_id + +Natural Query: Show me all products in the majority category with a price over $934.88. +SQL Query: SELECT * FROM products WHERE category = 'majority' AND price > 934.88 + +Natural Query: What is the maximum quantity of all products for Perry-Drake? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Perry-Drake' + +Natural Query: List all products of Boone, Duncan and Carson ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Boone, Duncan and Carson' ORDER BY price ASC + +Natural Query: What is the average price of all products for Jackson, Mclean and Cordova? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Jackson, Mclean and Cordova' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Zavala, Porter and Cruz 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 = 'Zavala, Porter and Cruz' + 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 Miller PLC between 2024-04-21 and 2024-06-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Miller PLC' AND order_date BETWEEN '2024-04-21' AND '2024-06-30' + +Natural Query: List all customers and their total order value for Davidson, Bradley and 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 = 'Davidson, Bradley and Harris' GROUP BY c.customer_id + +Natural Query: List all products of Mueller, Daniel and Thomas ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mueller, Daniel and Thomas' ORDER BY price DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Patterson-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 = 'Patterson-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 are the top 5 categories by sales for customers aged 25-35 in Davis, Bright and Wiggins 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, Bright and Wiggins' + 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 Alexander Inc ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Alexander Inc' ORDER BY price DESC + +Natural Query: What is the average price of all products for Alvarez and Sons? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Alvarez and Sons' + +Natural Query: What is the total sales for each category in Stuart-Perez? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Stuart-Perez' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the maximum quantity of all products for Schmidt Inc? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Schmidt Inc' + +Natural Query: What are the top 7 products by customers for Rangel, Perez and Guzman all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Rangel, Perez and Guzman' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: What is the maximum price of all products for Pruitt, Dudley and Myers? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Pruitt, Dudley and Myers' + +Natural Query: What is the total profit for each country in Simmons LLC? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Simmons LLC' GROUP BY country ORDER BY total_profit DESC + +Natural Query: Show me all products in the bad category with a price over $253.87. +SQL Query: SELECT * FROM products WHERE category = 'bad' AND price > 253.87 + +Natural Query: What is the total quantity for each country in Odonnell Ltd? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Odonnell Ltd' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the total quantity of all products for Higgins, Gonzales and Fuller? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Higgins, Gonzales and Fuller' + +Natural Query: What is the average rating of all products for Gomez Group? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Gomez Group' + +Natural Query: List all customers and their total order value for Underwood-Castillo. +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-Castillo' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Gordon-Adams between 2024-02-21 and 2024-03-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gordon-Adams' AND order_date BETWEEN '2024-02-21' AND '2024-03-03' + +Natural Query: What is the total rating of all products for Berger PLC? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Berger PLC' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Shea 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 = 'Shea 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 maximum price of all products for Phelps-Flores? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Phelps-Flores' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hernandez, Daniels and Ward 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, Daniels and Ward' + 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 Davis Inc? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Davis Inc' + +Natural Query: List all customers and their total order value for Vazquez-Ponce. +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 = 'Vazquez-Ponce' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Vasquez, Pacheco 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 = 'Vasquez, Pacheco and Curtis' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Bright 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 = 'Bright Ltd' + 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 former category with a price over $459.42. +SQL Query: SELECT * FROM products WHERE category = 'former' AND price > 459.42 + +Natural Query: What are the top 10 products by revenue for Schwartz Inc all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Schwartz Inc' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: What is the total quantity for each category in Price Group? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Price Group' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hampton, Williams and Mcguire 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 = 'Hampton, Williams and Mcguire' + 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 Torres, Kim and Hunter between 2024-03-29 and 2024-08-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Torres, Kim and Hunter' AND order_date BETWEEN '2024-03-29' AND '2024-08-03' + +Natural Query: How many orders were placed for Robinson, Morrow and Smith between 2024-03-25 and 2024-09-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Robinson, Morrow and Smith' AND order_date BETWEEN '2024-03-25' AND '2024-09-11' + +Natural Query: What is the total profit for each country in Miller, Ford and Castillo? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Miller, Ford and Castillo' GROUP BY country ORDER BY total_profit DESC + +Natural Query: Show me all products in the seven category with a price over $603.67. +SQL Query: SELECT * FROM products WHERE category = 'seven' AND price > 603.67 + +Natural Query: What is the total rating of all products for Rodriguez, Contreras and Taylor? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Rodriguez, Contreras and Taylor' + +Natural Query: Show me all products in the life category with a price over $976.08. +SQL Query: SELECT * FROM products WHERE category = 'life' AND price > 976.08 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cannon, Lopez and Reynolds 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 = 'Cannon, Lopez and Reynolds' + 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 Li Ltd ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Li Ltd' ORDER BY rating ASC + +Natural Query: What are the top 10 products by customers for Jackson-Mack this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Jackson-Mack' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10 + +Natural Query: List all customers and their total order value for Gomez 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 = 'Gomez Ltd' GROUP BY c.customer_id + +Natural Query: What is the average price of all products for Hinton, Clay and Hudson? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Hinton, Clay and Hudson' + +Natural Query: List all customers and their total order value for Morris-Bird. +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 = 'Morris-Bird' GROUP BY c.customer_id + +Natural Query: List all products of Lewis, Hughes and Li ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lewis, Hughes and Li' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Leblanc 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 = 'Leblanc Group' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Hoffman, Brown and Bolton between 2024-06-24 and 2024-07-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hoffman, Brown and Bolton' AND order_date BETWEEN '2024-06-24' AND '2024-07-01' + +Natural Query: How many orders were placed for Middleton-Reed between 2024-02-12 and 2024-06-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Middleton-Reed' AND order_date BETWEEN '2024-02-12' AND '2024-06-18' + +Natural Query: Show me all products in the machine category with a price over $783.13. +SQL Query: SELECT * FROM products WHERE category = 'machine' AND price > 783.13 + +Natural Query: List all products of Gallagher-Barber ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gallagher-Barber' ORDER BY rating DESC + +Natural Query: What are the top 9 products by sales for Patel LLC last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Patel LLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: List all customers and their total order value for Sanchez, Gregory and 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 = 'Sanchez, Gregory and Green' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Galloway, Stewart and Walsh between 2023-10-05 and 2024-07-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Galloway, Stewart and Walsh' AND order_date BETWEEN '2023-10-05' AND '2024-07-03' + +Natural Query: What is the total profit for each category in Nolan, Myers and Jackson? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Nolan, Myers and Jackson' GROUP BY category ORDER BY total_profit DESC + +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: Show me all products in the movie category with a price over $237.41. +SQL Query: SELECT * FROM products WHERE category = 'movie' AND price > 237.41 + +Natural Query: List all products of Boyd-Duffy ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Boyd-Duffy' ORDER BY rating ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mitchell-Mason 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 = 'Mitchell-Mason' + 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 Johnson, Barrett and Mccoy 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, Barrett and Mccoy' + 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 Chaney Ltd? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Chaney Ltd' + +Natural Query: What is the minimum quantity of all products for Larson-Pearson? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Larson-Pearson' + +Natural Query: What are the top 3 products by customers for Gibson-Olson last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Gibson-Olson' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +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 are the top 5 categories by sales for customers aged 25-35 in Rodriguez-Lamb 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 = 'Rodriguez-Lamb' + 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 Schmidt 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 = 'Schmidt 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 Harrison, Miller and Conrad. +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 = 'Harrison, Miller and Conrad' GROUP BY c.customer_id + +Natural Query: Show me all products in the million category with a price over $64.99. +SQL Query: SELECT * FROM products WHERE category = 'million' AND price > 64.99 + +Natural Query: What are the top 8 products by customers for Scott-Dixon this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Scott-Dixon' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: List all products of Farrell, Watkins and Jenkins ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Farrell, Watkins and Jenkins' ORDER BY rating ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hicks, Robinson and Harris 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 = 'Hicks, Robinson and Harris' + 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 Green, Flores and Olson 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, Flores and Olson' + 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 Powell, Mullins and Bennett between 2024-09-13 and 2024-09-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Powell, Mullins and Bennett' AND order_date BETWEEN '2024-09-13' AND '2024-09-14' + +Natural Query: What is the total sales for each country in Sanders-Jackson? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Sanders-Jackson' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all products of Vazquez Inc ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Vazquez Inc' ORDER BY rating DESC + +Natural Query: List all products of Ortega-Palmer ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ortega-Palmer' ORDER BY price ASC + +Natural Query: How many orders were placed for Jones-Alvarado between 2024-03-03 and 2024-04-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jones-Alvarado' AND order_date BETWEEN '2024-03-03' AND '2024-04-19' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Garcia, Le and Malone 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, Le and Malone' + 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 revenue for Adkins and Sons last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Adkins and Sons' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: Show me all products in the miss category with a price over $46.67. +SQL Query: SELECT * FROM products WHERE category = 'miss' AND price > 46.67 + +Natural Query: List all customers and their total order value for Harvey, Benjamin and Thompson. +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 = 'Harvey, Benjamin and Thompson' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Travis 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 = 'Travis Ltd' GROUP BY c.customer_id + +Natural Query: What are the top 7 products by customers for Harris, Sandoval and Frazier this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Harris, Sandoval and Frazier' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: List all customers and their total order value for Bates 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 = 'Bates Inc' GROUP BY c.customer_id + +Natural Query: What are the top 10 products by sales for Ayala-Hubbard this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Ayala-Hubbard' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: What is the minimum price of all products for Rios, Mitchell and Harris? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Rios, Mitchell and Harris' + +Natural Query: How many orders were placed for Mitchell and Sons between 2024-07-10 and 2024-08-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mitchell and Sons' AND order_date BETWEEN '2024-07-10' AND '2024-08-09' + +Natural Query: What are the top 9 products by revenue for Lee PLC all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Lee PLC' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: What is the total sales for each country in Frank-Cruz? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Frank-Cruz' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 10 products by sales for Miller-Fitzpatrick last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Miller-Fitzpatrick' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: List all customers and their total order value for Gray-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 = 'Gray-Jones' GROUP BY c.customer_id + +Natural Query: List all products of Olson and Sons ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Olson and Sons' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Berry, Solomon and Leonard. +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 = 'Berry, Solomon and Leonard' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Booker Group between 2024-07-12 and 2024-07-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Booker Group' AND order_date BETWEEN '2024-07-12' AND '2024-07-12' + +Natural Query: What is the maximum price of all products for Jones PLC? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Jones PLC' + +Natural Query: List all products of Cardenas LLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Cardenas LLC' ORDER BY rating DESC + +Natural Query: What are the top 6 products by sales for Jones Group this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Jones Group' 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 Mendoza 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 = 'Mendoza Ltd' + 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 Willis-Coleman. +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-Coleman' GROUP BY c.customer_id + +Natural Query: List all products of Lopez Group ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lopez Group' ORDER BY stock_quantity ASC + +Natural Query: How many orders were placed for Phelps Ltd between 2024-01-23 and 2024-03-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Phelps Ltd' AND order_date BETWEEN '2024-01-23' AND '2024-03-27' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Johnson 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 = 'Johnson 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 Chan, Rodriguez and Wood between 2024-02-23 and 2024-03-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Chan, Rodriguez and Wood' AND order_date BETWEEN '2024-02-23' AND '2024-03-21' + +Natural Query: How many orders were placed for Hall, Riley and Anderson between 2023-10-25 and 2023-12-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hall, Riley and Anderson' AND order_date BETWEEN '2023-10-25' AND '2023-12-26' + +Natural Query: What is the total quantity for each supplier in Smith-Hart? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Smith-Hart' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 8 products by sales for Banks-Tran this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Banks-Tran' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: What is the total profit for each supplier in Lee-Rodriguez? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Lee-Rodriguez' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Fleming, Hartman and Phillips 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 = 'Fleming, Hartman and Phillips' + 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 Brown LLC? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Brown LLC' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Frank 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 = 'Frank LLC' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Crosby LLC between 2024-01-12 and 2024-03-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Crosby LLC' AND order_date BETWEEN '2024-01-12' AND '2024-03-16' + +Natural Query: What is the total sales for each supplier in Rowland Group? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Rowland Group' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Frank, Hester and Snyder. +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 = 'Frank, Hester and Snyder' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Young-Hernandez 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 = 'Young-Hernandez' + 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 Campbell Ltd between 2024-05-27 and 2024-07-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Campbell Ltd' AND order_date BETWEEN '2024-05-27' AND '2024-07-22' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gonzalez 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 = 'Gonzalez 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 supplier in Howell, Moreno and Nguyen? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Howell, Moreno and Nguyen' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: Show me all products in the mother category with a price over $938.4. +SQL Query: SELECT * FROM products WHERE category = 'mother' AND price > 938.4 + +Natural Query: What are the top 6 products by orders for Hernandez LLC this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Hernandez LLC' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: List all products of Hansen LLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hansen LLC' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Thompson 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 = 'Thompson Group' GROUP BY c.customer_id + +Natural Query: What are the top 5 products by orders for Woods, Smith and Gutierrez this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Woods, Smith and Gutierrez' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: How many orders were placed for Smith, Payne and Perry between 2023-10-13 and 2024-05-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Smith, Payne and Perry' AND order_date BETWEEN '2023-10-13' AND '2024-05-12' + +Natural Query: What is the maximum price of all products for Harmon, Green and Robinson? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Harmon, Green and Robinson' + +Natural Query: What are the top 5 products by revenue for Burgess, Robinson and Rose last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Burgess, Robinson and Rose' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: List all products of Hernandez Ltd ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hernandez Ltd' ORDER BY price ASC + +Natural Query: How many orders were placed for Bell, Brown and Smith between 2023-12-04 and 2024-05-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bell, Brown and Smith' AND order_date BETWEEN '2023-12-04' AND '2024-05-14' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Taylor, Jackson and Hensley 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, Jackson and Hensley' + 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 Marshall-Hall this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Marshall-Hall' AND period = 'this year' 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 Williamson 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 = 'Williamson 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 5 categories by sales for customers aged 25-35 in Hodges-Bell 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 = 'Hodges-Bell' + 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 Flores, Wall and Armstrong. +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 = 'Flores, Wall and Armstrong' GROUP BY c.customer_id + +Natural Query: List all products of Hutchinson-Young ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hutchinson-Young' ORDER BY price ASC + +Natural Query: What is the total price of all products for Navarro-Gutierrez? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Navarro-Gutierrez' + +Natural Query: What is the minimum quantity of all products for Scott Group? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Scott Group' + +Natural Query: What are the top 9 products by orders for Walker Group all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Walker Group' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lewis-Warren 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-Warren' + 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 Byrd Inc ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Byrd Inc' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Stephens, Hernandez and Allison. +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 = 'Stephens, Hernandez and Allison' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Ortega-Farmer. +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 = 'Ortega-Farmer' GROUP BY c.customer_id + +Natural Query: What are the top 6 products by revenue for Howard PLC all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Howard PLC' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: List all customers and their total order value for Mullen-Leon. +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 = 'Mullen-Leon' GROUP BY c.customer_id + +Natural Query: What is the total sales for each supplier in Solis Ltd? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Solis Ltd' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the total sales for each supplier in Barton Group? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Barton 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 Craig 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 = 'Craig 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 products of Gutierrez, Dunn and Arnold ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gutierrez, Dunn and Arnold' ORDER BY price ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Alvarado 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 = 'Alvarado 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 are the top 5 categories by sales for customers aged 25-35 in Chase-Roy 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 = 'Chase-Roy' + 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 Duncan-Dean 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 = 'Duncan-Dean' + 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 inside category with a price over $920.71. +SQL Query: SELECT * FROM products WHERE category = 'inside' AND price > 920.71 + +Natural Query: What is the total quantity for each country in Murray, Myers and Ryan? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Murray, Myers and Ryan' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: Show me all products in the six category with a price over $64.13. +SQL Query: SELECT * FROM products WHERE category = 'six' AND price > 64.13 + +Natural Query: What are the top 3 products by sales for Levine, Garcia and Mack this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Levine, Garcia and Mack' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Warren-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 = 'Warren-Evans' + 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-Krause? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Martinez-Krause' + +Natural Query: List all products of Meyer LLC ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Meyer LLC' ORDER BY price DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Arellano, Bradley and Wolfe 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 = 'Arellano, Bradley and Wolfe' + 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 Rogers-Mendoza 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 = 'Rogers-Mendoza' + 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 revenue for Lucas-Rodriguez this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Lucas-Rodriguez' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: Show me all products in the every category with a price over $849.73. +SQL Query: SELECT * FROM products WHERE category = 'every' AND price > 849.73 + +Natural Query: What are the top 5 products by sales for Romero, Green and Williams all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Romero, Green and Williams' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: How many orders were placed for Holland LLC between 2024-05-17 and 2024-08-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Holland LLC' AND order_date BETWEEN '2024-05-17' AND '2024-08-18' + +Natural Query: How many orders were placed for Lewis, Johnson and Phillips between 2023-12-15 and 2024-01-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lewis, Johnson and Phillips' AND order_date BETWEEN '2023-12-15' AND '2024-01-18' + +Natural Query: List all products of Harris-Morrow ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Harris-Morrow' ORDER BY stock_quantity DESC + +Natural Query: How many orders were placed for Rosales PLC between 2024-01-08 and 2024-02-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Rosales PLC' AND order_date BETWEEN '2024-01-08' AND '2024-02-24' + +Natural Query: Show me all products in the indeed category with a price over $818.13. +SQL Query: SELECT * FROM products WHERE category = 'indeed' AND price > 818.13 + +Natural Query: What are the top 8 products by revenue for Reyes Ltd this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Reyes Ltd' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: What is the total rating of all products for Williams PLC? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Williams PLC' + +Natural Query: Show me all products in the method category with a price over $73.68. +SQL Query: SELECT * FROM products WHERE category = 'method' AND price > 73.68 + +Natural Query: What is the total quantity of all products for King, Bennett and Arnold? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'King, Bennett and Arnold' + +Natural Query: What is the total quantity for each supplier in Perez Ltd? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Perez Ltd' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the total sales for each category in Schmidt-Collins? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Schmidt-Collins' GROUP BY category ORDER BY total_sales DESC + +Natural Query: Show me all products in the never category with a price over $64.46. +SQL Query: SELECT * FROM products WHERE category = 'never' AND price > 64.46 + +Natural Query: List all products of Roberts-Smith ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Roberts-Smith' ORDER BY rating DESC + +Natural Query: How many orders were placed for Burke Group between 2024-05-16 and 2024-06-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Burke Group' AND order_date BETWEEN '2024-05-16' AND '2024-06-26' + +Natural Query: What is the average quantity of all products for Cook-Reed? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Cook-Reed' + +Natural Query: What is the minimum rating of all products for Parker, Strong and Munoz? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Parker, Strong and Munoz' + +Natural Query: What are the top 8 products by customers for Martinez, Woodward and Miller all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Martinez, Woodward and Miller' AND period = 'all time' 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 Frey 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 = 'Frey 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 8 products by orders for Cain PLC all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Cain PLC' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: Show me all products in the store category with a price over $819.33. +SQL Query: SELECT * FROM products WHERE category = 'store' AND price > 819.33 + +Natural Query: What are the top 4 products by orders for Parker and Sons last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Parker 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 Fritz-Randall? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Fritz-Randall' + +Natural Query: What are the top 10 products by orders for Long, Ramirez and Wilson this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Long, Ramirez and Wilson' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: How many orders were placed for Anderson-Newman between 2023-10-02 and 2024-01-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Anderson-Newman' AND order_date BETWEEN '2023-10-02' AND '2024-01-16' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Jefferson 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 = 'Jefferson 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 4 products by customers for Butler, Pacheco and Riley this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Butler, Pacheco and Riley' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: List all customers and their total order value for Graham 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 = 'Graham PLC' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Young, Pugh and White. +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, Pugh and White' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Rodriguez 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 = 'Rodriguez PLC' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Ball 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 = 'Ball 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 Reid-Saunders between 2023-10-29 and 2024-07-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Reid-Saunders' AND order_date BETWEEN '2023-10-29' AND '2024-07-26' + +Natural Query: List all products of Burns, Long and Estrada ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Burns, Long and Estrada' ORDER BY rating ASC + +Natural Query: What are the top 3 products by orders for Graham Ltd last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Graham Ltd' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: List all customers and their total order value for Delgado, Lewis and Turner. +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 = 'Delgado, Lewis and Turner' GROUP BY c.customer_id + +Natural Query: What are the top 4 products by sales for Maynard LLC this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Maynard LLC' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: List all customers and their total order value for Mathews 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 = 'Mathews and Sons' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Dillon 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 = 'Dillon Group' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Warner, Gutierrez and Martin. +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 = 'Warner, Gutierrez and Martin' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Contreras-Graves between 2024-09-07 and 2024-09-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Contreras-Graves' AND order_date BETWEEN '2024-09-07' AND '2024-09-07' + +Natural Query: List all customers and their total order value for Sims 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 = 'Sims PLC' GROUP BY c.customer_id + +Natural Query: What is the total profit for each category in Garcia Group? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Garcia Group' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 7 products by orders for Camacho-Bowen this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Camacho-Bowen' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: What is the total sales for each country in Romero PLC? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Romero PLC' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 5 products by revenue for Cervantes-Williams this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Cervantes-Williams' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: What are the top 5 products by orders for Black, Mora and Huber last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Black, Mora and Huber' AND period = 'last quarter' 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 Cox, Manning 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 = 'Cox, Manning 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: List all products of Lawson Ltd ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lawson Ltd' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Key-Duncan 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 = 'Key-Duncan' + 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 customers for Gray-Pena last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Gray-Pena' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: What are the top 5 products by customers for Martin Group this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Martin Group' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: What are the top 4 products by orders for Thompson-Horton last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Thompson-Horton' 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 Williams, Martinez and Hill 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, Martinez and Hill' + 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 Castillo, Richardson and Williams? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Castillo, Richardson and Williams' + +Natural Query: What is the total profit for each supplier in Thomas Inc? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Thomas Inc' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Pope-Mckenzie. +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 = 'Pope-Mckenzie' GROUP BY c.customer_id + +Natural Query: List all products of Burke Group ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Burke Group' ORDER BY stock_quantity DESC + +Natural Query: What are the top 10 products by customers for Munoz, Smith and Smith last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Munoz, Smith and Smith' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10 + +Natural Query: What is the minimum rating of all products for White and Sons? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'White and Sons' + +Natural Query: What is the total quantity for each country in Adams-Phillips? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Adams-Phillips' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 10 products by orders for Hill LLC this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Hill LLC' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: How many orders were placed for Allen-Lawrence between 2023-12-16 and 2024-06-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Allen-Lawrence' AND order_date BETWEEN '2023-12-16' AND '2024-06-29' + +Natural Query: What is the total sales for each country in Clark, Sanchez and Burke? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Clark, Sanchez and Burke' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Wall-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 = 'Wall-Johnson' GROUP BY c.customer_id + +Natural Query: Show me all products in the leave category with a price over $624.68. +SQL Query: SELECT * FROM products WHERE category = 'leave' AND price > 624.68 + +Natural Query: What is the total profit for each supplier in Cummings LLC? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Cummings LLC' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Mathews 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 = 'Mathews and Sons' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each supplier in Rangel, Henry and Smith? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Rangel, Henry and Smith' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the total profit for each country in Wilson Inc? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Wilson Inc' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all products of Chavez-Owens ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Chavez-Owens' ORDER BY rating ASC + +Natural Query: What is the minimum quantity of all products for Ramos-Cooper? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Ramos-Cooper' + +Natural Query: What is the total profit for each category in Coleman-Green? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Coleman-Green' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 10 products by revenue for Adams, Jackson and Rhodes last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Adams, Jackson and Rhodes' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: What is the total profit for each category in Scott-Long? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Scott-Long' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 3 products by sales for Kennedy, Barnes and Cuevas last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Kennedy, Barnes and Cuevas' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: What is the total quantity for each supplier in Harris LLC? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Harris LLC' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all products of Torres and Sons ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Torres and Sons' ORDER BY rating DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Nelson 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 = 'Nelson 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 total sales for each country in Reed-Holmes? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Reed-Holmes' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the average quantity of all products for Schultz LLC? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Schultz LLC' + +Natural Query: List all products of Black and Sons ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Black and Sons' ORDER BY rating DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Roberts 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 = 'Roberts 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 Warren-Sullivan ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Warren-Sullivan' ORDER BY stock_quantity ASC + +Natural Query: What is the minimum quantity of all products for Rivers, Montgomery and Simmons? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Rivers, Montgomery and Simmons' + +Natural Query: List all customers and their total order value for Willis, Anderson 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 = 'Willis, Anderson and Smith' GROUP BY c.customer_id + +Natural Query: What are the top 5 products by sales for Morris Inc this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Morris Inc' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: How many orders were placed for Hampton, Hood and Bryant between 2024-05-30 and 2024-08-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hampton, Hood and Bryant' AND order_date BETWEEN '2024-05-30' AND '2024-08-16' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Beard, Ingram and Merritt 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, Ingram and Merritt' + 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 Johnson, Jimenez and Baker between 2024-09-10 and 2024-09-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Johnson, Jimenez and Baker' AND order_date BETWEEN '2024-09-10' AND '2024-09-10' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Glover-Cantu 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 = 'Glover-Cantu' + 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 Grant-Robinson 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-Robinson' + 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 Key, Wang and Herman 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 = 'Key, Wang and Herman' + 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 Mendez and Sons? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Mendez and Sons' + +Natural Query: How many orders were placed for Shah Inc between 2023-12-07 and 2024-05-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Shah Inc' AND order_date BETWEEN '2023-12-07' AND '2024-05-20' + +Natural Query: List all products of Stephenson, Crane and Smith ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Stephenson, Crane and Smith' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Thompson, Gonzales and Gordon 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, Gonzales and Gordon' + 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 Cole, Mitchell and 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 = 'Cole, Mitchell and Campbell' + 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 revenue for Perez, Cochran and Vasquez this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Perez, Cochran and Vasquez' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: List all products of Williamson-Robertson ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Williamson-Robertson' ORDER BY price DESC + +Natural Query: What is the total quantity for each category in Young-Farley? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Young-Farley' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 3 products by orders for Davenport-Gardner this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Davenport-Gardner' AND period = 'this month' 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 Garza 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 = 'Garza 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 Johnson, White and Ward ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Johnson, White and Ward' ORDER BY price DESC + +Natural Query: What is the total sales for each category in Silva-Jensen? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Silva-Jensen' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the total quantity for each supplier in Ramirez-Reed? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Ramirez-Reed' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: Show me all products in the base category with a price over $689.03. +SQL Query: SELECT * FROM products WHERE category = 'base' AND price > 689.03 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mcguire 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 = 'Mcguire 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 still category with a price over $302.19. +SQL Query: SELECT * FROM products WHERE category = 'still' AND price > 302.19 + +Natural Query: What is the total price of all products for Robinson, Sherman and Shelton? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Robinson, Sherman and Shelton' + +Natural Query: How many orders were placed for Ferguson-Chavez between 2023-12-31 and 2024-02-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ferguson-Chavez' AND order_date BETWEEN '2023-12-31' AND '2024-02-04' + +Natural Query: List all customers and their total order value for Williams, Mcguire and Mcdaniel. +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, Mcguire and Mcdaniel' GROUP BY c.customer_id + +Natural Query: What is the average quantity of all products for Jenkins Group? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Jenkins Group' + +Natural Query: List all products of King, Yang and Salinas ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'King, Yang and Salinas' ORDER BY rating DESC + +Natural Query: Show me all products in the among category with a price over $204.01. +SQL Query: SELECT * FROM products WHERE category = 'among' AND price > 204.01 + +Natural Query: What is the total profit for each category in Stanley-Wyatt? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Stanley-Wyatt' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the total sales for each supplier in Mccarty Inc? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Mccarty Inc' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the total price of all products for Ward and Sons? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Ward and Sons' + +Natural Query: What are the top 6 products by orders for Gonzalez-Thomas all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Gonzalez-Thomas' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: What are the top 4 products by revenue for Lee Ltd last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Lee Ltd' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: How many orders were placed for Scott-Cox between 2024-01-22 and 2024-05-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Scott-Cox' AND order_date BETWEEN '2024-01-22' AND '2024-05-12' + +Natural Query: What are the top 6 products by customers for Miles PLC this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Miles PLC' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: What are the top 6 products by customers for Mcdonald-Jones all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Mcdonald-Jones' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: List all products of Smith, Bell and Welch ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith, Bell and Welch' ORDER BY rating DESC + +Natural Query: List all customers and their total order value for Baker-Cortez. +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 = 'Baker-Cortez' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Hoover-Cardenas. +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 = 'Hoover-Cardenas' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Thompson 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 = 'Thompson 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 Alexander LLC between 2023-12-15 and 2024-01-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Alexander LLC' AND order_date BETWEEN '2023-12-15' AND '2024-01-21' + +Natural Query: What are the top 7 products by sales for Ortiz Inc this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Ortiz Inc' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: How many orders were placed for Gonzalez-Jones between 2024-05-10 and 2024-07-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gonzalez-Jones' AND order_date BETWEEN '2024-05-10' AND '2024-07-17' + +Natural Query: How many orders were placed for Ray, Davis and Pham between 2024-07-22 and 2024-08-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ray, Davis and Pham' AND order_date BETWEEN '2024-07-22' AND '2024-08-13' + +Natural Query: List all products of Maldonado Ltd ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Maldonado Ltd' ORDER BY price DESC + +Natural Query: What are the top 10 products by sales for Meyers LLC last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Meyers LLC' AND period = 'last quarter' 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 West-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 = 'West-Johnson' + 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 Taylor-Deleon 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-Deleon' + 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 orders for Lyons-Rowe this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Lyons-Rowe' AND period = 'this year' 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 Russell-Mcdonald 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 = 'Russell-Mcdonald' + 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 Mendez Ltd ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mendez Ltd' ORDER BY rating ASC + +Natural Query: List all products of Thomas and Sons ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Thomas and Sons' ORDER BY price DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hayes, Lee and Walker 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 = 'Hayes, Lee and Walker' + 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 Andrade Group ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Andrade Group' ORDER BY rating ASC + +Natural Query: How many orders were placed for Coleman-Hinton between 2023-11-25 and 2024-06-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Coleman-Hinton' AND order_date BETWEEN '2023-11-25' AND '2024-06-24' + +Natural Query: What is the total quantity for each category in Conley Ltd? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Conley Ltd' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all products of Mcmahon, Boyd and Smith ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mcmahon, Boyd and Smith' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Contreras, Carroll and Knox. +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 = 'Contreras, Carroll and Knox' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Garrett 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 = 'Garrett 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 Soto-Taylor between 2023-10-17 and 2023-11-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Soto-Taylor' AND order_date BETWEEN '2023-10-17' AND '2023-11-16' + +Natural Query: Show me all products in the measure category with a price over $834.13. +SQL Query: SELECT * FROM products WHERE category = 'measure' AND price > 834.13 + +Natural Query: How many orders were placed for Smith-Nichols between 2023-09-30 and 2023-12-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Smith-Nichols' AND order_date BETWEEN '2023-09-30' AND '2023-12-24' + +Natural Query: What are the top 3 products by customers for Johnson, Case and Howell last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Johnson, Case and Howell' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Sparks, Hogan and Robbins 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 = 'Sparks, Hogan and Robbins' + 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 Scott-Smith? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Scott-Smith' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 7 products by customers for Weaver, Vargas and Morris this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Weaver, Vargas and Morris' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: How many orders were placed for Johnson, Hanson and Ball between 2023-11-24 and 2024-05-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Johnson, Hanson and Ball' AND order_date BETWEEN '2023-11-24' AND '2024-05-12' + +Natural Query: What are the top 3 products by customers for Sanchez, Smith and Russell this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Sanchez, Smith and Russell' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: What is the total rating of all products for Carter PLC? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Carter PLC' + +Natural Query: List all customers and their total order value for Jones-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 = 'Jones-Bailey' GROUP BY c.customer_id + +Natural Query: What are the top 9 products by orders for Willis LLC all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Willis LLC' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mendoza-Zhang 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 = 'Mendoza-Zhang' + 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 Dixon LLC between 2023-11-01 and 2024-05-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Dixon LLC' AND order_date BETWEEN '2023-11-01' AND '2024-05-29' + +Natural Query: List all products of Johnson, Dodson and Martin ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Johnson, Dodson and Martin' ORDER BY price DESC + +Natural Query: What is the total sales for each supplier in Medina, Morales and Jones? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Medina, Morales and Jones' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Shelton, Wright and Thompson 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 = 'Shelton, Wright and Thompson' + 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 Allen-Booker. +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 = 'Allen-Booker' GROUP BY c.customer_id + +Natural Query: Show me all products in the TV category with a price over $507.43. +SQL Query: SELECT * FROM products WHERE category = 'TV' AND price > 507.43 + +Natural Query: What is the minimum quantity of all products for Benjamin, Rhodes and Campbell? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Benjamin, Rhodes and Campbell' + +Natural Query: Show me all products in the require category with a price over $68.56. +SQL Query: SELECT * FROM products WHERE category = 'require' AND price > 68.56 + +Natural Query: Show me all products in the than category with a price over $945.24. +SQL Query: SELECT * FROM products WHERE category = 'than' AND price > 945.24 + +Natural Query: List all customers and their total order value for Miller, Keith and Lucero. +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, Keith and Lucero' GROUP BY c.customer_id + +Natural Query: List all products of Winters LLC ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Winters LLC' ORDER BY stock_quantity ASC + +Natural Query: Show me all products in the almost category with a price over $574.25. +SQL Query: SELECT * FROM products WHERE category = 'almost' AND price > 574.25 + +Natural Query: How many orders were placed for George-Bass between 2023-09-23 and 2023-10-31? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'George-Bass' AND order_date BETWEEN '2023-09-23' AND '2023-10-31' + +Natural Query: What are the top 3 products by revenue for Holmes LLC all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Holmes LLC' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: List all customers and their total order value for Hanson, Newman and Barnett. +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 = 'Hanson, Newman and Barnett' GROUP BY c.customer_id + +Natural Query: List all products of Baker LLC ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Baker LLC' ORDER BY rating ASC + +Natural Query: What is the minimum price of all products for Romero, Davis and Haynes? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Romero, Davis and Haynes' + +Natural Query: What is the minimum price of all products for Miller LLC? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Miller LLC' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Clark-Padilla 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 = 'Clark-Padilla' + 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 Rivera and Sons? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Rivera and Sons' + +Natural Query: How many orders were placed for Ellison Ltd between 2024-05-24 and 2024-05-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ellison Ltd' AND order_date BETWEEN '2024-05-24' AND '2024-05-26' + +Natural Query: Show me all products in the meet category with a price over $432.89. +SQL Query: SELECT * FROM products WHERE category = 'meet' AND price > 432.89 + +Natural Query: What are the top 5 products by revenue for Reynolds, Garcia and Malone this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Reynolds, Garcia and Malone' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: What is the minimum rating of all products for Watson-Webb? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Watson-Webb' + +Natural Query: List all customers and their total order value for Dorsey 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 = 'Dorsey Group' GROUP BY c.customer_id + +Natural Query: What are the top 8 products by customers for Donovan, Jackson and Kelly this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Donovan, Jackson and Kelly' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: What is the total price of all products for Pitts-Yoder? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Pitts-Yoder' + +Natural Query: What is the total quantity for each category in Bennett-Murphy? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Bennett-Murphy' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 8 products by revenue for Garrett LLC last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Garrett LLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: What is the average quantity of all products for Nguyen LLC? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Nguyen LLC' + +Natural Query: What is the maximum rating of all products for Kelley Inc? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Kelley Inc' + +Natural Query: List all products of West-Castaneda ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'West-Castaneda' ORDER BY price ASC + +Natural Query: List all customers and their total order value for Kirby-Santos. +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 = 'Kirby-Santos' GROUP BY c.customer_id + +Natural Query: Show me all products in the enough category with a price over $668.99. +SQL Query: SELECT * FROM products WHERE category = 'enough' AND price > 668.99 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mann, Anderson and Nichols 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 = 'Mann, Anderson and Nichols' + 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 rating of all products for Thompson and Sons? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Thompson and Sons' + +Natural Query: What are the top 8 products by orders for Ayers, Snyder and Hunt this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Ayers, Snyder and Hunt' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: List all customers and their total order value for Taylor-Allen. +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 = 'Taylor-Allen' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Myers 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 = 'Myers PLC' + 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 board category with a price over $402.73. +SQL Query: SELECT * FROM products WHERE category = 'board' AND price > 402.73 + +Natural Query: What is the total profit for each country in Arnold PLC? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Arnold PLC' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all products of Mendez-Quinn ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mendez-Quinn' ORDER BY stock_quantity ASC + +Natural Query: List all customers and their total order value for Hill, Jones and Rowe. +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 = 'Hill, Jones and Rowe' GROUP BY c.customer_id + +Natural Query: What are the top 4 products by sales for Gibson, Aguirre and Bowen all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Gibson, Aguirre and Bowen' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: What is the total quantity for each supplier in Briggs-Lambert? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Briggs-Lambert' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the average price of all products for Howell-Miller? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Howell-Miller' + +Natural Query: List all customers and their total order value for Brown-Chen. +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-Chen' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Costa-Sharp. +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-Sharp' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Avila, Gray 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 = 'Avila, Gray and Smith' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Wallace-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 = 'Wallace-Lopez' GROUP BY c.customer_id + +Natural Query: What is the average price of all products for Ochoa-Brown? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Ochoa-Brown' + +Natural Query: List all products of Cole, Cooper and Rollins ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Cole, Cooper and Rollins' ORDER BY stock_quantity DESC + +Natural Query: Show me all products in the fight category with a price over $979.75. +SQL Query: SELECT * FROM products WHERE category = 'fight' AND price > 979.75 + +Natural Query: List all customers and their total order value for Clark 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 = 'Clark LLC' GROUP BY c.customer_id + +Natural Query: What is the total quantity of all products for Mills PLC? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Mills PLC' + +Natural Query: What is the total sales for each country in Taylor-Love? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Taylor-Love' GROUP BY country ORDER BY total_sales DESC + +Natural Query: Show me all products in the indeed category with a price over $173.0. +SQL Query: SELECT * FROM products WHERE category = 'indeed' AND price > 173.0 + +Natural Query: What is the total profit for each supplier in Bailey, Collins and Carter? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Bailey, Collins and Carter' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the total quantity for each category in Burgess, Thompson and Black? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Burgess, Thompson and Black' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Serrano 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 = 'Serrano Group' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Cox, Guerra and Wolfe between 2023-10-22 and 2023-12-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cox, Guerra and Wolfe' AND order_date BETWEEN '2023-10-22' AND '2023-12-17' + +Natural Query: What are the top 4 products by revenue for Friedman, Preston and Lang last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Friedman, Preston and Lang' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: What is the minimum price of all products for Mercado, Allen and Patrick? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Mercado, Allen and Patrick' + +Natural Query: What is the total quantity for each category in Montoya-Monroe? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Montoya-Monroe' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Thompson, Rivas 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 = 'Thompson, Rivas and Bailey' GROUP BY c.customer_id + +Natural Query: What is the total quantity of all products for Obrien-Marks? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Obrien-Marks' + +Natural Query: List all customers and their total order value for Baker-Wallace. +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 = 'Baker-Wallace' GROUP BY c.customer_id + +Natural Query: What are the top 3 products by orders for Rowe Group this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Rowe Group' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: Show me all products in the education category with a price over $835.78. +SQL Query: SELECT * FROM products WHERE category = 'education' AND price > 835.78 + +Natural Query: Show me all products in the policy category with a price over $439.44. +SQL Query: SELECT * FROM products WHERE category = 'policy' AND price > 439.44 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Wong-Sutton 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 = 'Wong-Sutton' + 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 Smith, Marsh 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 = 'Smith, Marsh and Gordon' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Smith 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 = 'Smith Group' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Grimes-Goodwin. +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 = 'Grimes-Goodwin' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Martin, Floyd and Hoffman between 2023-12-02 and 2024-06-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Martin, Floyd and Hoffman' AND order_date BETWEEN '2023-12-02' AND '2024-06-24' + +Natural Query: List all customers and their total order value for Hensley, Roberts and White. +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 = 'Hensley, Roberts and White' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each category in Mcdaniel, Harris and Harrington? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Mcdaniel, Harris and Harrington' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: Show me all products in the night category with a price over $336.42. +SQL Query: SELECT * FROM products WHERE category = 'night' AND price > 336.42 + +Natural Query: What are the top 4 products by revenue for Wheeler, Jefferson and Martin all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Wheeler, Jefferson and Martin' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: What are the top 5 products by revenue for Hardy and Sons this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Hardy and Sons' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: List all products of Foster-Houston ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Foster-Houston' ORDER BY price ASC + +Natural Query: List all products of Adams, Torres and Johnson ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Adams, Torres and Johnson' ORDER BY price DESC + +Natural Query: List all products of Griffin-Carter ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Griffin-Carter' ORDER BY rating ASC + +Natural Query: What is the average price of all products for Ewing PLC? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Ewing PLC' + +Natural Query: List all customers and their total order value for Ramos-Edwards. +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-Edwards' GROUP BY c.customer_id + +Natural Query: What is the total profit for each category in Wu, Hubbard and Rodriguez? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Wu, Hubbard and Rodriguez' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Wilson-Graves 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-Graves' + 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 reduce category with a price over $639.58. +SQL Query: SELECT * FROM products WHERE category = 'reduce' AND price > 639.58 + +Natural Query: List all customers and their total order value for Lamb, Hudson and Carpenter. +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 = 'Lamb, Hudson and Carpenter' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lin-Howe 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 = 'Lin-Howe' + 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 Carlson-Lawson between 2024-08-30 and 2024-09-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Carlson-Lawson' AND order_date BETWEEN '2024-08-30' AND '2024-09-15' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Reeves 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 = 'Reeves 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 8 products by sales for Williams Ltd all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Williams Ltd' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: How many orders were placed for Park-Williams between 2024-03-20 and 2024-07-31? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Park-Williams' AND order_date BETWEEN '2024-03-20' AND '2024-07-31' + +Natural Query: List all customers and their total order value for Anderson, Torres and Clark. +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, Torres and Clark' GROUP BY c.customer_id + +Natural Query: What is the total profit for each country in Ross Group? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Ross Group' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What is the total sales for each country in Horne-Smith? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Horne-Smith' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 6 products by customers for Higgins Group last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Higgins Group' 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 Nguyen-Ruiz 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-Ruiz' + 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 Tucker-Brown between 2024-06-28 and 2024-07-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Tucker-Brown' AND order_date BETWEEN '2024-06-28' AND '2024-07-18' + +Natural Query: Show me all products in the energy category with a price over $792.14. +SQL Query: SELECT * FROM products WHERE category = 'energy' AND price > 792.14 + +Natural Query: What are the top 3 products by orders for Castillo, Daniels and Simmons this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Castillo, Daniels and Simmons' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: How many orders were placed for Anderson PLC between 2024-07-19 and 2024-08-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Anderson PLC' AND order_date BETWEEN '2024-07-19' AND '2024-08-16' + +Natural Query: What is the total quantity for each country in Durham-Reed? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Durham-Reed' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the total quantity for each country in Smith, Green and Salas? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Smith, Green and Salas' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 5 products by customers for Clarke, White and Adams this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Clarke, White and Adams' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: How many orders were placed for Boyer-Duke between 2023-10-16 and 2024-07-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Boyer-Duke' AND order_date BETWEEN '2023-10-16' AND '2024-07-22' + +Natural Query: List all customers and their total order value for Curry, Koch and Bates. +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 = 'Curry, Koch and Bates' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each supplier in Rowe-Morales? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Rowe-Morales' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the maximum price of all products for Garrison-Kramer? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Garrison-Kramer' + +Natural Query: Show me all products in the treat category with a price over $238.98. +SQL Query: SELECT * FROM products WHERE category = 'treat' AND price > 238.98 + +Natural Query: What is the total sales for each country in Hays PLC? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hays PLC' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Boyd 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 = 'Boyd and Sons' GROUP BY c.customer_id + +Natural Query: Show me all products in the picture category with a price over $388.32. +SQL Query: SELECT * FROM products WHERE category = 'picture' AND price > 388.32 + +Natural Query: List all customers and their total order value for Martin 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 = 'Martin LLC' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Neal, Strong 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 = 'Neal, Strong and Davis' GROUP BY c.customer_id + +Natural Query: What is the total profit for each supplier in Davis-Gray? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Davis-Gray' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Davis, Thornton and Vega 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, Thornton and Vega' + 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 9 products by customers for Martin-Payne all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Martin-Payne' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: How many orders were placed for Peterson Ltd between 2024-03-20 and 2024-06-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Peterson Ltd' AND order_date BETWEEN '2024-03-20' AND '2024-06-24' + +Natural Query: List all products of Browning Ltd ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Browning Ltd' ORDER BY rating DESC + +Natural Query: Show me all products in the more category with a price over $962.15. +SQL Query: SELECT * FROM products WHERE category = 'more' AND price > 962.15 + +Natural Query: List all customers and their total order value for Ward, Carrillo and Vargas. +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 = 'Ward, Carrillo and Vargas' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Carter, Lee and Crane. +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, Lee and Crane' GROUP BY c.customer_id + +Natural Query: What is the minimum rating of all products for Savage-Carter? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Savage-Carter' + +Natural Query: List all customers and their total order value for Mclean 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 = 'Mclean PLC' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hopkins 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 = 'Hopkins Ltd' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What is the total sales for each supplier in Rodriguez Group? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Rodriguez Group' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 7 products by orders for Berry PLC this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Berry PLC' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: How many orders were placed for James-Powell between 2024-08-11 and 2024-08-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'James-Powell' AND order_date BETWEEN '2024-08-11' AND '2024-08-26' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Woodward, Gordon and 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 = 'Woodward, Gordon and Martin' + 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 cost category with a price over $16.53. +SQL Query: SELECT * FROM products WHERE category = 'cost' AND price > 16.53 + +Natural Query: List all customers and their total order value for Miller 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 = 'Miller PLC' GROUP BY c.customer_id + +Natural Query: What are the top 3 products by customers for Zimmerman, Morris and Ross this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Zimmerman, Morris and Ross' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: List all products of Hall-Simon ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hall-Simon' ORDER BY price ASC + +Natural Query: What is the average quantity of all products for Nelson, Harrington and Carpenter? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Nelson, Harrington and Carpenter' + +Natural Query: How many orders were placed for Walls-Rodriguez between 2024-01-30 and 2024-02-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Walls-Rodriguez' AND order_date BETWEEN '2024-01-30' AND '2024-02-08' + +Natural Query: What is the total sales for each supplier in Lopez Ltd? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Lopez Ltd' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Ramirez, Kerr and Stokes between 2024-02-01 and 2024-08-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ramirez, Kerr and Stokes' AND order_date BETWEEN '2024-02-01' AND '2024-08-29' + +Natural Query: What are the top 7 products by sales for Davies, Russell and Ramirez last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Davies, Russell and Ramirez' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: List all products of Anderson-Garner ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Anderson-Garner' ORDER BY price DESC + +Natural Query: Show me all products in the seem category with a price over $218.03. +SQL Query: SELECT * FROM products WHERE category = 'seem' AND price > 218.03 + +Natural Query: What is the total quantity for each supplier in Dean PLC? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Dean PLC' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the total quantity for each country in Stephenson, Barry and Perez? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Stephenson, Barry and Perez' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Fernandez-Arroyo 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 = 'Fernandez-Arroyo' + 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 Figueroa 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 = 'Figueroa 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 products of Johnson LLC ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Johnson LLC' ORDER BY price ASC + +Natural Query: What is the total profit for each category in Harris, Schroeder and Schmidt? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Harris, Schroeder and Schmidt' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Pena 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 = 'Pena 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 Carlson-Sanders ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Carlson-Sanders' ORDER BY stock_quantity DESC + +Natural Query: How many orders were placed for Thomas PLC between 2024-07-18 and 2024-07-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thomas PLC' AND order_date BETWEEN '2024-07-18' AND '2024-07-26' + +Natural Query: List all customers and their total order value for Thomas, Williams and Powell. +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, Williams and Powell' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Ramos 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 = 'Ramos LLC' GROUP BY c.customer_id + +Natural Query: What is the total profit for each supplier in Smith, White and Carr? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Smith, White and Carr' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the total price of all products for Williams and Sons? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Williams and Sons' + +Natural Query: List all customers and their total order value for Armstrong, Martin and Fields. +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 = 'Armstrong, Martin and Fields' GROUP BY c.customer_id + +Natural Query: List all products of Mendoza, Roberts and Carpenter ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mendoza, Roberts and Carpenter' ORDER BY stock_quantity DESC + +Natural Query: What is the total quantity for each supplier in Murphy, Campos and Ward? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Murphy, Campos and Ward' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 8 products by orders for Flowers Inc last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Flowers Inc' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: How many orders were placed for Edwards-Ponce between 2023-09-27 and 2024-04-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Edwards-Ponce' AND order_date BETWEEN '2023-09-27' AND '2024-04-16' + +Natural Query: How many orders were placed for Howard, Potts and Miller between 2024-09-02 and 2024-09-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Howard, Potts and Miller' AND order_date BETWEEN '2024-09-02' AND '2024-09-14' + +Natural Query: What are the top 7 products by sales for Keller-Sanders all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Keller-Sanders' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: Show me all products in the environment category with a price over $789.94. +SQL Query: SELECT * FROM products WHERE category = 'environment' AND price > 789.94 + +Natural Query: What are the top 7 products by customers for Johnston, Holloway and Joyce this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Johnston, Holloway and Joyce' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: List all products of Kent, Perez and Payne ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Kent, Perez and Payne' ORDER BY stock_quantity ASC + +Natural Query: Show me all products in the require category with a price over $937.28. +SQL Query: SELECT * FROM products WHERE category = 'require' AND price > 937.28 + +Natural Query: What is the total rating of all products for Hines, Gray and Sharp? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Hines, Gray and Sharp' + +Natural Query: What is the maximum rating of all products for Alexander, Nguyen and Klein? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Alexander, Nguyen and Klein' + +Natural Query: How many orders were placed for Mcdonald-Miller between 2024-05-09 and 2024-08-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mcdonald-Miller' AND order_date BETWEEN '2024-05-09' AND '2024-08-07' + +Natural Query: Show me all products in the close category with a price over $515.85. +SQL Query: SELECT * FROM products WHERE category = 'close' AND price > 515.85 + +Natural Query: What is the total price of all products for Riley, Butler and Chase? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Riley, Butler and Chase' + +Natural Query: List all customers and their total order value for Clayton, Baker and Sanchez. +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 = 'Clayton, Baker and Sanchez' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Perry, Hensley and Watson 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 = 'Perry, Hensley and Watson' + 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 Savage-George? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Savage-George' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What is the minimum price of all products for Patrick-Patrick? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Patrick-Patrick' + +Natural Query: What is the total quantity for each category in Henry-Martin? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Henry-Martin' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 4 products by revenue for Ramirez-Kemp this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Ramirez-Kemp' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: What is the minimum quantity of all products for Brown and Sons? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Brown and Sons' + +Natural Query: List all customers and their total order value for Pittman 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 = 'Pittman Group' GROUP BY c.customer_id + +Natural Query: What is the total rating of all products for Ellis-Terry? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Ellis-Terry' + +Natural Query: List all customers and their total order value for Garcia-Flores. +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-Flores' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Reed 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 = 'Reed 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 products by orders for Ellis LLC this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Ellis LLC' AND period = 'this year' 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 Elliott, Jones and Solomon 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 = 'Elliott, Jones and Solomon' + 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 Larsen-Krause between 2023-12-11 and 2024-02-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Larsen-Krause' AND order_date BETWEEN '2023-12-11' AND '2024-02-08' + +Natural Query: What are the top 4 products by orders for Boyer, Howard and Rodriguez this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Boyer, Howard and Rodriguez' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: List all customers and their total order value for Olson, Baker and 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 = 'Olson, Baker and Thomas' GROUP BY c.customer_id + +Natural Query: What are the top 6 products by customers for Henry, Blake and Durham last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Henry, Blake and Durham' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: List all products of Montoya-Gonzalez ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Montoya-Gonzalez' ORDER BY rating DESC + +Natural Query: List all customers and their total order value for Davis-Donaldson. +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 = 'Davis-Donaldson' GROUP BY c.customer_id + +Natural Query: List all products of Douglas Group ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Douglas Group' ORDER BY price DESC + +Natural Query: What is the total sales for each country in Reed Inc? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Reed Inc' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the total rating of all products for Adams-Lane? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Adams-Lane' + +Natural Query: List all customers and their total order value for Clark-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 = 'Clark-Johnson' GROUP BY c.customer_id + +Natural Query: What are the top 6 products by customers for Harper, Mcdowell and Watson this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Harper, Mcdowell and Watson' AND period = 'this month' 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 Edwards, Flowers and Gould 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, Flowers and Gould' + 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 Bryan-Evans between 2024-08-26 and 2024-09-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bryan-Evans' AND order_date BETWEEN '2024-08-26' AND '2024-09-05' + +Natural Query: What is the total profit for each country in Carter-Washington? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Carter-Washington' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Yang, Hansen and 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 = 'Yang, Hansen and Ramirez' GROUP BY c.customer_id + +Natural Query: Show me all products in the north category with a price over $444.09. +SQL Query: SELECT * FROM products WHERE category = 'north' AND price > 444.09 + +Natural Query: What is the total profit for each country in Cunningham PLC? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Cunningham PLC' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What is the total profit for each country in Pham-Hunter? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Pham-Hunter' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all products of Swanson-King ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Swanson-King' ORDER BY stock_quantity DESC + +Natural Query: What is the total profit for each category in Guerrero Inc? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Guerrero Inc' GROUP BY category ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Spencer-Jones between 2024-03-25 and 2024-05-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Spencer-Jones' AND order_date BETWEEN '2024-03-25' AND '2024-05-07' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Stewart, Phillips and Richards 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, Phillips and Richards' + 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 Gutierrez, Mcintyre and Jordan ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gutierrez, Mcintyre and Jordan' ORDER BY price ASC + +Natural Query: List all customers and their total order value for Warren-Horne. +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 = 'Warren-Horne' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Price, Garcia and Gonzalez. +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 = 'Price, Garcia and Gonzalez' GROUP BY c.customer_id + +Natural Query: List all products of Armstrong PLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Armstrong PLC' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cook, Mason 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 = 'Cook, Mason 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 are the top 5 categories by sales for customers aged 25-35 in Reyes 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 = 'Reyes 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 customers and their total order value for Guzman, Brooks and Shaw. +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 = 'Guzman, Brooks and Shaw' GROUP BY c.customer_id + +Natural Query: Show me all products in the manager category with a price over $874.03. +SQL Query: SELECT * FROM products WHERE category = 'manager' AND price > 874.03 + +Natural Query: What is the total quantity for each supplier in Henderson Inc? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Henderson Inc' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Evans 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 = 'Evans LLC' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Short-Gutierrez 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 = 'Short-Gutierrez' + 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 Rodgers, Cole and White? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Rodgers, Cole and White' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Herrera-Lowery. +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 = 'Herrera-Lowery' GROUP BY c.customer_id + +Natural Query: What is the maximum rating of all products for Ortiz, White and Davis? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Ortiz, White and Davis' + +Natural Query: What is the total quantity for each category in King, Stephens and Clark? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'King, Stephens and Clark' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all products of Russell, Wells and Harris ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Russell, Wells and Harris' ORDER BY stock_quantity ASC + +Natural Query: What are the top 3 products by orders for Robinson Inc last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Robinson Inc' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: What are the top 5 products by orders for Cox-Warner all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Cox-Warner' AND period = 'all time' 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 Mathis, Lee 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 = 'Mathis, Lee 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: What is the total quantity for each supplier in Richards-Collins? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Richards-Collins' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 8 products by revenue for Becker LLC last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Becker LLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: List all products of Williams-Keith ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Williams-Keith' ORDER BY stock_quantity ASC + +Natural Query: How many orders were placed for Briggs-Hendricks between 2024-04-10 and 2024-08-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Briggs-Hendricks' AND order_date BETWEEN '2024-04-10' AND '2024-08-23' + +Natural Query: List all customers and their total order value for Jones-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 = 'Jones-Smith' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Young, Villa and 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 = 'Young, Villa and 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 customers and their total order value for Robinson, Harrison and Lewis. +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, Harrison and Lewis' GROUP BY c.customer_id + +Natural Query: List all products of Matthews-Rodriguez ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Matthews-Rodriguez' ORDER BY price ASC + +Natural Query: What is the total quantity of all products for Mathews Inc? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Mathews Inc' + +Natural Query: List all products of Knight Group ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Knight Group' ORDER BY price DESC + +Natural Query: What is the minimum quantity of all products for Edwards-Moran? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Edwards-Moran' + +Natural Query: How many orders were placed for Roman LLC between 2023-09-27 and 2024-06-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Roman LLC' AND order_date BETWEEN '2023-09-27' AND '2024-06-18' + +Natural Query: How many orders were placed for King, Brown and Moore between 2024-01-26 and 2024-08-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'King, Brown and Moore' AND order_date BETWEEN '2024-01-26' AND '2024-08-04' + +Natural Query: List all customers and their total order value for Beltran, Lopez and Martinez. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Beltran, Lopez and Martinez' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Andrews 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 = 'Andrews Ltd' + 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 Davidson-Bradley. +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 = 'Davidson-Bradley' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Holmes-Ellis 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 = 'Holmes-Ellis' + 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 Lopez Ltd? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Lopez Ltd' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Andrews, Carrillo and Oliver 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, Carrillo and Oliver' + 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 Black-Brown ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Black-Brown' ORDER BY price ASC + +Natural Query: What are the top 4 products by revenue for Harrison, Bowen and Kelly this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Harrison, Bowen and Kelly' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: What is the total sales for each supplier in Juarez Ltd? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Juarez Ltd' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the total rating of all products for Brown, Chaney and Alexander? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Brown, Chaney and Alexander' + +Natural Query: List all products of Peters and Sons ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Peters and Sons' ORDER BY rating DESC + +Natural Query: What is the average rating of all products for Howard, Allen and Garrett? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Howard, Allen and Garrett' + +Natural Query: List all products of Watts, Jones and Silva ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Watts, Jones and Silva' ORDER BY price ASC + +Natural Query: How many orders were placed for Davis-Wise between 2024-02-12 and 2024-03-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Davis-Wise' AND order_date BETWEEN '2024-02-12' AND '2024-03-28' + +Natural Query: List all customers and their total order value for Hamilton 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 = 'Hamilton Inc' GROUP BY c.customer_id + +Natural Query: List all products of Flynn and Sons ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Flynn and Sons' ORDER BY rating DESC + +Natural Query: What is the minimum quantity of all products for Grant-Fuller? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Grant-Fuller' + +Natural Query: Show me all products in the coach category with a price over $34.25. +SQL Query: SELECT * FROM products WHERE category = 'coach' AND price > 34.25 + +Natural Query: What are the top 5 products by orders for Lewis, Richard and Mckinney last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Lewis, Richard and Mckinney' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: List all products of Rush, Dominguez and Hicks ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rush, Dominguez and Hicks' ORDER BY rating DESC + +Natural Query: What is the total profit for each supplier in Davis Group? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Davis Group' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all products of Miller-English ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Miller-English' ORDER BY rating ASC + +Natural Query: What is the total profit for each country in Avila Inc? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Avila Inc' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What is the total sales for each supplier in Rose-Young? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Rose-Young' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all products of Blanchard Ltd ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Blanchard Ltd' ORDER BY price DESC + +Natural Query: List all products of Collins Group ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Collins Group' ORDER BY stock_quantity DESC + +Natural Query: What are the top 10 products by customers for Robinson-Lucas this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Robinson-Lucas' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10 + +Natural Query: List all customers and their total order value for Blake 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 = 'Blake Group' GROUP BY c.customer_id + +Natural Query: What is the average rating of all products for Watson Ltd? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Watson Ltd' + +Natural Query: List all products of Riley-Morgan ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Riley-Morgan' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Brown, Elliott and Black. +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, Elliott and Black' GROUP BY c.customer_id + +Natural Query: Show me all products in the society category with a price over $823.51. +SQL Query: SELECT * FROM products WHERE category = 'society' AND price > 823.51 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Holt 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 = 'Holt 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 price of all products for Snyder, Jones and Robinson? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Snyder, Jones and Robinson' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Serrano 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 = 'Serrano 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 are the top 4 products by orders for Clark, Bernard and Skinner all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Clark, Bernard and Skinner' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: List all customers and their total order value for Murphy, Whitaker and Morales. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Murphy, Whitaker and Morales' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Hayes-Terrell. +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-Terrell' GROUP BY c.customer_id + +Natural Query: What is the total profit for each category in Ball-Dickson? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Ball-Dickson' GROUP BY category ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Greene, Watson and Atkins between 2024-07-20 and 2024-07-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Greene, Watson and Atkins' AND order_date BETWEEN '2024-07-20' AND '2024-07-25' + +Natural Query: What is the total quantity for each supplier in Reyes-Adams? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Reyes-Adams' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Kennedy, Peterson and Booth. +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 = 'Kennedy, Peterson and Booth' GROUP BY c.customer_id + +Natural Query: What is the minimum price of all products for Reynolds, Hudson and Pierce? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Reynolds, Hudson and Pierce' + +Natural Query: What are the top 4 products by orders for Perry Ltd all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Perry Ltd' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: List all customers and their total order value for Castro 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 = 'Castro Ltd' GROUP BY c.customer_id + +Natural Query: Show me all products in the character category with a price over $211.27. +SQL Query: SELECT * FROM products WHERE category = 'character' AND price > 211.27 + +Natural Query: What is the total sales for each supplier in Sullivan, Abbott and Owens? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Sullivan, Abbott and Owens' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: Show me all products in the pass category with a price over $703.29. +SQL Query: SELECT * FROM products WHERE category = 'pass' AND price > 703.29 + +Natural Query: What is the minimum price of all products for Wallace-Gaines? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Wallace-Gaines' + +Natural Query: How many orders were placed for Jackson Group between 2024-04-02 and 2024-04-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jackson Group' AND order_date BETWEEN '2024-04-02' AND '2024-04-21' + +Natural Query: List all products of Jackson Inc ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jackson Inc' ORDER BY price ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Santana 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 = 'Santana 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 sales for each supplier in White-Odonnell? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'White-Odonnell' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for George 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 = 'George LLC' GROUP BY c.customer_id + +Natural Query: Show me all products in the along category with a price over $809.06. +SQL Query: SELECT * FROM products WHERE category = 'along' AND price > 809.06 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lynch, Barrett 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 = 'Lynch, Barrett 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: How many orders were placed for Leonard-Molina between 2023-10-12 and 2024-01-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Leonard-Molina' AND order_date BETWEEN '2023-10-12' AND '2024-01-19' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Edwards, Morris and Norman 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, Morris and Norman' + 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 impact category with a price over $699.03. +SQL Query: SELECT * FROM products WHERE category = 'impact' AND price > 699.03 + +Natural Query: What is the minimum quantity of all products for Martin-Horn? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Martin-Horn' + +Natural Query: List all customers and their total order value for Charles-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 = 'Charles-Williams' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Brown-Moore between 2024-05-01 and 2024-05-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Brown-Moore' AND order_date BETWEEN '2024-05-01' AND '2024-05-24' + +Natural Query: Show me all products in the understand category with a price over $274.38. +SQL Query: SELECT * FROM products WHERE category = 'understand' AND price > 274.38 + +Natural Query: How many orders were placed for Lawson, Warren and Thompson between 2023-10-30 and 2024-02-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lawson, Warren and Thompson' AND order_date BETWEEN '2023-10-30' AND '2024-02-25' + +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: List all products of Pittman Ltd ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Pittman Ltd' ORDER BY price ASC + +Natural Query: List all customers and their total order value for Elliott, Williams and Price. +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 = 'Elliott, Williams and Price' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Jackson, Garcia and Sherman between 2024-03-31 and 2024-04-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jackson, Garcia and Sherman' AND order_date BETWEEN '2024-03-31' AND '2024-04-11' + +Natural Query: How many orders were placed for Thomas, Morgan and Santiago between 2024-09-13 and 2024-09-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thomas, Morgan and Santiago' AND order_date BETWEEN '2024-09-13' AND '2024-09-13' + +Natural Query: What is the total quantity for each supplier in Ward, Diaz and Sims? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Ward, Diaz and Sims' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Acosta, Farrell and Jordan between 2024-01-21 and 2024-08-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Acosta, Farrell and Jordan' AND order_date BETWEEN '2024-01-21' AND '2024-08-22' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Garza, Barnes and Higgins 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, Barnes and Higgins' + 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 Taylor 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 = 'Taylor 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 3 products by orders for Fowler-Bryant this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Fowler-Bryant' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: What are the top 7 products by orders for Rivera-White last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Rivera-White' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: What is the average quantity of all products for Hamilton, Lara and Turner? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Hamilton, Lara and Turner' + +Natural Query: How many orders were placed for Barron, Hodge and Waller between 2023-11-26 and 2023-12-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Barron, Hodge and Waller' AND order_date BETWEEN '2023-11-26' AND '2023-12-11' + +Natural Query: How many orders were placed for Phelps and Sons between 2024-07-27 and 2024-09-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Phelps and Sons' AND order_date BETWEEN '2024-07-27' AND '2024-09-11' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Williams 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 = 'Williams 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 Holt, Ayers and Ford between 2024-08-21 and 2024-08-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Holt, Ayers and Ford' AND order_date BETWEEN '2024-08-21' AND '2024-08-26' + +Natural Query: Show me all products in the girl category with a price over $89.71. +SQL Query: SELECT * FROM products WHERE category = 'girl' AND price > 89.71 + +Natural Query: What is the maximum rating of all products for Thomas, Thomas and Phillips? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Thomas, Thomas and Phillips' + +Natural Query: What are the top 7 products by sales for King-Swanson this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'King-Swanson' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: What is the total rating of all products for Ford, Eaton and Hood? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Ford, Eaton and Hood' + +Natural Query: How many orders were placed for Schmitt and Sons between 2024-03-07 and 2024-06-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Schmitt and Sons' AND order_date BETWEEN '2024-03-07' AND '2024-06-03' + +Natural Query: What is the total profit for each category in Stanley-Neal? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Stanley-Neal' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 10 products by revenue for Finley-Wood this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Finley-Wood' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: How many orders were placed for Marsh PLC between 2024-02-06 and 2024-03-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Marsh PLC' AND order_date BETWEEN '2024-02-06' AND '2024-03-19' + +Natural Query: What are the top 10 products by revenue for Jones, Kline and Grimes this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Jones, Kline and Grimes' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: How many orders were placed for Stevens-Williams between 2023-11-10 and 2024-06-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Stevens-Williams' AND order_date BETWEEN '2023-11-10' AND '2024-06-24' + +Natural Query: List all customers and their total order value for Rojas, Roberts and Bean. +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 = 'Rojas, Roberts and Bean' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Calderon Inc between 2024-05-07 and 2024-07-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Calderon Inc' AND order_date BETWEEN '2024-05-07' AND '2024-07-03' + +Natural Query: Show me all products in the begin category with a price over $364.35. +SQL Query: SELECT * FROM products WHERE category = 'begin' AND price > 364.35 + +Natural Query: What are the top 4 products by orders for Golden-Rodriguez this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Golden-Rodriguez' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: Show me all products in the company category with a price over $366.38. +SQL Query: SELECT * FROM products WHERE category = 'company' AND price > 366.38 + +Natural Query: Show me all products in the which category with a price over $392.12. +SQL Query: SELECT * FROM products WHERE category = 'which' AND price > 392.12 + +Natural Query: What is the total sales for each supplier in Davis, Gregory and Wright? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Davis, Gregory and Wright' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the total sales for each supplier in Smith-Marsh? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Smith-Marsh' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Greene, Parks and Simmons between 2024-02-28 and 2024-03-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Greene, Parks and Simmons' AND order_date BETWEEN '2024-02-28' AND '2024-03-08' + +Natural Query: What is the total sales for each country in Schmidt and Sons? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Schmidt and Sons' GROUP BY country ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Sullivan, Smith and James between 2024-05-30 and 2024-07-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Sullivan, Smith and James' AND order_date BETWEEN '2024-05-30' AND '2024-07-13' + +Natural Query: How many orders were placed for Brooks, Waters and Allen between 2024-01-02 and 2024-08-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Brooks, Waters and Allen' AND order_date BETWEEN '2024-01-02' AND '2024-08-16' + +Natural Query: What are the top 9 products by sales for Walker PLC this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Walker PLC' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: What is the total sales for each supplier in Perkins PLC? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Perkins PLC' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Hernandez 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 = 'Hernandez PLC' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Cruz Ltd between 2024-03-13 and 2024-05-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cruz Ltd' AND order_date BETWEEN '2024-03-13' AND '2024-05-09' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Dillon-Allen 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-Allen' + 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 them category with a price over $248.57. +SQL Query: SELECT * FROM products WHERE category = 'them' AND price > 248.57 + +Natural Query: Show me all products in the news category with a price over $381.04. +SQL Query: SELECT * FROM products WHERE category = 'news' AND price > 381.04 + +Natural Query: Show me all products in the nearly category with a price over $851.15. +SQL Query: SELECT * FROM products WHERE category = 'nearly' AND price > 851.15 + +Natural Query: List all customers and their total order value for Burke 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 = 'Burke PLC' GROUP BY c.customer_id + +Natural Query: Show me all products in the former category with a price over $681.55. +SQL Query: SELECT * FROM products WHERE category = 'former' AND price > 681.55 + +Natural Query: What is the total sales for each supplier in Murillo and Sons? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Murillo and Sons' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all products of Clarke-May ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Clarke-May' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Bauer 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 = 'Bauer Ltd' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Scott 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 = 'Scott PLC' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cook, Gonzalez and Robinson 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 = 'Cook, Gonzalez and Robinson' + 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 view category with a price over $373.42. +SQL Query: SELECT * FROM products WHERE category = 'view' AND price > 373.42 + +Natural Query: List all products of Moore Inc ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Moore Inc' ORDER BY stock_quantity ASC + +Natural Query: What is the total profit for each country in Wilson, Carlson and Marshall? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Wilson, Carlson and Marshall' GROUP BY country ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Contreras, Riley and Donaldson between 2024-05-07 and 2024-08-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Contreras, Riley and Donaldson' AND order_date BETWEEN '2024-05-07' AND '2024-08-28' + +Natural Query: List all products of Richards, Yates and Carney ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Richards, Yates and Carney' ORDER BY price ASC + +Natural Query: How many orders were placed for Cunningham-Martinez between 2024-07-27 and 2024-09-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cunningham-Martinez' AND order_date BETWEEN '2024-07-27' AND '2024-09-16' + +Natural Query: What are the top 6 products by orders for Walker, Curtis and Thomas this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Walker, Curtis and Thomas' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: What are the top 9 products by revenue for Collins Inc all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Collins Inc' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: Show me all products in the girl category with a price over $981.45. +SQL Query: SELECT * FROM products WHERE category = 'girl' AND price > 981.45 + +Natural Query: List all customers and their total order value for Johnson, James and Francis. +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, James and Francis' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Chan, Anderson and Fitzgerald. +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 = 'Chan, Anderson and Fitzgerald' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Torres-Rodriguez 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-Rodriguez' + 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 customers for Sanford, Thompson and Johnson all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Sanford, Thompson and Johnson' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: What is the total sales for each country in Boyer-Payne? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Boyer-Payne' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Powers 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 = 'Powers Ltd' + 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 Butler, Johnson and Miller ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Butler, Johnson and Miller' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Parker 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 = 'Parker and Sons' GROUP BY c.customer_id + +Natural Query: What is the maximum rating of all products for Mcgee, Jackson and Erickson? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Mcgee, Jackson and Erickson' + +Natural Query: What are the top 9 products by revenue for Walker LLC all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Walker LLC' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: What is the average quantity of all products for Cunningham-Black? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Cunningham-Black' + +Natural Query: List all products of Cummings-Jimenez ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Cummings-Jimenez' ORDER BY stock_quantity DESC + +Natural Query: What are the top 10 products by sales for Nelson, Wagner and Long this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Nelson, Wagner and Long' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: How many orders were placed for Payne, Hall and Hendricks between 2024-04-10 and 2024-07-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Payne, Hall and Hendricks' AND order_date BETWEEN '2024-04-10' AND '2024-07-28' + +Natural Query: How many orders were placed for Lynch-Moran between 2023-11-18 and 2024-06-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lynch-Moran' AND order_date BETWEEN '2023-11-18' AND '2024-06-03' + +Natural Query: List all products of Mayer Group ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mayer Group' ORDER BY price ASC + +Natural Query: Show me all products in the history category with a price over $53.97. +SQL Query: SELECT * FROM products WHERE category = 'history' AND price > 53.97 + +Natural Query: What are the top 8 products by sales for Roth LLC last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Roth LLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: What is the total sales for each supplier in Hancock LLC? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hancock LLC' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all products of Murphy, Howell and Hodges ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Murphy, Howell and Hodges' ORDER BY stock_quantity ASC + +Natural Query: List all products of Bradley Ltd ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Bradley Ltd' ORDER BY stock_quantity ASC + +Natural Query: List all customers and their total order value for Manning-Wood. +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 = 'Manning-Wood' GROUP BY c.customer_id + +Natural Query: Show me all products in the plant category with a price over $103.13. +SQL Query: SELECT * FROM products WHERE category = 'plant' AND price > 103.13 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lopez, Li and Olson 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, Li and Olson' + 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 Rush, Ponce and Turner? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Rush, Ponce and Turner' + +Natural Query: Show me all products in the market category with a price over $858.04. +SQL Query: SELECT * FROM products WHERE category = 'market' AND price > 858.04 + +Natural Query: What is the total sales for each supplier in Underwood PLC? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Underwood 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 Gardner 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 = 'Gardner 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 quantity for each category in Sandoval-Davis? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Sandoval-Davis' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Hunt 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 = 'Hunt Ltd' GROUP BY c.customer_id + +Natural Query: What is the maximum quantity of all products for Arnold, Gutierrez and Walker? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Arnold, Gutierrez and Walker' + +Natural Query: What is the total rating of all products for Beard PLC? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Beard PLC' + +Natural Query: How many orders were placed for Roberson Group between 2024-07-31 and 2024-09-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Roberson Group' AND order_date BETWEEN '2024-07-31' AND '2024-09-05' + +Natural Query: How many orders were placed for Saunders-Reid between 2024-03-09 and 2024-08-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Saunders-Reid' AND order_date BETWEEN '2024-03-09' AND '2024-08-04' + +Natural Query: What is the total quantity of all products for Richardson-Sanford? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Richardson-Sanford' + +Natural Query: What is the maximum rating of all products for Macias, Miller and Cunningham? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Macias, Miller and Cunningham' + +Natural Query: What are the top 5 products by customers for Matthews, Miller and Ruiz this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Matthews, Miller and Ruiz' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: Show me all products in the free category with a price over $697.15. +SQL Query: SELECT * FROM products WHERE category = 'free' AND price > 697.15 + +Natural Query: List all customers and their total order value for Fletcher 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 = 'Fletcher Inc' GROUP BY c.customer_id + +Natural Query: What is the total profit for each country in Thompson Ltd? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Thompson Ltd' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 7 products by customers for Morris, Smith and Shaffer last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Morris, Smith and Shaffer' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: How many orders were placed for Thomas-Wood between 2024-05-24 and 2024-06-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thomas-Wood' AND order_date BETWEEN '2024-05-24' AND '2024-06-01' + +Natural Query: List all products of Weber-Hudson ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Weber-Hudson' ORDER BY rating DESC + +Natural Query: What is the average rating of all products for Davis, Craig and Bender? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Davis, Craig and Bender' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Morales-Ruiz 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-Ruiz' + 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 Choi PLC ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Choi PLC' ORDER BY rating ASC + +Natural Query: Show me all products in the form category with a price over $281.13. +SQL Query: SELECT * FROM products WHERE category = 'form' AND price > 281.13 + +Natural Query: How many orders were placed for Romero Inc between 2024-09-14 and 2024-09-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Romero Inc' AND order_date BETWEEN '2024-09-14' AND '2024-09-14' + +Natural Query: How many orders were placed for Christian, Frederick and Villanueva between 2024-08-26 and 2024-09-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Christian, Frederick and Villanueva' AND order_date BETWEEN '2024-08-26' AND '2024-09-06' + +Natural Query: List all products of Webster PLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Webster PLC' ORDER BY rating DESC + +Natural Query: What is the total profit for each country in Chapman, Lopez and Dunn? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Chapman, Lopez and Dunn' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Bush 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 = 'Bush 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 Medina-Benson 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 = 'Medina-Benson' + 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 Barrera-Brown between 2023-10-26 and 2024-06-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Barrera-Brown' AND order_date BETWEEN '2023-10-26' AND '2024-06-16' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cantrell 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 = 'Cantrell 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 is the total quantity for each supplier in Dalton Ltd? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Dalton Ltd' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all products of Johnson-Lang ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Johnson-Lang' ORDER BY rating ASC + +Natural Query: What are the top 8 products by revenue for Terry, Nelson and Gomez all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Terry, Nelson and Gomez' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Martin-Parks 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 = 'Martin-Parks' + 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 Jimenez-Bass? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Jimenez-Bass' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 4 products by customers for Ramirez, Wright and Bell this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Ramirez, Wright and Bell' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: Show me all products in the order category with a price over $65.74. +SQL Query: SELECT * FROM products WHERE category = 'order' AND price > 65.74 + +Natural Query: What is the total sales for each country in Wade-Thompson? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Wade-Thompson' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the minimum rating of all products for Miller-Barker? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Miller-Barker' + +Natural Query: How many orders were placed for House-Olson between 2024-06-17 and 2024-08-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'House-Olson' AND order_date BETWEEN '2024-06-17' AND '2024-08-30' + +Natural Query: What is the average quantity of all products for Faulkner-Garcia? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Faulkner-Garcia' + +Natural Query: What are the top 5 products by customers for Morris-Elliott all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Morris-Elliott' AND period = 'all time' 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 Marshall, Wiggins and Lewis 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 = 'Marshall, Wiggins and Lewis' + 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 Stout-Fletcher? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Stout-Fletcher' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Cruz 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 = 'Cruz LLC' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Aguilar-Jackson. +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-Jackson' GROUP BY c.customer_id + +Natural Query: Show me all products in the which category with a price over $217.11. +SQL Query: SELECT * FROM products WHERE category = 'which' AND price > 217.11 + +Natural Query: List all products of Blackwell-Williamson ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Blackwell-Williamson' ORDER BY price DESC + +Natural Query: List all products of Collins, Morris and Ross ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Collins, Morris and Ross' ORDER BY price ASC + +Natural Query: Show me all products in the including category with a price over $553.41. +SQL Query: SELECT * FROM products WHERE category = 'including' AND price > 553.41 + +Natural Query: List all products of Johnson and Sons ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Johnson and Sons' ORDER BY stock_quantity DESC + +Natural Query: List all products of Nelson, Sullivan and Miller ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Nelson, Sullivan and Miller' ORDER BY price DESC + +Natural Query: List all products of Johnson LLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Johnson LLC' ORDER BY stock_quantity DESC + +Natural Query: List all products of Lewis-Booker ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lewis-Booker' ORDER BY stock_quantity ASC + +Natural Query: What is the maximum quantity of all products for Williams-Knight? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Williams-Knight' + +Natural Query: List all customers and their total order value for Singh, Campbell and Hoffman. +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 = 'Singh, Campbell and Hoffman' GROUP BY c.customer_id + +Natural Query: List all products of Chase-Garcia ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Chase-Garcia' ORDER BY rating ASC + +Natural Query: How many orders were placed for Brewer Group between 2024-07-23 and 2024-07-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Brewer Group' AND order_date BETWEEN '2024-07-23' AND '2024-07-29' + +Natural Query: List all customers and their total order value for Barnett-Turner. +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 = 'Barnett-Turner' GROUP BY c.customer_id + +Natural Query: What is the total rating of all products for Frazier Inc? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Frazier Inc' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Miller 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 = 'Miller 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 are the top 5 categories by sales for customers aged 25-35 in Smith, Blair and Lee 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, Blair and Lee' + 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 Dixon-Holloway 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 = 'Dixon-Holloway' + 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 Keller Ltd ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Keller Ltd' ORDER BY rating ASC + +Natural Query: Show me all products in the do category with a price over $928.71. +SQL Query: SELECT * FROM products WHERE category = 'do' AND price > 928.71 + +Natural Query: Show me all products in the music category with a price over $644.59. +SQL Query: SELECT * FROM products WHERE category = 'music' AND price > 644.59 + +Natural Query: What is the total profit for each country in Patterson-Morgan? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Patterson-Morgan' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What is the total sales for each category in Chan-Medina? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Chan-Medina' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hughes 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 = 'Hughes 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 Trevino-Larson 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 = 'Trevino-Larson' + 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 Crawford-Mclaughlin? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Crawford-Mclaughlin' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the minimum quantity of all products for Lewis and Sons? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Lewis and Sons' + +Natural Query: Show me all products in the draw category with a price over $991.83. +SQL Query: SELECT * FROM products WHERE category = 'draw' AND price > 991.83 + +Natural Query: List all customers and their total order value for Orr-Hawkins. +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 = 'Orr-Hawkins' GROUP BY c.customer_id + +Natural Query: What are the top 3 products by revenue for Rollins PLC this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Rollins PLC' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Porter 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 = 'Porter 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 is the total profit for each country in Warren, Martinez and Turner? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Warren, Martinez and Turner' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all products of Ramirez Group ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ramirez Group' ORDER BY price ASC + +Natural Query: Show me all products in the character category with a price over $268.75. +SQL Query: SELECT * FROM products WHERE category = 'character' AND price > 268.75 + +Natural Query: What is the total profit for each country in Barton, Lee and Adams? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Barton, Lee and Adams' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Hughes, Torres and Rivera. +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 = 'Hughes, Torres and Rivera' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Young, Williams and Miller. +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, Williams and Miller' GROUP BY c.customer_id + +Natural Query: What are the top 3 products by revenue for Moore, Gonzalez and Williams this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Moore, Gonzalez and Williams' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Chambers, Palmer 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 = 'Chambers, Palmer 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: How many orders were placed for Riley PLC between 2023-10-24 and 2024-02-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Riley PLC' AND order_date BETWEEN '2023-10-24' AND '2024-02-19' + +Natural Query: How many orders were placed for Reilly-Carter between 2023-10-19 and 2023-10-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Reilly-Carter' AND order_date BETWEEN '2023-10-19' AND '2023-10-29' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Wood 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 = 'Wood 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 Malone, Wheeler and Garcia. +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 = 'Malone, Wheeler and Garcia' GROUP BY c.customer_id + +Natural Query: What is the average quantity of all products for Bowman, Vincent and Allen? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Bowman, Vincent and Allen' + +Natural Query: What are the top 7 products by sales for Warren, Walker and Garner last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Warren, Walker and Garner' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Roberts-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 = 'Roberts-Anderson' + 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 Green, Mcgrath and Rollins? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Green, Mcgrath and Rollins' GROUP BY category ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Phillips and Sons between 2024-02-17 and 2024-04-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Phillips and Sons' AND order_date BETWEEN '2024-02-17' AND '2024-04-21' + +Natural Query: How many orders were placed for Watkins Inc between 2024-04-29 and 2024-08-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Watkins Inc' AND order_date BETWEEN '2024-04-29' AND '2024-08-06' + +Natural Query: What are the top 8 products by customers for Mitchell-Thomas this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Mitchell-Thomas' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: Show me all products in the must category with a price over $83.83. +SQL Query: SELECT * FROM products WHERE category = 'must' AND price > 83.83 + +Natural Query: How many orders were placed for Powell-Frank between 2024-01-28 and 2024-04-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Powell-Frank' AND order_date BETWEEN '2024-01-28' AND '2024-04-09' + +Natural Query: What is the total quantity for each country in Morrow, Wyatt and Lee? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Morrow, Wyatt and Lee' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the total quantity for each supplier in Hunter-Love? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Hunter-Love' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the maximum quantity of all products for Brown, Humphrey and Gaines? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Brown, Humphrey and Gaines' + +Natural Query: Show me all products in the speak category with a price over $911.96. +SQL Query: SELECT * FROM products WHERE category = 'speak' AND price > 911.96 + +Natural Query: List all customers and their total order value for Tran-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 = 'Tran-Morgan' GROUP BY c.customer_id + +Natural Query: Show me all products in the return category with a price over $556.17. +SQL Query: SELECT * FROM products WHERE category = 'return' AND price > 556.17 + +Natural Query: What is the total quantity of all products for Duarte and Sons? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Duarte and Sons' + +Natural Query: Show me all products in the network category with a price over $607.04. +SQL Query: SELECT * FROM products WHERE category = 'network' AND price > 607.04 + +Natural Query: What are the top 7 products by revenue for Diaz, Scott and Torres last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Diaz, Scott and Torres' 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 Green, Pace and Valencia all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Green, Pace and Valencia' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: What is the total price of all products for Ferguson-Jordan? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Ferguson-Jordan' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Estrada-Stewart 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 = 'Estrada-Stewart' + 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 Rogers 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 = 'Rogers Group' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Hunt Inc between 2023-09-24 and 2024-08-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hunt Inc' AND order_date BETWEEN '2023-09-24' AND '2024-08-29' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Miles 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 = 'Miles Ltd' + 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 nor category with a price over $767.7. +SQL Query: SELECT * FROM products WHERE category = 'nor' AND price > 767.7 + +Natural Query: What is the total quantity of all products for Gibson, Wilson and Henderson? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Gibson, Wilson and Henderson' + +Natural Query: List all customers and their total order value for Edwards-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 = 'Edwards-Green' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Bean-Thompson. +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 = 'Bean-Thompson' GROUP BY c.customer_id + +Natural Query: What is the total profit for each supplier in Martinez-Owens? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Martinez-Owens' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all products of Coleman Inc ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Coleman Inc' ORDER BY stock_quantity ASC + +Natural Query: How many orders were placed for Brown-Palmer between 2024-06-03 and 2024-06-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Brown-Palmer' AND order_date BETWEEN '2024-06-03' AND '2024-06-10' + +Natural Query: What is the maximum rating of all products for Maddox, Hensley and Gonzalez? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Maddox, Hensley and Gonzalez' + +Natural Query: What are the top 9 products by orders for Lopez-Buckley all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Lopez-Buckley' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: List all products of Cooke-Kline ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Cooke-Kline' ORDER BY price DESC + +Natural Query: What is the total quantity for each country in Shields-Stone? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Shields-Stone' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Dominguez PLC between 2024-05-23 and 2024-09-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Dominguez PLC' AND order_date BETWEEN '2024-05-23' AND '2024-09-16' + +Natural Query: What is the total sales for each category in Douglas LLC? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Douglas LLC' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Wilcox-Sullivan. +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 = 'Wilcox-Sullivan' GROUP BY c.customer_id + +Natural Query: What is the total rating of all products for Hall, Hart and Meyer? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Hall, Hart and Meyer' + +Natural Query: Show me all products in the thing category with a price over $127.67. +SQL Query: SELECT * FROM products WHERE category = 'thing' AND price > 127.67 + +Natural Query: What is the total profit for each supplier in Morrison, Sullivan and Hunt? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Morrison, Sullivan and Hunt' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 8 products by sales for Harris-Short this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Harris-Short' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: What is the average quantity of all products for Rogers-Hill? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Rogers-Hill' + +Natural Query: How many orders were placed for Johnson-Williams between 2024-01-17 and 2024-05-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Johnson-Williams' AND order_date BETWEEN '2024-01-17' AND '2024-05-20' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hernandez-Becker 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-Becker' + 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 Morgan-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 = 'Morgan-Berry' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: How many orders were placed for Williams PLC between 2024-05-06 and 2024-09-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Williams PLC' AND order_date BETWEEN '2024-05-06' AND '2024-09-09' + +Natural Query: What are the top 5 products by revenue for Jones Inc this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Jones Inc' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: What is the maximum quantity of all products for Santiago, Jones and Bradley? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Santiago, Jones and Bradley' + +Natural Query: What are the top 9 products by sales for Tucker and Sons last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Tucker and Sons' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: What is the total rating of all products for Freeman-Carlson? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Freeman-Carlson' + +Natural Query: List all customers and their total order value for Bauer-Roth. +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 = 'Bauer-Roth' GROUP BY c.customer_id + +Natural Query: What are the top 7 products by sales for Petty-Lawrence this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Petty-Lawrence' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: What is the maximum rating of all products for Holland and Sons? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Holland and Sons' + +Natural Query: What is the average price of all products for Miller Inc? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Miller Inc' + +Natural Query: What is the total quantity for each supplier in Gray-Sampson? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Gray-Sampson' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all products of Carrillo LLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Carrillo LLC' ORDER BY rating DESC + +Natural Query: Show me all products in the many category with a price over $696.0. +SQL Query: SELECT * FROM products WHERE category = 'many' AND price > 696.0 + +Natural Query: List all products of Warren, Lopez and Banks ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Warren, Lopez and Banks' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Newton, Riddle and Burnett. +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 = 'Newton, Riddle and Burnett' GROUP BY c.customer_id + +Natural Query: Show me all products in the simple category with a price over $20.2. +SQL Query: SELECT * FROM products WHERE category = 'simple' AND price > 20.2 + +Natural Query: What are the top 5 products by sales for Smith, Patterson and Key all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Smith, Patterson and Key' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: What is the minimum rating of all products for Vance, Martin and Flowers? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Vance, Martin and Flowers' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Walker, Martinez and Kennedy 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, Martinez and Kennedy' + 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 Coffey-Torres between 2023-09-27 and 2024-03-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Coffey-Torres' AND order_date BETWEEN '2023-09-27' AND '2024-03-20' + +Natural Query: How many orders were placed for Thomas-York between 2023-12-03 and 2024-06-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thomas-York' AND order_date BETWEEN '2023-12-03' AND '2024-06-19' + +Natural Query: What are the top 9 products by revenue for Wright PLC all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Wright PLC' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: List all customers and their total order value for Kirby 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 = 'Kirby PLC' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each category in Brown-Gonzalez? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Brown-Gonzalez' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the total quantity for each category in Harris, Holloway and Rivera? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Harris, Holloway and Rivera' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: Show me all products in the feel category with a price over $741.1. +SQL Query: SELECT * FROM products WHERE category = 'feel' AND price > 741.1 + +Natural Query: What are the top 6 products by orders for Holloway-Pierce all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Holloway-Pierce' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: What is the maximum price of all products for Schultz-Martinez? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Schultz-Martinez' + +Natural Query: List all customers and their total order value for Figueroa 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 = 'Figueroa Group' GROUP BY c.customer_id + +Natural Query: What are the top 8 products by sales for Chavez-Johnson last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Chavez-Johnson' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: What are the top 5 products by revenue for Davies, Washington and Perez this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Davies, Washington and Perez' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: What is the total profit for each supplier in Butler Inc? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Butler Inc' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the minimum quantity of all products for Baker-Campbell? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Baker-Campbell' + +Natural Query: List all customers and their total order value for Berg 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 = 'Berg Inc' GROUP BY c.customer_id + +Natural Query: What are the top 8 products by customers for Anderson, Travis and Taylor this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Anderson, Travis and Taylor' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: List all customers and their total order value for Sanchez, Walker and Sullivan. +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 = 'Sanchez, Walker and Sullivan' GROUP BY c.customer_id + +Natural Query: Show me all products in the gas category with a price over $966.71. +SQL Query: SELECT * FROM products WHERE category = 'gas' AND price > 966.71 + +Natural Query: What are the top 3 products by sales for Johnson-Pierce all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Johnson-Pierce' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: Show me all products in the cost category with a price over $451.61. +SQL Query: SELECT * FROM products WHERE category = 'cost' AND price > 451.61 + +Natural Query: What is the average quantity of all products for Meyers Inc? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Meyers Inc' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Owens, Gomez and Sanchez 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 = 'Owens, Gomez and Sanchez' + 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 Johnson-King 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-King' + 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 Nelson, Potts and Fernandez? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Nelson, Potts and Fernandez' GROUP BY country ORDER BY total_sales DESC + +Natural Query: Show me all products in the near category with a price over $357.62. +SQL Query: SELECT * FROM products WHERE category = 'near' AND price > 357.62 + +Natural Query: Show me all products in the herself category with a price over $247.36. +SQL Query: SELECT * FROM products WHERE category = 'herself' AND price > 247.36 + +Natural Query: What is the total profit for each country in Nielsen, Schultz and Robinson? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Nielsen, Schultz and Robinson' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lewis-Hoffman 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-Hoffman' + 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 Paul, Phillips and Dennis between 2024-06-26 and 2024-08-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Paul, Phillips and Dennis' AND order_date BETWEEN '2024-06-26' AND '2024-08-07' + +Natural Query: What are the top 6 products by sales for Jimenez, George and Hunter all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Jimenez, George and Hunter' 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 Scott, Montoya 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 = 'Scott, Montoya and Lucas' GROUP BY c.customer_id + +Natural Query: What are the top 3 products by sales for Guzman-Kelly last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Guzman-Kelly' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: What are the top 3 products by revenue for Schultz Inc this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Schultz Inc' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Porter, Weber and Hernandez 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 = 'Porter, Weber and Hernandez' + 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 Alvarez, Adams and Bright? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Alvarez, Adams and Bright' + +Natural Query: List all products of Payne, Brown and Mathis ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Payne, Brown and Mathis' ORDER BY price DESC + +Natural Query: Show me all products in the us category with a price over $460.2. +SQL Query: SELECT * FROM products WHERE category = 'us' AND price > 460.2 + +Natural Query: What is the total price of all products for Frazier-Hamilton? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Frazier-Hamilton' + +Natural Query: What are the top 5 products by revenue for Martinez Group this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Martinez Group' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: What is the total sales for each country in Reid, Morris and Chapman? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Reid, Morris and Chapman' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 4 products by revenue for Morales, Peterson and Smith last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Morales, Peterson and Smith' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Pacheco-Barry 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 = 'Pacheco-Barry' + 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 woman category with a price over $597.75. +SQL Query: SELECT * FROM products WHERE category = 'woman' AND price > 597.75 + +Natural Query: Show me all products in the identify category with a price over $459.94. +SQL Query: SELECT * FROM products WHERE category = 'identify' AND price > 459.94 + +Natural Query: What is the average quantity of all products for Mercer-Gray? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Mercer-Gray' + +Natural Query: What is the total sales for each supplier in Martin, Leon and Harper? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Martin, Leon and Harper' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all products of Richard, Garcia and Bell ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Richard, Garcia and Bell' ORDER BY stock_quantity ASC + +Natural Query: What are the top 10 products by revenue for Williams, Peterson and Brooks this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Williams, Peterson and Brooks' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: Show me all products in the nation category with a price over $829.12. +SQL Query: SELECT * FROM products WHERE category = 'nation' AND price > 829.12 + +Natural Query: What are the top 9 products by revenue for Howe-Shea this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Howe-Shea' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: Show me all products in the traditional category with a price over $901.85. +SQL Query: SELECT * FROM products WHERE category = 'traditional' AND price > 901.85 + +Natural Query: How many orders were placed for Bowman-Scott between 2024-01-18 and 2024-05-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bowman-Scott' AND order_date BETWEEN '2024-01-18' AND '2024-05-14' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Rowe 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 = 'Rowe 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 Bruce and Sons ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Bruce and Sons' ORDER BY rating ASC + +Natural Query: Show me all products in the total category with a price over $984.53. +SQL Query: SELECT * FROM products WHERE category = 'total' AND price > 984.53 + +Natural Query: What is the minimum price of all products for Bennett, Villarreal and Hart? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Bennett, Villarreal and Hart' + +Natural Query: Show me all products in the whose category with a price over $645.87. +SQL Query: SELECT * FROM products WHERE category = 'whose' AND price > 645.87 + +Natural Query: List all products of Doyle-Contreras ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Doyle-Contreras' ORDER BY price DESC + +Natural Query: What is the total sales for each country in Williams Inc? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Williams Inc' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the total sales for each category in Richardson-Griffin? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Richardson-Griffin' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all products of Mcdaniel LLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mcdaniel LLC' ORDER BY stock_quantity DESC + +Natural Query: What are the top 8 products by customers for Brown-Johnson this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Brown-Johnson' 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 Gordon 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 = 'Gordon 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 products of Cameron, Rogers and Brown ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Cameron, Rogers and Brown' ORDER BY price ASC + +Natural Query: What are the top 6 products by revenue for Webb LLC this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Webb LLC' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: What are the top 6 products by sales for Peterson, Sims and Hill all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Peterson, Sims and Hill' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: What is the average rating of all products for Hunter Group? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Hunter Group' + +Natural Query: How many orders were placed for Foster PLC between 2023-09-17 and 2024-04-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Foster PLC' AND order_date BETWEEN '2023-09-17' AND '2024-04-10' + +Natural Query: Show me all products in the project category with a price over $18.98. +SQL Query: SELECT * FROM products WHERE category = 'project' AND price > 18.98 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Sanchez-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 = 'Sanchez-Kramer' + 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 board category with a price over $546.27. +SQL Query: SELECT * FROM products WHERE category = 'board' AND price > 546.27 + +Natural Query: List all customers and their total order value for Mason, Lynch and 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 = 'Mason, Lynch and Brown' GROUP BY c.customer_id + +Natural Query: What is the total profit for each supplier in Johnson-Shea? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Johnson-Shea' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 3 products by sales for Rivera Group last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Rivera Group' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: What are the top 6 products by customers for Hicks PLC all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Hicks PLC' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: Show me all products in the plant category with a price over $670.45. +SQL Query: SELECT * FROM products WHERE category = 'plant' AND price > 670.45 + +Natural Query: What is the total sales for each country in Knapp Inc? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Knapp Inc' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the total sales for each category in Watts, Jones and James? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Watts, Jones and James' GROUP BY category ORDER BY total_sales DESC + +Natural Query: Show me all products in the need category with a price over $136.8. +SQL Query: SELECT * FROM products WHERE category = 'need' AND price > 136.8 + +Natural Query: What is the total quantity for each country in Ochoa-Hernandez? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Ochoa-Hernandez' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Macias Group between 2023-10-31 and 2024-03-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Macias Group' AND order_date BETWEEN '2023-10-31' AND '2024-03-11' + +Natural Query: List all customers and their total order value for Torres-Hawkins. +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-Hawkins' GROUP BY c.customer_id + +Natural Query: Show me all products in the head category with a price over $535.91. +SQL Query: SELECT * FROM products WHERE category = 'head' AND price > 535.91 + +Natural Query: List all customers and their total order value for Berger 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 = 'Berger Ltd' GROUP BY c.customer_id + +Natural Query: Show me all products in the how category with a price over $341.15. +SQL Query: SELECT * FROM products WHERE category = 'how' AND price > 341.15 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Turner 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 = 'Turner 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 is the total quantity for each category in Williams Ltd? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Williams Ltd' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Williams 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 = 'Williams Group' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Stewart, Yang and Mcneil 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, Yang and Mcneil' + 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 country in Martinez, Gaines and Miles? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Martinez, Gaines and Miles' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all products of Weiss Group ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Weiss Group' ORDER BY stock_quantity DESC + +Natural Query: What is the minimum price of all products for Savage, Johnson and Miller? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Savage, Johnson and Miller' + +Natural Query: List all products of Owen-Moore ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Owen-Moore' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Evans, Ward and Sandoval. +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, Ward and Sandoval' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Robertson and Sons between 2023-10-01 and 2023-11-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Robertson and Sons' AND order_date BETWEEN '2023-10-01' AND '2023-11-24' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Herrera 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 = 'Herrera 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 customers and their total order value for Long-Cole. +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-Cole' GROUP BY c.customer_id + +Natural Query: Show me all products in the movement category with a price over $168.56. +SQL Query: SELECT * FROM products WHERE category = 'movement' AND price > 168.56 + +Natural Query: List all products of Trujillo, Jackson and White ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Trujillo, Jackson and White' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Hendricks-Estrada. +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 = 'Hendricks-Estrada' GROUP BY c.customer_id + +Natural Query: What are the top 9 products by customers for Jones and Sons this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Jones and Sons' AND period = 'this month' 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 Davis-Nguyen 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-Nguyen' + 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 Schultz, Pierce and Wilson. +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 = 'Schultz, Pierce and Wilson' GROUP BY c.customer_id + +Natural Query: What is the total profit for each supplier in Jennings, Jones and Flynn? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Jennings, Jones and Flynn' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the total profit for each country in Sims, Ryan and Randall? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Sims, Ryan and Randall' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What is the total profit for each country in Wilkins, Hawkins and Robinson? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Wilkins, Hawkins and Robinson' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Robinson 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 = 'Robinson 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 total quantity for each country in Brown, Holt and Davidson? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Brown, Holt and Davidson' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 6 products by revenue for Wise, Thompson and Campbell this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Wise, Thompson and Campbell' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: Show me all products in the picture category with a price over $894.03. +SQL Query: SELECT * FROM products WHERE category = 'picture' AND price > 894.03 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Wiggins 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 = 'Wiggins 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 are the top 5 categories by sales for customers aged 25-35 in Tate-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 = 'Tate-Johnson' + 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 Gonzales, Willis and Carter ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gonzales, Willis and Carter' ORDER BY stock_quantity ASC + +Natural Query: What is the total sales for each country in Mahoney Group? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Mahoney Group' GROUP BY country ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Shea, Jones and Rogers between 2024-03-29 and 2024-07-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Shea, Jones and Rogers' AND order_date BETWEEN '2024-03-29' AND '2024-07-12' + +Natural Query: List all products of Nicholson-Russell ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Nicholson-Russell' ORDER BY stock_quantity DESC + +Natural Query: What is the total sales for each country in Berg Group? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Berg Group' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the minimum price of all products for Smith-Cabrera? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Smith-Cabrera' + +Natural Query: List all customers and their total order value for Wiley 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 = 'Wiley Inc' GROUP BY c.customer_id + +Natural Query: What are the top 8 products by customers for Reilly Group last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Reilly Group' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: How many orders were placed for Collins LLC between 2024-02-07 and 2024-05-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Collins LLC' AND order_date BETWEEN '2024-02-07' AND '2024-05-17' + +Natural Query: What is the total price of all products for Lozano, Bonilla and Paul? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Lozano, Bonilla and Paul' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lewis 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 = 'Lewis 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 sales for each category in Hardy, Galvan and Ruiz? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hardy, Galvan and Ruiz' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 4 products by customers for Duncan PLC all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Duncan PLC' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: List all customers and their total order value for Ingram, Barker and Perry. +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 = 'Ingram, Barker and Perry' GROUP BY c.customer_id + +Natural Query: List all products of Arnold, Parker and Thomas ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Arnold, Parker and Thomas' ORDER BY price ASC + +Natural Query: What is the total quantity for each country in Stark, Perry and Jackson? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Stark, Perry and Jackson' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the total profit for each country in Castaneda PLC? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Castaneda PLC' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 9 products by sales for Hunter PLC this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hunter PLC' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Steele-Wiley 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 = 'Steele-Wiley' + 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 sales for Lewis-Macias this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Lewis-Macias' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: How many orders were placed for Morgan, Lawson and Adams between 2023-12-17 and 2024-07-31? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Morgan, Lawson and Adams' AND order_date BETWEEN '2023-12-17' AND '2024-07-31' + +Natural Query: How many orders were placed for Nelson-Sloan between 2024-06-12 and 2024-06-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Nelson-Sloan' AND order_date BETWEEN '2024-06-12' AND '2024-06-25' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Russell-Kane 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 = 'Russell-Kane' + 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 Schneider-Morris ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Schneider-Morris' ORDER BY price ASC + +Natural Query: What is the total sales for each supplier in Davidson-Gray? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Davidson-Gray' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the total price of all products for Sexton-Houston? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Sexton-Houston' + +Natural Query: Show me all products in the person category with a price over $810.18. +SQL Query: SELECT * FROM products WHERE category = 'person' AND price > 810.18 + +Natural Query: What are the top 6 products by customers for Stanley, Young and Vaughan this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Stanley, Young and Vaughan' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: What are the top 8 products by revenue for Morales, Fuentes and Howe last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Morales, Fuentes and Howe' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: Show me all products in the near category with a price over $337.94. +SQL Query: SELECT * FROM products WHERE category = 'near' AND price > 337.94 + +Natural Query: List all products of Ramirez Ltd ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ramirez Ltd' ORDER BY rating DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lee-Long 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-Long' + 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 Bryant, Black and Kelly ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Bryant, Black and Kelly' ORDER BY rating DESC + +Natural Query: What is the total sales for each category in Horton Ltd? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Horton Ltd' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mcclure, Ellis and King 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 = 'Mcclure, Ellis and King' + 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 Blackwell, Jones and Fox 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 = 'Blackwell, Jones and Fox' + 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 Banks-Houston? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Banks-Houston' + +Natural Query: List all customers and their total order value for Martin, Kelly and Mayer. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Martin, Kelly and Mayer' GROUP BY c.customer_id + +Natural Query: Show me all products in the nothing category with a price over $911.79. +SQL Query: SELECT * FROM products WHERE category = 'nothing' AND price > 911.79 + +Natural Query: How many orders were placed for Harris LLC between 2023-10-06 and 2024-03-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Harris LLC' AND order_date BETWEEN '2023-10-06' AND '2024-03-26' + +Natural Query: What is the total quantity for each category in Hart-Simpson? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Hart-Simpson' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Johnson-Robbins between 2024-04-19 and 2024-05-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Johnson-Robbins' AND order_date BETWEEN '2024-04-19' AND '2024-05-30' + +Natural Query: What is the minimum quantity of all products for Wilson Inc? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Wilson Inc' + +Natural Query: List all products of Smith-Hill ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith-Hill' ORDER BY rating DESC + +Natural Query: Show me all products in the box category with a price over $638.44. +SQL Query: SELECT * FROM products WHERE category = 'box' AND price > 638.44 + +Natural Query: How many orders were placed for Thomas-Nunez between 2024-03-17 and 2024-04-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thomas-Nunez' AND order_date BETWEEN '2024-03-17' AND '2024-04-03' + +Natural Query: List all products of Petty Inc ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Petty Inc' ORDER BY rating DESC + +Natural Query: How many orders were placed for Tucker, Anderson and Scott between 2023-10-14 and 2024-07-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Tucker, Anderson and Scott' AND order_date BETWEEN '2023-10-14' AND '2024-07-29' + +Natural Query: List all products of Gibson-Flowers ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gibson-Flowers' ORDER BY price ASC + +Natural Query: Show me all products in the this category with a price over $166.27. +SQL Query: SELECT * FROM products WHERE category = 'this' AND price > 166.27 + +Natural Query: What is the average quantity of all products for Parker, Mitchell and Thomas? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Parker, Mitchell and Thomas' + +Natural Query: How many orders were placed for Pittman-Ortiz between 2024-04-18 and 2024-09-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Pittman-Ortiz' AND order_date BETWEEN '2024-04-18' AND '2024-09-13' + +Natural Query: List all customers and their total order value for Herrera, Farrell and Long. +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 = 'Herrera, Farrell and Long' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each category in Maxwell, Ellison and Cox? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Maxwell, Ellison and Cox' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all products of Whitehead, Obrien and Wong ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Whitehead, Obrien and Wong' ORDER BY rating ASC + +Natural Query: What is the average rating of all products for Daniels, Johnson and Barrera? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Daniels, Johnson and Barrera' + +Natural Query: What is the total quantity of all products for Thompson-Jones? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Thompson-Jones' + +Natural Query: What are the top 10 products by revenue for Moses-Singh this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Moses-Singh' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: What are the top 6 products by sales for Lee-Boyle this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Lee-Boyle' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: List all products of Jackson, Fox and Harvey ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jackson, Fox and Harvey' ORDER BY price DESC + +Natural Query: How many orders were placed for Webster-Lynch between 2024-07-01 and 2024-07-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Webster-Lynch' AND order_date BETWEEN '2024-07-01' AND '2024-07-05' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Craig 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 = 'Craig 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: Show me all products in the officer category with a price over $420.89. +SQL Query: SELECT * FROM products WHERE category = 'officer' AND price > 420.89 + +Natural Query: List all customers and their total order value for Atkins 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 = 'Atkins and Sons' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Dennis 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 = 'Dennis 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 9 products by customers for Smith, Campos and Gallegos all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Smith, Campos and Gallegos' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: What are the top 9 products by revenue for Sullivan, Colon and Garcia this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Sullivan, Colon and Garcia' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: What is the maximum price of all products for Lambert PLC? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Lambert PLC' + +Natural Query: Show me all products in the nor category with a price over $748.43. +SQL Query: SELECT * FROM products WHERE category = 'nor' AND price > 748.43 + +Natural Query: How many orders were placed for Campos, Werner and Allen between 2024-03-11 and 2024-06-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Campos, Werner and Allen' AND order_date BETWEEN '2024-03-11' AND '2024-06-13' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Foster-Warner 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 = 'Foster-Warner' + 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 Vasquez 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 = 'Vasquez Ltd' GROUP BY c.customer_id + +Natural Query: Show me all products in the become category with a price over $75.93. +SQL Query: SELECT * FROM products WHERE category = 'become' AND price > 75.93 + +Natural Query: What is the average rating of all products for Thompson, Bennett and Mason? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Thompson, Bennett and Mason' + +Natural Query: What are the top 7 products by revenue for Cox, Gonzalez and Bass all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Cox, Gonzalez and Bass' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: What is the total sales for each country in Riley, Ford and Weaver? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Riley, Ford and Weaver' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Thompson, Holder and Walton. +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 = 'Thompson, Holder and Walton' GROUP BY c.customer_id + +Natural Query: What is the total quantity of all products for Knox PLC? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Knox PLC' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Chan 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 = 'Chan 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 quantity for each country in Patterson, Webb and Martinez? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Patterson, Webb and Martinez' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Bowen, Hardy and Dixon. +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 = 'Bowen, Hardy and Dixon' GROUP BY c.customer_id + +Natural Query: What are the top 5 products by customers for Lewis, Rodriguez and Chavez this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Lewis, Rodriguez and Chavez' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: What are the top 4 products by customers for Dunn-Winters last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Dunn-Winters' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: What is the minimum rating of all products for Williams, Perry and Fields? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Williams, Perry and Fields' + +Natural Query: What is the total sales for each country in Edwards LLC? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Edwards LLC' GROUP BY country ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Nguyen Ltd between 2024-08-20 and 2024-09-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Nguyen Ltd' AND order_date BETWEEN '2024-08-20' AND '2024-09-03' + +Natural Query: What is the total quantity for each supplier in Bell Inc? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Bell Inc' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the total profit for each country in Swanson, Jackson and Higgins? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Swanson, Jackson and Higgins' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all products of Sweeney, Berry and Allen ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Sweeney, Berry and Allen' ORDER BY rating ASC + +Natural Query: Show me all products in the effort category with a price over $43.84. +SQL Query: SELECT * FROM products WHERE category = 'effort' AND price > 43.84 + +Natural Query: What is the total quantity for each category in Guerra Ltd? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Guerra Ltd' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the maximum quantity of all products for Allen-Morrison? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Allen-Morrison' + +Natural Query: List all products of Kirby, Gill and Freeman ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Kirby, Gill and Freeman' ORDER BY price ASC + +Natural Query: How many orders were placed for Henderson-Vaughn between 2024-05-27 and 2024-06-02? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Henderson-Vaughn' AND order_date BETWEEN '2024-05-27' AND '2024-06-02' + +Natural Query: What are the top 10 products by customers for Hawkins-Fisher last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Hawkins-Fisher' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10 + +Natural Query: What is the total profit for each country in Bradley-Perry? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Bradley-Perry' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What is the minimum quantity of all products for Ramirez, Ward and Scott? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Ramirez, Ward and Scott' + +Natural Query: What are the top 10 products by revenue for Doyle Inc this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Doyle Inc' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: List all products of Hancock, Salinas and Nunez ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hancock, Salinas and Nunez' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Smith 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 = 'Smith LLC' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Martin-Mack. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Martin-Mack' GROUP BY c.customer_id + +Natural Query: What are the top 8 products by orders for Jefferson, Brooks and Jones all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Jefferson, Brooks and Jones' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: How many orders were placed for Kelley, Kline and Morales between 2024-03-28 and 2024-07-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Kelley, Kline and Morales' AND order_date BETWEEN '2024-03-28' AND '2024-07-04' + +Natural Query: List all customers and their total order value for Espinoza 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 = 'Espinoza Group' GROUP BY c.customer_id + +Natural Query: List all products of Keller Ltd ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Keller Ltd' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Reese-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 = 'Reese-Jones' + 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 quite category with a price over $297.62. +SQL Query: SELECT * FROM products WHERE category = 'quite' AND price > 297.62 + +Natural Query: How many orders were placed for Cervantes, Garrett and Long between 2024-03-19 and 2024-09-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cervantes, Garrett and Long' AND order_date BETWEEN '2024-03-19' AND '2024-09-09' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Warren, Fleming and 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 = 'Warren, Fleming and Martin' + 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 Ramirez-Richardson between 2023-12-21 and 2024-08-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ramirez-Richardson' AND order_date BETWEEN '2023-12-21' AND '2024-08-22' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Nguyen, Cunningham and 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 = 'Nguyen, Cunningham and 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 customers and their total order value for Carroll, Brown and Diaz. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Carroll, Brown and Diaz' GROUP BY c.customer_id + +Natural Query: What are the top 8 products by revenue for Ryan, Henry and Anderson this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Ryan, Henry and Anderson' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: List all customers and their total order value for Montes, Davis and Wright. +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, Davis and Wright' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Steele 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 = 'Steele and Sons' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Graham, Peterson 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 = 'Graham, Peterson 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 is the total quantity for each country in Martin, Mitchell and Rich? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Martin, Mitchell and Rich' GROUP BY country ORDER BY total_quantity DESC + +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: Show me all products in the three category with a price over $306.27. +SQL Query: SELECT * FROM products WHERE category = 'three' AND price > 306.27 + +Natural Query: List all customers and their total order value for Ross-Robinson. +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-Robinson' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each supplier in Jimenez Group? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Jimenez Group' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Blair-Kent. +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 = 'Blair-Kent' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Rodriguez, Stanley and Tucker. +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 = 'Rodriguez, Stanley and Tucker' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Taylor, Martinez 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 = 'Taylor, Martinez and Davis' GROUP BY c.customer_id + +Natural Query: Show me all products in the perhaps category with a price over $81.85. +SQL Query: SELECT * FROM products WHERE category = 'perhaps' AND price > 81.85 + +Natural Query: List all customers and their total order value for Benson 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 = 'Benson Ltd' GROUP BY c.customer_id + +Natural Query: List all products of Collier, Stephens and Rosales ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Collier, Stephens and Rosales' ORDER BY stock_quantity DESC + +Natural Query: How many orders were placed for Oconnell-Griffin between 2024-03-04 and 2024-04-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Oconnell-Griffin' AND order_date BETWEEN '2024-03-04' AND '2024-04-21' + +Natural Query: Show me all products in the area category with a price over $571.14. +SQL Query: SELECT * FROM products WHERE category = 'area' AND price > 571.14 + +Natural Query: How many orders were placed for Hogan-Wong between 2024-09-01 and 2024-09-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hogan-Wong' AND order_date BETWEEN '2024-09-01' AND '2024-09-08' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Parsons 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 = 'Parsons 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 quantity for each category in Garcia, Martinez and Wagner? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Garcia, Martinez and Wagner' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 4 products by sales for Haynes-Gomez last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Haynes-Gomez' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: How many orders were placed for Dalton-Ortiz between 2024-01-21 and 2024-06-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Dalton-Ortiz' AND order_date BETWEEN '2024-01-21' AND '2024-06-21' + +Natural Query: List all products of Shaw Ltd ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Shaw Ltd' ORDER BY stock_quantity DESC + +Natural Query: List all products of Rogers-Mercado ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rogers-Mercado' ORDER BY rating DESC + +Natural Query: List all customers and their total order value for Cooper, Williams and Hines. +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 = 'Cooper, Williams and Hines' GROUP BY c.customer_id + +Natural Query: What is the maximum rating of all products for Thompson-Reynolds? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Thompson-Reynolds' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hebert-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 = 'Hebert-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 most category with a price over $790.49. +SQL Query: SELECT * FROM products WHERE category = 'most' AND price > 790.49 + +Natural Query: What are the top 5 products by orders for Gardner Group this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Gardner Group' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: List all products of Roberts LLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Roberts LLC' ORDER BY rating DESC + +Natural Query: How many orders were placed for Parker and Sons between 2024-09-04 and 2024-09-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Parker and Sons' AND order_date BETWEEN '2024-09-04' AND '2024-09-16' + +Natural Query: List all products of Graham LLC ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Graham LLC' ORDER BY stock_quantity ASC + +Natural Query: How many orders were placed for Vega, Wilson and Davis between 2023-12-13 and 2024-07-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Vega, Wilson and Davis' AND order_date BETWEEN '2023-12-13' AND '2024-07-12' + +Natural Query: What are the top 8 products by customers for Stanley-Richardson last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Stanley-Richardson' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: How many orders were placed for Evans-Holloway between 2023-10-14 and 2024-02-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Evans-Holloway' AND order_date BETWEEN '2023-10-14' AND '2024-02-10' + +Natural Query: What is the minimum price of all products for Ruiz, Marshall and Williams? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Ruiz, Marshall and Williams' + +Natural Query: List all products of Jackson-Jones ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jackson-Jones' ORDER BY rating DESC + +Natural Query: List all customers and their total order value for Goodwin-Townsend. +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 = 'Goodwin-Townsend' GROUP BY c.customer_id + +Natural Query: What is the maximum quantity of all products for Brown, Neal and Choi? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Brown, Neal and Choi' + +Natural Query: How many orders were placed for Green-Roman between 2024-06-19 and 2024-08-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Green-Roman' AND order_date BETWEEN '2024-06-19' AND '2024-08-07' + +Natural Query: What is the maximum rating of all products for Flores, Guerrero and Morris? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Flores, Guerrero and Morris' + +Natural Query: Show me all products in the hit category with a price over $139.52. +SQL Query: SELECT * FROM products WHERE category = 'hit' AND price > 139.52 + +Natural Query: How many orders were placed for Perry, Adams and Boyle between 2024-03-19 and 2024-07-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Perry, Adams and Boyle' AND order_date BETWEEN '2024-03-19' AND '2024-07-03' + +Natural Query: List all products of Melendez-Williams ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Melendez-Williams' ORDER BY price DESC + +Natural Query: What is the total sales for each country in Lee-Dominguez? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Lee-Dominguez' GROUP BY country ORDER BY total_sales DESC + +Natural Query: Show me all products in the east category with a price over $882.59. +SQL Query: SELECT * FROM products WHERE category = 'east' AND price > 882.59 + +Natural Query: List all customers and their total order value for Kelley-Vance. +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 = 'Kelley-Vance' GROUP BY c.customer_id + +Natural Query: What is the total profit for each category in Williams PLC? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Williams PLC' GROUP BY category ORDER BY total_profit DESC + +Natural Query: List all products of Delgado, Lawson and Shaw ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Delgado, Lawson and Shaw' ORDER BY stock_quantity ASC + +Natural Query: List all products of Santiago Ltd ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Santiago Ltd' ORDER BY price ASC + +Natural Query: List all products of Odom, Rogers and Sparks ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Odom, Rogers and Sparks' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Campbell, Gonzalez and Rios. +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 = 'Campbell, Gonzalez and Rios' GROUP BY c.customer_id + +Natural Query: What are the top 4 products by customers for Herring, Hatfield and Dawson all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Herring, Hatfield and Dawson' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: List all customers and their total order value for Johnson 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 = 'Johnson LLC' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Robertson, Howard and Harrington. +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, Howard and Harrington' GROUP BY c.customer_id + +Natural Query: What is the maximum rating of all products for Petty-Koch? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Petty-Koch' + +Natural Query: How many orders were placed for Shaw, Case and Davis between 2024-09-12 and 2024-09-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Shaw, Case and Davis' AND order_date BETWEEN '2024-09-12' AND '2024-09-12' + +Natural Query: List all customers and their total order value for Wright, Rogers and Murphy. +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 = 'Wright, Rogers and Murphy' GROUP BY c.customer_id + +Natural Query: What are the top 5 products by orders for Fischer and Sons this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Fischer and Sons' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: How many orders were placed for Powers Inc between 2023-11-30 and 2024-02-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Powers Inc' AND order_date BETWEEN '2023-11-30' AND '2024-02-11' + +Natural Query: What is the minimum price of all products for Nelson, Lee and Washington? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Nelson, Lee and Washington' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Avery 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 = 'Avery 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 sales for each category in Garcia-Mclaughlin? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Garcia-Mclaughlin' GROUP BY category ORDER BY total_sales DESC + +Natural Query: Show me all products in the your category with a price over $53.33. +SQL Query: SELECT * FROM products WHERE category = 'your' AND price > 53.33 + +Natural Query: What is the total sales for each category in Sanchez PLC? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Sanchez PLC' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for James-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 = 'James-Smith' GROUP BY c.customer_id + +Natural Query: Show me all products in the happen category with a price over $849.2. +SQL Query: SELECT * FROM products WHERE category = 'happen' AND price > 849.2 + +Natural Query: What are the top 5 products by orders for Jones, Allen and Miller this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Jones, Allen and Miller' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: Show me all products in the daughter category with a price over $862.15. +SQL Query: SELECT * FROM products WHERE category = 'daughter' AND price > 862.15 + +Natural Query: What are the top 3 products by sales for Stephens, Hayes and Mendoza all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Stephens, Hayes and Mendoza' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: What is the minimum quantity of all products for Melendez LLC? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Melendez LLC' + +Natural Query: List all customers and their total order value for Schroeder, Woodard and 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 = 'Schroeder, Woodard and Rodriguez' GROUP BY c.customer_id + +Natural Query: List all products of Lee-Klein ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lee-Klein' ORDER BY stock_quantity ASC + +Natural Query: Show me all products in the indicate category with a price over $918.93. +SQL Query: SELECT * FROM products WHERE category = 'indicate' AND price > 918.93 + +Natural Query: What are the top 7 products by customers for Steele, Johnson and Turner this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Steele, Johnson and Turner' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: What are the top 6 products by orders for Freeman Ltd this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Freeman Ltd' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: Show me all products in the model category with a price over $423.27. +SQL Query: SELECT * FROM products WHERE category = 'model' AND price > 423.27 + +Natural Query: How many orders were placed for Sanchez and Sons between 2024-08-03 and 2024-09-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Sanchez and Sons' AND order_date BETWEEN '2024-08-03' AND '2024-09-01' + +Natural Query: What are the top 4 products by revenue for Santiago-Barnes this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Santiago-Barnes' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: What is the minimum rating of all products for Sullivan, Meza and Simmons? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Sullivan, Meza and Simmons' + +Natural Query: How many orders were placed for Rivas-Gill between 2024-05-08 and 2024-05-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Rivas-Gill' AND order_date BETWEEN '2024-05-08' AND '2024-05-29' + +Natural Query: Show me all products in the office category with a price over $59.37. +SQL Query: SELECT * FROM products WHERE category = 'office' AND price > 59.37 + +Natural Query: List all products of Richardson-Brewer ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Richardson-Brewer' ORDER BY price DESC + +Natural Query: What is the total rating of all products for Knight, Rios and Johnson? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Knight, Rios and Johnson' + +Natural Query: List all customers and their total order value for Mcneil 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 = 'Mcneil LLC' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for White 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 = 'White Group' GROUP BY c.customer_id + +Natural Query: What are the top 7 products by sales for Martin, Garcia and Hamilton this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Martin, Garcia and Hamilton' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: What are the top 7 products by orders for Johnson LLC this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Johnson LLC' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: Show me all products in the also category with a price over $269.89. +SQL Query: SELECT * FROM products WHERE category = 'also' AND price > 269.89 + +Natural Query: List all products of Webster, Lester and Henry ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Webster, Lester and Henry' ORDER BY price ASC + +Natural Query: Show me all products in the participant category with a price over $269.54. +SQL Query: SELECT * FROM products WHERE category = 'participant' AND price > 269.54 + +Natural Query: Show me all products in the occur category with a price over $392.94. +SQL Query: SELECT * FROM products WHERE category = 'occur' AND price > 392.94 + +Natural Query: What is the total quantity for each supplier in Nelson, Parrish and Phillips? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Nelson, Parrish and Phillips' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the maximum rating of all products for Crosby, Mullins and Olson? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Crosby, Mullins and Olson' + +Natural Query: How many orders were placed for Curry-Fuller between 2024-02-16 and 2024-03-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Curry-Fuller' AND order_date BETWEEN '2024-02-16' AND '2024-03-29' + +Natural Query: Show me all products in the nothing category with a price over $712.95. +SQL Query: SELECT * FROM products WHERE category = 'nothing' AND price > 712.95 + +Natural Query: List all products of Olson PLC ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Olson PLC' ORDER BY price ASC + +Natural Query: List all products of Simon, Morales and Kelly ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Simon, Morales and Kelly' ORDER BY rating ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Wagner, Williams and Rowe 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 = 'Wagner, Williams and Rowe' + 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 Johnson and Sons? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Johnson and Sons' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Johnson, Adams and Jordan. +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, Adams and Jordan' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Johnson, Shaw and Yang between 2024-02-08 and 2024-03-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Johnson, Shaw and Yang' AND order_date BETWEEN '2024-02-08' AND '2024-03-19' + +Natural Query: List all customers and their total order value for Buck 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 = 'Buck Inc' GROUP BY c.customer_id + +Natural Query: What is the average price of all products for Hoover-Bowen? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Hoover-Bowen' + +Natural Query: Show me all products in the book category with a price over $658.92. +SQL Query: SELECT * FROM products WHERE category = 'book' AND price > 658.92 + +Natural Query: List all products of Davies LLC ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Davies LLC' ORDER BY price DESC + +Natural Query: List all products of Franklin LLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Franklin LLC' ORDER BY rating DESC + +Natural Query: How many orders were placed for Gross, Powell and Ward between 2024-06-21 and 2024-07-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gross, Powell and Ward' AND order_date BETWEEN '2024-06-21' AND '2024-07-21' + +Natural Query: List all products of Russell, Martinez and Miller ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Russell, Martinez and Miller' ORDER BY stock_quantity DESC + +Natural Query: What is the total quantity for each category in Beck-Soto? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Beck-Soto' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the total sales for each supplier in Jefferson, Mcknight and Kim? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Jefferson, Mcknight and Kim' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Nichols 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 = 'Nichols 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 are the top 10 products by sales for Reed-Richards this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Reed-Richards' 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 Cruz, Hernandez and Cook 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 = 'Cruz, Hernandez and Cook' + 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 LLC? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Peters LLC' GROUP BY country ORDER BY total_profit DESC + +Natural Query: Show me all products in the range category with a price over $786.03. +SQL Query: SELECT * FROM products WHERE category = 'range' AND price > 786.03 + +Natural Query: What is the minimum quantity of all products for Sanders Group? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Sanders Group' + +Natural Query: What is the minimum price of all products for Olsen-Greene? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Olsen-Greene' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Shields-Ferguson 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 = 'Shields-Ferguson' + 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 Scott, Ray and Tucker? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Scott, Ray and Tucker' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all products of Ramsey Group ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ramsey Group' ORDER BY price DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Schwartz, Dunn and 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 = 'Schwartz, Dunn and Andrews' + 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 compare category with a price over $220.32. +SQL Query: SELECT * FROM products WHERE category = 'compare' AND price > 220.32 + +Natural Query: List all customers and their total order value for Foster 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 = 'Foster and Sons' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Chan-Cole 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 = 'Chan-Cole' + 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 Fox, Martin and Acosta? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Fox, Martin and Acosta' GROUP BY category ORDER BY total_sales DESC + +Natural Query: Show me all products in the road category with a price over $16.29. +SQL Query: SELECT * FROM products WHERE category = 'road' AND price > 16.29 + +Natural Query: Show me all products in the necessary category with a price over $537.45. +SQL Query: SELECT * FROM products WHERE category = 'necessary' AND price > 537.45 + +Natural Query: What are the top 8 products by customers for Armstrong, Rodriguez and Perkins this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Armstrong, Rodriguez and Perkins' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: What is the total profit for each country in Baker-Allen? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Baker-Allen' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all products of Navarro Ltd ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Navarro Ltd' ORDER BY price ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in David 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 = 'David 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 Hernandez, Acosta and Gomez? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Hernandez, Acosta and Gomez' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Payne 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 = 'Payne 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 products of Hicks, Livingston and Woodward ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hicks, Livingston and Woodward' ORDER BY stock_quantity ASC + +Natural Query: List all customers and their total order value for Fox-Morris. +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 = 'Fox-Morris' GROUP BY c.customer_id + +Natural Query: List all products of Pratt, Stanley and Sanchez ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Pratt, Stanley and Sanchez' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Neal, Nicholson and Peters 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 = 'Neal, Nicholson and Peters' + 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 Ruiz, Navarro and Berry. +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 = 'Ruiz, Navarro and Berry' GROUP BY c.customer_id + +Natural Query: What is the average price of all products for Myers-Richardson? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Myers-Richardson' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Moore, Zimmerman and 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 = 'Moore, Zimmerman and Martin' + 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 Fowler and Sons? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Fowler and Sons' + +Natural Query: How many orders were placed for Cortez LLC between 2024-03-10 and 2024-07-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cortez LLC' AND order_date BETWEEN '2024-03-10' AND '2024-07-23' + +Natural Query: Show me all products in the also category with a price over $619.21. +SQL Query: SELECT * FROM products WHERE category = 'also' AND price > 619.21 + +Natural Query: What is the total quantity for each country in Jennings, Miller and Christian? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Jennings, Miller and Christian' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the maximum rating of all products for Rosales, Williams and Alvarado? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Rosales, Williams and Alvarado' + +Natural Query: What is the total sales for each supplier in Rodriguez Group? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Rodriguez Group' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: Show me all products in the everybody category with a price over $555.07. +SQL Query: SELECT * FROM products WHERE category = 'everybody' AND price > 555.07 + +Natural Query: How many orders were placed for Garcia, Burke and Wolf between 2023-10-23 and 2024-08-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Garcia, Burke and Wolf' AND order_date BETWEEN '2023-10-23' AND '2024-08-12' + +Natural Query: What is the total profit for each category in Williams-Bauer? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Williams-Bauer' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the maximum rating of all products for Glenn, Mcclure and Nelson? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Glenn, Mcclure and Nelson' + +Natural Query: List all products of Fitzgerald Inc ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Fitzgerald Inc' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Lowe-Holt. +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 = 'Lowe-Holt' GROUP BY c.customer_id + +Natural Query: List all products of Gray Inc ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gray Inc' ORDER BY stock_quantity DESC + +Natural Query: What is the total rating of all products for Faulkner, Graham and Rodriguez? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Faulkner, Graham and Rodriguez' + +Natural Query: What is the total sales for each supplier in Beard Inc? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Beard Inc' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the total sales for each supplier in Mckenzie-Mccarthy? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Mckenzie-Mccarthy' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Davis, Garrett and Ortiz between 2024-04-19 and 2024-05-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Davis, Garrett and Ortiz' AND order_date BETWEEN '2024-04-19' AND '2024-05-17' + +Natural Query: How many orders were placed for Craig, Chandler and Hill between 2024-04-29 and 2024-07-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Craig, Chandler and Hill' AND order_date BETWEEN '2024-04-29' AND '2024-07-03' + +Natural Query: What is the total quantity for each supplier in Webster-Reed? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Webster-Reed' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Davis, Williams and Martinez. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Davis, Williams and Martinez' GROUP BY c.customer_id + +Natural Query: What is the total sales for each supplier in Hodges, Hardy and Crawford? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hodges, Hardy and Crawford' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Brown-Perry 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-Perry' + 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 $274.2. +SQL Query: SELECT * FROM products WHERE category = 'whom' AND price > 274.2 + +Natural Query: What are the top 3 products by revenue for Parsons Inc last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Parsons Inc' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: How many orders were placed for Roberts-Wood between 2024-03-08 and 2024-08-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Roberts-Wood' AND order_date BETWEEN '2024-03-08' AND '2024-08-17' + +Natural Query: How many orders were placed for King Inc between 2024-01-20 and 2024-07-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'King Inc' AND order_date BETWEEN '2024-01-20' AND '2024-07-25' + +Natural Query: Show me all products in the be category with a price over $995.44. +SQL Query: SELECT * FROM products WHERE category = 'be' AND price > 995.44 + +Natural Query: How many orders were placed for Murphy Group between 2024-04-12 and 2024-07-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Murphy Group' AND order_date BETWEEN '2024-04-12' AND '2024-07-03' + +Natural Query: Show me all products in the from category with a price over $768.71. +SQL Query: SELECT * FROM products WHERE category = 'from' AND price > 768.71 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Wyatt-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 = 'Wyatt-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 left category with a price over $975.5. +SQL Query: SELECT * FROM products WHERE category = 'left' AND price > 975.5 + +Natural Query: List all products of Weaver, Thomas and Saunders ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Weaver, Thomas and Saunders' ORDER BY rating DESC + +Natural Query: What is the total profit for each supplier in Palmer LLC? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Palmer LLC' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: Show me all products in the onto category with a price over $934.06. +SQL Query: SELECT * FROM products WHERE category = 'onto' AND price > 934.06 + +Natural Query: How many orders were placed for Smith-Whitehead between 2024-08-25 and 2024-09-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Smith-Whitehead' AND order_date BETWEEN '2024-08-25' AND '2024-09-13' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Woodard 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 = 'Woodard 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 5 categories by sales for customers aged 25-35 in Hahn 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 = 'Hahn 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 profit for each category in Morris-Weaver? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Morris-Weaver' GROUP BY category ORDER BY total_profit DESC + +Natural Query: List all products of Obrien, Gutierrez and Villa ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Obrien, Gutierrez and Villa' ORDER BY price ASC + +Natural Query: How many orders were placed for Brown and Sons between 2024-02-13 and 2024-02-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Brown and Sons' AND order_date BETWEEN '2024-02-13' AND '2024-02-24' + +Natural Query: What are the top 9 products by orders for Powell, Lee and Ross all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Powell, Lee and Ross' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: What is the total profit for each category in Moran, Martinez and Porter? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Moran, Martinez and Porter' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the total profit for each supplier in Hale Inc? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Hale Inc' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the minimum price of all products for Martin, Collins and Martin? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Martin, Collins and Martin' + +Natural Query: What is the total quantity for each country in Martinez-Orozco? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Martinez-Orozco' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the total rating of all products for Hernandez, Miranda and Salazar? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Hernandez, Miranda and Salazar' + +Natural Query: What is the average quantity of all products for Parks and Sons? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Parks and Sons' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Harris 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 = 'Harris 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 quantity for each supplier in Webb, Rodriguez and Stewart? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Webb, Rodriguez and Stewart' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the total price of all products for Thomas-Craig? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Thomas-Craig' + +Natural Query: What is the total sales for each supplier in Burns, Lynch and Thompson? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Burns, Lynch and Thompson' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Evans, Davis and Key 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 = 'Evans, Davis and Key' + 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 Bates, Dominguez and Lee between 2024-07-10 and 2024-08-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bates, Dominguez and Lee' AND order_date BETWEEN '2024-07-10' AND '2024-08-04' + +Natural Query: What is the total sales for each supplier in Jackson PLC? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Jackson PLC' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the maximum rating of all products for Edwards LLC? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Edwards LLC' + +Natural Query: Show me all products in the bit category with a price over $289.24. +SQL Query: SELECT * FROM products WHERE category = 'bit' AND price > 289.24 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Garcia, Doyle 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 = 'Garcia, Doyle 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: What are the top 3 products by revenue for Monroe, Stone and Hendricks all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Monroe, Stone and Hendricks' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: List all customers and their total order value for George-Owens. +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-Owens' GROUP BY c.customer_id + +Natural Query: Show me all products in the camera category with a price over $320.38. +SQL Query: SELECT * FROM products WHERE category = 'camera' AND price > 320.38 + +Natural Query: What is the minimum rating of all products for Baker-Smith? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Baker-Smith' + +Natural Query: What is the total sales for each country in Rodriguez-Schwartz? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Rodriguez-Schwartz' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Wiggins-Gallagher. +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 = 'Wiggins-Gallagher' GROUP BY c.customer_id + +Natural Query: What are the top 6 products by sales for Thompson PLC this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Thompson PLC' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: Show me all products in the set category with a price over $608.84. +SQL Query: SELECT * FROM products WHERE category = 'set' AND price > 608.84 + +Natural Query: What is the maximum quantity of all products for Nguyen Inc? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Nguyen Inc' + +Natural Query: List all products of Terry PLC ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Terry PLC' ORDER BY price ASC + +Natural Query: List all products of Green-Chandler ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Green-Chandler' ORDER BY stock_quantity ASC + +Natural Query: List all products of Brown and Sons ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Brown and Sons' ORDER BY stock_quantity ASC + +Natural Query: What is the total quantity for each supplier in Wallace, Butler and Perkins? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Wallace, Butler and Perkins' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Andrews-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 = 'Andrews-Johnson' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Roberts, Nelson and Nguyen 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, Nelson and Nguyen' + 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 customers for Johnson and Sons this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Johnson and Sons' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: What are the top 9 products by orders for Schultz Inc this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Schultz Inc' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: What is the total quantity for each category in Ramirez, Copeland and Rodriguez? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Ramirez, Copeland and Rodriguez' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the minimum quantity of all products for Jones Group? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Jones Group' + +Natural Query: How many orders were placed for Wilson and Sons between 2023-10-12 and 2023-12-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wilson and Sons' AND order_date BETWEEN '2023-10-12' AND '2023-12-08' + +Natural Query: How many orders were placed for Fuller Ltd between 2023-11-10 and 2023-11-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Fuller Ltd' AND order_date BETWEEN '2023-11-10' AND '2023-11-20' + +Natural Query: How many orders were placed for Oliver-Taylor between 2024-04-07 and 2024-06-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Oliver-Taylor' AND order_date BETWEEN '2024-04-07' AND '2024-06-23' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Foley, Nelson and Lambert 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 = 'Foley, Nelson and Lambert' + 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 Anderson 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 = 'Anderson 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 7 products by revenue for Wilkerson-Evans this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Wilkerson-Evans' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: What is the maximum rating of all products for Reed LLC? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Reed LLC' + +Natural Query: List all customers and their total order value for Jones-Mills. +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-Mills' GROUP BY c.customer_id + +Natural Query: Show me all products in the compare category with a price over $89.65. +SQL Query: SELECT * FROM products WHERE category = 'compare' AND price > 89.65 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Henderson, Newman and Wells 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 = 'Henderson, Newman and Wells' + 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 Smith-Moses? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Smith-Moses' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all products of Johnson-Castaneda ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Johnson-Castaneda' ORDER BY stock_quantity ASC + +Natural Query: What are the top 7 products by revenue for Michael Ltd this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Michael Ltd' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: List all customers and their total order value for Snyder 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 = 'Snyder LLC' GROUP BY c.customer_id + +Natural Query: What are the top 9 products by sales for Rodriguez, Thomas and Castro all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Rodriguez, Thomas and Castro' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: How many orders were placed for Gallagher, Roach and Murray between 2024-07-14 and 2024-08-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gallagher, Roach and Murray' AND order_date BETWEEN '2024-07-14' AND '2024-08-08' + +Natural Query: List all customers and their total order value for Mcdonald 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 = 'Mcdonald Ltd' GROUP BY c.customer_id + +Natural Query: What are the top 9 products by sales for Best and Sons this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Best and Sons' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: Show me all products in the participant category with a price over $657.99. +SQL Query: SELECT * FROM products WHERE category = 'participant' AND price > 657.99 + +Natural Query: What is the average rating of all products for Taylor, Everett and Carlson? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Taylor, Everett and Carlson' + +Natural Query: What is the minimum rating of all products for Mccoy-Haas? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Mccoy-Haas' + +Natural Query: List all products of Brown Inc ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Brown Inc' ORDER BY price ASC + +Natural Query: List all products of Davis, Francis and Lopez ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Davis, Francis and Lopez' ORDER BY stock_quantity DESC + +Natural Query: Show me all products in the interview category with a price over $721.94. +SQL Query: SELECT * FROM products WHERE category = 'interview' AND price > 721.94 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hood, Robertson and Benson 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 = 'Hood, Robertson and Benson' + 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 sales for Flores, Willis and Simpson this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Flores, Willis and Simpson' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: List all customers and their total order value for Bishop-Werner. +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 = 'Bishop-Werner' GROUP BY c.customer_id + +Natural Query: What is the total quantity of all products for Dougherty Ltd? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Dougherty Ltd' + +Natural Query: Show me all products in the easy category with a price over $971.13. +SQL Query: SELECT * FROM products WHERE category = 'easy' AND price > 971.13 + +Natural Query: What are the top 9 products by revenue for Garcia, Boyer and Robinson this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Garcia, Boyer and Robinson' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: Show me all products in the voice category with a price over $992.45. +SQL Query: SELECT * FROM products WHERE category = 'voice' AND price > 992.45 + +Natural Query: List all products of Shaffer-Lynch ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Shaffer-Lynch' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Scott-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 = 'Scott-Rogers' GROUP BY c.customer_id + +Natural Query: List all products of Moore, Williams and Johnson ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Moore, Williams and Johnson' ORDER BY rating ASC + +Natural Query: What is the total profit for each supplier in Cunningham, Jones and Rodriguez? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Cunningham, Jones and Rodriguez' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Hicks 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 = 'Hicks PLC' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Elliott-Kane between 2024-02-27 and 2024-07-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Elliott-Kane' AND order_date BETWEEN '2024-02-27' AND '2024-07-10' + +Natural Query: List all customers and their total order value for Miller, Wilkerson 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 = 'Miller, Wilkerson and Davis' GROUP BY c.customer_id + +Natural Query: Show me all products in the nature category with a price over $604.06. +SQL Query: SELECT * FROM products WHERE category = 'nature' AND price > 604.06 + +Natural Query: What are the top 5 products by orders for Robertson-Burns this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Robertson-Burns' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: List all customers and their total order value for Barber 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 = 'Barber Group' GROUP BY c.customer_id + +Natural Query: What is the maximum price of all products for Gomez, Hess and Cooke? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Gomez, Hess and Cooke' + +Natural Query: List all products of Miller, Wells and Cummings ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Miller, Wells and Cummings' ORDER BY rating DESC + +Natural Query: What is the total quantity for each category in Miller LLC? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Miller LLC' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: Show me all products in the area category with a price over $746.9. +SQL Query: SELECT * FROM products WHERE category = 'area' AND price > 746.9 + +Natural Query: What is the total quantity of all products for Thompson PLC? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Thompson PLC' + +Natural Query: What are the top 7 products by revenue for Harrison, Foster and Bass all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Harrison, Foster and Bass' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Blackburn, Hall 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 = 'Blackburn, Hall 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: What is the total quantity for each supplier in Dalton, Walton and Williams? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Dalton, Walton and Williams' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Baker-Jarvis 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-Jarvis' + 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 Rios-Black. +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 = 'Rios-Black' GROUP BY c.customer_id + +Natural Query: What are the top 6 products by customers for Andrews Group this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Andrews Group' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: List all products of Phillips LLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Phillips LLC' ORDER BY stock_quantity DESC + +Natural Query: What is the total sales for each supplier in Young PLC? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Young 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 Jensen-Horne 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 = 'Jensen-Horne' + 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 Woodward, King and Kim ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Woodward, King and Kim' ORDER BY rating DESC + +Natural Query: What are the top 9 products by orders for Bishop-Cross last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Bishop-Cross' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: Show me all products in the grow category with a price over $531.71. +SQL Query: SELECT * FROM products WHERE category = 'grow' AND price > 531.71 + +Natural Query: What is the total sales for each country in Jackson, Rogers and Long? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Jackson, Rogers and Long' GROUP BY country ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Le PLC between 2023-11-15 and 2024-07-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Le PLC' AND order_date BETWEEN '2023-11-15' AND '2024-07-15' + +Natural Query: How many orders were placed for Mclean and Sons between 2024-04-12 and 2024-06-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mclean and Sons' AND order_date BETWEEN '2024-04-12' AND '2024-06-16' + +Natural Query: List all customers and their total order value for Lopez 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 = 'Lopez Group' GROUP BY c.customer_id + +Natural Query: What are the top 5 products by revenue for Dodson-Donaldson all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Dodson-Donaldson' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: What is the maximum rating of all products for Hernandez, Chan and Dodson? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Hernandez, Chan and Dodson' + +Natural Query: What are the top 10 products by customers for Anderson-Montgomery all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Anderson-Montgomery' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10 + +Natural Query: What are the top 8 products by sales for Kim-Morris last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Kim-Morris' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: List all customers and their total order value for Baker-Coleman. +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 = 'Baker-Coleman' GROUP BY c.customer_id + +Natural Query: What is the average rating of all products for Romero-Collins? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Romero-Collins' + +Natural Query: How many orders were placed for Garza, Henry and Kelly between 2024-07-23 and 2024-09-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Garza, Henry and Kelly' AND order_date BETWEEN '2024-07-23' AND '2024-09-03' + +Natural Query: List all products of Pineda, Vaughan and Butler ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Pineda, Vaughan and Butler' ORDER BY stock_quantity DESC + +Natural Query: What are the top 3 products by revenue for Jordan, Middleton and Best all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Jordan, Middleton and Best' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: What is the total rating of all products for Adams-Bailey? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Adams-Bailey' + +Natural Query: Show me all products in the fight category with a price over $922.03. +SQL Query: SELECT * FROM products WHERE category = 'fight' AND price > 922.03 + +Natural Query: Show me all products in the continue category with a price over $672.85. +SQL Query: SELECT * FROM products WHERE category = 'continue' AND price > 672.85 + +Natural Query: Show me all products in the west category with a price over $85.83. +SQL Query: SELECT * FROM products WHERE category = 'west' AND price > 85.83 + +Natural Query: List all customers and their total order value for Johnston 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 = 'Johnston Inc' GROUP BY c.customer_id + +Natural Query: What is the minimum price of all products for Collins-Miller? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Collins-Miller' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Shah-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 = 'Shah-Carter' + 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-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 = 'Wilson-Hall' GROUP BY c.customer_id + +Natural Query: Show me all products in the employee category with a price over $305.72. +SQL Query: SELECT * FROM products WHERE category = 'employee' AND price > 305.72 + +Natural Query: What is the maximum quantity of all products for Sampson LLC? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Sampson LLC' + +Natural Query: How many orders were placed for Simon, Humphrey and Guerrero between 2024-04-22 and 2024-05-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Simon, Humphrey and Guerrero' AND order_date BETWEEN '2024-04-22' AND '2024-05-30' + +Natural Query: List all products of Waller, Chapman and Owens ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Waller, Chapman and Owens' ORDER BY price ASC + +Natural Query: List all customers and their total order value for Santana-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 = 'Santana-Brown' GROUP BY c.customer_id + +Natural Query: What is the total quantity of all products for Smith, Jackson and Cook? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Smith, Jackson and Cook' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Graham, Phillips and Allen 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 = 'Graham, Phillips and Allen' + 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 Hill-Hutchinson all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Hill-Hutchinson' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: Show me all products in the national category with a price over $328.43. +SQL Query: SELECT * FROM products WHERE category = 'national' AND price > 328.43 + +Natural Query: List all products of Wallace, Davis and Frazier ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wallace, Davis and Frazier' ORDER BY rating DESC + +Natural Query: What are the top 5 products by revenue for Conrad, Carpenter and Roberts all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Conrad, Carpenter and Roberts' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: Show me all products in the fact category with a price over $803.31. +SQL Query: SELECT * FROM products WHERE category = 'fact' AND price > 803.31 + +Natural Query: List all customers and their total order value for Scott 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 = 'Scott Group' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Smith-Lewis between 2024-02-07 and 2024-09-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Smith-Lewis' AND order_date BETWEEN '2024-02-07' AND '2024-09-15' + +Natural Query: What is the total quantity for each country in Pierce-Rogers? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Pierce-Rogers' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the total profit for each category in Roman-Lucero? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Roman-Lucero' GROUP BY category ORDER BY total_profit DESC + +Natural Query: Show me all products in the see category with a price over $604.0. +SQL Query: SELECT * FROM products WHERE category = 'see' AND price > 604.0 + +Natural Query: What is the total profit for each category in Newman Inc? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Newman Inc' GROUP BY category ORDER BY total_profit DESC + +Natural Query: List all products of Trevino, Evans and Mclaughlin ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Trevino, Evans and Mclaughlin' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Roberts 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 = 'Roberts 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 10 products by customers for Peterson, Davis and Davenport this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Peterson, Davis and Davenport' AND period = 'this month' 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 Bond-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 = 'Bond-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 customers and their total order value for Austin 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 = 'Austin and Sons' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Barnes-White 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 = 'Barnes-White' + 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 White Inc ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'White Inc' ORDER BY rating DESC + +Natural Query: Show me all products in the training category with a price over $874.16. +SQL Query: SELECT * FROM products WHERE category = 'training' AND price > 874.16 + +Natural Query: What are the top 10 products by orders for Russell-Pham this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Russell-Pham' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: Show me all products in the pattern category with a price over $589.48. +SQL Query: SELECT * FROM products WHERE category = 'pattern' AND price > 589.48 + +Natural Query: What is the maximum price of all products for Hayden, Collins and Johnson? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Hayden, Collins and Johnson' + +Natural Query: List all customers and their total order value for Stone 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 = 'Stone Group' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each category in Robertson Group? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Robertson Group' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 5 products by revenue for Thomas-Carter this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Thomas-Carter' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: What is the total quantity for each country in Acosta, Patel and Phillips? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Acosta, Patel and Phillips' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 9 products by orders for Williams, Smith and Rivera this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Williams, Smith and Rivera' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: Show me all products in the people category with a price over $565.94. +SQL Query: SELECT * FROM products WHERE category = 'people' AND price > 565.94 + +Natural Query: What is the total quantity for each country in Rodriguez, Mcdonald and Gonzales? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Rodriguez, Mcdonald and Gonzales' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all products of Poole Inc ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Poole Inc' ORDER BY price ASC + +Natural Query: Show me all products in the arm category with a price over $435.03. +SQL Query: SELECT * FROM products WHERE category = 'arm' AND price > 435.03 + +Natural Query: What are the top 6 products by revenue for Barrett PLC this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Barrett PLC' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: What is the total profit for each country in Miller, Benjamin and Spence? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Miller, Benjamin and Spence' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Black-Trujillo. +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 = 'Black-Trujillo' GROUP BY c.customer_id + +Natural Query: What is the average price of all products for Miller PLC? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Miller PLC' + +Natural Query: List all customers and their total order value for Cole-Gonzalez. +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 = 'Cole-Gonzalez' GROUP BY c.customer_id + +Natural Query: Show me all products in the purpose category with a price over $365.35. +SQL Query: SELECT * FROM products WHERE category = 'purpose' AND price > 365.35 + +Natural Query: What is the total sales for each category in Taylor, Gilbert and Garza? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Taylor, Gilbert and Garza' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the total quantity of all products for Fernandez and Sons? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Fernandez and Sons' + +Natural Query: List all customers and their total order value for Gardner-Griffin. +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 = 'Gardner-Griffin' GROUP BY c.customer_id + +Natural Query: What is the average quantity of all products for Holder, Paul and Brown? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Holder, Paul and Brown' + +Natural Query: What are the top 10 products by revenue for Wilson Group this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Wilson Group' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: What is the minimum quantity of all products for Schmitt-Perry? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Schmitt-Perry' + +Natural Query: Show me all products in the charge category with a price over $550.41. +SQL Query: SELECT * FROM products WHERE category = 'charge' AND price > 550.41 + +Natural Query: List all products of Mccoy and Sons ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mccoy and Sons' ORDER BY rating ASC + +Natural Query: What is the maximum quantity of all products for Stevens Group? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Stevens Group' + +Natural Query: How many orders were placed for Dean PLC between 2024-01-06 and 2024-07-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Dean PLC' AND order_date BETWEEN '2024-01-06' AND '2024-07-14' + +Natural Query: How many orders were placed for Doyle Ltd between 2023-11-07 and 2023-11-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Doyle Ltd' AND order_date BETWEEN '2023-11-07' AND '2023-11-17' + +Natural Query: What is the total sales for each country in Price Inc? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Price Inc' GROUP BY country ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Evans, Davis and Beasley between 2023-10-26 and 2024-07-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Evans, Davis and Beasley' AND order_date BETWEEN '2023-10-26' AND '2024-07-23' + +Natural Query: What are the top 7 products by orders for Brown, Lopez and Burch this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Brown, Lopez and Burch' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: How many orders were placed for Miller LLC between 2023-11-29 and 2024-06-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Miller LLC' AND order_date BETWEEN '2023-11-29' AND '2024-06-26' + +Natural Query: List all customers and their total order value for Walls-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 = 'Walls-Ramirez' GROUP BY c.customer_id + +Natural Query: List all products of Villarreal-Kelley ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Villarreal-Kelley' ORDER BY stock_quantity ASC + +Natural Query: What is the total quantity for each supplier in Lewis-Potter? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Lewis-Potter' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all products of Chambers, Morgan and Mitchell ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Chambers, Morgan and Mitchell' ORDER BY rating ASC + +Natural Query: What are the top 5 products by customers for Mcdonald-Nguyen all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Mcdonald-Nguyen' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: List all products of Kidd, Conley and Allen ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Kidd, Conley and Allen' ORDER BY price ASC + +Natural Query: What is the total sales for each country in Thompson-Ramirez? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Thompson-Ramirez' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the maximum price of all products for Burke LLC? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Burke LLC' + +Natural Query: What are the top 6 products by orders for Stewart, Hansen and Gilmore all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Stewart, Hansen and Gilmore' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: List all customers and their total order value for Vincent 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 = 'Vincent PLC' GROUP BY c.customer_id + +Natural Query: What are the top 10 products by revenue for Parrish PLC this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Parrish PLC' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: What is the minimum price of all products for Reynolds, Mosley and Reid? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Reynolds, Mosley and Reid' + +Natural Query: What is the maximum rating of all products for Perez-Kennedy? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Perez-Kennedy' + +Natural Query: What are the top 4 products by revenue for Walker, Rogers and Rivers this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Walker, Rogers and Rivers' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Avery 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 = 'Avery 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 Mclaughlin and Sons between 2024-07-02 and 2024-08-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mclaughlin and Sons' AND order_date BETWEEN '2024-07-02' AND '2024-08-06' + +Natural Query: How many orders were placed for Davis, Green and Miller between 2024-02-28 and 2024-05-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Davis, Green and Miller' AND order_date BETWEEN '2024-02-28' AND '2024-05-15' + +Natural Query: What are the top 4 products by customers for French-Sosa this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'French-Sosa' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: What is the average price of all products for Cummings-Russell? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Cummings-Russell' + +Natural Query: What is the maximum price of all products for Williams, Ritter and Dean? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Williams, Ritter and Dean' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Medina, Cowan and Nguyen 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 = 'Medina, Cowan and Nguyen' + 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 Stewart, Clark and Johnston? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Stewart, Clark and Johnston' + +Natural Query: Show me all products in the seat category with a price over $298.72. +SQL Query: SELECT * FROM products WHERE category = 'seat' AND price > 298.72 + +Natural Query: Show me all products in the college category with a price over $554.11. +SQL Query: SELECT * FROM products WHERE category = 'college' AND price > 554.11 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Martinez-Joseph 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-Joseph' + 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 Jones LLC? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Jones LLC' + +Natural Query: How many orders were placed for Brown, Garcia and West between 2024-02-07 and 2024-09-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Brown, Garcia and West' AND order_date BETWEEN '2024-02-07' AND '2024-09-16' + +Natural Query: How many orders were placed for Roy, Garcia and Tyler between 2024-01-12 and 2024-01-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Roy, Garcia and Tyler' AND order_date BETWEEN '2024-01-12' AND '2024-01-13' + +Natural Query: List all products of Briggs, Williams and Ruiz ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Briggs, Williams and Ruiz' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Sullivan-Trujillo 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 = 'Sullivan-Trujillo' + 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 Miller-Garcia 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 = 'Miller-Garcia' + 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 Greene-Hood ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Greene-Hood' ORDER BY stock_quantity DESC + +Natural Query: What is the total sales for each country in Jefferson, Montoya and Green? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Jefferson, Montoya and Green' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the total sales for each category in Wright, Townsend and Berger? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Wright, Townsend and Berger' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Smith 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 = 'Smith 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 6 products by customers for Velazquez-Smith this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Velazquez-Smith' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: What is the total quantity for each category in Nelson, Navarro and Walsh? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Nelson, Navarro and Walsh' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the total sales for each supplier in Smith, Crawford and Patrick? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Smith, Crawford and Patrick' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Kim, Williams 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 = 'Kim, Williams 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 is the average price of all products for Byrd PLC? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Byrd PLC' + +Natural Query: List all customers and their total order value for Johnson 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 = 'Johnson Ltd' GROUP BY c.customer_id + +Natural Query: List all products of Stewart-Valdez ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Stewart-Valdez' ORDER BY rating ASC + +Natural Query: List all products of Roberts, Bennett and Blankenship ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Roberts, Bennett and Blankenship' ORDER BY stock_quantity ASC + +Natural Query: What is the total quantity for each category in Rojas Ltd? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Rojas Ltd' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Herrera-Saunders between 2024-04-06 and 2024-06-02? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Herrera-Saunders' AND order_date BETWEEN '2024-04-06' AND '2024-06-02' + +Natural Query: What is the total quantity for each country in Garrett, Mckinney and Krueger? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Garrett, Mckinney and Krueger' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Rowe, Rodriguez and Gonzales 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 = 'Rowe, Rodriguez and Gonzales' + 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 Robinson, Myers and Garcia? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Robinson, Myers and Garcia' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cabrera 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 = 'Cabrera 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 Henderson-Hoffman? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Henderson-Hoffman' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the total quantity of all products for Mckay, Hernandez and Wolfe? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Mckay, Hernandez and Wolfe' + +Natural Query: How many orders were placed for Kelly, Vazquez and Gomez between 2023-11-03 and 2024-08-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Kelly, Vazquez and Gomez' AND order_date BETWEEN '2023-11-03' AND '2024-08-13' + +Natural Query: Show me all products in the mission category with a price over $794.33. +SQL Query: SELECT * FROM products WHERE category = 'mission' AND price > 794.33 + +Natural Query: What is the average price of all products for Mayo, Abbott and Arroyo? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Mayo, Abbott and Arroyo' + +Natural Query: What are the top 5 products by sales for Mckinney-Fuentes this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Mckinney-Fuentes' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: Show me all products in the thank category with a price over $397.67. +SQL Query: SELECT * FROM products WHERE category = 'thank' AND price > 397.67 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gomez, Rivera and Ochoa 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 = 'Gomez, Rivera and Ochoa' + 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 Cox, Adams and Owens between 2023-12-14 and 2024-07-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cox, Adams and Owens' AND order_date BETWEEN '2023-12-14' AND '2024-07-06' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Rodriguez, Curry and 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 = 'Rodriguez, Curry and Blankenship' + 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 Simmons, Bell and Wright. +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 = 'Simmons, Bell and Wright' GROUP BY c.customer_id + +Natural Query: What is the total quantity of all products for Grant LLC? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Grant LLC' + +Natural Query: What is the total sales for each category in Williams-Campbell? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Williams-Campbell' GROUP BY category ORDER BY total_sales DESC + +Natural Query: Show me all products in the crime category with a price over $848.87. +SQL Query: SELECT * FROM products WHERE category = 'crime' AND price > 848.87 + +Natural Query: How many orders were placed for Reed-Collins between 2024-01-09 and 2024-09-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Reed-Collins' AND order_date BETWEEN '2024-01-09' AND '2024-09-10' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Harris 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 = 'Harris 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 sales for Crosby PLC this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Crosby PLC' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: List all customers and their total order value for Brown-Mason. +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-Mason' GROUP BY c.customer_id + +Natural Query: What is the maximum rating of all products for Mullins Inc? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Mullins Inc' + +Natural Query: What are the top 8 products by orders for Clark-Hodge this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Clark-Hodge' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: How many orders were placed for Wells LLC between 2024-04-08 and 2024-07-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wells LLC' AND order_date BETWEEN '2024-04-08' AND '2024-07-25' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Patton, Figueroa and Elliott 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 = 'Patton, Figueroa and Elliott' + 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 time category with a price over $918.82. +SQL Query: SELECT * FROM products WHERE category = 'time' AND price > 918.82 + +Natural Query: What are the top 7 products by orders for Hale Group this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Hale Group' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: Show me all products in the deep category with a price over $195.44. +SQL Query: SELECT * FROM products WHERE category = 'deep' AND price > 195.44 + +Natural Query: How many orders were placed for Lee Group between 2024-06-06 and 2024-08-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lee Group' AND order_date BETWEEN '2024-06-06' AND '2024-08-06' + +Natural Query: What is the total profit for each supplier in Marsh-Rivera? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Marsh-Rivera' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all products of Wilson Group ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wilson Group' ORDER BY rating ASC + +Natural Query: What are the top 9 products by customers for Wagner, Lopez and Pruitt this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Wagner, Lopez and Pruitt' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: What is the total sales for each country in Saunders, Cohen and Nunez? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Saunders, Cohen and Nunez' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the average rating of all products for Flores LLC? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Flores LLC' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Rios-Parks 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 = 'Rios-Parks' + 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 Schmidt, Cunningham and Montgomery ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Schmidt, Cunningham and Montgomery' ORDER BY rating ASC + +Natural Query: What is the maximum rating of all products for Mendez, Brown and Dean? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Mendez, Brown and Dean' + +Natural Query: What are the top 9 products by revenue for Jones, White and Wolf all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Jones, White and Wolf' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: What is the total quantity for each country in King-Brewer? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'King-Brewer' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Yang, Reynolds and Martinez. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Yang, Reynolds and Martinez' GROUP BY c.customer_id + +Natural Query: List all products of Davis, Wilkinson and Hooper ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Davis, Wilkinson and Hooper' ORDER BY rating ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Brown, Hart and Pineda 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, Hart and Pineda' + 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 center category with a price over $476.19. +SQL Query: SELECT * FROM products WHERE category = 'center' AND price > 476.19 + +Natural Query: What is the total quantity of all products for Pace and Sons? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Pace and Sons' + +Natural Query: List all customers and their total order value for Golden, Clark and Hernandez. +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 = 'Golden, Clark and Hernandez' GROUP BY c.customer_id + +Natural Query: List all products of Rios Ltd ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rios Ltd' ORDER BY stock_quantity DESC + +Natural Query: What is the total sales for each country in Taylor-Strickland? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Taylor-Strickland' GROUP BY country ORDER BY total_sales DESC + +Natural Query: Show me all products in the hard category with a price over $576.17. +SQL Query: SELECT * FROM products WHERE category = 'hard' AND price > 576.17 + +Natural Query: Show me all products in the effort category with a price over $243.09. +SQL Query: SELECT * FROM products WHERE category = 'effort' AND price > 243.09 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cook, Brown and Jackson 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 = 'Cook, Brown and Jackson' + 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 Hanna-Walters between 2024-06-12 and 2024-06-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hanna-Walters' AND order_date BETWEEN '2024-06-12' AND '2024-06-30' + +Natural Query: Show me all products in the form category with a price over $642.87. +SQL Query: SELECT * FROM products WHERE category = 'form' AND price > 642.87 + +Natural Query: How many orders were placed for Flynn Inc between 2024-01-15 and 2024-07-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Flynn Inc' AND order_date BETWEEN '2024-01-15' AND '2024-07-30' + +Natural Query: How many orders were placed for Hayden-Austin between 2024-02-19 and 2024-06-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hayden-Austin' AND order_date BETWEEN '2024-02-19' AND '2024-06-01' + +Natural Query: What are the top 6 products by revenue for Murphy-Lee last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Murphy-Lee' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: What is the total profit for each category in Garza Ltd? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Garza Ltd' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mccann, Rosario and Nicholson 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 = 'Mccann, Rosario and Nicholson' + 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 Morgan-Jones? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Morgan-Jones' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the minimum rating of all products for Sandoval Group? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Sandoval Group' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Santiago, Mcbride and Fletcher 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 = 'Santiago, Mcbride and Fletcher' + 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 Rodriguez 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 = 'Rodriguez LLC' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Bridges, Banks and Vaughn 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 = 'Bridges, Banks and Vaughn' + 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 art category with a price over $139.57. +SQL Query: SELECT * FROM products WHERE category = 'art' AND price > 139.57 + +Natural Query: What are the top 10 products by sales for Cohen Ltd this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Cohen Ltd' AND period = 'this year' 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 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 = 'Johnson 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 6 products by sales for Johnson, Thompson and Anderson all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Johnson, Thompson and Anderson' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: What is the total quantity of all products for Marshall-Thompson? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Marshall-Thompson' + +Natural Query: What is the total quantity for each category in Stewart, Taylor and Goodman? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Stewart, Taylor and Goodman' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 9 products by sales for Bruce, Phillips and Carney this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Bruce, Phillips and Carney' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Nguyen-Walker 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-Walker' + 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 Martin PLC? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Martin PLC' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: Show me all products in the capital category with a price over $294.73. +SQL Query: SELECT * FROM products WHERE category = 'capital' AND price > 294.73 + +Natural Query: List all customers and their total order value for Smith 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 = 'Smith Ltd' GROUP BY c.customer_id + +Natural Query: List all products of Jones Inc ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jones Inc' ORDER BY price ASC + +Natural Query: What is the total profit for each supplier in Conner, Vazquez and Stewart? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Conner, Vazquez and Stewart' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cox-Long 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 = 'Cox-Long' + 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 skill category with a price over $176.9. +SQL Query: SELECT * FROM products WHERE category = 'skill' AND price > 176.9 + +Natural Query: List all products of Baker, Murphy and Villarreal ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Baker, Murphy and Villarreal' ORDER BY stock_quantity ASC + +Natural Query: How many orders were placed for Andrews-Buckley between 2024-02-22 and 2024-09-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Andrews-Buckley' AND order_date BETWEEN '2024-02-22' AND '2024-09-04' + +Natural Query: Show me all products in the happen category with a price over $158.09. +SQL Query: SELECT * FROM products WHERE category = 'happen' AND price > 158.09 + +Natural Query: List all products of Kline-Smith ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Kline-Smith' ORDER BY price ASC + +Natural Query: List all products of Chambers-Barker ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Chambers-Barker' ORDER BY price ASC + +Natural Query: What is the average quantity of all products for Garcia-Marshall? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Garcia-Marshall' + +Natural Query: Show me all products in the program category with a price over $869.52. +SQL Query: SELECT * FROM products WHERE category = 'program' AND price > 869.52 + +Natural Query: What is the maximum rating of all products for Roman-Baker? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Roman-Baker' + +Natural Query: What are the top 6 products by revenue for Miller PLC all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Miller PLC' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: List all products of Green Ltd ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Green Ltd' ORDER BY price DESC + +Natural Query: What are the top 7 products by orders for Lambert Group last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Lambert Group' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: Show me all products in the both category with a price over $340.64. +SQL Query: SELECT * FROM products WHERE category = 'both' AND price > 340.64 + +Natural Query: What is the total sales for each category in Pena, Williams and Gomez? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Pena, Williams and Gomez' GROUP BY category ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Yang, Morrison and Hall between 2023-12-12 and 2024-04-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Yang, Morrison and Hall' AND order_date BETWEEN '2023-12-12' AND '2024-04-07' + +Natural Query: List all customers and their total order value for Jones, Clay and White. +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, Clay and White' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Garcia-Meyer between 2024-05-09 and 2024-08-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Garcia-Meyer' AND order_date BETWEEN '2024-05-09' AND '2024-08-04' + +Natural Query: How many orders were placed for Hill-Romero between 2024-01-14 and 2024-07-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hill-Romero' AND order_date BETWEEN '2024-01-14' AND '2024-07-30' + +Natural Query: What are the top 8 products by sales for Maxwell, Clements and Gregory all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Maxwell, Clements and Gregory' AND period = 'all time' 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 Soto 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 = 'Soto 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 Smith PLC between 2024-04-11 and 2024-04-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Smith PLC' AND order_date BETWEEN '2024-04-11' AND '2024-04-22' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Sawyer 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 = 'Sawyer 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 are the top 5 categories by sales for customers aged 25-35 in Jones-Haynes 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-Haynes' + 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 Harris LLC between 2024-02-07 and 2024-08-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Harris LLC' AND order_date BETWEEN '2024-02-07' AND '2024-08-20' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cook, Barr 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 = 'Cook, Barr 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: List all customers and their total order value for Henderson, Farrell and Martinez. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Henderson, Farrell and Martinez' GROUP BY c.customer_id + +Natural Query: List all products of Patrick, Butler and Sherman ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Patrick, Butler and Sherman' ORDER BY stock_quantity ASC + +Natural Query: What is the total price of all products for Stephens, Kelly and Rodriguez? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Stephens, Kelly and Rodriguez' + +Natural Query: List all customers and their total order value for Lopez, Gutierrez and Sutton. +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 = 'Lopez, Gutierrez and Sutton' GROUP BY c.customer_id + +Natural Query: What is the total sales for each country in Carey PLC? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Carey PLC' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the maximum rating of all products for Franklin-Brown? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Franklin-Brown' + +Natural Query: How many orders were placed for Miller, Miller and Miller between 2024-03-14 and 2024-09-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Miller, Miller and Miller' AND order_date BETWEEN '2024-03-14' AND '2024-09-07' + +Natural Query: What is the total sales for each supplier in Woodward, Smith and Garcia? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Woodward, Smith and Garcia' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Dean-Marquez 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 = 'Dean-Marquez' + 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 Stevens, Hardy and Roberts this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Stevens, Hardy and Roberts' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: How many orders were placed for Byrd PLC between 2024-02-09 and 2024-08-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Byrd PLC' AND order_date BETWEEN '2024-02-09' AND '2024-08-18' + +Natural Query: What are the top 8 products by customers for Beck, Brown and Olson this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Beck, Brown and Olson' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: What are the top 9 products by sales for Camacho, Smith and Stevenson this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Camacho, Smith and Stevenson' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: How many orders were placed for Carroll-Nolan between 2024-04-09 and 2024-05-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Carroll-Nolan' AND order_date BETWEEN '2024-04-09' AND '2024-05-09' + +Natural Query: Show me all products in the market category with a price over $245.23. +SQL Query: SELECT * FROM products WHERE category = 'market' AND price > 245.23 + +Natural Query: List all customers and their total order value for Melton 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 = 'Melton PLC' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Taylor-Sweeney 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-Sweeney' + 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 Hurley-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 = 'Hurley-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 is the average rating of all products for Frederick, Johnson and Davis? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Frederick, Johnson and Davis' + +Natural Query: How many orders were placed for Reynolds PLC between 2023-09-24 and 2024-03-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Reynolds PLC' AND order_date BETWEEN '2023-09-24' AND '2024-03-03' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hayes, Evans and Gonzalez 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 = 'Hayes, Evans and Gonzalez' + 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 ago category with a price over $93.75. +SQL Query: SELECT * FROM products WHERE category = 'ago' AND price > 93.75 + +Natural Query: Show me all products in the personal category with a price over $622.36. +SQL Query: SELECT * FROM products WHERE category = 'personal' AND price > 622.36 + +Natural Query: List all customers and their total order value for Rogers-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 = 'Rogers-Harris' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Bates 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 = 'Bates and Sons' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Miller-Ward 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 = 'Miller-Ward' + 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 Costa-Jackson? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Costa-Jackson' + +Natural Query: How many orders were placed for Casey Inc between 2023-11-13 and 2024-04-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Casey Inc' AND order_date BETWEEN '2023-11-13' AND '2024-04-17' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Becker, Higgins and Cox 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 = 'Becker, Higgins and Cox' + 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 Edwards, Hernandez and Galloway? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Edwards, Hernandez and Galloway' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 9 products by sales for Roberson, Reese and Lee last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Roberson, Reese and Lee' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: List all customers and their total order value for Williams 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 = 'Williams Group' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each category in Alvarez Group? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Alvarez Group' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: Show me all products in the security category with a price over $82.67. +SQL Query: SELECT * FROM products WHERE category = 'security' AND price > 82.67 + +Natural Query: How many orders were placed for Reed, Ellis and Lee between 2023-12-09 and 2024-07-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Reed, Ellis and Lee' AND order_date BETWEEN '2023-12-09' AND '2024-07-17' + +Natural Query: Show me all products in the none category with a price over $23.74. +SQL Query: SELECT * FROM products WHERE category = 'none' AND price > 23.74 + +Natural Query: Show me all products in the various category with a price over $745.2. +SQL Query: SELECT * FROM products WHERE category = 'various' AND price > 745.2 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Rogers, Hinton and Carrillo 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 = 'Rogers, Hinton and Carrillo' + 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 Archer, Clark and Black 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 = 'Archer, Clark and Black' + 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 Fuller, Miranda and Travis? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Fuller, Miranda and Travis' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Payne, Crawford and Simon 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 = 'Payne, Crawford and Simon' + 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 Nelson and Sons? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Nelson and Sons' + +Natural Query: List all customers and their total order value for Lara 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 = 'Lara PLC' GROUP BY c.customer_id + +Natural Query: Show me all products in the each category with a price over $541.36. +SQL Query: SELECT * FROM products WHERE category = 'each' AND price > 541.36 + +Natural Query: What is the maximum price of all products for Taylor-Dalton? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Taylor-Dalton' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Bowen, Taylor and Valenzuela 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 = 'Bowen, Taylor and Valenzuela' + 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 Gregory Inc ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gregory Inc' ORDER BY price ASC + +Natural Query: What is the minimum quantity of all products for Fernandez Ltd? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Fernandez Ltd' + +Natural Query: Show me all products in the meeting category with a price over $593.59. +SQL Query: SELECT * FROM products WHERE category = 'meeting' AND price > 593.59 + +Natural Query: Show me all products in the walk category with a price over $293.21. +SQL Query: SELECT * FROM products WHERE category = 'walk' AND price > 293.21 + +Natural Query: List all products of Ray LLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ray LLC' ORDER BY rating DESC + +Natural Query: What is the average price of all products for Matthews-Rivera? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Matthews-Rivera' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Ellis, Brooks and Schaefer 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 = 'Ellis, Brooks and Schaefer' + 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 Guzman 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 = 'Guzman Ltd' + 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 nearly category with a price over $102.18. +SQL Query: SELECT * FROM products WHERE category = 'nearly' AND price > 102.18 + +Natural Query: Show me all products in the guess category with a price over $442.24. +SQL Query: SELECT * FROM products WHERE category = 'guess' AND price > 442.24 + +Natural Query: What is the total profit for each category in Rivera, Charles and Ruiz? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Rivera, Charles and Ruiz' GROUP BY category ORDER BY total_profit DESC + +Natural Query: List all products of Taylor-White ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Taylor-White' ORDER BY price DESC + +Natural Query: What are the top 3 products by customers for Rodriguez-Henderson last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Rodriguez-Henderson' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: What are the top 9 products by orders for Rogers, Brown and Woods this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Rogers, Brown and Woods' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: What is the average quantity of all products for Anderson-Conway? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Anderson-Conway' + +Natural Query: List all products of English Group ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'English Group' ORDER BY price ASC + +Natural Query: What are the top 9 products by revenue for Rosales-Carter all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Rosales-Carter' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: List all customers and their total order value for Johnston, Wilcox and Preston. +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 = 'Johnston, Wilcox and Preston' GROUP BY c.customer_id + +Natural Query: What are the top 5 products by revenue for Pierce, Brock and Boyd this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Pierce, Brock and Boyd' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: How many orders were placed for Avila, Martin and Rivera between 2024-04-17 and 2024-07-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Avila, Martin and Rivera' AND order_date BETWEEN '2024-04-17' AND '2024-07-20' + +Natural Query: List all products of Thomas, Adams and Watkins ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Thomas, Adams and Watkins' ORDER BY rating DESC + +Natural Query: What are the top 8 products by customers for Herman Inc all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Herman Inc' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: How many orders were placed for Perkins, Brooks and Smith between 2023-10-18 and 2023-11-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Perkins, Brooks and Smith' AND order_date BETWEEN '2023-10-18' AND '2023-11-22' + +Natural Query: List all products of Lewis-White ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lewis-White' ORDER BY price DESC + +Natural Query: What is the minimum quantity of all products for Bishop-Williams? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Bishop-Williams' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Rodriguez 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 = 'Rodriguez 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 Mercado 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 = 'Mercado 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 8 products by revenue for Taylor-Fischer this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Taylor-Fischer' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: List all customers and their total order value for Le 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 = 'Le PLC' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Brady 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 = 'Brady 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 Hughes Inc? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Hughes Inc' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What is the average price of all products for Maddox and Sons? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Maddox and Sons' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gutierrez-White 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 = 'Gutierrez-White' + 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 4 products by orders for Ellis LLC this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Ellis LLC' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: What is the average rating of all products for Zimmerman Ltd? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Zimmerman Ltd' + +Natural Query: List all customers and their total order value for Erickson, Miller 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 = 'Erickson, Miller and Moore' GROUP BY c.customer_id + +Natural Query: Show me all products in the thing category with a price over $548.01. +SQL Query: SELECT * FROM products WHERE category = 'thing' AND price > 548.01 + +Natural Query: What is the total profit for each country in Alvarez Group? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Alvarez Group' GROUP BY country ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Kelly, Golden and Lane between 2024-06-30 and 2024-09-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Kelly, Golden and Lane' AND order_date BETWEEN '2024-06-30' AND '2024-09-11' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Huffman-Odonnell 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 = 'Huffman-Odonnell' + 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 Harper-Gomez 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 = 'Harper-Gomez' + 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 Gilbert, Ellis 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 = 'Gilbert, Ellis 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 products of Jones-Wilson ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jones-Wilson' ORDER BY rating ASC + +Natural Query: What is the total sales for each supplier in Rose PLC? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Rose PLC' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Rivera-Phillips between 2024-08-02 and 2024-08-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Rivera-Phillips' AND order_date BETWEEN '2024-08-02' AND '2024-08-16' + +Natural Query: What are the top 7 products by customers for Jensen-Wolf all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Jensen-Wolf' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: What is the total sales for each country in Moore Ltd? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Moore Ltd' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Cook 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 = 'Cook PLC' GROUP BY c.customer_id + +Natural Query: Show me all products in the foot category with a price over $49.39. +SQL Query: SELECT * FROM products WHERE category = 'foot' AND price > 49.39 + +Natural Query: List all products of Gutierrez Group ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gutierrez Group' ORDER BY stock_quantity ASC + +Natural Query: How many orders were placed for Morse-Gibbs between 2023-10-11 and 2024-02-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Morse-Gibbs' AND order_date BETWEEN '2023-10-11' AND '2024-02-26' + +Natural Query: What is the minimum rating of all products for Scott, Braun and Gonzales? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Scott, Braun and Gonzales' + +Natural Query: What is the minimum price of all products for Ramsey-Jones? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Ramsey-Jones' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Johnson, Sanders 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 = 'Johnson, Sanders 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: How many orders were placed for Jordan, Boyd and Arnold between 2023-10-16 and 2024-03-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jordan, Boyd and Arnold' AND order_date BETWEEN '2023-10-16' AND '2024-03-15' + +Natural Query: What are the top 3 products by sales for Arnold, Guzman and Conley this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Arnold, Guzman and Conley' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: List all customers and their total order value for Anderson, Armstrong and Richardson. +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, Armstrong and Richardson' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Grant and Sons between 2024-04-28 and 2024-06-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Grant and Sons' AND order_date BETWEEN '2024-04-28' AND '2024-06-20' + +Natural Query: List all customers and their total order value for Rhodes 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 = 'Rhodes LLC' GROUP BY c.customer_id + +Natural Query: What is the maximum quantity of all products for Navarro, Warner and Mitchell? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Navarro, Warner and Mitchell' + +Natural Query: What is the total profit for each country in Henderson Ltd? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Henderson Ltd' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 6 products by revenue for Harrell and Sons last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Harrell and Sons' 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 Combs 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 = 'Combs 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 Hernandez-Gonzalez between 2024-01-31 and 2024-08-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hernandez-Gonzalez' AND order_date BETWEEN '2024-01-31' AND '2024-08-03' + +Natural Query: What are the top 7 products by revenue for Monroe-Gray last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Monroe-Gray' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: How many orders were placed for Newman-Williams between 2024-04-20 and 2024-08-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Newman-Williams' AND order_date BETWEEN '2024-04-20' AND '2024-08-23' + +Natural Query: List all customers and their total order value for Howard-Gilbert. +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-Gilbert' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Copeland 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 = 'Copeland Group' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Zamora-George between 2024-01-05 and 2024-01-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Zamora-George' AND order_date BETWEEN '2024-01-05' AND '2024-01-25' + +Natural Query: What are the top 8 products by customers for Short, Morton and Jimenez this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Short, Morton and Jimenez' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: What are the top 9 products by orders for Hunt, Mack and Alvarez last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Hunt, Mack and Alvarez' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: List all customers and their total order value for Ortiz, Henry and Deleon. +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 = 'Ortiz, Henry and Deleon' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Obrien PLC between 2024-05-17 and 2024-09-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Obrien PLC' AND order_date BETWEEN '2024-05-17' AND '2024-09-03' + +Natural Query: What are the top 10 products by revenue for Dean, Johnson and Davis all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Dean, Johnson and Davis' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: Show me all products in the statement category with a price over $238.51. +SQL Query: SELECT * FROM products WHERE category = 'statement' AND price > 238.51 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gallagher, Burke and Powers 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 = 'Gallagher, Burke and Powers' + 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 Taylor 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 = 'Taylor PLC' GROUP BY c.customer_id + +Natural Query: What is the average quantity of all products for Wilson Inc? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Wilson Inc' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Martin, Jacobs and Lee 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 = 'Martin, Jacobs and Lee' + 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 Bell-Jackson 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 = 'Bell-Jackson' + 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 Mclean-Barker between 2024-03-19 and 2024-04-02? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mclean-Barker' AND order_date BETWEEN '2024-03-19' AND '2024-04-02' + +Natural Query: List all products of Hunt-Park ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hunt-Park' ORDER BY price DESC + +Natural Query: How many orders were placed for Ballard Group between 2023-11-06 and 2024-04-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ballard Group' AND order_date BETWEEN '2023-11-06' AND '2024-04-04' + +Natural Query: List all customers and their total order value for Conner, Stewart and Jacobson. +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 = 'Conner, Stewart and Jacobson' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Jones, Fields and Bolton between 2024-05-10 and 2024-05-31? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jones, Fields and Bolton' AND order_date BETWEEN '2024-05-10' AND '2024-05-31' + +Natural Query: What are the top 4 products by orders for Johnson Inc all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Johnson Inc' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: List all products of Stevenson and Sons ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Stevenson and Sons' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Evans 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 = 'Evans LLC' GROUP BY c.customer_id + +Natural Query: What is the total profit for each supplier in Morales-Sparks? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Morales-Sparks' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Tran-Smith between 2024-05-30 and 2024-08-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Tran-Smith' AND order_date BETWEEN '2024-05-30' AND '2024-08-03' + +Natural Query: What is the maximum rating of all products for Gilbert Group? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Gilbert Group' + +Natural Query: How many orders were placed for Mercado, Williams and Robinson between 2024-09-16 and 2024-09-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mercado, Williams and Robinson' AND order_date BETWEEN '2024-09-16' AND '2024-09-16' + +Natural Query: What is the total quantity for each supplier in Molina-Jackson? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Molina-Jackson' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 9 products by sales for Hamilton, Wright and Thompson this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hamilton, Wright and Thompson' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: What is the minimum price of all products for Velazquez-Thomas? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Velazquez-Thomas' + +Natural Query: What is the minimum quantity of all products for Wallace, Friedman and Alexander? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Wallace, Friedman and Alexander' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Sanchez 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 = 'Sanchez 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 is the average price of all products for Vang-Davenport? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Vang-Davenport' + +Natural Query: List all products of Flowers, Cook and Mercado ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Flowers, Cook and Mercado' ORDER BY stock_quantity ASC + +Natural Query: What is the total quantity for each category in Robinson, Short and Flores? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Robinson, Short and Flores' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Mason-Burns. +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 = 'Mason-Burns' GROUP BY c.customer_id + +Natural Query: List all products of Harrison LLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Harrison LLC' ORDER BY rating DESC + +Natural Query: What is the average rating of all products for Martinez, Ferguson and Dunn? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Martinez, Ferguson and Dunn' + +Natural Query: List all products of Davis and Sons ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Davis and Sons' ORDER BY price ASC + +Natural Query: List all products of Gonzalez, Jones and Russell ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gonzalez, Jones and Russell' ORDER BY stock_quantity DESC + +Natural Query: How many orders were placed for Clark-Turner between 2023-10-05 and 2023-12-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Clark-Turner' AND order_date BETWEEN '2023-10-05' AND '2023-12-03' + +Natural Query: List all products of Pham-Watts ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Pham-Watts' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Russo-Molina. +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 = 'Russo-Molina' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Henry, Perez and Stein between 2024-09-03 and 2024-09-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Henry, Perez and Stein' AND order_date BETWEEN '2024-09-03' AND '2024-09-16' + +Natural Query: How many orders were placed for Christensen-Lucas between 2023-12-13 and 2024-06-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Christensen-Lucas' AND order_date BETWEEN '2023-12-13' AND '2024-06-28' + +Natural Query: List all customers and their total order value for Avery, Wong and Jordan. +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 = 'Avery, Wong and Jordan' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Bradford-Stewart 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 = 'Bradford-Stewart' + 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 Allen, Murray and Foster ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Allen, Murray and Foster' ORDER BY stock_quantity DESC + +Natural Query: What is the minimum rating of all products for Vaughn PLC? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Vaughn PLC' + +Natural Query: What is the total profit for each supplier in Castro LLC? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Castro LLC' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the total profit for each supplier in Smith and Sons? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Smith and Sons' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Keller-Estrada 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-Estrada' + 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 Washington 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 = 'Washington Inc' GROUP BY c.customer_id + +Natural Query: List all products of Santos Group ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Santos Group' ORDER BY rating ASC + +Natural Query: Show me all products in the most category with a price over $573.31. +SQL Query: SELECT * FROM products WHERE category = 'most' AND price > 573.31 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Thompson-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 = 'Thompson-Williams' + 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 Mckenzie, Ramirez and Holland. +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 = 'Mckenzie, Ramirez and Holland' GROUP BY c.customer_id + +Natural Query: Show me all products in the program category with a price over $857.15. +SQL Query: SELECT * FROM products WHERE category = 'program' AND price > 857.15 + +Natural Query: What is the total sales for each supplier in Williams, Baldwin and Palmer? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Williams, Baldwin and Palmer' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Smith-Jacobs. +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-Jacobs' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Guzman Inc between 2024-04-21 and 2024-05-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Guzman Inc' AND order_date BETWEEN '2024-04-21' AND '2024-05-01' + +Natural Query: What are the top 8 products by customers for Holloway Group this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Holloway Group' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: What are the top 4 products by orders for Roberts-Hamilton this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Roberts-Hamilton' AND period = 'this month' 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 Olson 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 = 'Olson 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 Diaz 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 = 'Diaz Ltd' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each country in Jones, Ellison and Rodgers? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Jones, Ellison and Rodgers' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: Show me all products in the respond category with a price over $41.48. +SQL Query: SELECT * FROM products WHERE category = 'respond' AND price > 41.48 + +Natural Query: List all products of Williams-Simpson ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Williams-Simpson' ORDER BY price DESC + +Natural Query: What is the total sales for each supplier in Thompson, Vasquez and Hernandez? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Thompson, Vasquez and Hernandez' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 8 products by revenue for Gilmore-Goodman this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Gilmore-Goodman' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: List all customers and their total order value for Mcintosh-Christensen. +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 = 'Mcintosh-Christensen' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Wright, Silva and 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 = 'Wright, Silva and Chang' + 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 orders for Moreno, Smith and Blackwell this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Moreno, Smith and Blackwell' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Phillips, Lewis and Strickland 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, Lewis and Strickland' + 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 Rodriguez-Johnson between 2024-05-03 and 2024-09-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Rodriguez-Johnson' AND order_date BETWEEN '2024-05-03' AND '2024-09-15' + +Natural Query: Show me all products in the visit category with a price over $405.48. +SQL Query: SELECT * FROM products WHERE category = 'visit' AND price > 405.48 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Adams, Grimes and 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 = 'Adams, Grimes and Johnson' + 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 Hart 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 = 'Hart PLC' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Wallace-Cook. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Wallace-Cook' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Cline and Sons between 2023-11-22 and 2023-12-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cline and Sons' AND order_date BETWEEN '2023-11-22' AND '2023-12-12' + +Natural Query: List all products of Lewis LLC ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lewis LLC' ORDER BY stock_quantity ASC + +Natural Query: What is the total profit for each country in Holder, Adams and Ali? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Holder, Adams and Ali' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What is the minimum quantity of all products for Guzman-Wood? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Guzman-Wood' + +Natural Query: What are the top 8 products by sales for Blevins-Nelson this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Blevins-Nelson' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: What is the maximum price of all products for Burton-Stevens? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Burton-Stevens' + +Natural Query: List all products of Wallace Ltd ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wallace Ltd' ORDER BY rating DESC + +Natural Query: List all customers and their total order value for Adams-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 = 'Adams-Smith' GROUP BY c.customer_id + +Natural Query: List all products of Shelton, Gordon and Mcdonald ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Shelton, Gordon and Mcdonald' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Walsh 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 = 'Walsh 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 Martinez, Jackson and Keith ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Martinez, Jackson and Keith' ORDER BY stock_quantity ASC + +Natural Query: How many orders were placed for Andrews, Schneider and Steele between 2023-12-11 and 2024-03-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Andrews, Schneider and Steele' AND order_date BETWEEN '2023-12-11' AND '2024-03-29' + +Natural Query: What is the total rating of all products for Blackwell, Kelly and Martin? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Blackwell, Kelly and Martin' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Johnson, Rice and Hickman 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, Rice and Hickman' + 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 Perez-Jennings? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Perez-Jennings' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Peterson 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 = 'Peterson 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 Dorsey, Salazar and Turner ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Dorsey, Salazar and Turner' ORDER BY stock_quantity DESC + +Natural Query: How many orders were placed for Holloway-Boyd between 2023-11-07 and 2024-03-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Holloway-Boyd' AND order_date BETWEEN '2023-11-07' AND '2024-03-07' + +Natural Query: What are the top 3 products by revenue for Dean-Wise this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Dean-Wise' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Stevenson 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 = 'Stevenson PLC' + 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 somebody category with a price over $514.36. +SQL Query: SELECT * FROM products WHERE category = 'somebody' AND price > 514.36 + +Natural Query: How many orders were placed for Osborne-Cameron between 2024-04-02 and 2024-07-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Osborne-Cameron' AND order_date BETWEEN '2024-04-02' AND '2024-07-08' + +Natural Query: What are the top 3 products by revenue for Garrett-Cooper this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Garrett-Cooper' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Pratt, Butler and Hernandez 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 = 'Pratt, Butler and Hernandez' + 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 Sandoval and Sons? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Sandoval and Sons' + +Natural Query: List all products of Ramirez, Padilla and Foster ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ramirez, Padilla and Foster' ORDER BY price ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Rios, Miles and 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 = 'Rios, Miles and Moore' + 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 Turner, Riley and Taylor 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 = 'Turner, Riley and Taylor' + 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 Gallagher, White and Lam 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 = 'Gallagher, White and Lam' + 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 9 products by orders for Harris-Gomez this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Harris-Gomez' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: What is the average rating of all products for Ortiz LLC? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Ortiz LLC' + +Natural Query: List all products of George, Garcia and Conner ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'George, Garcia and Conner' ORDER BY rating DESC + +Natural Query: List all products of Johnson-Thomas ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Johnson-Thomas' ORDER BY price DESC + +Natural Query: What is the average price of all products for Patton Ltd? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Patton Ltd' + +Natural Query: What are the top 6 products by customers for Osborn, Robinson and Atkinson this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Osborn, Robinson and Atkinson' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: List all customers and their total order value for Higgins, Myers and Steele. +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 = 'Higgins, Myers and Steele' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Wolfe, Lopez and Garrett 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 = 'Wolfe, Lopez and Garrett' + 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 Cardenas 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 = 'Cardenas Inc' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Carter, Nelson and Parker 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 = 'Carter, Nelson and Parker' + 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 Lee Group? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Lee Group' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 9 products by orders for Bruce Ltd last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Bruce Ltd' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: What are the top 4 products by customers for Lawrence-Jackson all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Lawrence-Jackson' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: List all products of Guzman, Carson and Russell ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Guzman, Carson and Russell' ORDER BY price DESC + +Natural Query: What is the average price of all products for Jensen Inc? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Jensen Inc' + +Natural Query: Show me all products in the value category with a price over $724.67. +SQL Query: SELECT * FROM products WHERE category = 'value' AND price > 724.67 + +Natural Query: How many orders were placed for Carter-Reed between 2024-08-03 and 2024-08-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Carter-Reed' AND order_date BETWEEN '2024-08-03' AND '2024-08-07' + +Natural Query: Show me all products in the street category with a price over $721.12. +SQL Query: SELECT * FROM products WHERE category = 'street' AND price > 721.12 + +Natural Query: What are the top 10 products by sales for Smith, Erickson and Williams last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Smith, Erickson and Williams' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: List all customers and their total order value for Scott 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 = 'Scott PLC' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Figueroa, Reyes and Durham between 2024-04-30 and 2024-05-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Figueroa, Reyes and Durham' AND order_date BETWEEN '2024-04-30' AND '2024-05-18' + +Natural Query: How many orders were placed for Jones, Colon and Mills between 2024-07-16 and 2024-09-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jones, Colon and Mills' AND order_date BETWEEN '2024-07-16' AND '2024-09-01' + +Natural Query: What are the top 7 products by revenue for Garcia, Ingram and Gutierrez this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Garcia, Ingram and Gutierrez' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: What is the total profit for each category in Ashley LLC? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Ashley LLC' GROUP BY category ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Lyons-Kelly. +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 = 'Lyons-Kelly' GROUP BY c.customer_id + +Natural Query: What is the total profit for each category in Rodriguez PLC? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Rodriguez PLC' GROUP BY category ORDER BY total_profit DESC + +Natural Query: List all products of Smith Inc ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith Inc' ORDER BY stock_quantity DESC + +Natural Query: What are the top 6 products by revenue for Giles Ltd this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Giles Ltd' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: List all customers and their total order value for Brown-Jacobs. +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-Jacobs' GROUP BY c.customer_id + +Natural Query: What is the total rating of all products for Miller Inc? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Miller Inc' + +Natural Query: List all customers and their total order value for Jarvis 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 = 'Jarvis LLC' GROUP BY c.customer_id + +Natural Query: What are the top 8 products by sales for Calderon-Johnson this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Calderon-Johnson' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: List all products of Gutierrez, Becker and Turner ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gutierrez, Becker and Turner' ORDER BY stock_quantity DESC + +Natural Query: What is the minimum rating of all products for Gaines, Hines and Hughes? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Gaines, Hines and Hughes' + +Natural Query: What is the maximum rating of all products for Wilson, Gardner and Ramos? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Wilson, Gardner and Ramos' + +Natural Query: What is the average price of all products for Harris LLC? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Harris LLC' + +Natural Query: List all customers and their total order value for Price, Coffey and Dodson. +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 = 'Price, Coffey and Dodson' GROUP BY c.customer_id + +Natural Query: Show me all products in the section category with a price over $770.68. +SQL Query: SELECT * FROM products WHERE category = 'section' AND price > 770.68 + +Natural Query: What are the top 9 products by customers for Ellis, Conner and Holland this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Ellis, Conner and Holland' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: How many orders were placed for Buck, James and Brandt between 2023-11-13 and 2023-11-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Buck, James and Brandt' AND order_date BETWEEN '2023-11-13' AND '2023-11-25' + +Natural Query: What is the minimum quantity of all products for Russell, Buckley and Stone? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Russell, Buckley and Stone' + +Natural Query: List all customers and their total order value for Romero 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 = 'Romero LLC' GROUP BY c.customer_id + +Natural Query: What is the total sales for each category in Clark and Sons? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Clark and Sons' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the total sales for each category in Reed-Scott? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Reed-Scott' GROUP BY category ORDER BY total_sales DESC + +Natural Query: Show me all products in the kind category with a price over $165.49. +SQL Query: SELECT * FROM products WHERE category = 'kind' AND price > 165.49 + +Natural Query: What is the average rating of all products for Terry, Monroe and Johnson? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Terry, Monroe and Johnson' + +Natural Query: What is the total quantity for each supplier in Hall-Bernard? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Hall-Bernard' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 5 products by orders for Snyder-Allen all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Snyder-Allen' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: What are the top 4 products by orders for Gibson PLC this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Gibson PLC' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: What are the top 3 products by sales for Green-Navarro last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Green-Navarro' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: List all products of Bailey Ltd ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Bailey Ltd' ORDER BY price ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Murray-Edwards 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 = 'Murray-Edwards' + 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 up category with a price over $149.49. +SQL Query: SELECT * FROM products WHERE category = 'up' AND price > 149.49 + +Natural Query: What is the maximum quantity of all products for Gomez-Ellis? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Gomez-Ellis' + +Natural Query: What is the maximum rating of all products for Perry, Adams and Poole? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Perry, Adams and Poole' + +Natural Query: Show me all products in the door category with a price over $406.64. +SQL Query: SELECT * FROM products WHERE category = 'door' AND price > 406.64 + +Natural Query: How many orders were placed for Allen, Fletcher and Clark between 2023-12-21 and 2024-03-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Allen, Fletcher and Clark' AND order_date BETWEEN '2023-12-21' AND '2024-03-17' + +Natural Query: What is the total sales for each country in Thompson, Baxter and Mccullough? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Thompson, Baxter and Mccullough' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 7 products by orders for Jones LLC this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Jones LLC' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: How many orders were placed for Hicks Ltd between 2023-12-30 and 2024-09-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hicks Ltd' AND order_date BETWEEN '2023-12-30' AND '2024-09-05' + +Natural Query: List all customers and their total order value for Peterson-Haynes. +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 = 'Peterson-Haynes' GROUP BY c.customer_id + +Natural Query: What are the top 8 products by customers for Wilkerson, Brown and Harper all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Wilkerson, Brown and Harper' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: What is the average price of all products for Allen PLC? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Allen PLC' + +Natural Query: Show me all products in the range category with a price over $755.67. +SQL Query: SELECT * FROM products WHERE category = 'range' AND price > 755.67 + +Natural Query: What are the top 8 products by revenue for Kim-Holland this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Kim-Holland' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mcguire 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 = 'Mcguire 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 Sanchez, Martinez and Yates between 2024-01-08 and 2024-05-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Sanchez, Martinez and Yates' AND order_date BETWEEN '2024-01-08' AND '2024-05-04' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Rodriguez, Lindsey and 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 = 'Rodriguez, Lindsey and Campbell' + 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 short category with a price over $236.53. +SQL Query: SELECT * FROM products WHERE category = 'short' AND price > 236.53 + +Natural Query: List all products of Osborne, Walker and Golden ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Osborne, Walker and Golden' ORDER BY stock_quantity DESC + +Natural Query: What is the minimum quantity of all products for Bentley Inc? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Bentley Inc' + +Natural Query: What are the top 3 products by revenue for House and Sons this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'House 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 orders for Navarro Group last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Navarro Group' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: Show me all products in the thus category with a price over $957.87. +SQL Query: SELECT * FROM products WHERE category = 'thus' AND price > 957.87 + +Natural Query: What is the total sales for each country in Peterson, Burgess and Goodman? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Peterson, Burgess and Goodman' GROUP BY country ORDER BY total_sales DESC + +Natural Query: Show me all products in the treatment category with a price over $432.65. +SQL Query: SELECT * FROM products WHERE category = 'treatment' AND price > 432.65 + +Natural Query: What are the top 7 products by orders for Hughes-Herman this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Hughes-Herman' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Johnson-Hensley 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-Hensley' + 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 Melendez, Davis and Chen ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Melendez, Davis and Chen' ORDER BY price ASC + +Natural Query: What is the average rating of all products for Davis Ltd? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Davis Ltd' + +Natural Query: What is the total price of all products for Mendoza-Reeves? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Mendoza-Reeves' + +Natural Query: What is the total quantity for each supplier in Holmes-Wall? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Holmes-Wall' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the total profit for each supplier in Davis-Thompson? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Davis-Thompson' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: Show me all products in the argue category with a price over $66.41. +SQL Query: SELECT * FROM products WHERE category = 'argue' AND price > 66.41 + +Natural Query: How many orders were placed for Werner-Riley between 2024-01-23 and 2024-04-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Werner-Riley' AND order_date BETWEEN '2024-01-23' AND '2024-04-29' + +Natural Query: List all customers and their total order value for Robertson 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 = 'Robertson and Sons' GROUP BY c.customer_id + +Natural Query: What are the top 4 products by sales for Gardner-Campbell this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Gardner-Campbell' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: List all customers and their total order value for Anderson 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 = 'Anderson PLC' GROUP BY c.customer_id + +Natural Query: List all products of Cameron-Ortega ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Cameron-Ortega' ORDER BY price ASC + +Natural Query: What is the total quantity for each category in Suarez PLC? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Suarez PLC' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the total profit for each category in Adkins-Scott? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Adkins-Scott' GROUP BY category ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Sanchez, Robertson and Prince between 2024-06-20 and 2024-08-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Sanchez, Robertson and Prince' AND order_date BETWEEN '2024-06-20' AND '2024-08-16' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Avery, Cook and 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 = 'Avery, Cook and Rice' + 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 Ali Group? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Ali Group' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Smith, Mann and Turner. +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, Mann and Turner' GROUP BY c.customer_id + +Natural Query: List all products of Rogers LLC ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rogers LLC' ORDER BY price DESC + +Natural Query: Show me all products in the public category with a price over $993.87. +SQL Query: SELECT * FROM products WHERE category = 'public' AND price > 993.87 + +Natural Query: Show me all products in the ten category with a price over $908.03. +SQL Query: SELECT * FROM products WHERE category = 'ten' AND price > 908.03 + +Natural Query: What is the total profit for each country in Mack-Evans? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Mack-Evans' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Barry 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 = 'Barry 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 Carney 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 = 'Carney 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 Faulkner and Sons between 2024-02-05 and 2024-05-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Faulkner and Sons' AND order_date BETWEEN '2024-02-05' AND '2024-05-24' + +Natural Query: What are the top 3 products by orders for Young LLC this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Young LLC' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: Show me all products in the here category with a price over $926.35. +SQL Query: SELECT * FROM products WHERE category = 'here' AND price > 926.35 + +Natural Query: How many orders were placed for Hoffman, Odonnell and Gutierrez between 2024-01-29 and 2024-01-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hoffman, Odonnell and Gutierrez' AND order_date BETWEEN '2024-01-29' AND '2024-01-29' + +Natural Query: How many orders were placed for Yu, Smith and Luna between 2024-07-16 and 2024-08-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Yu, Smith and Luna' AND order_date BETWEEN '2024-07-16' AND '2024-08-14' + +Natural Query: How many orders were placed for Bridges, Schneider and Harrington between 2023-12-09 and 2024-06-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bridges, Schneider and Harrington' AND order_date BETWEEN '2023-12-09' AND '2024-06-06' + +Natural Query: How many orders were placed for Elliott, Aguilar and Arroyo between 2024-04-17 and 2024-05-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Elliott, Aguilar and Arroyo' AND order_date BETWEEN '2024-04-17' AND '2024-05-10' + +Natural Query: What is the total profit for each country in Weaver-Chan? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Weaver-Chan' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all products of Ramirez, Keith and Boyd ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ramirez, Keith and Boyd' ORDER BY stock_quantity ASC + +Natural Query: What is the total sales for each country in Boyle and Sons? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Boyle and Sons' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all products of Curtis, Curtis and Mccoy ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Curtis, Curtis and Mccoy' ORDER BY price ASC + +Natural Query: What is the total quantity for each category in Gonzales and Sons? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Gonzales and Sons' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Norris, Pena and Maldonado between 2024-05-26 and 2024-08-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Norris, Pena and Maldonado' AND order_date BETWEEN '2024-05-26' AND '2024-08-05' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Wright 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 = 'Wright 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 sales for each category in Medina-Hernandez? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Medina-Hernandez' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the total profit for each category in Ferguson Group? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Ferguson Group' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the total sales for each supplier in Higgins-Huynh? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Higgins-Huynh' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Flores-Farley. +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 = 'Flores-Farley' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Morales-Brown between 2024-04-18 and 2024-09-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Morales-Brown' AND order_date BETWEEN '2024-04-18' AND '2024-09-03' + +Natural Query: How many orders were placed for Cantu LLC between 2024-07-02 and 2024-07-02? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cantu LLC' AND order_date BETWEEN '2024-07-02' AND '2024-07-02' + +Natural Query: List all customers and their total order value for Molina-Rhodes. +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 = 'Molina-Rhodes' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each supplier in Salas Group? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Salas Group' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all products of Warner LLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Warner LLC' ORDER BY stock_quantity DESC + +Natural Query: What is the total sales for each category in Reyes-Watkins? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Reyes-Watkins' GROUP BY category ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Washington-Jackson between 2024-03-23 and 2024-06-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Washington-Jackson' AND order_date BETWEEN '2024-03-23' AND '2024-06-08' + +Natural Query: What is the average quantity of all products for Jones-Bryan? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Jones-Bryan' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mitchell-Lopez 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 = 'Mitchell-Lopez' + 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 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 = 'Morris 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 customers and their total order value for Carter 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 = 'Carter PLC' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each country in Garner, Terry and Tucker? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Garner, Terry and Tucker' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all products of Mcintyre LLC ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mcintyre LLC' ORDER BY price DESC + +Natural Query: What are the top 3 products by sales for Moss, Elliott and Boyle all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Moss, Elliott and Boyle' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hernandez 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 = 'Hernandez Ltd' + 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 Washington Group ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Washington Group' ORDER BY stock_quantity ASC + +Natural Query: What is the total quantity for each country in Morales, Davis and Leonard? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Morales, Davis and Leonard' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the total sales for each supplier in Mccullough-Olson? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Mccullough-Olson' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Parker-Sheppard between 2023-10-06 and 2024-07-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Parker-Sheppard' AND order_date BETWEEN '2023-10-06' AND '2024-07-27' + +Natural Query: How many orders were placed for Dominguez, Lopez and Booth between 2024-07-21 and 2024-09-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Dominguez, Lopez and Booth' AND order_date BETWEEN '2024-07-21' AND '2024-09-10' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Coleman-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 = 'Coleman-Hall' + 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 side category with a price over $765.88. +SQL Query: SELECT * FROM products WHERE category = 'side' AND price > 765.88 + +Natural Query: List all products of Thompson, Thompson and Spencer ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Thompson, Thompson and Spencer' ORDER BY stock_quantity ASC + +Natural Query: What is the maximum price of all products for Nelson, Johnson and Yu? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Nelson, Johnson and Yu' + +Natural Query: Show me all products in the church category with a price over $728.81. +SQL Query: SELECT * FROM products WHERE category = 'church' AND price > 728.81 + +Natural Query: List all products of Morgan LLC ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Morgan LLC' ORDER BY rating ASC + +Natural Query: Show me all products in the morning category with a price over $829.85. +SQL Query: SELECT * FROM products WHERE category = 'morning' AND price > 829.85 + +Natural Query: How many orders were placed for Perez, Thompson and Lee between 2024-05-30 and 2024-06-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Perez, Thompson and Lee' AND order_date BETWEEN '2024-05-30' AND '2024-06-18' + +Natural Query: What is the total sales for each supplier in Jackson PLC? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Jackson PLC' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: Show me all products in the shake category with a price over $858.41. +SQL Query: SELECT * FROM products WHERE category = 'shake' AND price > 858.41 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lin, Carey and 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 = 'Lin, Carey and Gardner' + 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 Allen Inc between 2024-09-01 and 2024-09-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Allen Inc' AND order_date BETWEEN '2024-09-01' AND '2024-09-04' + +Natural Query: What is the maximum price of all products for Robinson, Smith and Clay? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Robinson, Smith and Clay' + +Natural Query: How many orders were placed for Taylor-Garza between 2023-12-23 and 2024-06-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Taylor-Garza' AND order_date BETWEEN '2023-12-23' AND '2024-06-19' + +Natural Query: What are the top 9 products by revenue for Hayes Group all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Hayes Group' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: How many orders were placed for Robbins-Jimenez between 2024-03-02 and 2024-03-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Robbins-Jimenez' AND order_date BETWEEN '2024-03-02' AND '2024-03-13' + +Natural Query: List all customers and their total order value for Garcia 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 = 'Garcia Ltd' GROUP BY c.customer_id + +Natural Query: What are the top 6 products by sales for Velazquez and Sons last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Velazquez and Sons' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: What are the top 10 products by orders for Jones-Smith all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Jones-Smith' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: What is the minimum price of all products for Sanchez and Sons? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Sanchez and Sons' + +Natural Query: What is the total sales for each country in Gardner-Weber? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Gardner-Weber' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all products of Watson-Macias ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Watson-Macias' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Cantrell 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 = 'Cantrell LLC' GROUP BY c.customer_id + +Natural Query: What is the total sales for each supplier in Sullivan LLC? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Sullivan LLC' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the minimum rating of all products for Rodriguez, Ryan and Levy? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Rodriguez, Ryan and Levy' + +Natural Query: List all products of Baker, Jennings and Larsen ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Baker, Jennings and Larsen' ORDER BY stock_quantity DESC + +Natural Query: How many orders were placed for Shelton-Short between 2023-10-23 and 2024-07-31? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Shelton-Short' AND order_date BETWEEN '2023-10-23' AND '2024-07-31' + +Natural Query: What are the top 3 products by sales for Bishop-Carroll this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Bishop-Carroll' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: Show me all products in the loss category with a price over $41.09. +SQL Query: SELECT * FROM products WHERE category = 'loss' AND price > 41.09 + +Natural Query: What is the average price of all products for Gentry, Ho and Anderson? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Gentry, Ho and Anderson' + +Natural Query: What is the total quantity for each category in Webster Ltd? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Webster Ltd' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Martin, Martinez and Ray. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Martin, Martinez and Ray' GROUP BY c.customer_id + +Natural Query: What is the total sales for each supplier in Smith, Foley and Spencer? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Smith, Foley and Spencer' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the minimum rating of all products for Alvarez Ltd? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Alvarez Ltd' + +Natural Query: What is the total profit for each category in Jackson, Johnson and Park? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Jackson, Johnson and Park' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the total sales for each country in Johnson-Pena? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Johnson-Pena' GROUP BY country ORDER BY total_sales DESC + +Natural Query: Show me all products in the agency category with a price over $529.67. +SQL Query: SELECT * FROM products WHERE category = 'agency' AND price > 529.67 + +Natural Query: What is the total price of all products for Wilson, Bell and Levy? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Wilson, Bell and Levy' + +Natural Query: What are the top 6 products by orders for Hill, Simmons and Tucker all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Hill, Simmons and Tucker' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: List all customers and their total order value for Best-Nichols. +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 = 'Best-Nichols' GROUP BY c.customer_id + +Natural Query: Show me all products in the develop category with a price over $840.21. +SQL Query: SELECT * FROM products WHERE category = 'develop' AND price > 840.21 + +Natural Query: List all customers and their total order value for Wright-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 = 'Wright-Bishop' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Graves-Hayes. +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 = 'Graves-Hayes' GROUP BY c.customer_id + +Natural Query: What is the total sales for each country in Jackson, Collins and Yang? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Jackson, Collins and Yang' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the total quantity for each category in Walker-Murphy? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Walker-Murphy' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Bridges-Vance between 2024-05-21 and 2024-07-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bridges-Vance' AND order_date BETWEEN '2024-05-21' AND '2024-07-01' + +Natural Query: List all products of Peters, Porter and Harper ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Peters, Porter and Harper' ORDER BY price ASC + +Natural Query: List all products of Smith, Valdez and Jordan ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith, Valdez and Jordan' ORDER BY rating ASC + +Natural Query: How many orders were placed for Pena Group between 2024-08-20 and 2024-08-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Pena Group' AND order_date BETWEEN '2024-08-20' AND '2024-08-22' + +Natural Query: What is the total price of all products for Lee-Aguilar? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Lee-Aguilar' + +Natural Query: What is the minimum rating of all products for Lara, Brown and Olson? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Lara, Brown and Olson' + +Natural Query: What is the maximum price of all products for Leach-Richardson? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Leach-Richardson' + +Natural Query: Show me all products in the prevent category with a price over $588.09. +SQL Query: SELECT * FROM products WHERE category = 'prevent' AND price > 588.09 + +Natural Query: Show me all products in the system category with a price over $558.88. +SQL Query: SELECT * FROM products WHERE category = 'system' AND price > 558.88 + +Natural Query: How many orders were placed for Taylor PLC between 2023-10-13 and 2024-07-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Taylor PLC' AND order_date BETWEEN '2023-10-13' AND '2024-07-14' + +Natural Query: How many orders were placed for Garza-Williams between 2024-05-17 and 2024-06-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Garza-Williams' AND order_date BETWEEN '2024-05-17' AND '2024-06-12' + +Natural Query: List all customers and their total order value for Green, Gallegos 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 = 'Green, Gallegos and Curtis' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Mcgee, Arnold and Carter between 2023-12-16 and 2024-09-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mcgee, Arnold and Carter' AND order_date BETWEEN '2023-12-16' AND '2024-09-07' + +Natural Query: What is the total quantity of all products for Lane LLC? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Lane LLC' + +Natural Query: List all products of Kelly-Yoder ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Kelly-Yoder' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Bradley, Harrison and Patel. +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, Harrison and Patel' GROUP BY c.customer_id + +Natural Query: What is the total sales for each country in Miller, Bell and Morris? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Miller, Bell and Morris' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 7 products by revenue for Lawrence, Williams and Friedman all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Lawrence, Williams and Friedman' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: What is the maximum quantity of all products for Bowman-Mendez? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Bowman-Mendez' + +Natural Query: What is the maximum price of all products for White Inc? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'White Inc' + +Natural Query: List all customers and their total order value for Jenkins 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 = 'Jenkins and Sons' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Thompson 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 = 'Thompson Group' GROUP BY c.customer_id + +Natural Query: What are the top 9 products by customers for Brown and Sons this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Brown and Sons' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: What is the total sales for each country in Harris and Sons? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Harris and Sons' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Edwards-Waller 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-Waller' + 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 Richardson-Curtis? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Richardson-Curtis' + +Natural Query: List all customers and their total order value for Webb-Walters. +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 = 'Webb-Walters' GROUP BY c.customer_id + +Natural Query: Show me all products in the fund category with a price over $742.08. +SQL Query: SELECT * FROM products WHERE category = 'fund' AND price > 742.08 + +Natural Query: What is the total sales for each country in Carter Inc? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Carter Inc' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the total sales for each category in Anderson-Russell? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Anderson-Russell' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all products of Wilson-Hughes ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wilson-Hughes' ORDER BY rating DESC + +Natural Query: What is the total price of all products for Armstrong-Yang? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Armstrong-Yang' + +Natural Query: List all customers and their total order value for Goodwin-Flores. +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 = 'Goodwin-Flores' GROUP BY c.customer_id + +Natural Query: What is the total sales for each country in Fields-Turner? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Fields-Turner' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all products of Morton Inc ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Morton Inc' ORDER BY price ASC + +Natural Query: List all products of Gutierrez, Mcgrath and Chen ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gutierrez, Mcgrath and Chen' ORDER BY stock_quantity ASC + +Natural Query: How many orders were placed for Ball PLC between 2024-06-07 and 2024-08-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ball PLC' AND order_date BETWEEN '2024-06-07' AND '2024-08-21' + +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: Show me all products in the someone category with a price over $243.56. +SQL Query: SELECT * FROM products WHERE category = 'someone' AND price > 243.56 + +Natural Query: Show me all products in the memory category with a price over $846.3. +SQL Query: SELECT * FROM products WHERE category = 'memory' AND price > 846.3 + +Natural Query: What are the top 3 products by sales for Coleman LLC last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Coleman LLC' 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 Ross PLC? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Ross PLC' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the total price of all products for Powell-Spencer? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Powell-Spencer' + +Natural Query: Show me all products in the reveal category with a price over $145.01. +SQL Query: SELECT * FROM products WHERE category = 'reveal' AND price > 145.01 + +Natural Query: What are the top 4 products by sales for Martin PLC this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Martin PLC' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: List all products of Thomas, Williams and Jackson ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Thomas, Williams and Jackson' ORDER BY stock_quantity DESC + +Natural Query: What is the total quantity for each country in Smith, Gallegos and Berg? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Smith, Gallegos and Berg' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gross 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 = 'Gross 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 sales for each supplier in Watkins, Taylor and York? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Watkins, Taylor and York' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: Show me all products in the run category with a price over $187.01. +SQL Query: SELECT * FROM products WHERE category = 'run' AND price > 187.01 + +Natural Query: How many orders were placed for Dunn, Singh and Wilkins between 2024-06-18 and 2024-08-02? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Dunn, Singh and Wilkins' AND order_date BETWEEN '2024-06-18' AND '2024-08-02' + +Natural Query: What is the total sales for each category in Rodriguez LLC? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Rodriguez LLC' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Paul 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 = 'Paul Inc' GROUP BY c.customer_id + +Natural Query: List all products of Rose, Chan and Stephens ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rose, Chan and Stephens' ORDER BY stock_quantity ASC + +Natural Query: What is the total profit for each category in Stafford LLC? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Stafford LLC' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the average rating of all products for Lambert-Prince? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Lambert-Prince' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Thompson, Jones and Nelson 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, Jones and Nelson' + 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 lawyer category with a price over $292.93. +SQL Query: SELECT * FROM products WHERE category = 'lawyer' AND price > 292.93 + +Natural Query: What are the top 9 products by revenue for Jones-Martin last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Jones-Martin' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: What is the total profit for each supplier in Davis-Crosby? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Davis-Crosby' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Charles LLC between 2024-06-06 and 2024-09-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Charles LLC' AND order_date BETWEEN '2024-06-06' AND '2024-09-05' + +Natural Query: List all products of White, Smith and Wood ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'White, Smith and Wood' ORDER BY rating ASC + +Natural Query: How many orders were placed for Johnson and Sons between 2023-11-03 and 2024-02-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Johnson and Sons' AND order_date BETWEEN '2023-11-03' AND '2024-02-14' + +Natural Query: What is the total quantity for each category in Archer-Rivera? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Archer-Rivera' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 8 products by orders for Wilson, Peterson and Wilson this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Wilson, Peterson and Wilson' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: What are the top 9 products by revenue for Martinez-Smith last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Martinez-Smith' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: How many orders were placed for Madden, Sutton and Meyer between 2024-08-20 and 2024-08-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Madden, Sutton and Meyer' AND order_date BETWEEN '2024-08-20' AND '2024-08-22' + +Natural Query: List all customers and their total order value for Miles, Washington and Fisher. +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 = 'Miles, Washington and Fisher' GROUP BY c.customer_id + +Natural Query: What is the maximum price of all products for Mclaughlin, Bush and Simpson? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Mclaughlin, Bush and Simpson' + +Natural Query: How many orders were placed for Gonzales, Mitchell and Martinez between 2023-12-16 and 2024-06-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gonzales, Mitchell and Martinez' AND order_date BETWEEN '2023-12-16' AND '2024-06-07' + +Natural Query: List all products of Sanchez Group ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Sanchez Group' ORDER BY stock_quantity DESC + +Natural Query: Show me all products in the black category with a price over $177.18. +SQL Query: SELECT * FROM products WHERE category = 'black' AND price > 177.18 + +Natural Query: How many orders were placed for Watson-Johnson between 2024-05-15 and 2024-08-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Watson-Johnson' AND order_date BETWEEN '2024-05-15' AND '2024-08-20' + +Natural Query: How many orders were placed for Kline Inc between 2024-01-04 and 2024-06-24? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Kline Inc' AND order_date BETWEEN '2024-01-04' AND '2024-06-24' + +Natural Query: How many orders were placed for Hughes-Shaw between 2024-01-22 and 2024-04-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hughes-Shaw' AND order_date BETWEEN '2024-01-22' AND '2024-04-21' + +Natural Query: What is the total sales for each category in Conner LLC? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Conner LLC' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 5 products by customers for Sanders-Rodriguez all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Sanders-Rodriguez' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: What are the top 4 products by sales for Garcia, Ware and Howard last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Garcia, Ware and Howard' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: What are the top 9 products by orders for Goodwin, Doyle and Barnes last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Goodwin, Doyle and Barnes' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: What are the top 3 products by orders for Robinson, Martinez and Smith this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Robinson, Martinez and Smith' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: What is the average price of all products for Randall Inc? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Randall Inc' + +Natural Query: List all products of Patton-Norris ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Patton-Norris' ORDER BY price ASC + +Natural Query: How many orders were placed for Snyder-Alvarez between 2024-07-05 and 2024-08-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Snyder-Alvarez' AND order_date BETWEEN '2024-07-05' AND '2024-08-17' + +Natural Query: What is the total profit for each country in Martin, Stafford and Erickson? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Martin, Stafford and Erickson' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Velazquez, Roberts and 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 = 'Velazquez, Roberts and Parker' GROUP BY c.customer_id + +Natural Query: List all products of Powell, Bauer and Stevens ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Powell, Bauer and Stevens' ORDER BY stock_quantity ASC + +Natural Query: List all products of Carter, Miller and Thompson ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Carter, Miller and Thompson' ORDER BY stock_quantity DESC + +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 Walton-Jones between 2023-10-21 and 2023-11-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Walton-Jones' AND order_date BETWEEN '2023-10-21' AND '2023-11-22' + +Natural Query: Show me all products in the day category with a price over $253.73. +SQL Query: SELECT * FROM products WHERE category = 'day' AND price > 253.73 + +Natural Query: Show me all products in the natural category with a price over $490.25. +SQL Query: SELECT * FROM products WHERE category = 'natural' AND price > 490.25 + +Natural Query: What are the top 4 products by orders for Dunn Inc last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Dunn Inc' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: What are the top 3 products by customers for Conrad, Malone and Tran last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Conrad, Malone and Tran' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: How many orders were placed for Brown, Mclaughlin and Nichols between 2023-12-25 and 2024-03-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Brown, Mclaughlin and Nichols' AND order_date BETWEEN '2023-12-25' AND '2024-03-04' + +Natural Query: What is the total price of all products for Potter-Ho? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Potter-Ho' + +Natural Query: How many orders were placed for Sullivan-Hunter between 2023-11-23 and 2024-09-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Sullivan-Hunter' AND order_date BETWEEN '2023-11-23' AND '2024-09-06' + +Natural Query: List all products of Mcdowell, Williams and Dawson ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mcdowell, Williams and Dawson' ORDER BY stock_quantity ASC + +Natural Query: What is the total profit for each category in Perez Group? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Perez Group' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gutierrez 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 = 'Gutierrez 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 Johnson-Winters 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-Winters' + 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 Ryan, Edwards and Lynch? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Ryan, Edwards and Lynch' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the maximum price of all products for Barton, Gibson and Berry? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Barton, Gibson and Berry' + +Natural Query: Show me all products in the as category with a price over $141.61. +SQL Query: SELECT * FROM products WHERE category = 'as' AND price > 141.61 + +Natural Query: What is the total quantity for each category in Smith and Sons? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Smith and Sons' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 10 products by sales for Smith-Webb all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Smith-Webb' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: What is the maximum rating of all products for Davidson LLC? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Davidson LLC' + +Natural Query: Show me all products in the national category with a price over $331.13. +SQL Query: SELECT * FROM products WHERE category = 'national' AND price > 331.13 + +Natural Query: What is the total quantity for each category in Garcia-Schneider? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Garcia-Schneider' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Frederick 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 = 'Frederick 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 Wells, Wilson and 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 = 'Wells, Wilson and 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 Cox-Walton between 2024-05-23 and 2024-06-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cox-Walton' AND order_date BETWEEN '2024-05-23' AND '2024-06-29' + +Natural Query: List all customers and their total order value for Nelson 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 = 'Nelson Inc' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Torres-Pacheco between 2024-01-03 and 2024-03-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Torres-Pacheco' AND order_date BETWEEN '2024-01-03' AND '2024-03-05' + +Natural Query: What is the total quantity for each category in Sampson-Parks? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Sampson-Parks' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the total profit for each supplier in Dixon, Newman and Hall? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Dixon, Newman and Hall' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Taylor-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 = 'Taylor-Ramirez' + 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 within category with a price over $355.56. +SQL Query: SELECT * FROM products WHERE category = 'within' AND price > 355.56 + +Natural Query: Show me all products in the born category with a price over $780.67. +SQL Query: SELECT * FROM products WHERE category = 'born' AND price > 780.67 + +Natural Query: List all products of Johnson PLC ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Johnson PLC' ORDER BY rating DESC + +Natural Query: List all customers and their total order value for Chan 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 = 'Chan PLC' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each country in Delacruz-Moore? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Delacruz-Moore' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What is the maximum quantity of all products for Garcia-Butler? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Garcia-Butler' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Marquez-Craig 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 = 'Marquez-Craig' + 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 9 products by customers for Richard, Greer and Wheeler this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Richard, Greer and Wheeler' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: What are the top 8 products by orders for Cole-Dennis this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Cole-Dennis' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: What is the maximum price of all products for Austin-Lane? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Austin-Lane' + +Natural Query: What is the maximum quantity of all products for Copeland, Barton and Larson? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Copeland, Barton and Larson' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Jones, Reed 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 = 'Jones, Reed 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: How many orders were placed for Miller-Green between 2024-03-09 and 2024-04-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Miller-Green' AND order_date BETWEEN '2024-03-09' AND '2024-04-19' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Myers-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 = 'Myers-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 are the top 3 products by customers for Rangel-Pham all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Rangel-Pham' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: What are the top 3 products by orders for Rose-Medina this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Rose-Medina' AND period = 'this month' 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 Hines 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 = 'Hines 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 3 products by revenue for Phillips Group all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Phillips Group' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Wiley, Johnson and Erickson 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 = 'Wiley, Johnson and Erickson' + 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 Hamilton, Horn and Brown? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Hamilton, Horn and Brown' + +Natural Query: What are the top 5 products by customers for Smith PLC all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Smith PLC' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: List all customers and their total order value for Johnson-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 = 'Johnson-Taylor' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Smith, Ali and Reese. +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, Ali and Reese' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Knight, Rodriguez 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 = 'Knight, Rodriguez 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: List all products of Durham Ltd ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Durham Ltd' ORDER BY price DESC + +Natural Query: Show me all products in the work category with a price over $431.3. +SQL Query: SELECT * FROM products WHERE category = 'work' AND price > 431.3 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Williamson 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 = 'Williamson 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 Cole-Ortiz between 2024-01-08 and 2024-02-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cole-Ortiz' AND order_date BETWEEN '2024-01-08' AND '2024-02-13' + +Natural Query: List all products of Carney-Mcguire ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Carney-Mcguire' ORDER BY rating DESC + +Natural Query: What is the total quantity for each supplier in Mullins LLC? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Mullins LLC' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Bell, Adams and Clark 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 = 'Bell, Adams and Clark' + 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 such category with a price over $82.94. +SQL Query: SELECT * FROM products WHERE category = 'such' AND price > 82.94 + +Natural Query: Show me all products in the benefit category with a price over $177.52. +SQL Query: SELECT * FROM products WHERE category = 'benefit' AND price > 177.52 + +Natural Query: Show me all products in the only category with a price over $465.53. +SQL Query: SELECT * FROM products WHERE category = 'only' AND price > 465.53 + +Natural Query: How many orders were placed for James, Morgan and Wright between 2024-08-13 and 2024-08-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'James, Morgan and Wright' AND order_date BETWEEN '2024-08-13' AND '2024-08-26' + +Natural Query: What is the total sales for each category in Smith PLC? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Smith PLC' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Hill 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 = 'Hill Inc' GROUP BY c.customer_id + +Natural Query: What is the maximum rating of all products for Francis, Guzman and Diaz? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Francis, Guzman and Diaz' + +Natural Query: What is the total price of all products for Garcia, Jones and Willis? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Garcia, Jones and Willis' + +Natural Query: Show me all products in the relate category with a price over $184.64. +SQL Query: SELECT * FROM products WHERE category = 'relate' AND price > 184.64 + +Natural Query: List all customers and their total order value for Becker-Lee. +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 = 'Becker-Lee' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Lane, Rice and Jackson. +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 = 'Lane, Rice and Jackson' GROUP BY c.customer_id + +Natural Query: What are the top 6 products by customers for Ford Inc this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Ford Inc' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: List all products of Rivera, Anderson and Clark ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rivera, Anderson and Clark' ORDER BY price DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Middleton 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 = 'Middleton 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 fly category with a price over $928.99. +SQL Query: SELECT * FROM products WHERE category = 'fly' AND price > 928.99 + +Natural Query: What is the minimum rating of all products for Orr-Clarke? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Orr-Clarke' + +Natural Query: List all products of Nixon-Parker ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Nixon-Parker' ORDER BY rating ASC + +Natural Query: What is the total sales for each country in Burton Inc? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Burton Inc' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Jones-Welch 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-Welch' + 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 risk category with a price over $865.29. +SQL Query: SELECT * FROM products WHERE category = 'risk' AND price > 865.29 + +Natural Query: How many orders were placed for Dodson, Lopez and Howell between 2024-05-10 and 2024-05-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Dodson, Lopez and Howell' AND order_date BETWEEN '2024-05-10' AND '2024-05-10' + +Natural Query: List all products of Schultz-Bishop ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Schultz-Bishop' ORDER BY price DESC + +Natural Query: List all products of Vaughan PLC ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Vaughan PLC' ORDER BY stock_quantity ASC + +Natural Query: List all products of Berger Group ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Berger Group' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Hawkins-Bell. +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 = 'Hawkins-Bell' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Gonzales-Monroe. +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 = 'Gonzales-Monroe' GROUP BY c.customer_id + +Natural Query: What is the maximum rating of all products for Harris Inc? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Harris Inc' + +Natural Query: How many orders were placed for Nelson-Hanson between 2024-01-31 and 2024-02-02? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Nelson-Hanson' AND order_date BETWEEN '2024-01-31' AND '2024-02-02' + +Natural Query: What are the top 7 products by customers for Lloyd, Brown and Kaiser all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Lloyd, Brown and Kaiser' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: What is the minimum rating of all products for Silva-Henderson? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Silva-Henderson' + +Natural Query: What is the total quantity for each category in Barry-Scott? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Barry-Scott' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all products of Smith-Miller ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith-Miller' ORDER BY rating DESC + +Natural Query: How many orders were placed for Nguyen and Sons between 2024-08-18 and 2024-08-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Nguyen and Sons' AND order_date BETWEEN '2024-08-18' AND '2024-08-27' + +Natural Query: What is the total price of all products for Blake, Morton and Turner? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Blake, Morton and Turner' + +Natural Query: What are the top 7 products by customers for Medina-Young last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Medina-Young' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: List all customers and their total order value for Brown 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 = 'Brown Group' GROUP BY c.customer_id + +Natural Query: What is the minimum price of all products for Walls-Levine? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Walls-Levine' + +Natural Query: What is the total sales for each country in Knapp and Sons? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Knapp and Sons' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 7 products by customers for Hunt-Fisher all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Hunt-Fisher' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: How many orders were placed for Obrien PLC between 2024-04-17 and 2024-07-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Obrien PLC' AND order_date BETWEEN '2024-04-17' AND '2024-07-21' + +Natural Query: What is the total quantity of all products for Collins and Sons? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Collins and Sons' + +Natural Query: How many orders were placed for Roberts-Walker between 2024-06-10 and 2024-08-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Roberts-Walker' AND order_date BETWEEN '2024-06-10' AND '2024-08-17' + +Natural Query: List all products of Hernandez-Wilkerson ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hernandez-Wilkerson' ORDER BY price DESC + +Natural Query: What are the top 5 products by orders for Smith, Hughes and Esparza last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Smith, Hughes and Esparza' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: What is the total quantity for each supplier in Ashley-Esparza? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Ashley-Esparza' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Matthews-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 = 'Matthews-Rodriguez' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Reyes-Baker between 2024-03-12 and 2024-04-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Reyes-Baker' AND order_date BETWEEN '2024-03-12' AND '2024-04-09' + +Natural Query: Show me all products in the option category with a price over $404.11. +SQL Query: SELECT * FROM products WHERE category = 'option' AND price > 404.11 + +Natural Query: What are the top 9 products by revenue for Bennett, Ortiz and Henry all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Bennett, Ortiz and Henry' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: What is the total sales for each category in Garcia, Maynard and Moreno? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Garcia, Maynard and Moreno' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 5 products by sales for Conner Inc all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Conner Inc' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: List all products of Martin, Murphy and Parker ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Martin, Murphy and Parker' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Daniels, Edwards and Wells. +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 = 'Daniels, Edwards and Wells' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hart, Gutierrez and Newton 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 = 'Hart, Gutierrez and Newton' + 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 Brewer Group between 2024-03-05 and 2024-08-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Brewer Group' AND order_date BETWEEN '2024-03-05' AND '2024-08-06' + +Natural Query: What are the top 8 products by customers for Fuller and Sons this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Fuller and Sons' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: How many orders were placed for Castillo, Moore and Hall between 2024-04-08 and 2024-04-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Castillo, Moore and Hall' AND order_date BETWEEN '2024-04-08' AND '2024-04-23' + +Natural Query: What is the total quantity for each country in Sheppard, Jordan and Drake? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Sheppard, Jordan and Drake' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Kelly, Wallace and White. +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 = 'Kelly, Wallace and White' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Manning-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 = 'Manning-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 American category with a price over $838.76. +SQL Query: SELECT * FROM products WHERE category = 'American' AND price > 838.76 + +Natural Query: What is the total quantity for each supplier in Ellis-Alvarado? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Ellis-Alvarado' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 7 products by customers for Kaiser Ltd all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Kaiser Ltd' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: How many orders were placed for Alvarez-Mendoza between 2023-11-20 and 2024-01-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Alvarez-Mendoza' AND order_date BETWEEN '2023-11-20' AND '2024-01-20' + +Natural Query: Show me all products in the again category with a price over $900.54. +SQL Query: SELECT * FROM products WHERE category = 'again' AND price > 900.54 + +Natural Query: What are the top 5 products by orders for Bates, Bender and Hanson all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Bates, Bender and Hanson' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: What is the total profit for each category in Richardson LLC? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Richardson LLC' GROUP BY category ORDER BY total_profit DESC + +Natural Query: Show me all products in the individual category with a price over $489.54. +SQL Query: SELECT * FROM products WHERE category = 'individual' AND price > 489.54 + +Natural Query: What are the top 7 products by sales for Castillo, Price and Martinez all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Castillo, Price and Martinez' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: How many orders were placed for Smith-Smith between 2023-11-30 and 2024-08-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Smith-Smith' AND order_date BETWEEN '2023-11-30' AND '2024-08-06' + +Natural Query: How many orders were placed for Sandoval PLC between 2024-05-27 and 2024-07-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Sandoval PLC' AND order_date BETWEEN '2024-05-27' AND '2024-07-13' + +Natural Query: Show me all products in the relationship category with a price over $696.66. +SQL Query: SELECT * FROM products WHERE category = 'relationship' AND price > 696.66 + +Natural Query: List all products of Mcguire Inc ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mcguire Inc' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Frank, Perez and Cooper 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 = 'Frank, Perez and Cooper' + 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 Allen Ltd? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Allen Ltd' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all products of Fletcher, Hayes and Whitehead ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Fletcher, Hayes and Whitehead' ORDER BY rating DESC + +Natural Query: List all customers and their total order value for Garrett 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 = 'Garrett Inc' GROUP BY c.customer_id + +Natural Query: Show me all products in the street category with a price over $516.88. +SQL Query: SELECT * FROM products WHERE category = 'street' AND price > 516.88 + +Natural Query: List all customers and their total order value for Baker, Smith and Le. +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 = 'Baker, Smith and Le' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Cook-Bates. +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 = 'Cook-Bates' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Russell-Wilson. +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-Wilson' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Brown, Guerra and 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 = 'Brown, Guerra and Ruiz' GROUP BY c.customer_id + +Natural Query: Show me all products in the ready category with a price over $836.09. +SQL Query: SELECT * FROM products WHERE category = 'ready' AND price > 836.09 + +Natural Query: List all customers and their total order value for Hall-Stevenson. +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 = 'Hall-Stevenson' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Nelson 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 = 'Nelson and Sons' GROUP BY c.customer_id + +Natural Query: Show me all products in the catch category with a price over $77.91. +SQL Query: SELECT * FROM products WHERE category = 'catch' AND price > 77.91 + +Natural Query: What is the total profit for each category in Horton, Donovan and Kennedy? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Horton, Donovan and Kennedy' GROUP BY category ORDER BY total_profit DESC + +Natural Query: List all products of Flores, Vega and Richards ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Flores, Vega and Richards' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Morrison, Winters and Simpson. +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 = 'Morrison, Winters and Simpson' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each country in Byrd Ltd? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Byrd Ltd' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 6 products by customers for Nichols-Watson this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Nichols-Watson' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: What is the total profit for each supplier in Mercado, Reed and Lopez? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Mercado, Reed and Lopez' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all products of Logan, Martinez and Reid ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Logan, Martinez and Reid' ORDER BY rating ASC + +Natural Query: List all customers and their total order value for Weeks 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 = 'Weeks Ltd' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Morgan 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 = 'Morgan Group' GROUP BY c.customer_id + +Natural Query: What is the maximum price of all products for Baker Inc? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Baker Inc' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Maxwell-Sullivan 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 = 'Maxwell-Sullivan' + 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 interesting category with a price over $89.83. +SQL Query: SELECT * FROM products WHERE category = 'interesting' AND price > 89.83 + +Natural Query: What is the total sales for each supplier in Lopez-Jackson? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Lopez-Jackson' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What is the maximum price of all products for Mcconnell Group? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Mcconnell Group' + +Natural Query: What is the total profit for each country in Dodson-Martinez? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Dodson-Martinez' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Horn 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 = 'Horn LLC' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Cole, Santiago and Galvan 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 = 'Cole, Santiago and Galvan' + 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 rating of all products for Gutierrez, Conley and Beard? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Gutierrez, Conley and Beard' + +Natural Query: List all customers and their total order value for Porter, Lopez and Gates. +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, Lopez and Gates' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Wells-Flowers between 2024-04-10 and 2024-05-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wells-Flowers' AND order_date BETWEEN '2024-04-10' AND '2024-05-28' + +Natural Query: How many orders were placed for Jones Inc between 2023-12-30 and 2024-05-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jones Inc' AND order_date BETWEEN '2023-12-30' AND '2024-05-26' + +Natural Query: What is the total sales for each category in Gonzales PLC? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Gonzales PLC' GROUP BY category ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Williams PLC between 2024-04-05 and 2024-04-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Williams PLC' AND order_date BETWEEN '2024-04-05' AND '2024-04-09' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Wright, Edwards and Long 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 = 'Wright, Edwards and Long' + 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 Willis-Adams between 2024-04-16 and 2024-04-17? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Willis-Adams' AND order_date BETWEEN '2024-04-16' AND '2024-04-17' + +Natural Query: List all products of Ramos-Love ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ramos-Love' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Merritt-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 = 'Merritt-Ramirez' GROUP BY c.customer_id + +Natural Query: Show me all products in the party category with a price over $160.94. +SQL Query: SELECT * FROM products WHERE category = 'party' AND price > 160.94 + +Natural Query: List all products of Mann, Parker and Kline ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Mann, Parker and Kline' ORDER BY price ASC + +Natural Query: How many orders were placed for Thompson Inc between 2023-10-15 and 2024-08-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thompson Inc' AND order_date BETWEEN '2023-10-15' AND '2024-08-22' + +Natural Query: How many orders were placed for Vaughn PLC between 2023-11-08 and 2024-07-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Vaughn PLC' AND order_date BETWEEN '2023-11-08' AND '2024-07-13' + +Natural Query: What are the top 9 products by revenue for Barrera-Jackson all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Barrera-Jackson' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: What is the total quantity for each supplier in Singh, Decker and Leonard? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Singh, Decker and Leonard' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: Show me all products in the other category with a price over $738.11. +SQL Query: SELECT * FROM products WHERE category = 'other' AND price > 738.11 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Allen-Murray 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-Murray' + 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 Morris-Saunders? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Morris-Saunders' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Combs 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 = 'Combs Ltd' + 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 Burton, Clark and Harrell ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Burton, Clark and Harrell' ORDER BY rating DESC + +Natural Query: What is the minimum quantity of all products for Smith, Rice and Mccarthy? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Smith, Rice and Mccarthy' + +Natural Query: What is the total sales for each country in Johnson Inc? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Johnson Inc' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 4 products by customers for Lawrence, Mccarty and Clark this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Lawrence, Mccarty and Clark' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: List all customers and their total order value for Shaw-Bentley. +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 = 'Shaw-Bentley' GROUP BY c.customer_id + +Natural Query: What is the total sales for each category in Powell, Harris and Macias? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Powell, Harris and Macias' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Shields-Clayton 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 = 'Shields-Clayton' + 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 Martinez, Green and Graves? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Martinez, Green and Graves' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the average quantity of all products for Howard Group? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Howard Group' + +Natural Query: Show me all products in the majority category with a price over $88.41. +SQL Query: SELECT * FROM products WHERE category = 'majority' AND price > 88.41 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gomez 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 = 'Gomez 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 Goodwin 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 = 'Goodwin 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 are the top 5 categories by sales for customers aged 25-35 in Smith, Perez and Watson 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, Perez and Watson' + 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 every category with a price over $172.48. +SQL Query: SELECT * FROM products WHERE category = 'every' AND price > 172.48 + +Natural Query: How many orders were placed for Robinson Inc between 2024-02-26 and 2024-04-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Robinson Inc' AND order_date BETWEEN '2024-02-26' AND '2024-04-01' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Brown, Bauer and Gordon 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, Bauer and Gordon' + 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 Palmer, Mccoy and Walker between 2023-12-19 and 2024-05-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Palmer, Mccoy and Walker' AND order_date BETWEEN '2023-12-19' AND '2024-05-09' + +Natural Query: What is the maximum price of all products for Alvarez Group? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Alvarez Group' + +Natural Query: How many orders were placed for Hunter Group between 2023-11-30 and 2024-04-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hunter Group' AND order_date BETWEEN '2023-11-30' AND '2024-04-19' + +Natural Query: What is the total rating of all products for Mercado-Hughes? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Mercado-Hughes' + +Natural Query: List all products of Alvarado, Taylor and Butler ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Alvarado, Taylor and Butler' ORDER BY price ASC + +Natural Query: What are the top 7 products by sales for Moody PLC all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Moody PLC' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: List all customers and their total order value for Gentry 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 = 'Gentry LLC' GROUP BY c.customer_id + +Natural Query: Show me all products in the age category with a price over $154.78. +SQL Query: SELECT * FROM products WHERE category = 'age' AND price > 154.78 + +Natural Query: Show me all products in the fund category with a price over $255.71. +SQL Query: SELECT * FROM products WHERE category = 'fund' AND price > 255.71 + +Natural Query: Show me all products in the attorney category with a price over $662.25. +SQL Query: SELECT * FROM products WHERE category = 'attorney' AND price > 662.25 + +Natural Query: List all customers and their total order value for Oconnor 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 = 'Oconnor Ltd' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Lowe-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 = 'Lowe-Brown' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Franco, Dominguez and Murray. +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 = 'Franco, Dominguez and Murray' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Tate, Moody and Roberson between 2024-03-15 and 2024-05-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Tate, Moody and Roberson' AND order_date BETWEEN '2024-03-15' AND '2024-05-08' + +Natural Query: List all customers and their total order value for Sanchez-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 = 'Sanchez-Rogers' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Harvey, Gray and Wood 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 = 'Harvey, Gray and Wood' + 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 Turner, Lee and Butler. +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 = 'Turner, Lee and Butler' GROUP BY c.customer_id + +Natural Query: Show me all products in the situation category with a price over $676.62. +SQL Query: SELECT * FROM products WHERE category = 'situation' AND price > 676.62 + +Natural Query: What is the total profit for each category in Gordon, Wilson and Dean? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Gordon, Wilson and Dean' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Doyle, Bolton and Lopez 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 = 'Doyle, Bolton and Lopez' + 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 Thompson-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 = 'Thompson-Harris' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mcdaniel-Morrow 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 = 'Mcdaniel-Morrow' + 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 Moss, Fields and Hurley 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 = 'Moss, Fields and Hurley' + 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 Garcia-Martinez? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Garcia-Martinez' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Norris, Martin and Padilla 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 = 'Norris, Martin and Padilla' + 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 Woods-Ortiz ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Woods-Ortiz' ORDER BY price ASC + +Natural Query: List all customers and their total order value for Perez-Miller. +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-Miller' GROUP BY c.customer_id + +Natural Query: What is the total sales for each supplier in Frederick, Graham and Reid? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Frederick, Graham and Reid' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Meyer-Lee 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 = 'Meyer-Lee' + 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 Arnold 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 = 'Arnold PLC' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each country in Stewart, Richard and Pratt? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Stewart, Richard and Pratt' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all products of Jackson, Solomon and Hartman ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jackson, Solomon and Hartman' ORDER BY stock_quantity ASC + +Natural Query: Show me all products in the summer category with a price over $305.15. +SQL Query: SELECT * FROM products WHERE category = 'summer' AND price > 305.15 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Johnson 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 = 'Johnson 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 Harrison 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 = 'Harrison Inc' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Warner Ltd between 2024-05-07 and 2024-08-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Warner Ltd' AND order_date BETWEEN '2024-05-07' AND '2024-08-08' + +Natural Query: How many orders were placed for Snyder-Thomas between 2024-03-01 and 2024-09-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Snyder-Thomas' AND order_date BETWEEN '2024-03-01' AND '2024-09-03' + +Natural Query: Show me all products in the reveal category with a price over $554.68. +SQL Query: SELECT * FROM products WHERE category = 'reveal' AND price > 554.68 + +Natural Query: What is the minimum rating of all products for Tran Ltd? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Tran Ltd' + +Natural Query: What are the top 8 products by revenue for Robertson-Hernandez last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Robertson-Hernandez' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: What is the total sales for each category in Shaffer Group? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Shaffer Group' GROUP BY category ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Curry, Rodriguez and Baker. +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 = 'Curry, Rodriguez and Baker' GROUP BY c.customer_id + +Natural Query: List all products of Duarte PLC ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Duarte PLC' ORDER BY rating ASC + +Natural Query: What is the total price of all products for Garza-Gibson? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Garza-Gibson' + +Natural Query: List all products of Barker-Daniel ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Barker-Daniel' ORDER BY stock_quantity DESC + +Natural Query: Show me all products in the force category with a price over $952.36. +SQL Query: SELECT * FROM products WHERE category = 'force' AND price > 952.36 + +Natural Query: List all customers and their total order value for King, Sanchez and Hill. +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 = 'King, Sanchez and Hill' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mullins 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 = 'Mullins 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 Cervantes Inc between 2023-11-19 and 2024-08-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cervantes Inc' AND order_date BETWEEN '2023-11-19' AND '2024-08-03' + +Natural Query: What is the total profit for each supplier in Alvarez LLC? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Alvarez LLC' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: List all products of Reyes, White and Garcia ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Reyes, White and Garcia' ORDER BY price DESC + +Natural Query: What are the top 8 products by orders for Davis-Haney this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Davis-Haney' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: Show me all products in the set category with a price over $199.07. +SQL Query: SELECT * FROM products WHERE category = 'set' AND price > 199.07 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Parker 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 = 'Parker 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 products of Lam Group ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lam Group' ORDER BY stock_quantity ASC + +Natural Query: Show me all products in the animal category with a price over $804.34. +SQL Query: SELECT * FROM products WHERE category = 'animal' AND price > 804.34 + +Natural Query: What is the minimum rating of all products for Butler, Bean and Green? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Butler, Bean and Green' + +Natural Query: How many orders were placed for Hunter-Jacobs between 2024-05-17 and 2024-09-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hunter-Jacobs' AND order_date BETWEEN '2024-05-17' AND '2024-09-12' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Caldwell 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 = 'Caldwell 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 are the top 10 products by customers for Fields, Hayes and Johnson last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Fields, Hayes and Johnson' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10 + +Natural Query: What is the minimum quantity of all products for Hernandez, Mcguire and Martinez? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Hernandez, Mcguire and Martinez' + +Natural Query: How many orders were placed for Miller-Obrien between 2024-01-23 and 2024-04-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Miller-Obrien' AND order_date BETWEEN '2024-01-23' AND '2024-04-27' + +Natural Query: What is the maximum rating of all products for Carlson, Farrell and Smith? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Carlson, Farrell and Smith' + +Natural Query: List all products of Gibson, Boyle and Collins ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gibson, Boyle and Collins' ORDER BY stock_quantity ASC + +Natural Query: What is the total quantity for each country in Johnson and Sons? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Johnson and Sons' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 4 products by customers for Hill-Vincent this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Hill-Vincent' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: What is the total quantity of all products for Bell, Smith and Beck? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Bell, Smith and Beck' + +Natural Query: What is the total profit for each category in Goodwin-Thomas? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Goodwin-Thomas' GROUP BY category ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Gibbs-Butler. +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 = 'Gibbs-Butler' GROUP BY c.customer_id + +Natural Query: What are the top 8 products by revenue for Cisneros, Sosa and Wagner this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Cisneros, Sosa and Wagner' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: What is the total quantity for each supplier in Evans Group? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Evans Group' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 10 products by customers for Snow, Ray and Stanley all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Snow, Ray and Stanley' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10 + +Natural Query: What are the top 5 products by sales for Garcia, Morales and Campbell this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Garcia, Morales and Campbell' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: How many orders were placed for Ruiz and Sons between 2023-11-07 and 2024-06-02? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ruiz and Sons' AND order_date BETWEEN '2023-11-07' AND '2024-06-02' + +Natural Query: How many orders were placed for Moore Group between 2023-12-12 and 2024-03-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Moore Group' AND order_date BETWEEN '2023-12-12' AND '2024-03-16' + +Natural Query: What is the total price of all products for Aguirre Inc? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Aguirre Inc' + +Natural Query: List all products of Reed, Martin and Berry ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Reed, Martin and Berry' ORDER BY stock_quantity ASC + +Natural Query: List all products of Daniel, Callahan and Mccormick ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Daniel, Callahan and Mccormick' ORDER BY stock_quantity ASC + +Natural Query: What is the total profit for each supplier in Morris-Johnson? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Morris-Johnson' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Stuart, Robinson and Dominguez between 2024-09-03 and 2024-09-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Stuart, Robinson and Dominguez' AND order_date BETWEEN '2024-09-03' AND '2024-09-07' + +Natural Query: How many orders were placed for Shaffer Inc between 2023-09-23 and 2023-12-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Shaffer Inc' AND order_date BETWEEN '2023-09-23' AND '2023-12-25' + +Natural Query: What is the total profit for each country in Fox, Rivera and Decker? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Fox, Rivera and Decker' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 8 products by sales for Gordon, Thomas and Jenkins last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Gordon, Thomas and Jenkins' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: Show me all products in the arm category with a price over $533.08. +SQL Query: SELECT * FROM products WHERE category = 'arm' AND price > 533.08 + +Natural Query: List all products of Rios, Daniels and Wu ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rios, Daniels and Wu' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Mclaughlin-Shelton. +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 = 'Mclaughlin-Shelton' GROUP BY c.customer_id + +Natural Query: What is the average price of all products for Roberts-Hernandez? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Roberts-Hernandez' + +Natural Query: How many orders were placed for Ayers and Sons between 2024-03-05 and 2024-08-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ayers and Sons' AND order_date BETWEEN '2024-03-05' AND '2024-08-11' + +Natural Query: Show me all products in the list category with a price over $265.73. +SQL Query: SELECT * FROM products WHERE category = 'list' AND price > 265.73 + +Natural Query: List all customers and their total order value for Gomez, Warner and Cooper. +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 = 'Gomez, Warner and Cooper' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Green-Underwood. +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 = 'Green-Underwood' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Haley 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 = 'Haley PLC' GROUP BY c.customer_id + +Natural Query: What are the top 5 products by orders for Guzman, Tyler and Mccall last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Guzman, Tyler and Mccall' AND period = 'last quarter' 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 Mckinney 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 = 'Mckinney 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 Ochoa, Lawson and Payne between 2024-03-10 and 2024-08-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ochoa, Lawson and Payne' AND order_date BETWEEN '2024-03-10' AND '2024-08-01' + +Natural Query: Show me all products in the whether category with a price over $554.89. +SQL Query: SELECT * FROM products WHERE category = 'whether' AND price > 554.89 + +Natural Query: What is the minimum rating of all products for Campbell-Ball? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Campbell-Ball' + +Natural Query: What are the top 5 products by revenue for Owen-Parsons this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Owen-Parsons' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: How many orders were placed for Howard, Lowe and York between 2024-04-09 and 2024-07-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Howard, Lowe and York' AND order_date BETWEEN '2024-04-09' AND '2024-07-25' + +Natural Query: List all customers and their total order value for Waller, Chang and Olson. +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 = 'Waller, Chang and Olson' GROUP BY c.customer_id + +Natural Query: What are the top 7 products by revenue for Howard, Morris and Henry all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Howard, Morris and Henry' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: What is the total profit for each supplier in Roberts PLC? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Roberts PLC' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Turner, Allen and Oliver between 2024-06-11 and 2024-06-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Turner, Allen and Oliver' AND order_date BETWEEN '2024-06-11' AND '2024-06-22' + +Natural Query: Show me all products in the activity category with a price over $630.03. +SQL Query: SELECT * FROM products WHERE category = 'activity' AND price > 630.03 + +Natural Query: List all products of Atkins, Day and Anderson ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Atkins, Day and Anderson' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Griffith, Williams and Nielsen 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 = 'Griffith, Williams and Nielsen' + 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 Campbell Group between 2024-04-18 and 2024-06-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Campbell Group' AND order_date BETWEEN '2024-04-18' AND '2024-06-09' + +Natural Query: List all customers and their total order value for Russo 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 = 'Russo LLC' GROUP BY c.customer_id + +Natural Query: List all products of Lloyd, Miller and Sanchez ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lloyd, Miller and Sanchez' ORDER BY price ASC + +Natural Query: List all products of Larson, Gardner and Perez ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Larson, Gardner and Perez' ORDER BY rating DESC + +Natural Query: What are the top 7 products by sales for Camacho-Davis this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Camacho-Davis' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 + +Natural Query: How many orders were placed for Obrien, Grimes and Clark between 2024-03-03 and 2024-08-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Obrien, Grimes and Clark' AND order_date BETWEEN '2024-03-03' AND '2024-08-04' + +Natural Query: List all customers and their total order value for Swanson, Payne and 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 = 'Swanson, Payne and Green' GROUP BY c.customer_id + +Natural Query: List all products of Walters-Holmes ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Walters-Holmes' ORDER BY rating DESC + +Natural Query: What is the total sales for each country in Padilla-Anderson? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Padilla-Anderson' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all products of Smith, Vaughan and Estrada ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith, Vaughan and Estrada' ORDER BY price DESC + +Natural Query: How many orders were placed for Jones-Nelson between 2024-02-21 and 2024-03-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jones-Nelson' AND order_date BETWEEN '2024-02-21' AND '2024-03-22' + +Natural Query: Show me all products in the traditional category with a price over $984.92. +SQL Query: SELECT * FROM products WHERE category = 'traditional' AND price > 984.92 + +Natural Query: What is the total quantity of all products for Mcdowell, Williams and Horne? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Mcdowell, Williams and Horne' + +Natural Query: What is the total sales for each category in Nguyen-Wilkins? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Nguyen-Wilkins' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the minimum quantity of all products for Monroe-Snyder? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Monroe-Snyder' + +Natural Query: What is the total quantity for each supplier in Lawson-Clark? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Lawson-Clark' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 9 products by orders for Chapman, Parker and Allen this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Chapman, Parker and Allen' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: Show me all products in the college category with a price over $648.78. +SQL Query: SELECT * FROM products WHERE category = 'college' AND price > 648.78 + +Natural Query: How many orders were placed for Villa-Gordon between 2024-01-18 and 2024-08-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Villa-Gordon' AND order_date BETWEEN '2024-01-18' AND '2024-08-28' + +Natural Query: What is the average quantity of all products for Barker LLC? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Barker LLC' + +Natural Query: List all products of Castaneda Group ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Castaneda Group' ORDER BY price DESC + +Natural Query: Show me all products in the station category with a price over $344.88. +SQL Query: SELECT * FROM products WHERE category = 'station' AND price > 344.88 + +Natural Query: What is the total quantity for each category in Day LLC? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Day LLC' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Wilson, Johnson and Murphy 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, Johnson and Murphy' + 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 Evans Inc ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Evans Inc' ORDER BY price ASC + +Natural Query: List all customers and their total order value for Lara-Mueller. +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 = 'Lara-Mueller' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Price Ltd between 2024-05-07 and 2024-09-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Price Ltd' AND order_date BETWEEN '2024-05-07' AND '2024-09-14' + +Natural Query: Show me all products in the different category with a price over $375.09. +SQL Query: SELECT * FROM products WHERE category = 'different' AND price > 375.09 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Andrews 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 = 'Andrews 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 Gonzalez Ltd ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gonzalez Ltd' ORDER BY rating DESC + +Natural Query: What is the minimum quantity of all products for Nguyen LLC? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Nguyen LLC' + +Natural Query: Show me all products in the director category with a price over $912.96. +SQL Query: SELECT * FROM products WHERE category = 'director' AND price > 912.96 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Coleman 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 = 'Coleman 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 Hansen, Richardson and Weaver. +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 = 'Hansen, Richardson and Weaver' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Ramirez 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 = 'Ramirez 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 Waters, Pearson and Hunt? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Waters, Pearson and Hunt' + +Natural Query: What are the top 9 products by revenue for Brown-Lynch this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Brown-Lynch' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: What is the total profit for each supplier in Garcia Inc? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Garcia Inc' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: How many orders were placed for West-Thomas between 2024-06-29 and 2024-08-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'West-Thomas' AND order_date BETWEEN '2024-06-29' AND '2024-08-19' + +Natural Query: What are the top 7 products by customers for Simpson PLC all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Simpson 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 Fernandez-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 = 'Fernandez-Smith' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Melendez, Ray and Adams between 2024-06-10 and 2024-06-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Melendez, Ray and Adams' AND order_date BETWEEN '2024-06-10' AND '2024-06-30' + +Natural Query: Show me all products in the high category with a price over $264.41. +SQL Query: SELECT * FROM products WHERE category = 'high' AND price > 264.41 + +Natural Query: List all customers and their total order value for Foster, Mcdonald and Henry. +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 = 'Foster, Mcdonald and Henry' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each country in Greene, Spencer and Reyes? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Greene, Spencer and Reyes' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all products of Arias-Cross ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Arias-Cross' ORDER BY rating ASC + +Natural Query: Show me all products in the meet category with a price over $840.66. +SQL Query: SELECT * FROM products WHERE category = 'meet' AND price > 840.66 + +Natural Query: List all products of Schneider-Avery ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Schneider-Avery' ORDER BY rating DESC + +Natural Query: Show me all products in the I category with a price over $196.85. +SQL Query: SELECT * FROM products WHERE category = 'I' AND price > 196.85 + +Natural Query: List all products of Wade Group ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wade Group' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Bernard 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 = 'Bernard PLC' + 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 Perez and Sons between 2024-05-22 and 2024-08-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Perez and Sons' AND order_date BETWEEN '2024-05-22' AND '2024-08-03' + +Natural Query: How many orders were placed for Young-Watson between 2024-03-01 and 2024-04-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Young-Watson' AND order_date BETWEEN '2024-03-01' AND '2024-04-30' + +Natural Query: List all customers and their total order value for Spencer, Peters and Zamora. +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 = 'Spencer, Peters and Zamora' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Johnson 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 = 'Johnson 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 rating of all products for Carr-Kirk? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Carr-Kirk' + +Natural Query: What are the top 9 products by sales for Larsen, Hunt and West this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Larsen, Hunt and West' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: What is the total sales for each country in Wilson-Hodge? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Wilson-Hodge' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What is the total sales for each supplier in Luna, Pope and Green? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Luna, Pope and Green' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: Show me all products in the decide category with a price over $290.44. +SQL Query: SELECT * FROM products WHERE category = 'decide' AND price > 290.44 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Tate, Miller and Andrade 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 = 'Tate, Miller and Andrade' + 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 customers for Church-Brown this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Church-Brown' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: List all customers and their total order value for Bowman-White. +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 = 'Bowman-White' GROUP BY c.customer_id + +Natural Query: What are the top 4 products by sales for Austin Group last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Austin Group' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: How many orders were placed for Phillips-Sandoval between 2024-08-21 and 2024-08-31? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Phillips-Sandoval' AND order_date BETWEEN '2024-08-21' AND '2024-08-31' + +Natural Query: What is the total rating of all products for Wilson-Larson? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Wilson-Larson' + +Natural Query: What are the top 5 products by sales for Warren Inc all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Warren Inc' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 + +Natural Query: Show me all products in the despite category with a price over $689.67. +SQL Query: SELECT * FROM products WHERE category = 'despite' AND price > 689.67 + +Natural Query: How many orders were placed for Floyd, Dennis and Bishop between 2024-06-05 and 2024-07-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Floyd, Dennis and Bishop' AND order_date BETWEEN '2024-06-05' AND '2024-07-08' + +Natural Query: What is the total quantity of all products for Salinas, Hodges and Jones? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Salinas, Hodges and Jones' + +Natural Query: List all products of Williams-Church ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Williams-Church' ORDER BY price ASC + +Natural Query: List all products of Christensen, Maldonado and Nicholson ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Christensen, Maldonado and Nicholson' ORDER BY price DESC + +Natural Query: List all products of Elliott, Harris and Pitts ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Elliott, Harris and Pitts' ORDER BY stock_quantity DESC + +Natural Query: List all products of Davis-Padilla ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Davis-Padilla' ORDER BY rating ASC + +Natural Query: Show me all products in the interest category with a price over $568.23. +SQL Query: SELECT * FROM products WHERE category = 'interest' AND price > 568.23 + +Natural Query: List all customers and their total order value for Davis 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 = 'Davis Group' GROUP BY c.customer_id + +Natural Query: What are the top 4 products by customers for Harrison-Jarvis this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Harrison-Jarvis' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: What is the total quantity for each country in Smith-Turner? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Smith-Turner' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Garcia, Sanchez and Casey. +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, Sanchez and Casey' GROUP BY c.customer_id + +Natural Query: What are the top 3 products by revenue for Ward-Adams all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Ward-Adams' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: List all customers and their total order value for Hopkins, Maldonado and Castillo. +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 = 'Hopkins, Maldonado and Castillo' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Sullivan Group between 2023-12-17 and 2024-08-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Sullivan Group' AND order_date BETWEEN '2023-12-17' AND '2024-08-21' + +Natural Query: What is the average quantity of all products for Richardson-Schmidt? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Richardson-Schmidt' + +Natural Query: What is the minimum quantity of all products for Ward Inc? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Ward Inc' + +Natural Query: List all customers and their total order value for Lopez-Randolph. +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 = 'Lopez-Randolph' GROUP BY c.customer_id + +Natural Query: What is the total profit for each supplier in Gonzalez, Henderson and Walters? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Gonzalez, Henderson and Walters' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 3 products by customers for Smith-Cooley this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Smith-Cooley' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: List all customers and their total order value for Parsons, Wallace and Murphy. +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 = 'Parsons, Wallace and Murphy' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Wilson, Garcia and Ellis. +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, Garcia and Ellis' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each country in Carter and Sons? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Carter and Sons' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Scott 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 = 'Scott 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 Johnson, Garcia and Crosby ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Johnson, Garcia and Crosby' ORDER BY stock_quantity ASC + +Natural Query: What is the average quantity of all products for Gardner PLC? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Gardner PLC' + +Natural Query: How many orders were placed for Garcia, Silva and Butler between 2024-08-15 and 2024-09-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Garcia, Silva and Butler' AND order_date BETWEEN '2024-08-15' AND '2024-09-07' + +Natural Query: What is the total quantity for each category in Soto and Sons? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Soto and Sons' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all products of Davis and Sons ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Davis and Sons' ORDER BY stock_quantity DESC + +Natural Query: What are the top 6 products by revenue for White, Carroll and Simmons last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'White, Carroll and Simmons' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: How many orders were placed for Davis Inc between 2023-09-25 and 2024-02-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Davis Inc' AND order_date BETWEEN '2023-09-25' AND '2024-02-08' + +Natural Query: List all customers and their total order value for Logan 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 = 'Logan Inc' GROUP BY c.customer_id + +Natural Query: List all products of Bond-Johnson ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Bond-Johnson' ORDER BY rating ASC + +Natural Query: What is the total profit for each supplier in Lewis-Joseph? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Lewis-Joseph' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the average price of all products for Butler-Carter? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Butler-Carter' + +Natural Query: How many orders were placed for Ross Group between 2023-10-30 and 2024-01-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ross Group' AND order_date BETWEEN '2023-10-30' AND '2024-01-08' + +Natural Query: List all customers and their total order value for Miller, Acevedo and Mcdonald. +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, Acevedo and Mcdonald' GROUP BY c.customer_id + +Natural Query: What is the minimum quantity of all products for Evans, Walton and Charles? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Evans, Walton and Charles' + +Natural Query: How many orders were placed for Edwards Inc between 2024-02-09 and 2024-03-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Edwards Inc' AND order_date BETWEEN '2024-02-09' AND '2024-03-19' + +Natural Query: How many orders were placed for Ortega PLC between 2024-01-07 and 2024-02-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ortega PLC' AND order_date BETWEEN '2024-01-07' AND '2024-02-21' + +Natural Query: Show me all products in the nothing category with a price over $690.94. +SQL Query: SELECT * FROM products WHERE category = 'nothing' AND price > 690.94 + +Natural Query: List all customers and their total order value for Mccann-Stone. +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 = 'Mccann-Stone' GROUP BY c.customer_id + +Natural Query: What is the total sales for each supplier in Valdez-Macias? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Valdez-Macias' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: What are the top 6 products by sales for Carpenter-Coleman last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Carpenter-Coleman' AND period = 'last quarter' 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 Dean, Rodriguez and Moss 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 = 'Dean, Rodriguez and Moss' + 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 give category with a price over $758.34. +SQL Query: SELECT * FROM products WHERE category = 'give' AND price > 758.34 + +Natural Query: What are the top 5 products by customers for Kelly, Washington and West this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Kelly, Washington and West' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 + +Natural Query: List all customers and their total order value for Banks, Lopez and Macias. +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 = 'Banks, Lopez and Macias' GROUP BY c.customer_id + +Natural Query: What are the top 4 products by revenue for James, Lewis and Briggs last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'James, Lewis and Briggs' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: What are the top 8 products by orders for Adkins, Meza and Greene this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Adkins, Meza and Greene' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: What is the minimum rating of all products for Carney-Reed? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Carney-Reed' + +Natural Query: Show me all products in the why category with a price over $18.09. +SQL Query: SELECT * FROM products WHERE category = 'why' AND price > 18.09 + +Natural Query: List all products of Williams, Smith and Wilkins ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Williams, Smith and Wilkins' ORDER BY price ASC + +Natural Query: How many orders were placed for Hernandez Ltd between 2024-08-18 and 2024-08-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hernandez Ltd' AND order_date BETWEEN '2024-08-18' AND '2024-08-20' + +Natural Query: How many orders were placed for Orozco and Sons between 2024-09-13 and 2024-09-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Orozco and Sons' AND order_date BETWEEN '2024-09-13' AND '2024-09-13' + +Natural Query: List all customers and their total order value for Long, Miller and Little. +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, Miller and Little' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Cox, Parker and Fuentes between 2024-05-19 and 2024-06-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cox, Parker and Fuentes' AND order_date BETWEEN '2024-05-19' AND '2024-06-11' + +Natural Query: List all customers and their total order value for Rogers-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 = 'Rogers-Ford' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Phillips-Davenport. +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-Davenport' GROUP BY c.customer_id + +Natural Query: What is the total profit for each category in Evans-Goodman? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Evans-Goodman' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the maximum quantity of all products for Anderson, Berry and Jarvis? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Anderson, Berry and Jarvis' + +Natural Query: List all customers and their total order value for Diaz-Anderson. +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 = 'Diaz-Anderson' GROUP BY c.customer_id + +Natural Query: Show me all products in the day category with a price over $578.15. +SQL Query: SELECT * FROM products WHERE category = 'day' AND price > 578.15 + +Natural Query: List all customers and their total order value for Perez, Booth and Bolton. +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, Booth and Bolton' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Bennett-Lewis between 2023-12-22 and 2024-01-27? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bennett-Lewis' AND order_date BETWEEN '2023-12-22' AND '2024-01-27' + +Natural Query: Show me all products in the season category with a price over $161.92. +SQL Query: SELECT * FROM products WHERE category = 'season' AND price > 161.92 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Daugherty, Roy and Oliver 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 = 'Daugherty, Roy and Oliver' + 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 Johnson 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 = 'Johnson 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 products of Ward Group ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Ward Group' ORDER BY price DESC + +Natural Query: What is the total profit for each supplier in Valencia Group? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Valencia Group' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Navarro, Carney and Hines 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 = 'Navarro, Carney and Hines' + 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 Alexander Ltd between 2023-10-11 and 2024-09-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Alexander Ltd' AND order_date BETWEEN '2023-10-11' AND '2024-09-06' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Abbott-Wilson 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 = 'Abbott-Wilson' + 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 Thompson Group between 2024-08-13 and 2024-09-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thompson Group' AND order_date BETWEEN '2024-08-13' AND '2024-09-06' + +Natural Query: List all products of Cohen-Johnson ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Cohen-Johnson' ORDER BY rating ASC + +Natural Query: Show me all products in the four category with a price over $284.67. +SQL Query: SELECT * FROM products WHERE category = 'four' AND price > 284.67 + +Natural Query: List all customers and their total order value for Wells, Hart and Jackson. +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 = 'Wells, Hart and Jackson' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each country in Bates-Jones? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Bates-Jones' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: Show me all products in the group category with a price over $777.7. +SQL Query: SELECT * FROM products WHERE category = 'group' AND price > 777.7 + +Natural Query: What is the minimum price of all products for Lucero-Hart? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Lucero-Hart' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Logan 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 = 'Logan 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 products of Espinoza Inc ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Espinoza Inc' ORDER BY rating DESC + +Natural Query: How many orders were placed for Shannon-Gregory between 2024-07-14 and 2024-07-31? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Shannon-Gregory' AND order_date BETWEEN '2024-07-14' AND '2024-07-31' + +Natural Query: List all customers and their total order value for West-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 = 'West-Obrien' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Sherman, Valdez and Valentine between 2024-07-05 and 2024-08-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Sherman, Valdez and Valentine' AND order_date BETWEEN '2024-07-05' AND '2024-08-03' + +Natural Query: List all customers and their total order value for Johnson, Case and Silva. +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, Case and Silva' GROUP BY c.customer_id + +Natural Query: List all products of Smith, Campbell and Perez ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith, Campbell and Perez' ORDER BY price ASC + +Natural Query: List all products of Jackson and Sons ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jackson and Sons' ORDER BY price DESC + +Natural Query: How many orders were placed for Smith, Perry and Pena between 2023-10-13 and 2024-04-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Smith, Perry and Pena' AND order_date BETWEEN '2023-10-13' AND '2024-04-08' + +Natural Query: Show me all products in the hard category with a price over $42.19. +SQL Query: SELECT * FROM products WHERE category = 'hard' AND price > 42.19 + +Natural Query: How many orders were placed for Smith, Glenn and Henry between 2024-05-20 and 2024-08-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Smith, Glenn and Henry' AND order_date BETWEEN '2024-05-20' AND '2024-08-10' + +Natural Query: How many orders were placed for Rodriguez, Robinson and White between 2024-03-03 and 2024-05-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Rodriguez, Robinson and White' AND order_date BETWEEN '2024-03-03' AND '2024-05-19' + +Natural Query: List all customers and their total order value for Simmons 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 = 'Simmons Inc' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Murillo, Charles and Henry 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 = 'Murillo, Charles and Henry' + 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 Bullock, Thompson and King between 2023-12-03 and 2024-06-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bullock, Thompson and King' AND order_date BETWEEN '2023-12-03' AND '2024-06-04' + +Natural Query: List all products of Miller Ltd ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Miller Ltd' ORDER BY price DESC + +Natural Query: List all customers and their total order value for Fowler 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 = 'Fowler Group' GROUP BY c.customer_id + +Natural Query: What are the top 9 products by orders for Flores, Scott and Pope this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Flores, Scott and Pope' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: How many orders were placed for Mcdonald-Cook between 2024-02-07 and 2024-03-03? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mcdonald-Cook' AND order_date BETWEEN '2024-02-07' AND '2024-03-03' + +Natural Query: Show me all products in the far category with a price over $130.57. +SQL Query: SELECT * FROM products WHERE category = 'far' AND price > 130.57 + +Natural Query: List all customers and their total order value for Wagner-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 = 'Wagner-Ramirez' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Rodriguez, Brown and Porter between 2024-04-18 and 2024-08-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Rodriguez, Brown and Porter' AND order_date BETWEEN '2024-04-18' AND '2024-08-10' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Castillo, Moyer and Myers 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 = 'Castillo, Moyer and Myers' + 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 Brown, Foster and Morgan 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, Foster and Morgan' + 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 Rodriguez-Fowler? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Rodriguez-Fowler' + +Natural Query: How many orders were placed for Gutierrez, Vaughan and Howard between 2024-03-10 and 2024-08-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gutierrez, Vaughan and Howard' AND order_date BETWEEN '2024-03-10' AND '2024-08-23' + +Natural Query: List all customers and their total order value for Hartman-Franklin. +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 = 'Hartman-Franklin' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Jackson and Sons between 2023-11-12 and 2024-02-25? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jackson and Sons' AND order_date BETWEEN '2023-11-12' AND '2024-02-25' + +Natural Query: How many orders were placed for Walls, Olsen and Thompson between 2024-03-19 and 2024-06-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Walls, Olsen and Thompson' AND order_date BETWEEN '2024-03-19' AND '2024-06-11' + +Natural Query: What is the maximum rating of all products for Park, Campbell and Rivera? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Park, Campbell and Rivera' + +Natural Query: List all customers and their total order value for Shea 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 = 'Shea Ltd' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Murphy-Dougherty. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Murphy-Dougherty' GROUP BY c.customer_id + +Natural Query: What is the minimum rating of all products for Guerrero, Sanders and Harrell? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Guerrero, Sanders and Harrell' + +Natural Query: List all products of Cantrell, Curtis and Kane ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Cantrell, Curtis and Kane' ORDER BY price ASC + +Natural Query: Show me all products in the letter category with a price over $601.96. +SQL Query: SELECT * FROM products WHERE category = 'letter' AND price > 601.96 + +Natural Query: What are the top 4 products by sales for Cordova-Lopez this month? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Cordova-Lopez' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: What is the total price of all products for Cameron, Larson and Benton? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Cameron, Larson and Benton' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Campbell 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 = 'Campbell 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 customers and their total order value for Jones 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 = 'Jones PLC' GROUP BY c.customer_id + +Natural Query: List all products of Lang, Allen and Flores ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lang, Allen and Flores' ORDER BY rating ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Walter, Hill and Gordon 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 = 'Walter, Hill and Gordon' + 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 Mercado, Obrien and 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 = 'Mercado, Obrien and Norton' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Johnson, Mason and Watson. +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, Mason and Watson' GROUP BY c.customer_id + +Natural Query: List all products of Lopez-Lopez ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lopez-Lopez' ORDER BY rating ASC + +Natural Query: Show me all products in the involve category with a price over $197.9. +SQL Query: SELECT * FROM products WHERE category = 'involve' AND price > 197.9 + +Natural Query: What is the total quantity for each country in Martinez, Sanchez and Mendez? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Martinez, Sanchez and Mendez' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: Show me all products in the remember category with a price over $424.68. +SQL Query: SELECT * FROM products WHERE category = 'remember' AND price > 424.68 + +Natural Query: What is the total profit for each category in Stevens-Dominguez? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Stevens-Dominguez' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Armstrong, Torres and Odonnell 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 = 'Armstrong, Torres and Odonnell' + 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 event category with a price over $162.58. +SQL Query: SELECT * FROM products WHERE category = 'event' AND price > 162.58 + +Natural Query: What are the top 10 products by orders for King, Simpson and Ellis this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'King, Simpson and Ellis' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 + +Natural Query: List all products of Webster-Warner ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Webster-Warner' ORDER BY rating DESC + +Natural Query: Show me all products in the condition category with a price over $437.35. +SQL Query: SELECT * FROM products WHERE category = 'condition' AND price > 437.35 + +Natural Query: What is the total rating of all products for Hill-Wright? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Hill-Wright' + +Natural Query: Show me all products in the wear category with a price over $586.04. +SQL Query: SELECT * FROM products WHERE category = 'wear' AND price > 586.04 + +Natural Query: Show me all products in the garden category with a price over $846.16. +SQL Query: SELECT * FROM products WHERE category = 'garden' AND price > 846.16 + +Natural Query: What is the average price of all products for Allen-Garcia? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Allen-Garcia' + +Natural Query: What are the top 10 products by customers for Chaney, Johnston and Norton this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Chaney, Johnston and Norton' AND period = 'this year' 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 Suarez-Perkins 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 = 'Suarez-Perkins' + 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 Lopez-Jones ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lopez-Jones' ORDER BY rating DESC + +Natural Query: What are the top 6 products by customers for Edwards, Burch and Gordon this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Edwards, Burch and Gordon' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 + +Natural Query: Show me all products in the beautiful category with a price over $424.1. +SQL Query: SELECT * FROM products WHERE category = 'beautiful' AND price > 424.1 + +Natural Query: How many orders were placed for Mendoza, Kennedy and Klein between 2024-03-03 and 2024-03-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mendoza, Kennedy and Klein' AND order_date BETWEEN '2024-03-03' AND '2024-03-28' + +Natural Query: How many orders were placed for Malone-Morrow between 2024-08-01 and 2024-09-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Malone-Morrow' AND order_date BETWEEN '2024-08-01' AND '2024-09-08' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mays, Mills and Casey 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 = 'Mays, Mills and Casey' + 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 Perry-Martinez? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Perry-Martinez' + +Natural Query: What are the top 8 products by customers for Rush PLC all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Rush PLC' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: How many orders were placed for Carpenter-Mason between 2023-11-21 and 2024-08-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Carpenter-Mason' AND order_date BETWEEN '2023-11-21' AND '2024-08-22' + +Natural Query: How many orders were placed for Pollard Group between 2023-12-27 and 2024-08-28? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Pollard Group' AND order_date BETWEEN '2023-12-27' AND '2024-08-28' + +Natural Query: What are the top 6 products by revenue for Rogers Group last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Rogers Group' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: What is the total quantity for each country in Ramos-Glover? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Ramos-Glover' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: List all products of Wilson, Mills and Donaldson ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wilson, Mills and Donaldson' ORDER BY stock_quantity DESC + +Natural Query: What are the top 4 products by sales for Durham Ltd all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Durham Ltd' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: How many orders were placed for Wilson PLC between 2024-09-05 and 2024-09-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wilson PLC' AND order_date BETWEEN '2024-09-05' AND '2024-09-12' + +Natural Query: What is the total sales for each country in Ortiz-Marsh? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Ortiz-Marsh' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Burgess-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 = 'Burgess-Taylor' GROUP BY c.customer_id + +Natural Query: What is the maximum price of all products for Wagner-Henderson? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Wagner-Henderson' + +Natural Query: What are the top 8 products by customers for Sharp-Gardner last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Sharp-Gardner' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: Show me all products in the direction category with a price over $394.73. +SQL Query: SELECT * FROM products WHERE category = 'direction' AND price > 394.73 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Jordan, Sullivan and Martinez 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 = 'Jordan, Sullivan and Martinez' + 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 reveal category with a price over $379.38. +SQL Query: SELECT * FROM products WHERE category = 'reveal' AND price > 379.38 + +Natural Query: What is the minimum quantity of all products for Haley-Shelton? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Haley-Shelton' + +Natural Query: What is the total price of all products for Ferguson-Farmer? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Ferguson-Farmer' + +Natural Query: What is the total sales for each category in Martinez-Walters? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Martinez-Walters' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 3 products by customers for Rogers Ltd this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Rogers Ltd' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: List all products of Miller-Howell ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Miller-Howell' ORDER BY price ASC + +Natural Query: List all products of Hunter-Cannon ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hunter-Cannon' ORDER BY rating DESC + +Natural Query: What is the total rating of all products for Clayton Group? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Clayton Group' + +Natural Query: Show me all products in the represent category with a price over $124.18. +SQL Query: SELECT * FROM products WHERE category = 'represent' AND price > 124.18 + +Natural Query: What are the top 9 products by revenue for Walker Group all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Walker Group' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9 + +Natural Query: What is the total profit for each country in Boone, Romero and Harrison? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Boone, Romero and Harrison' GROUP BY country ORDER BY total_profit DESC + +Natural Query: Show me all products in the quickly category with a price over $86.35. +SQL Query: SELECT * FROM products WHERE category = 'quickly' AND price > 86.35 + +Natural Query: List all products of Long PLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Long PLC' ORDER BY stock_quantity DESC + +Natural Query: What are the top 3 products by sales for Henderson LLC this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Henderson LLC' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 + +Natural Query: Show me all products in the easy category with a price over $557.89. +SQL Query: SELECT * FROM products WHERE category = 'easy' AND price > 557.89 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Schneider, Hart 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 = 'Schneider, Hart 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: What are the top 10 products by sales for Hines-Young all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hines-Young' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: What is the average rating of all products for Munoz-Williams? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Munoz-Williams' + +Natural Query: What are the top 8 products by revenue for Young, Lee and Chambers this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Young, Lee and Chambers' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: List all products of Adams and Sons ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Adams and Sons' ORDER BY price ASC + +Natural Query: What is the minimum price of all products for Campos Inc? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Campos Inc' + +Natural Query: What is the total profit for each category in Holmes, Schroeder and Kirk? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Holmes, Schroeder and Kirk' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Ford 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 = 'Ford Ltd' + 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 space category with a price over $53.65. +SQL Query: SELECT * FROM products WHERE category = 'space' AND price > 53.65 + +Natural Query: Show me all products in the should category with a price over $602.42. +SQL Query: SELECT * FROM products WHERE category = 'should' AND price > 602.42 + +Natural Query: List all customers and their total order value for Graham 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 = 'Graham Group' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Williams 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 = 'Williams PLC' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each country in Mcconnell, Hernandez and Cook? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Mcconnell, Hernandez and Cook' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Jefferson 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 = 'Jefferson 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: Show me all products in the building category with a price over $452.63. +SQL Query: SELECT * FROM products WHERE category = 'building' AND price > 452.63 + +Natural Query: List all customers and their total order value for Brown, Peters and Thompson. +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, Peters and Thompson' GROUP BY c.customer_id + +Natural Query: What are the top 4 products by customers for Rodgers-Smith this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Rodgers-Smith' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: What are the top 3 products by orders for Palmer-Cabrera all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Palmer-Cabrera' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: List all products of Larson, Olson and Lambert ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Larson, Olson and Lambert' ORDER BY rating ASC + +Natural Query: List all products of Haynes-Moore ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Haynes-Moore' ORDER BY stock_quantity DESC + +Natural Query: List all products of Burton-Rodriguez ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Burton-Rodriguez' ORDER BY price DESC + +Natural Query: List all products of Stevenson, Hale and Byrd ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Stevenson, Hale and Byrd' ORDER BY price ASC + +Natural Query: List all customers and their total order value for Valdez, Hodges and Singleton. +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 = 'Valdez, Hodges and Singleton' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Mills 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 = 'Mills Ltd' GROUP BY c.customer_id + +Natural Query: List all products of Jones-Riley ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jones-Riley' ORDER BY stock_quantity DESC + +Natural Query: What are the top 6 products by sales for Clarke Inc all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Clarke Inc' 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 Myers 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 = 'Myers Group' GROUP BY c.customer_id + +Natural Query: What are the top 9 products by orders for Moss-Hoffman this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Moss-Hoffman' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: What is the total profit for each country in Oneal-Ford? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Oneal-Ford' GROUP BY country ORDER BY total_profit DESC + +Natural Query: Show me all products in the quality category with a price over $764.19. +SQL Query: SELECT * FROM products WHERE category = 'quality' AND price > 764.19 + +Natural Query: What are the top 8 products by sales for Jones Group last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Jones Group' AND period = 'last quarter' 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 Murphy-Coleman 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 = 'Murphy-Coleman' + 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 Moreno, Lang and Lynch? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Moreno, Lang and Lynch' + +Natural Query: How many orders were placed for Hicks-Collins between 2024-05-20 and 2024-06-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hicks-Collins' AND order_date BETWEEN '2024-05-20' AND '2024-06-18' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Osborne, Powers and Dyer 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 = 'Osborne, Powers and Dyer' + 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 Lamb, Watts and Winters ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lamb, Watts and Winters' ORDER BY price ASC + +Natural Query: List all products of Carter-Grant ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Carter-Grant' ORDER BY price ASC + +Natural Query: Show me all products in the trouble category with a price over $346.76. +SQL Query: SELECT * FROM products WHERE category = 'trouble' AND price > 346.76 + +Natural Query: What is the total quantity for each supplier in Kelly, Morgan and Watkins? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Kelly, Morgan and Watkins' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: Show me all products in the tree category with a price over $670.57. +SQL Query: SELECT * FROM products WHERE category = 'tree' AND price > 670.57 + +Natural Query: List all products of Lee, Myers and Ramsey ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Lee, Myers and Ramsey' ORDER BY price DESC + +Natural Query: List all products of Medina, Burton and Miller ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Medina, Burton and Miller' ORDER BY price DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Davis-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 = 'Davis-Johnson' + 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 Gonzales Ltd ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Gonzales Ltd' ORDER BY price ASC + +Natural Query: List all customers and their total order value for Williams-Roberts. +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-Roberts' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Stewart-Campbell. +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 = 'Stewart-Campbell' GROUP BY c.customer_id + +Natural Query: Show me all products in the behavior category with a price over $119.27. +SQL Query: SELECT * FROM products WHERE category = 'behavior' AND price > 119.27 + +Natural Query: Show me all products in the budget category with a price over $267.87. +SQL Query: SELECT * FROM products WHERE category = 'budget' AND price > 267.87 + +Natural Query: What is the maximum price of all products for Ford, Fisher and Woodard? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Ford, Fisher and Woodard' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Yates-Clark 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 = 'Yates-Clark' + 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 Martin, Morgan and Peters between 2023-11-29 and 2024-01-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Martin, Morgan and Peters' AND order_date BETWEEN '2023-11-29' AND '2024-01-20' + +Natural Query: Show me all products in the great category with a price over $346.86. +SQL Query: SELECT * FROM products WHERE category = 'great' AND price > 346.86 + +Natural Query: Show me all products in the offer category with a price over $225.19. +SQL Query: SELECT * FROM products WHERE category = 'offer' AND price > 225.19 + +Natural Query: What is the maximum quantity of all products for Peters, Walter and Tyler? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Peters, Walter and Tyler' + +Natural Query: How many orders were placed for Sanchez Inc between 2024-04-11 and 2024-07-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Sanchez Inc' AND order_date BETWEEN '2024-04-11' AND '2024-07-11' + +Natural Query: How many orders were placed for Simpson, Hopkins and Hancock between 2024-06-12 and 2024-08-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Simpson, Hopkins and Hancock' AND order_date BETWEEN '2024-06-12' AND '2024-08-22' + +Natural Query: Show me all products in the little category with a price over $765.72. +SQL Query: SELECT * FROM products WHERE category = 'little' AND price > 765.72 + +Natural Query: What is the total quantity for each supplier in Davis, Davis and Lang? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Davis, Davis and Lang' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Shields-Arnold between 2023-12-13 and 2024-08-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Shields-Arnold' AND order_date BETWEEN '2023-12-13' AND '2024-08-13' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Reynolds-Weaver 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 = 'Reynolds-Weaver' + 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 Marshall Group ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Marshall Group' ORDER BY stock_quantity ASC + +Natural Query: Show me all products in the enjoy category with a price over $395.26. +SQL Query: SELECT * FROM products WHERE category = 'enjoy' AND price > 395.26 + +Natural Query: What are the top 3 products by orders for Ortiz Ltd this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Ortiz Ltd' 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 Singh 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 = 'Singh 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 Duke 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 = 'Duke and Sons' GROUP BY c.customer_id + +Natural Query: What are the top 3 products by revenue for Huang, Ray and Clark last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Huang, Ray and Clark' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: What are the top 10 products by sales for Page, Wade and Carter this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Page, Wade and Carter' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: Show me all products in the suddenly category with a price over $47.92. +SQL Query: SELECT * FROM products WHERE category = 'suddenly' AND price > 47.92 + +Natural Query: What is the total profit for each category in Davis-Hahn? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Davis-Hahn' GROUP BY category ORDER BY total_profit DESC + +Natural Query: List all products of Fisher-Peterson ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Fisher-Peterson' ORDER BY stock_quantity ASC + +Natural Query: What is the maximum rating of all products for Hoover Inc? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Hoover Inc' + +Natural Query: Show me all products in the hope category with a price over $451.89. +SQL Query: SELECT * FROM products WHERE category = 'hope' AND price > 451.89 + +Natural Query: What is the total rating of all products for Jackson Ltd? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Jackson Ltd' + +Natural Query: What are the top 7 products by revenue for Krueger-Gutierrez this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Krueger-Gutierrez' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Armstrong, Serrano and Howard 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 = 'Armstrong, Serrano and Howard' + 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 deal category with a price over $278.31. +SQL Query: SELECT * FROM products WHERE category = 'deal' AND price > 278.31 + +Natural Query: List all products of Moore, Martinez and Hebert ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Moore, Martinez and Hebert' ORDER BY price DESC + +Natural Query: What is the average quantity of all products for Hickman, Brown and Lewis? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Hickman, Brown and Lewis' + +Natural Query: What is the total quantity for each category in Robinson-Arnold? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Robinson-Arnold' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: List all customers and their total order value for Rivera-Oliver. +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-Oliver' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Murray-Baker. +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 = 'Murray-Baker' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Chavez PLC between 2023-12-07 and 2024-09-01? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Chavez PLC' AND order_date BETWEEN '2023-12-07' AND '2024-09-01' + +Natural Query: What are the top 9 products by sales for Johnson PLC last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Johnson PLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: Show me all products in the information category with a price over $519.27. +SQL Query: SELECT * FROM products WHERE category = 'information' AND price > 519.27 + +Natural Query: Show me all products in the use category with a price over $871.83. +SQL Query: SELECT * FROM products WHERE category = 'use' AND price > 871.83 + +Natural Query: List all products of Anderson, Green and Powers ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Anderson, Green and Powers' ORDER BY stock_quantity DESC + +Natural Query: What are the top 6 products by revenue for Cohen Group this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Cohen Group' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 + +Natural Query: How many orders were placed for Bush-Reyes between 2024-09-05 and 2024-09-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bush-Reyes' AND order_date BETWEEN '2024-09-05' AND '2024-09-14' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Salas, Smith 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 = 'Salas, Smith 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: Show me all products in the image category with a price over $932.24. +SQL Query: SELECT * FROM products WHERE category = 'image' AND price > 932.24 + +Natural Query: What is the total sales for each category in Wilcox-Rowe? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Wilcox-Rowe' GROUP BY category ORDER BY total_sales DESC + +Natural Query: How many orders were placed for White, Monroe and Oliver between 2023-11-04 and 2024-06-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'White, Monroe and Oliver' AND order_date BETWEEN '2023-11-04' AND '2024-06-26' + +Natural Query: How many orders were placed for Walker, Anderson and Hoffman between 2023-11-01 and 2024-06-29? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Walker, Anderson and Hoffman' AND order_date BETWEEN '2023-11-01' AND '2024-06-29' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hodge-Richards 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 = 'Hodge-Richards' + 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 Taylor, Lynn and Nixon? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Taylor, Lynn and Nixon' + +Natural Query: Show me all products in the somebody category with a price over $417.61. +SQL Query: SELECT * FROM products WHERE category = 'somebody' AND price > 417.61 + +Natural Query: List all products of Tucker LLC ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Tucker LLC' ORDER BY price DESC + +Natural Query: Show me all products in the ago category with a price over $810.92. +SQL Query: SELECT * FROM products WHERE category = 'ago' AND price > 810.92 + +Natural Query: List all products of Howard-Lee ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Howard-Lee' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Ortega, Chaney and Alexander. +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 = 'Ortega, Chaney and Alexander' GROUP BY c.customer_id + +Natural Query: What are the top 9 products by customers for Middleton-Hancock this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Middleton-Hancock' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: What is the total quantity for each supplier in Barnes Inc? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Barnes Inc' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Lee-Nelson between 2024-01-20 and 2024-03-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lee-Nelson' AND order_date BETWEEN '2024-01-20' AND '2024-03-16' + +Natural Query: List all products of Warren-Mills ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Warren-Mills' ORDER BY rating DESC + +Natural Query: What is the total sales for each category in Calderon, Coleman and Hardin? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Calderon, Coleman and Hardin' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Scott, Harrison and Stokes 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 = 'Scott, Harrison and Stokes' + 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 Branch-Walton between 2024-04-08 and 2024-09-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Branch-Walton' AND order_date BETWEEN '2024-04-08' AND '2024-09-05' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Harrison, Cummings and Lee 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 = 'Harrison, Cummings and Lee' + 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 Skinner, Gilmore and Hernandez? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Skinner, Gilmore and Hernandez' + +Natural Query: What is the minimum quantity of all products for Cole, Christensen and Gentry? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Cole, Christensen and Gentry' + +Natural Query: Show me all products in the see category with a price over $134.54. +SQL Query: SELECT * FROM products WHERE category = 'see' AND price > 134.54 + +Natural Query: List all customers and their total order value for House 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 = 'House Ltd' GROUP BY c.customer_id + +Natural Query: What is the minimum rating of all products for Gay-Hurley? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Gay-Hurley' + +Natural Query: How many orders were placed for Branch Inc between 2024-04-23 and 2024-07-31? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Branch Inc' AND order_date BETWEEN '2024-04-23' AND '2024-07-31' + +Natural Query: List all customers and their total order value for Carr, Chavez and Colon. +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 = 'Carr, Chavez and Colon' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Marshall, Palmer and Anderson between 2023-10-17 and 2024-05-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Marshall, Palmer and Anderson' AND order_date BETWEEN '2023-10-17' AND '2024-05-10' + +Natural Query: List all products of Dean-Maldonado ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Dean-Maldonado' ORDER BY rating DESC + +Natural Query: What are the top 5 products by orders for Miller, Hill and Myers this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Miller, Hill and Myers' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: How many orders were placed for Villanueva PLC between 2024-02-27 and 2024-03-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Villanueva PLC' AND order_date BETWEEN '2024-02-27' AND '2024-03-30' + +Natural Query: How many orders were placed for Walters LLC between 2024-04-05 and 2024-05-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Walters LLC' AND order_date BETWEEN '2024-04-05' AND '2024-05-06' + +Natural Query: Show me all products in the let category with a price over $199.85. +SQL Query: SELECT * FROM products WHERE category = 'let' AND price > 199.85 + +Natural Query: How many orders were placed for Campbell-Raymond between 2024-04-04 and 2024-04-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Campbell-Raymond' AND order_date BETWEEN '2024-04-04' AND '2024-04-14' + +Natural Query: List all customers and their total order value for Baker, Murray and Franco. +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 = 'Baker, Murray and Franco' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Nguyen 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 = 'Nguyen 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 Dean-Gutierrez between 2024-04-15 and 2024-04-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Dean-Gutierrez' AND order_date BETWEEN '2024-04-15' AND '2024-04-19' + +Natural Query: How many orders were placed for Johnson-Edwards between 2024-04-28 and 2024-07-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Johnson-Edwards' AND order_date BETWEEN '2024-04-28' AND '2024-07-05' + +Natural Query: List all customers and their total order value for Santos, Reese and 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 = 'Santos, Reese and Harris' GROUP BY c.customer_id + +Natural Query: What is the maximum price of all products for Abbott-Hernandez? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Abbott-Hernandez' + +Natural Query: What is the minimum price of all products for Wood Ltd? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Wood Ltd' + +Natural Query: What is the average rating of all products for Walls, Wright and Griffin? +SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Walls, Wright and Griffin' + +Natural Query: Show me all products in the voice category with a price over $227.86. +SQL Query: SELECT * FROM products WHERE category = 'voice' AND price > 227.86 + +Natural Query: What are the top 6 products by orders for Patel Ltd this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Patel Ltd' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: What is the total profit for each country in Beltran Ltd? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Beltran Ltd' GROUP BY country ORDER BY total_profit DESC + +Natural Query: How many orders were placed for Giles, Miller and Burke between 2024-07-27 and 2024-08-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Giles, Miller and Burke' AND order_date BETWEEN '2024-07-27' AND '2024-08-21' + +Natural Query: How many orders were placed for Solomon, Martin and Aguilar between 2024-03-27 and 2024-06-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Solomon, Martin and Aguilar' AND order_date BETWEEN '2024-03-27' AND '2024-06-09' + +Natural Query: What are the top 4 products by revenue for Schaefer Group all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Schaefer Group' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: What are the top 3 products by revenue for Smith-Morris this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Smith-Morris' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Rice 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 = 'Rice Ltd' + AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) + GROUP BY p.category + ORDER BY total_sales DESC + LIMIT 5 + +Natural Query: What is the total sales for each category in Harrison PLC? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Harrison PLC' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Abbott, Willis and Crawford 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 = 'Abbott, Willis and Crawford' + 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 four category with a price over $645.3. +SQL Query: SELECT * FROM products WHERE category = 'four' AND price > 645.3 + +Natural Query: What are the top 5 products by orders for Simmons and Sons all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Simmons and Sons' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: List all products of Wallace, Keller and Williams ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Wallace, Keller and Williams' ORDER BY price ASC + +Natural Query: What are the top 7 products by orders for Williams PLC this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Williams PLC' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Young, Farmer and Coleman 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 = 'Young, Farmer and Coleman' + 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 Guerrero Group? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Guerrero Group' + +Natural Query: What are the top 7 products by customers for Rojas-Johnson this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Rojas-Johnson' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: List all products of Shaffer, Barrett and Sullivan ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Shaffer, Barrett and Sullivan' ORDER BY stock_quantity DESC + +Natural Query: Show me all products in the hundred category with a price over $64.02. +SQL Query: SELECT * FROM products WHERE category = 'hundred' AND price > 64.02 + +Natural Query: List all products of Jones Ltd ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Jones Ltd' ORDER BY stock_quantity DESC + +Natural Query: List all products of Griffin, Taylor and Schultz ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Griffin, Taylor and Schultz' ORDER BY stock_quantity ASC + +Natural Query: Show me all products in the teacher category with a price over $300.83. +SQL Query: SELECT * FROM products WHERE category = 'teacher' AND price > 300.83 + +Natural Query: Show me all products in the effect category with a price over $36.77. +SQL Query: SELECT * FROM products WHERE category = 'effect' AND price > 36.77 + +Natural Query: What are the top 10 products by revenue for Watkins, Jones and Hart all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Watkins, Jones and Hart' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: List all customers and their total order value for Charles-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 = 'Charles-Moore' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Hodges 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 = 'Hodges Group' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for King-Cameron. +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 = 'King-Cameron' GROUP BY c.customer_id + +Natural Query: Show me all products in the amount category with a price over $89.07. +SQL Query: SELECT * FROM products WHERE category = 'amount' AND price > 89.07 + +Natural Query: What is the average price of all products for Watson and Sons? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Watson and Sons' + +Natural Query: What are the top 5 products by orders for Taylor, Harris and Peterson this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Taylor, Harris and Peterson' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: What is the total profit for each country in Walker-Garcia? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Walker-Garcia' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Roberts, Campbell and Lewis 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, Campbell and Lewis' + 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 orders for Miller Inc last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Miller Inc' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 + +Natural Query: What are the top 5 products by sales for Taylor Group all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Taylor Group' 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 White 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 = 'White 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 5 categories by sales for customers aged 25-35 in Harris 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 = 'Harris 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 expert category with a price over $69.44. +SQL Query: SELECT * FROM products WHERE category = 'expert' AND price > 69.44 + +Natural Query: What is the total sales for each country in Fields-Fleming? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Fields-Fleming' GROUP BY country ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Henson, Prince and Hanson between 2024-01-28 and 2024-04-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Henson, Prince and Hanson' AND order_date BETWEEN '2024-01-28' AND '2024-04-12' + +Natural Query: How many orders were placed for Adams LLC between 2023-11-03 and 2024-07-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Adams LLC' AND order_date BETWEEN '2023-11-03' AND '2024-07-23' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Murphy, Kaufman and Schultz 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 = 'Murphy, Kaufman and Schultz' + 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 group category with a price over $648.7. +SQL Query: SELECT * FROM products WHERE category = 'group' AND price > 648.7 + +Natural Query: Show me all products in the buy category with a price over $894.32. +SQL Query: SELECT * FROM products WHERE category = 'buy' AND price > 894.32 + +Natural Query: List all customers and their total order value for Wood, Lopez and Garrison. +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 = 'Wood, Lopez and Garrison' GROUP BY c.customer_id + +Natural Query: Show me all products in the discussion category with a price over $77.46. +SQL Query: SELECT * FROM products WHERE category = 'discussion' AND price > 77.46 + +Natural Query: What is the total quantity for each supplier in Burton Ltd? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Burton Ltd' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Ho-Dixon between 2024-02-16 and 2024-06-20? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ho-Dixon' AND order_date BETWEEN '2024-02-16' AND '2024-06-20' + +Natural Query: List all customers and their total order value for Rodriguez, Hayes and Salazar. +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 = 'Rodriguez, Hayes and Salazar' GROUP BY c.customer_id + +Natural Query: List all customers and their total order value for Lloyd, Tucker and Baker. +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 = 'Lloyd, Tucker and Baker' GROUP BY c.customer_id + +Natural Query: List all products of Holmes Group ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Holmes Group' ORDER BY price DESC + +Natural Query: How many orders were placed for Ramirez-Byrd between 2024-01-18 and 2024-02-10? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ramirez-Byrd' AND order_date BETWEEN '2024-01-18' AND '2024-02-10' + +Natural Query: Show me all products in the material category with a price over $770.59. +SQL Query: SELECT * FROM products WHERE category = 'material' AND price > 770.59 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Brandt 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 = 'Brandt 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 quantity of all products for Hall Ltd? +SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Hall Ltd' + +Natural Query: What are the top 6 products by sales for Blanchard, Richardson and Castaneda all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Blanchard, Richardson and Castaneda' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 + +Natural Query: What is the total quantity for each supplier in Thomas PLC? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Thomas PLC' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Jones-Keller between 2024-08-03 and 2024-09-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jones-Keller' AND order_date BETWEEN '2024-08-03' AND '2024-09-16' + +Natural Query: Show me all products in the development category with a price over $157.97. +SQL Query: SELECT * FROM products WHERE category = 'development' AND price > 157.97 + +Natural Query: Show me all products in the line category with a price over $193.61. +SQL Query: SELECT * FROM products WHERE category = 'line' AND price > 193.61 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Martin 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 = 'Martin 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 Pope-Riddle between 2023-12-09 and 2024-07-13? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Pope-Riddle' AND order_date BETWEEN '2023-12-09' AND '2024-07-13' + +Natural Query: What is the total rating of all products for Cortez, Robbins and Rice? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Cortez, Robbins and Rice' + +Natural Query: What is the maximum price of all products for Yoder, House and Crawford? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Yoder, House and Crawford' + +Natural Query: How many orders were placed for Velazquez, Smith and Stephens between 2024-07-17 and 2024-08-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Velazquez, Smith and Stephens' AND order_date BETWEEN '2024-07-17' AND '2024-08-19' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Williams-Hale 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-Hale' + 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 Hines-Craig. +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 = 'Hines-Craig' GROUP BY c.customer_id + +Natural Query: List all products of Shea and Sons ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Shea and Sons' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mcclain-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 = 'Mcclain-Davis' + 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 Mitchell Group between 2024-02-21 and 2024-02-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mitchell Group' AND order_date BETWEEN '2024-02-21' AND '2024-02-21' + +Natural Query: Show me all products in the area category with a price over $168.25. +SQL Query: SELECT * FROM products WHERE category = 'area' AND price > 168.25 + +Natural Query: List all products of Brown, Dunn and Hernandez ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Brown, Dunn and Hernandez' ORDER BY stock_quantity DESC + +Natural Query: How many orders were placed for Jones Group between 2024-08-12 and 2024-09-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jones Group' AND order_date BETWEEN '2024-08-12' AND '2024-09-11' + +Natural Query: What is the total rating of all products for Lawson LLC? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Lawson LLC' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Spears, Martin and Bean 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 = 'Spears, Martin and Bean' + 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 Myers-Garcia ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Myers-Garcia' ORDER BY price DESC + +Natural Query: What is the total sales for each supplier in Krause PLC? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Krause PLC' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Vance Inc between 2023-12-24 and 2024-01-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Vance Inc' AND order_date BETWEEN '2023-12-24' AND '2024-01-09' + +Natural Query: List all products of Todd-Freeman ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Todd-Freeman' ORDER BY rating DESC + +Natural Query: What is the total profit for each supplier in Stevens-Olson? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Stevens-Olson' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the total profit for each supplier in Fox Inc? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Fox Inc' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: What is the total profit for each country in Sanders, Arnold and Andrews? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Sanders, Arnold and Andrews' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 9 products by orders for Hogan Ltd this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Hogan Ltd' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: List all products of Smith, Brown and Holt ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Smith, Brown and Holt' ORDER BY price ASC + +Natural Query: List all products of Kirby LLC ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Kirby LLC' ORDER BY rating ASC + +Natural Query: What is the maximum quantity of all products for Mcintyre, Lewis and Bautista? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Mcintyre, Lewis and Bautista' + +Natural Query: What is the total quantity for each category in Stephens, Olson and Hernandez? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Stephens, Olson and Hernandez' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: Show me all products in the child category with a price over $16.02. +SQL Query: SELECT * FROM products WHERE category = 'child' AND price > 16.02 + +Natural Query: List all products of Acosta, Arellano and Guerra ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Acosta, Arellano and Guerra' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Rodriguez 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 = 'Rodriguez 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 customers and their total order value for Bowman-Hunter. +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 = 'Bowman-Hunter' GROUP BY c.customer_id + +Natural Query: Show me all products in the system category with a price over $133.55. +SQL Query: SELECT * FROM products WHERE category = 'system' AND price > 133.55 + +Natural Query: What are the top 9 products by sales for Lopez-Prince this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Lopez-Prince' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gates 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 = 'Gates 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 4 products by customers for Jones-Allen this month? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Jones-Allen' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: List all customers and their total order value for Hays 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 = 'Hays Inc' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each supplier in Peterson PLC? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Peterson PLC' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Wyatt, Smith and Lopez 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 = 'Wyatt, Smith and Lopez' + 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 rating of all products for Edwards, Stevens and Gilbert? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Edwards, Stevens and Gilbert' + +Natural Query: List all customers and their total order value for Gordon, Mcintosh 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 = 'Gordon, Mcintosh and Curtis' GROUP BY c.customer_id + +Natural Query: What are the top 9 products by customers for Zimmerman-Morales last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Zimmerman-Morales' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9 + +Natural Query: Show me all products in the head category with a price over $922.02. +SQL Query: SELECT * FROM products WHERE category = 'head' AND price > 922.02 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Horton, Moore 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 = 'Horton, Moore 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 is the average quantity of all products for Hughes PLC? +SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Hughes PLC' + +Natural Query: How many orders were placed for Bell PLC between 2024-04-17 and 2024-05-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bell PLC' AND order_date BETWEEN '2024-04-17' AND '2024-05-07' + +Natural Query: What is the total quantity of all products for Mcbride-Watson? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Mcbride-Watson' + +Natural Query: Show me all products in the occur category with a price over $551.55. +SQL Query: SELECT * FROM products WHERE category = 'occur' AND price > 551.55 + +Natural Query: What is the total quantity of all products for Miles Group? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Miles Group' + +Natural Query: List all customers and their total order value for Anderson 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 = 'Anderson PLC' GROUP BY c.customer_id + +Natural Query: What is the total price of all products for Hall, Morgan and Decker? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Hall, Morgan and Decker' + +Natural Query: How many orders were placed for Kaiser, Richards and Mcgrath between 2024-04-08 and 2024-04-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Kaiser, Richards and Mcgrath' AND order_date BETWEEN '2024-04-08' AND '2024-04-08' + +Natural Query: How many orders were placed for Taylor LLC between 2024-05-09 and 2024-08-14? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Taylor LLC' AND order_date BETWEEN '2024-05-09' AND '2024-08-14' + +Natural Query: How many orders were placed for Estrada Group between 2024-08-31 and 2024-09-15? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Estrada Group' AND order_date BETWEEN '2024-08-31' AND '2024-09-15' + +Natural Query: What are the top 8 products by orders for Miranda, Ramirez and Zavala this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Miranda, Ramirez and Zavala' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: What are the top 7 products by customers for Sanchez, Nixon and Dixon last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Sanchez, Nixon and Dixon' 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 Cunningham-Ramsey 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-Ramsey' + 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 Hart and Sons? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Hart and Sons' + +Natural Query: What are the top 4 products by sales for Walters Inc all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Walters Inc' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4 + +Natural Query: List all customers and their total order value for Lewis 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 = 'Lewis LLC' GROUP BY c.customer_id + +Natural Query: What is the total quantity of all products for Cunningham-Wright? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Cunningham-Wright' + +Natural Query: Show me all products in the present category with a price over $375.92. +SQL Query: SELECT * FROM products WHERE category = 'present' AND price > 375.92 + +Natural Query: What is the total quantity of all products for Kaufman, Davis and Meadows? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Kaufman, Davis and Meadows' + +Natural Query: What are the top 4 products by orders for Thompson-Wright this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Thompson-Wright' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: List all customers and their total order value for Cook, Tran and Walker. +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 = 'Cook, Tran and Walker' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in May, Bird and Beck 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 = 'May, Bird and Beck' + 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-Wells ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Sullivan-Wells' ORDER BY stock_quantity ASC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Silva 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 = 'Silva 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 edge category with a price over $829.32. +SQL Query: SELECT * FROM products WHERE category = 'edge' AND price > 829.32 + +Natural Query: How many orders were placed for Gomez-Day between 2024-03-11 and 2024-05-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gomez-Day' AND order_date BETWEEN '2024-03-11' AND '2024-05-16' + +Natural Query: Show me all products in the last category with a price over $116.32. +SQL Query: SELECT * FROM products WHERE category = 'last' AND price > 116.32 + +Natural Query: What is the total profit for each category in Waters, Weber and Robinson? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Waters, Weber and Robinson' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the total sales for each country in Thomas Group? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Thomas Group' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Durham-Frye. +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 = 'Durham-Frye' GROUP BY c.customer_id + +Natural Query: Show me all products in the itself category with a price over $329.83. +SQL Query: SELECT * FROM products WHERE category = 'itself' AND price > 329.83 + +Natural Query: List all customers and their total order value for Sanchez-Martin. +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 = 'Sanchez-Martin' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Watts, Jenkins and Moon 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 = 'Watts, Jenkins and Moon' + 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 Lara Inc between 2024-03-10 and 2024-08-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lara Inc' AND order_date BETWEEN '2024-03-10' AND '2024-08-16' + +Natural Query: What are the top 9 products by sales for Peterson, Watson and Thompson last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Peterson, Watson and Thompson' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: List all customers and their total order value for Mcgee, Gutierrez and Wilkins. +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 = 'Mcgee, Gutierrez and Wilkins' GROUP BY c.customer_id + +Natural Query: Show me all products in the across category with a price over $795.82. +SQL Query: SELECT * FROM products WHERE category = 'across' AND price > 795.82 + +Natural Query: What is the total profit for each country in Gilbert, Doyle and Miller? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Gilbert, Doyle and Miller' GROUP BY country ORDER BY total_profit DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Chapman-Martinez 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-Martinez' + 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 Hamilton Ltd? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hamilton Ltd' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: List all products of Marshall, Wang and Williams ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Marshall, Wang and Williams' ORDER BY price DESC + +Natural Query: Show me all products in the ahead category with a price over $652.31. +SQL Query: SELECT * FROM products WHERE category = 'ahead' AND price > 652.31 + +Natural Query: How many orders were placed for Warner Ltd between 2024-02-17 and 2024-09-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Warner Ltd' AND order_date BETWEEN '2024-02-17' AND '2024-09-12' + +Natural Query: What is the maximum quantity of all products for Davis-Kerr? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Davis-Kerr' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Burns-Parks 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-Parks' + 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 Evans Inc? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Evans Inc' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all products of Barron-Jenkins ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Barron-Jenkins' ORDER BY price ASC + +Natural Query: List all customers and their total order value for Cannon, Anderson and 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 = 'Cannon, Anderson and Rodriguez' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each supplier in Schroeder-Gonzalez? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Schroeder-Gonzalez' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the maximum rating of all products for Watson-Cole? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Watson-Cole' + +Natural Query: List all customers and their total order value for Beasley, Bender and Parks. +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 = 'Beasley, Bender and Parks' GROUP BY c.customer_id + +Natural Query: What are the top 6 products by orders for Clark LLC last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Clark LLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6 + +Natural Query: List all customers and their total order value for Curtis-Peterson. +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-Peterson' GROUP BY c.customer_id + +Natural Query: What is the total profit for each category in Daniels, Davis and Gonzalez? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Daniels, Davis and Gonzalez' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What are the top 9 products by sales for Rodriguez Inc last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Rodriguez Inc' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 + +Natural Query: What is the total profit for each category in Miller-Rogers? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Miller-Rogers' GROUP BY category ORDER BY total_profit DESC + +Natural Query: What is the minimum price of all products for Marquez Group? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Marquez Group' + +Natural Query: Show me all products in the charge category with a price over $543.31. +SQL Query: SELECT * FROM products WHERE category = 'charge' AND price > 543.31 + +Natural Query: What is the total sales for each country in Bell and Sons? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Bell and Sons' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 4 products by orders for Watson-Hines last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Watson-Hines' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: List all products of Willis, Lawrence and Rich ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Willis, Lawrence and Rich' ORDER BY stock_quantity ASC + +Natural Query: List all customers and their total order value for Newton 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 = 'Newton Inc' GROUP BY c.customer_id + +Natural Query: What are the top 4 products by orders for Dawson, Saunders and Benson this year? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Dawson, Saunders and Benson' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 + +Natural Query: List all customers and their total order value for Baker-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 = 'Baker-Smith' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Lawrence and Sons between 2024-06-11 and 2024-09-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lawrence and Sons' AND order_date BETWEEN '2024-06-11' AND '2024-09-09' + +Natural Query: What are the top 5 products by revenue for Hanna, Johnson and Cole last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Hanna, Johnson and Cole' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: What is the maximum quantity of all products for Morrison-Watkins? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Morrison-Watkins' + +Natural Query: What are the top 4 products by revenue for Garcia, Robinson and Garcia last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Garcia, Robinson and Garcia' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 + +Natural Query: List all customers and their total order value for Mcguire, Williams and Gonzalez. +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 = 'Mcguire, Williams and Gonzalez' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each supplier in Vasquez, Chavez and Swanson? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Vasquez, Chavez and Swanson' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Lee 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 = 'Lee 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 quantity for each country in Davidson-Jacobs? +SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Davidson-Jacobs' GROUP BY country ORDER BY total_quantity DESC + +Natural Query: Show me all products in the surface category with a price over $221.57. +SQL Query: SELECT * FROM products WHERE category = 'surface' AND price > 221.57 + +Natural Query: What are the top 10 products by revenue for Johnston, Carter and Nunez last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Johnston, Carter and Nunez' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: How many orders were placed for Mann Inc between 2024-04-04 and 2024-06-23? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mann Inc' AND order_date BETWEEN '2024-04-04' AND '2024-06-23' + +Natural Query: List all customers and their total order value for Benson, Collins and Calhoun. +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 = 'Benson, Collins and Calhoun' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Taylor, Stafford and Schmitt 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, Stafford and Schmitt' + 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 Smith, Sullivan and Rodgers? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Smith, Sullivan and Rodgers' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Gonzalez 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 = 'Gonzalez 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 Aguilar, Campbell and Williams ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Aguilar, Campbell and Williams' ORDER BY stock_quantity DESC + +Natural Query: Show me all products in the training category with a price over $278.27. +SQL Query: SELECT * FROM products WHERE category = 'training' AND price > 278.27 + +Natural Query: List all customers and their total order value for Schneider 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 = 'Schneider Inc' GROUP BY c.customer_id + +Natural Query: What are the top 4 products by customers for Jackson, Haynes and Phillips last quarter? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Jackson, Haynes and Phillips' 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 Hughes 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 = 'Hughes and Sons' GROUP BY c.customer_id + +Natural Query: What is the total quantity of all products for Sosa, Gomez and Lewis? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Sosa, Gomez and Lewis' + +Natural Query: List all products of Davis-Rice ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Davis-Rice' ORDER BY price ASC + +Natural Query: What are the top 8 products by orders for Bradley Inc this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Bradley Inc' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8 + +Natural Query: List all products of Kidd, Khan and Arroyo ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Kidd, Khan and Arroyo' ORDER BY rating ASC + +Natural Query: What is the total sales for each category in Johnson-Ford? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Johnson-Ford' GROUP BY category ORDER BY total_sales DESC + +Natural Query: Show me all products in the build category with a price over $532.13. +SQL Query: SELECT * FROM products WHERE category = 'build' AND price > 532.13 + +Natural Query: List all customers and their total order value for Alvarez 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 = 'Alvarez Group' GROUP BY c.customer_id + +Natural Query: Show me all products in the situation category with a price over $632.1. +SQL Query: SELECT * FROM products WHERE category = 'situation' AND price > 632.1 + +Natural Query: What is the total sales for each country in Alvarez-Smith? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Alvarez-Smith' GROUP BY country ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Ball Group between 2024-01-20 and 2024-08-21? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ball Group' AND order_date BETWEEN '2024-01-20' AND '2024-08-21' + +Natural Query: List all customers and their total order value for Harrell, Anthony and Mendoza. +SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Harrell, Anthony and Mendoza' GROUP BY c.customer_id + +Natural Query: What are the top 10 products by revenue for Garza Group last quarter? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Garza Group' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: What is the total rating of all products for Jones-Little? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Jones-Little' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Savage 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 = 'Savage 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 products by revenue for Jacobs-Beck this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Jacobs-Beck' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: What is the total rating of all products for Todd, Bishop and Diaz? +SQL Query: SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Todd, Bishop and Diaz' + +Natural Query: How many orders were placed for Tran-Reid between 2023-11-28 and 2024-09-12? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Tran-Reid' AND order_date BETWEEN '2023-11-28' AND '2024-09-12' + +Natural Query: What are the top 10 products by sales for Rogers and Sons last quarter? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Rogers and Sons' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: What is the total sales for each country in Wall PLC? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Wall PLC' GROUP BY country ORDER BY total_sales DESC + +Natural Query: Show me all products in the wife category with a price over $852.07. +SQL Query: SELECT * FROM products WHERE category = 'wife' AND price > 852.07 + +Natural Query: What are the top 8 products by customers for Lewis Ltd all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Lewis Ltd' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8 + +Natural Query: Show me all products in the daughter category with a price over $168.9. +SQL Query: SELECT * FROM products WHERE category = 'daughter' AND price > 168.9 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Randall 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 = 'Randall 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 Ramirez-Clarke. +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-Clarke' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Mitchell 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 = 'Mitchell 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 total sales for each country in Rivera Ltd? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Rivera Ltd' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Cardenas-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 = 'Cardenas-Davis' GROUP BY c.customer_id + +Natural Query: What is the total profit for each country in Stewart Group? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Stewart Group' GROUP BY country ORDER BY total_profit DESC + +Natural Query: Show me all products in the dream category with a price over $75.36. +SQL Query: SELECT * FROM products WHERE category = 'dream' AND price > 75.36 + +Natural Query: List all customers and their total order value for Larson 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 = 'Larson Group' GROUP BY c.customer_id + +Natural Query: List all products of Robinson Ltd ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Robinson Ltd' ORDER BY stock_quantity ASC + +Natural Query: List all products of Rose Inc ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Rose Inc' ORDER BY rating ASC + +Natural Query: What is the total price of all products for Larson-Parker? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Larson-Parker' + +Natural Query: How many orders were placed for Michael-Estes between 2023-10-27 and 2024-02-06? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Michael-Estes' AND order_date BETWEEN '2023-10-27' AND '2024-02-06' + +Natural Query: Show me all products in the beat category with a price over $231.62. +SQL Query: SELECT * FROM products WHERE category = 'beat' AND price > 231.62 + +Natural Query: How many orders were placed for Gomez, Allen and Jackson between 2023-09-22 and 2023-10-22? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gomez, Allen and Jackson' AND order_date BETWEEN '2023-09-22' AND '2023-10-22' + +Natural Query: List all products of Harris Inc ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Harris Inc' ORDER BY stock_quantity ASC + +Natural Query: List all customers and their total order value for Scott 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 = 'Scott PLC' GROUP BY c.customer_id + +Natural Query: What is the average price of all products for Welch LLC? +SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Welch LLC' + +Natural Query: How many orders were placed for Jenkins Inc between 2024-07-14 and 2024-08-05? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jenkins Inc' AND order_date BETWEEN '2024-07-14' AND '2024-08-05' + +Natural Query: How many orders were placed for Lam-Cochran between 2024-01-13 and 2024-03-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lam-Cochran' AND order_date BETWEEN '2024-01-13' AND '2024-03-18' + +Natural Query: What are the top 7 products by revenue for Sexton, Holt and Chambers this year? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Sexton, Holt and Chambers' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7 + +Natural Query: What is the total profit for each supplier in Gay-Carr? +SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Gay-Carr' GROUP BY supplier ORDER BY total_profit DESC + +Natural Query: Show me all products in the anything category with a price over $818.89. +SQL Query: SELECT * FROM products WHERE category = 'anything' AND price > 818.89 + +Natural Query: Show me all products in the father category with a price over $90.99. +SQL Query: SELECT * FROM products WHERE category = 'father' AND price > 90.99 + +Natural Query: List all products of Moore, Lewis and Saunders ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Moore, Lewis and Saunders' ORDER BY rating DESC + +Natural Query: What is the total sales for each category in Smith Ltd? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Smith Ltd' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 8 products by sales for Brennan-Hill this year? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Brennan-Hill' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8 + +Natural Query: List all products of Moss LLC ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Moss LLC' ORDER BY price ASC + +Natural Query: How many orders were placed for Wood Ltd between 2024-07-16 and 2024-09-09? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wood Ltd' AND order_date BETWEEN '2024-07-16' AND '2024-09-09' + +Natural Query: What are the top 5 products by revenue for Bennett-Burke all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Bennett-Burke' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5 + +Natural Query: How many orders were placed for Johnson, Henry and Blackwell between 2023-12-08 and 2024-07-30? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Johnson, Henry and Blackwell' AND order_date BETWEEN '2023-12-08' AND '2024-07-30' + +Natural Query: What are the top 8 products by revenue for Smith-Howard all time? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Smith-Howard' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 + +Natural Query: What is the total quantity of all products for Bryan-Davis? +SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Bryan-Davis' + +Natural Query: List all customers and their total order value for Mckinney 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 = 'Mckinney PLC' GROUP BY c.customer_id + +Natural Query: List all products of Morales, Miller and Boyd ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Morales, Miller and Boyd' ORDER BY rating ASC + +Natural Query: How many orders were placed for Evans Inc between 2023-11-03 and 2024-05-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Evans Inc' AND order_date BETWEEN '2023-11-03' AND '2024-05-08' + +Natural Query: What is the maximum price of all products for Glenn-Cordova? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Glenn-Cordova' + +Natural Query: How many orders were placed for Brown Inc between 2023-12-10 and 2024-05-16? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Brown Inc' AND order_date BETWEEN '2023-12-10' AND '2024-05-16' + +Natural Query: How many orders were placed for Smith, Cooper and Jordan between 2023-10-23 and 2024-06-26? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Smith, Cooper and Jordan' AND order_date BETWEEN '2023-10-23' AND '2024-06-26' + +Natural Query: What is the total profit for each country in Mueller, Jones and Walker? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Mueller, Jones and Walker' GROUP BY country ORDER BY total_profit DESC + +Natural Query: Show me all products in the ready category with a price over $363.65. +SQL Query: SELECT * FROM products WHERE category = 'ready' AND price > 363.65 + +Natural Query: How many orders were placed for Lee, Hebert and Fuller between 2024-07-15 and 2024-08-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lee, Hebert and Fuller' AND order_date BETWEEN '2024-07-15' AND '2024-08-08' + +Natural Query: What is the total quantity for each category in Gallagher PLC? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Gallagher PLC' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Vazquez 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 = 'Vazquez 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 4 products by customers for Yang PLC this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Yang PLC' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: Show me all products in the prove category with a price over $448.33. +SQL Query: SELECT * FROM products WHERE category = 'prove' AND price > 448.33 + +Natural Query: What is the total sales for each category in Phillips PLC? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Phillips PLC' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What is the total sales for each country in Noble-Lamb? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Noble-Lamb' GROUP BY country ORDER BY total_sales DESC + +Natural Query: List all customers and their total order value for Flores 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 = 'Flores Ltd' GROUP BY c.customer_id + +Natural Query: How many orders were placed for Carroll Inc between 2024-07-01 and 2024-07-19? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Carroll Inc' AND order_date BETWEEN '2024-07-01' AND '2024-07-19' + +Natural Query: List all products of Moore and Sons ordered by rating from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Moore and Sons' ORDER BY rating DESC + +Natural Query: How many orders were placed for Martinez, Young and Aguilar between 2024-06-14 and 2024-07-07? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Martinez, Young and Aguilar' AND order_date BETWEEN '2024-06-14' AND '2024-07-07' + +Natural Query: What is the maximum quantity of all products for Warren-Abbott? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Warren-Abbott' + +Natural Query: What are the top 9 products by orders for Hart, Walker and Roy all time? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Hart, Walker and Roy' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9 + +Natural Query: How many orders were placed for Meyer-Garcia between 2024-05-05 and 2024-08-04? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Meyer-Garcia' AND order_date BETWEEN '2024-05-05' AND '2024-08-04' + +Natural Query: List all customers and their total order value for Webb, Johnston and Leonard. +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 = 'Webb, Johnston and Leonard' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Castillo, Ritter and Rhodes 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 = 'Castillo, Ritter and Rhodes' + 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 know category with a price over $368.04. +SQL Query: SELECT * FROM products WHERE category = 'know' AND price > 368.04 + +Natural Query: What are the top 5 products by orders for Wilson, Lopez and Woods last quarter? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Wilson, Lopez and Woods' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 + +Natural Query: What is the minimum price of all products for Munoz and Sons? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Munoz and Sons' + +Natural Query: List all products of Hernandez Ltd ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hernandez Ltd' ORDER BY stock_quantity DESC + +Natural Query: List all customers and their total order value for Patterson-Stevens. +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 = 'Patterson-Stevens' GROUP BY c.customer_id + +Natural Query: What are the top 3 products by customers for Torres, Stafford and James all time? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Torres, Stafford and James' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 + +Natural Query: How many orders were placed for Daniels, Ruiz and Roman between 2024-03-25 and 2024-09-08? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Daniels, Ruiz and Roman' AND order_date BETWEEN '2024-03-25' AND '2024-09-08' + +Natural Query: List all customers and their total order value for Cox 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 = 'Cox LLC' GROUP BY c.customer_id + +Natural Query: What is the total sales for each country in Best-Gonzales? +SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Best-Gonzales' GROUP BY country ORDER BY total_sales DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Bender-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 = 'Bender-Porter' + 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 Page-Hart ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Page-Hart' ORDER BY stock_quantity ASC + +Natural Query: What are the top 10 products by revenue for Davis Inc this month? +SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Davis Inc' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10 + +Natural Query: Show me all products in the include category with a price over $651.53. +SQL Query: SELECT * FROM products WHERE category = 'include' AND price > 651.53 + +Natural Query: List all customers and their total order value for Gilbert-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 = 'Gilbert-Harris' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each supplier in Valdez LLC? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Valdez LLC' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: What is the total profit for each category in Bailey, Porter and Jackson? +SQL Query: SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Bailey, Porter and Jackson' GROUP BY category ORDER BY total_profit DESC + +Natural Query: Show me all products in the star category with a price over $350.18. +SQL Query: SELECT * FROM products WHERE category = 'star' AND price > 350.18 + +Natural Query: What is the minimum rating of all products for Davis, Hayden and Smith? +SQL Query: SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Davis, Hayden and Smith' + +Natural Query: List all products of Kelly PLC ordered by stock_quantity from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Kelly PLC' ORDER BY stock_quantity DESC + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Preston-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 = 'Preston-Johnson' + 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 Moore Ltd this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Moore Ltd' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 + +Natural Query: Show me all products in the conference category with a price over $887.36. +SQL Query: SELECT * FROM products WHERE category = 'conference' AND price > 887.36 + +Natural Query: List all products of Oconnell, Vasquez and Miller ordered by rating from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Oconnell, Vasquez and Miller' ORDER BY rating ASC + +Natural Query: List all products of Montgomery, Taylor and Lewis ordered by stock_quantity from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Montgomery, Taylor and Lewis' ORDER BY stock_quantity ASC + +Natural Query: Show me all products in the ready category with a price over $162.35. +SQL Query: SELECT * FROM products WHERE category = 'ready' AND price > 162.35 + +Natural Query: What is the total profit for each country in Perkins, Oneal and Duncan? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Perkins, Oneal and Duncan' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Hampton, Porter and Little. +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 = 'Hampton, Porter and Little' GROUP BY c.customer_id + +Natural Query: What is the total quantity for each category in Brown, Barnes and Schmidt? +SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Brown, Barnes and Schmidt' GROUP BY category ORDER BY total_quantity DESC + +Natural Query: What is the total price of all products for Contreras, Bell and Torres? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Contreras, Bell and Torres' + +Natural Query: What is the total price of all products for Cruz-Lutz? +SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Cruz-Lutz' + +Natural Query: List all customers and their total order value for Gallegos-Diaz. +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 = 'Gallegos-Diaz' GROUP BY c.customer_id + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Harvey, Case and Delgado 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 = 'Harvey, Case and Delgado' + 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 billion category with a price over $187.85. +SQL Query: SELECT * FROM products WHERE category = 'billion' AND price > 187.85 + +Natural Query: What is the maximum quantity of all products for Clark and Sons? +SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Clark and Sons' + +Natural Query: What is the minimum price of all products for Gilmore LLC? +SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Gilmore LLC' + +Natural Query: What is the total quantity for each supplier in James, Thomas and Barrett? +SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'James, Thomas and Barrett' GROUP BY supplier ORDER BY total_quantity DESC + +Natural Query: How many orders were placed for Jones, Taylor and Herrera between 2024-04-20 and 2024-09-11? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jones, Taylor and Herrera' AND order_date BETWEEN '2024-04-20' AND '2024-09-11' + +Natural Query: Show me all products in the care category with a price over $464.2. +SQL Query: SELECT * FROM products WHERE category = 'care' AND price > 464.2 + +Natural Query: What is the total sales for each category in Gutierrez-Robinson? +SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Gutierrez-Robinson' GROUP BY category ORDER BY total_sales DESC + +Natural Query: What are the top 4 products by customers for Saunders, Potter and Mueller this year? +SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Saunders, Potter and Mueller' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 + +Natural Query: What is the total profit for each country in Cook Inc? +SQL Query: SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Cook Inc' GROUP BY country ORDER BY total_profit DESC + +Natural Query: List all customers and their total order value for Park 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 = 'Park LLC' GROUP BY c.customer_id + +Natural Query: What are the top 3 products by orders for Moore, Cain and Berry this month? +SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Moore, Cain and Berry' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3 + +Natural Query: List all customers and their total order value for Miller-Myers. +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-Myers' GROUP BY c.customer_id + +Natural Query: What is the maximum price of all products for Thompson-Brown? +SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Thompson-Brown' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Marsh-Patterson 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 = 'Marsh-Patterson' + 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 Sullivan, Welch and 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 = 'Sullivan, Welch and Brown' GROUP BY c.customer_id + +Natural Query: What are the top 10 products by sales for Mendez, Burke and Myers all time? +SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Mendez, Burke and Myers' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 + +Natural Query: Show me all products in the experience category with a price over $298.19. +SQL Query: SELECT * FROM products WHERE category = 'experience' AND price > 298.19 + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Hughes 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 = 'Hughes 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 products of Hale PLC ordered by price from highest to lowest. +SQL Query: SELECT * FROM products WHERE company_name = 'Hale PLC' ORDER BY price DESC + +Natural Query: What is the total sales for each supplier in Lee Group? +SQL Query: SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Lee Group' GROUP BY supplier ORDER BY total_sales DESC + +Natural Query: How many orders were placed for Jones Inc between 2024-05-23 and 2024-07-18? +SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jones Inc' AND order_date BETWEEN '2024-05-23' AND '2024-07-18' + +Natural Query: List all products of Weaver Ltd ordered by price from lowest to highest. +SQL Query: SELECT * FROM products WHERE company_name = 'Weaver Ltd' ORDER BY price ASC + +Natural Query: What is the maximum rating of all products for Burnett PLC? +SQL Query: SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Burnett PLC' + +Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Valdez-King 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 = 'Valdez-King' + 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